/* ============================================
   浮世绘馆 - 主样式表
   CSS前缀: lb-
   设计风格: 日式浮世绘风
   配色: 暗红 #8B0000 / 金色 #FFD700 / 小麦 #F5DEB3 / 深灰 #1A1A1A / 白 #FFF
   ============================================ */

/* --- CSS Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --lb-primary: #8B0000;
    --lb-gold: #FFD700;
    --lb-wheat: #F5DEB3;
    --lb-dark: #1A1A1A;
    --lb-darker: #111111;
    --lb-white: #FFFFFF;
    --lb-gray: #2A2A2A;
    --lb-light-gray: #3A3A3A;
    --lb-text-muted: #B0A090;
    --lb-font-title: 'Noto Serif SC', 'Source Han Serif SC', serif;
    --lb-font-body: 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
    --lb-radius: 6px;
    --lb-shadow: 0 4px 20px rgba(0,0,0,0.4);
    --lb-transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--lb-font-body);
    background-color: var(--lb-dark);
    color: var(--lb-white);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: url('../images/section-bg-pattern.webp');
    background-repeat: repeat;
    background-size: 400px;
}

a {
    color: var(--lb-gold);
    text-decoration: none;
    transition: color var(--lb-transition);
}

a:hover {
    color: var(--lb-wheat);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--lb-font-title);
    font-weight: 700;
    line-height: 1.3;
}

ul, ol {
    list-style: none;
}

/* --- Container --- */
.lb-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .lb-container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .lb-container {
        padding: 0 3rem;
    }
}

/* --- Header & Navigation --- */
.lb-header {
    width: 100%;
    background: rgba(139, 0, 0, 0.8);
    padding: 1rem 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.lb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lb-logo {
    font-family: var(--lb-font-title);
    font-size: 1.5rem;
    color: var(--lb-gold);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.lb-logo span {
    color: var(--lb-white);
    font-size: 0.85rem;
    margin-left: 0.5rem;
    opacity: 0.8;
}

.lb-nav {
    display: none;
}

.lb-nav.lb-nav-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(139, 0, 0, 0.95);
    padding: 1rem;
    border-bottom: 2px solid var(--lb-gold);
}

@media (min-width: 768px) {
    .lb-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
    .lb-nav.lb-nav-active {
        position: static;
        background: none;
        padding: 0;
        border: none;
    }
    .lb-hamburger {
        display: none;
    }
}

.lb-nav-item {
    font-family: var(--lb-font-title);
    font-size: 1rem;
    color: var(--lb-white);
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--lb-transition);
    white-space: nowrap;
}

.lb-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--lb-gold);
    transition: left var(--lb-transition), right var(--lb-transition);
}

.lb-nav-item:hover::after,
.lb-nav-item.lb-active::after {
    left: 0;
    right: 0;
}

.lb-nav-item:hover,
.lb-nav-item.lb-active {
    color: var(--lb-gold);
}

.lb-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.lb-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--lb-gold);
    transition: transform var(--lb-transition);
}

/* --- Hero Slider --- */
.lb-hero-slider {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 600px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .lb-hero-slider {
        height: 70vh;
        max-height: 700px;
    }
}

.lb-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.lb-slide.lb-slide-active {
    opacity: 1;
}

.lb-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.3) 50%, transparent 100%);
}

.lb-slide-caption {
    position: absolute;
    bottom: 15%;
    left: 5%;
    max-width: 600px;
    z-index: 2;
}

.lb-slide-caption h2 {
    font-size: 1.5rem;
    color: var(--lb-gold);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

@media (min-width: 768px) {
    .lb-slide-caption h2 {
        font-size: 2.5rem;
    }
}

.lb-slide-caption p {
    font-size: 0.9rem;
    color: var(--lb-wheat);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

@media (min-width: 768px) {
    .lb-slide-caption p {
        font-size: 1.1rem;
    }
}

/* --- Buttons --- */
.lb-btn-primary {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: linear-gradient(135deg, var(--lb-primary), #6B0000);
    color: var(--lb-gold);
    border: 1px solid var(--lb-gold);
    border-radius: var(--lb-radius);
    font-family: var(--lb-font-title);
    font-size: 0.95rem;
    transition: transform var(--lb-transition), box-shadow var(--lb-transition);
    cursor: pointer;
}

.lb-btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    color: var(--lb-gold);
}

.lb-btn-secondary {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: transparent;
    color: var(--lb-gold);
    border: 1px solid var(--lb-gold);
    border-radius: var(--lb-radius);
    font-size: 0.85rem;
    transition: background var(--lb-transition), color var(--lb-transition);
}

.lb-btn-secondary:hover {
    background: var(--lb-gold);
    color: var(--lb-dark);
}

/* --- Section Titles --- */
.lb-section-title {
    font-size: 1.5rem;
    color: var(--lb-gold);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

@media (min-width: 768px) {
    .lb-section-title {
        font-size: 2rem;
    }
}

.lb-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--lb-gold), transparent);
}

/* --- Section Spacing --- */
.lb-section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .lb-section {
        padding: 4rem 0;
    }
}

/* --- Top Chart --- */
.lb-chart-list {
    counter-reset: chart-counter;
}

.lb-chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(42, 42, 42, 0.6);
    border-radius: var(--lb-radius);
    transition: background var(--lb-transition), transform var(--lb-transition);
    border-left: 3px solid transparent;
}

.lb-chart-item:hover {
    background: rgba(42, 42, 42, 0.9);
    transform: translateX(5px);
}

.lb-chart-item-gold {
    border-left-color: #FFD700;
}

.lb-chart-item-silver {
    border-left-color: #C0C0C0;
}

.lb-chart-item-bronze {
    border-left-color: #CD7F32;
}

.lb-rank {
    font-family: var(--lb-font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lb-gold);
    min-width: 2rem;
    text-align: center;
}

.lb-chart-thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.lb-chart-info h3 {
    font-size: 0.95rem;
    color: var(--lb-white);
    margin-bottom: 0.2rem;
}

.lb-chart-info p {
    font-size: 0.8rem;
    color: var(--lb-text-muted);
}

/* --- Card Grid --- */
.lb-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .lb-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .lb-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1440px) {
    .lb-card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.lb-card {
    background: var(--lb-gray);
    border-radius: var(--lb-radius);
    overflow: hidden;
    transition: transform var(--lb-transition), box-shadow var(--lb-transition);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.lb-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--lb-shadow);
    border-color: rgba(255, 215, 0, 0.3);
}

.lb-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.lb-card-body {
    padding: 1rem;
}

.lb-card-body h4 {
    font-size: 1rem;
    color: var(--lb-wheat);
    margin-bottom: 0.5rem;
}

.lb-card-body p {
    font-size: 0.85rem;
    color: var(--lb-text-muted);
    line-height: 1.5;
}

/* --- Classic Rewind --- */
.lb-classic-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(42, 42, 42, 0.5);
    border-radius: var(--lb-radius);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

@media (min-width: 768px) {
    .lb-classic-item {
        flex-direction: row;
        align-items: center;
    }
}

.lb-classic-item img {
    width: 100%;
    max-width: 200px;
    border-radius: var(--lb-radius);
}

.lb-classic-info h3 {
    font-size: 1.1rem;
    color: var(--lb-gold);
    margin-bottom: 0.5rem;
}

.lb-classic-info p {
    font-size: 0.9rem;
    color: var(--lb-text-muted);
}

/* --- Seiyuu Cards --- */
.lb-seiyuu-card-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .lb-seiyuu-card-slider {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .lb-seiyuu-card-slider {
        grid-template-columns: repeat(4, 1fr);
    }
}

.lb-seiyuu-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(42, 42, 42, 0.5);
    border-radius: var(--lb-radius);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: transform var(--lb-transition);
}

.lb-seiyuu-card:hover {
    transform: translateY(-3px);
}

.lb-seiyuu-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 2px solid var(--lb-gold);
}

.lb-seiyuu-card h4 {
    font-size: 0.95rem;
    color: var(--lb-wheat);
    margin-bottom: 0.3rem;
}

.lb-seiyuu-card p {
    font-size: 0.8rem;
    color: var(--lb-text-muted);
}

/* --- Studio Archive --- */
.lb-logo-wall {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .lb-logo-wall {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lb-studio-card {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(42, 42, 42, 0.5);
    border-radius: var(--lb-radius);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: border-color var(--lb-transition);
}

.lb-studio-card:hover {
    border-color: var(--lb-gold);
}

.lb-studio-card h4 {
    font-size: 1rem;
    color: var(--lb-gold);
    margin-bottom: 0.5rem;
}

.lb-studio-card p {
    font-size: 0.8rem;
    color: var(--lb-text-muted);
}

/* --- Waterfall Gallery --- */
.lb-waterfall-grid {
    columns: 2;
    column-gap: 1rem;
}

@media (min-width: 768px) {
    .lb-waterfall-grid {
        columns: 3;
    }
}

@media (min-width: 1024px) {
    .lb-waterfall-grid {
        columns: 4;
    }
}

.lb-waterfall-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: var(--lb-radius);
    overflow: hidden;
    transition: transform var(--lb-transition);
}

.lb-waterfall-item:hover {
    transform: scale(1.02);
}

.lb-waterfall-item img {
    width: 100%;
    display: block;
}

/* --- Request Zone --- */
.lb-request-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lb-request-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.2rem;
    background: rgba(42, 42, 42, 0.5);
    border-radius: var(--lb-radius);
    border-left: 3px solid var(--lb-primary);
}

@media (min-width: 768px) {
    .lb-request-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.lb-request-item p {
    font-size: 0.9rem;
    color: var(--lb-wheat);
    font-style: italic;
}

/* --- Interview Feature --- */
.lb-interview-feature {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(42, 42, 42, 0.5);
    border-radius: var(--lb-radius);
    border: 1px solid rgba(255, 215, 0, 0.15);
}

@media (min-width: 768px) {
    .lb-interview-feature {
        flex-direction: row;
        align-items: center;
    }
}

.lb-interview-feature img {
    width: 100%;
    max-width: 300px;
    border-radius: var(--lb-radius);
}

.lb-interview-info h3 {
    font-size: 1.2rem;
    color: var(--lb-gold);
    margin-bottom: 0.5rem;
}

.lb-interview-info p {
    font-size: 0.9rem;
    color: var(--lb-text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

.lb-read-more {
    font-size: 0.9rem;
    color: var(--lb-gold);
    border-bottom: 1px solid var(--lb-gold);
    padding-bottom: 2px;
}

/* --- Footer --- */
.lb-footer {
    background: var(--lb-darker);
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.lb-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .lb-footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lb-footer-col h4 {
    font-size: 1rem;
    color: var(--lb-gold);
    margin-bottom: 1rem;
    font-family: var(--lb-font-title);
}

.lb-footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--lb-text-muted);
    padding: 0.3rem 0;
    transition: color var(--lb-transition);
}

.lb-footer-col a:hover {
    color: var(--lb-gold);
}

.lb-footer-col p {
    font-size: 0.85rem;
    color: var(--lb-text-muted);
    line-height: 1.6;
}

.lb-footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.lb-footer-bottom p {
    font-size: 0.8rem;
    color: var(--lb-text-muted);
    margin-bottom: 0.5rem;
}

.lb-footer-bottom a {
    color: var(--lb-gold);
    font-size: 0.8rem;
}

.lb-footer-honor {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(139, 0, 0, 0.2);
    border-radius: var(--lb-radius);
    display: inline-block;
}

.lb-footer-honor span {
    font-size: 0.8rem;
    color: var(--lb-gold);
}

/* --- Inner Pages --- */
.lb-page-header {
    padding: 3rem 0 2rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(139, 0, 0, 0.3), transparent);
}

.lb-page-header h1 {
    font-size: 2rem;
    color: var(--lb-gold);
    margin-bottom: 0.5rem;
}

.lb-page-header p {
    font-size: 0.95rem;
    color: var(--lb-text-muted);
}

/* --- Dianbo (Functional Page) --- */
.lb-dianbo-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(42, 42, 42, 0.7);
    border-radius: var(--lb-radius);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.lb-form-group {
    margin-bottom: 1.5rem;
}

.lb-form-group label {
    display: block;
    font-family: var(--lb-font-title);
    font-size: 0.95rem;
    color: var(--lb-wheat);
    margin-bottom: 0.5rem;
}

.lb-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lb-tag {
    padding: 0.4rem 1rem;
    background: rgba(139, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--lb-wheat);
    cursor: pointer;
    transition: background var(--lb-transition), color var(--lb-transition);
}

.lb-tag:hover,
.lb-tag.lb-tag-active {
    background: var(--lb-primary);
    color: var(--lb-gold);
    border-color: var(--lb-gold);
}

.lb-range-slider {
    width: 100%;
    margin-top: 0.5rem;
    accent-color: var(--lb-gold);
}

.lb-form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

/* --- Results Section --- */
.lb-results-section {
    padding: 3rem 0;
}

.lb-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .lb-results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lb-result-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(42, 42, 42, 0.6);
    border-radius: var(--lb-radius);
    border: 1px solid rgba(255, 215, 0, 0.15);
    transition: transform var(--lb-transition);
}

.lb-result-card:hover {
    transform: translateY(-5px);
}

.lb-result-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--lb-radius);
    margin-bottom: 1rem;
}

.lb-result-card h3 {
    font-size: 1rem;
    color: var(--lb-gold);
    margin-bottom: 0.5rem;
}

/* --- Content Page --- */
.lb-content-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.lb-content-main p {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: var(--lb-wheat);
    line-height: 1.8;
}

.lb-content-main img {
    margin: 1.5rem 0;
    border-radius: var(--lb-radius);
}

/* --- Related Recommendations --- */
.lb-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

/* --- Pagination --- */
.lb-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.lb-pagination a,
.lb-pagination span {
    padding: 0.5rem 1rem;
    background: rgba(42, 42, 42, 0.6);
    border-radius: var(--lb-radius);
    font-size: 0.85rem;
    color: var(--lb-wheat);
    transition: background var(--lb-transition);
}

.lb-pagination a:hover,
.lb-pagination .lb-page-active {
    background: var(--lb-primary);
    color: var(--lb-gold);
}

/* --- Animations --- */
@keyframes lb-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.lb-animate-in {
    animation: lb-fadeIn 0.6s ease forwards;
}

/* --- Utility --- */
.lb-text-center { text-align: center; }
.lb-mt-1 { margin-top: 0.5rem; }
.lb-mt-2 { margin-top: 1rem; }
.lb-mt-3 { margin-top: 1.5rem; }
.lb-mb-1 { margin-bottom: 0.5rem; }
.lb-mb-2 { margin-bottom: 1rem; }
.lb-mb-3 { margin-bottom: 1.5rem; }

/* --- Responsive visibility --- */
@media (max-width: 767px) {
    .lb-hide-mobile { display: none; }
}

@media (min-width: 768px) {
    .lb-hide-desktop { display: none; }
}
