@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    /* ---- 品牌列表页 Design Tokens (保持不变) ---- */
    --brand-color-primary: #1a202c;
    --brand-color-secondary: #4a5568;
    --brand-color-text-muted: #718096;
    --brand-color-accent: #5a67d8;
    --brand-color-accent-hover: #4c51bf;
    --brand-color-bg: #f7fafc;
    --brand-color-surface: #ffffff;
    --brand-color-border: #e2e8f0;
    --brand-color-border-hover: #cbd5e0;
    --brand-spacing-xs: 4px;
    --brand-spacing-sm: 8px;
    --brand-spacing-md: 16px;
    --brand-spacing-lg: 24px;
    --brand-spacing-xl: 32px;
    --brand-spacing-xxl: 48px;
    --brand-spacing-hero: 80px;
    --brand-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --brand-radius-sm: 6px;
    --brand-radius-md: 12px;
    --brand-radius-lg: 16px;
    --brand-radius-full: 9999px;
    --brand-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --brand-shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
    --brand-shadow-hover: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --brand-transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* ---- 品牌详情页 Design Tokens ---- */
    --bd-ink:       #0d1117;
    --bd-paper:     #f5f0e8;
    --bd-paper-mid: #e8e1d4;
    --bd-gold:      #c8963e;
    --bd-gold-dim:  #9d7230;
    --bd-fog:       #6b7280;
    --bd-rule:      #d4c9b8;
    --bd-white:     #ffffff;

    --bd-ff-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --bd-ff-body:    'Source Serif 4', Georgia, serif;
    --bd-ff-mono:    'IBM Plex Mono', 'Courier New', monospace;

    --bd-r-sm: 4px;
    --bd-r-md: 8px;

    --bd-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   Layout Wrappers
   ========================================================================== */
.brand-archive-wrapper,
.single-brand-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--brand-spacing-xl) var(--brand-spacing-lg);
    font-family: var(--brand-font-family);
    color: var(--brand-color-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.brand-hero-section {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: var(--brand-radius-lg);
    padding: var(--brand-spacing-hero) var(--brand-spacing-lg);
    text-align: center;
    margin-bottom: var(--brand-spacing-xxl);
    border: 1px solid var(--brand-color-border);
    box-shadow: var(--brand-shadow-sm);
    position: relative;
    overflow: hidden;
}

.brand-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-color-accent), #9f7aea);
}

.brand-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--brand-spacing-md);
    color: var(--brand-color-primary);
    line-height: 1.2;
}

.brand-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--brand-color-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   List Section & Header
   ========================================================================== */
.brand-list-section {
    margin-bottom: var(--brand-spacing-xxl);
}

.brand-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--brand-spacing-lg);
    padding-bottom: var(--brand-spacing-sm);
    border-bottom: 2px solid var(--brand-color-bg);
}

.brand-list-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-color-primary);
    display: flex;
    align-items: center;
    gap: var(--brand-spacing-sm);
}

.brand-count {
    font-size: 1rem;
    color: var(--brand-color-text-muted);
    font-weight: 500;
    background: var(--brand-color-bg);
    padding: 2px 10px;
    border-radius: var(--brand-radius-full);
}

/* ==========================================================================
   Brand Grid & Cards
   ========================================================================== */
.brand-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--brand-spacing-lg);
}

.brand-card {
    background: var(--brand-color-surface);
    border: 1px solid var(--brand-color-border);
    border-radius: var(--brand-radius-md);
    overflow: hidden;
    transition: var(--brand-transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--brand-shadow-hover);
    border-color: var(--brand-color-border-hover);
}

.brand-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.brand-card-image-wrapper {
    width: 100%;
    height: 180px;
    background: var(--brand-color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: var(--brand-spacing-lg);
    border-bottom: 1px solid var(--brand-color-border);
    position: relative;
    overflow: hidden;
}

.brand-card-logo {
    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
    transition: var(--brand-transition-base);
}

.brand-card:hover .brand-card-logo {
    transform: scale(1.05);
}

.brand-card-placeholder {
    font-size: 4rem;
    font-weight: 800;
    color: var(--brand-color-border-hover);
    text-transform: uppercase;
}

.brand-card-content {
    padding: var(--brand-spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.brand-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-color-primary);
    margin: 0 0 var(--brand-spacing-sm) 0;
    line-height: 1.4;
}

.brand-card-meta {
    display: flex;
    flex-direction: column;
    gap: var(--brand-spacing-sm);
    margin-top: auto;
    padding-top: var(--brand-spacing-sm);
}

.brand-meta-item {
    display: flex;
    align-items: center;
    gap: var(--brand-spacing-sm);
    font-size: 0.875rem;
    color: var(--brand-color-text-muted);
}

.brand-meta-item svg {
    color: var(--brand-color-secondary);
    opacity: 0.7;
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.brand-empty-state {
    text-align: center;
    padding: var(--brand-spacing-xxl) var(--brand-spacing-lg);
    background: var(--brand-color-bg);
    border-radius: var(--brand-radius-md);
    border: 1px dashed var(--brand-color-border);
    color: var(--brand-color-secondary);
}

.brand-empty-icon {
    margin-bottom: var(--brand-spacing-md);
    color: var(--brand-color-border-hover);
}

.brand-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-color-primary);
    margin-bottom: var(--brand-spacing-sm);
}

.brand-empty-desc {
    font-size: 1rem;
    color: var(--brand-color-text-muted);
}

@media (max-width: 768px) {
    .brand-hero-section {
        padding: var(--brand-spacing-xl) var(--brand-spacing-md);
    }
    
    .brand-archive-wrapper,
    .single-brand-wrapper {
        padding: var(--brand-spacing-md);
    }
}


/* ==========================================================================
   BRAND DETAIL PAGE — Editorial Magazine Style
   ========================================================================== */

.brand-detail-page {
    font-family: var(--bd-ff-body);
    color: var(--bd-ink);
    background: var(--bd-white);
}

/* ── HERO ── */
.bd-hero {
    position: relative;
    background-color: var(--bd-ink);
    background-image:
        radial-gradient(ellipse 80% 60% at 70% 40%, #1c2333 0%, transparent 70%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            rgba(255,255,255,0.03) 39px,
            rgba(255,255,255,0.03) 40px
        );
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
}

.bd-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(13,17,23,0.85) 100%
    );
    pointer-events: none;
}

.bd-hero__deco-year {
    position: absolute;
    top: -0.15em;
    right: -0.05em;
    font-family: var(--bd-ff-display);
    font-size: clamp(8rem, 22vw, 18rem);
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(200,150,62,0.18);
    user-select: none;
    pointer-events: none;
    letter-spacing: -0.04em;
}

.bd-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 2.5rem;
    padding: 3.5rem 3rem 3.5rem;
    max-width: 1100px;
    width: 100%;
}

.bd-hero__logo-wrap {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--bd-r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}

.bd-hero__logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(1.1);
}

.bd-hero__logo-initial {
    font-family: var(--bd-ff-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--bd-gold);
    line-height: 1;
}

.bd-hero__meta {
    flex: 1;
    min-width: 0;
}

.bd-hero__eyebrow {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.bd-tag {
    font-family: var(--bd-ff-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.6);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 3px 10px;
    border-radius: 2px;
}

.bd-tag--accent {
    color: var(--bd-gold);
    background: rgba(200,150,62,0.12);
    border-color: rgba(200,150,62,0.3);
}

.bd-hero__title {
    font-family: var(--bd-ff-display);
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--bd-paper);
    margin: 0 0 1.25rem;
    text-wrap: balance;
}

.bd-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 2rem;
    margin-bottom: 1.25rem;
}

.bd-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bd-stat__label {
    font-family: var(--bd-ff-mono);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.45);
}

.bd-stat__value {
    font-family: var(--bd-ff-body);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--bd-paper);
    line-height: 1.3;
}

.bd-hero__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.bd-company-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: rgba(245,240,232,0.55);
}

.bd-website-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--bd-ff-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--bd-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(200,150,62,0.35);
    padding-bottom: 1px;
    transition: color 0.2s var(--bd-ease),
                border-color 0.2s var(--bd-ease);
}

.bd-website-link:hover {
    color: #e8b76a;
    border-color: rgba(232,183,106,0.6);
}

/* ── TABLE OF CONTENTS (粘性侧边) ── */
.bd-toc {
    display: none;
}

@media (min-width: 1200px) {
    .bd-toc {
        display: block;
        position: absolute;
        right: 2rem;
        bottom: 2rem;
        z-index: 3;
    }

    .bd-toc__label {
        font-family: var(--bd-ff-mono);
        font-size: 0.6rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(245,240,232,0.35);
        display: block;
        margin-bottom: 0.5rem;
    }

    .bd-toc__list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .bd-toc__item {
        font-family: var(--bd-ff-mono);
        font-size: 0.6875rem;
        color: rgba(245,240,232,0.45);
        text-decoration: none;
        letter-spacing: 0.04em;
        transition: color 0.2s var(--bd-ease);
    }

    .bd-toc__item:hover {
        color: var(--bd-gold);
    }
}

/* ── BODY LAYOUT ── */
.bd-body {
    max-width: 840px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

/* ── SECTION HEAD ── */
.bd-section {
    margin-bottom: 5rem;
}

.bd-section:last-child {
    margin-bottom: 0;
}

.bd-section__head {
    margin-bottom: 2.5rem;
}

.bd-section__kicker {
    font-family: var(--bd-ff-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bd-gold);
    display: block;
    margin-bottom: 0.5rem;
}

.bd-section__title {
    font-family: var(--bd-ff-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bd-ink);
    margin: 0 0 1rem;
    line-height: 1.15;
}

.bd-section__rule {
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, var(--bd-gold), transparent);
    border-radius: 2px;
}

/* ── PROSE (品牌故事正文) ── */
.bd-prose {
    font-family: var(--bd-ff-body);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #2d3748;
}

.bd-prose p {
    margin-bottom: 1.4em;
}

.bd-prose p:first-child::first-letter {
    font-family: var(--bd-ff-display);
    font-size: 3.8em;
    font-weight: 700;
    float: left;
    line-height: 0.8;
    margin: 0.05em 0.1em 0 0;
    color: var(--bd-ink);
}

.bd-prose h2,
.bd-prose h3 {
    font-family: var(--bd-ff-display);
    font-weight: 700;
    color: var(--bd-ink);
    margin-top: 2em;
    margin-bottom: 0.6em;
}

.bd-prose h2 {
    font-size: 1.5rem;
}

.bd-prose h3 {
    font-size: 1.25rem;
}

.bd-prose blockquote {
    border-left: 3px solid var(--bd-gold);
    margin: 2em 0;
    padding: 0.75em 0 0.75em 1.5em;
    font-style: italic;
    color: var(--bd-fog);
}

.bd-prose a {
    color: var(--bd-gold-dim);
    text-underline-offset: 3px;
}

/* ── TIMELINE ── */
.bd-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bd-timeline__item {
    display: grid;
    grid-template-columns: 5rem 24px 1fr;
    gap: 0 0.75rem;
    margin-bottom: 2.75rem;
    align-items: start;
    animation: bd-fade-up 0.4s var(--bd-ease) both;
}

.bd-timeline__item:nth-child(1)  { animation-delay: 0.05s; }
.bd-timeline__item:nth-child(2)  { animation-delay: 0.10s; }
.bd-timeline__item:nth-child(3)  { animation-delay: 0.15s; }
.bd-timeline__item:nth-child(4)  { animation-delay: 0.20s; }
.bd-timeline__item:nth-child(5)  { animation-delay: 0.25s; }
.bd-timeline__item:nth-child(6)  { animation-delay: 0.30s; }
.bd-timeline__item:nth-child(7)  { animation-delay: 0.35s; }
.bd-timeline__item:nth-child(8)  { animation-delay: 0.40s; }

@keyframes bd-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bd-timeline__year {
    font-family: var(--bd-ff-mono);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bd-gold);
    text-align: right;
    padding-top: 0.1em;
    letter-spacing: 0.02em;
}

.bd-timeline__pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.35em;
    position: relative;
}

.bd-timeline__pin::before {
    content: '';
    position: absolute;
    top: calc(0.35em + 9px);
    bottom: calc(-2.75rem);
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: var(--bd-rule);
}

.bd-timeline__item:last-child .bd-timeline__pin::before {
    display: none;
}

.bd-timeline__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bd-ink);
    border: 2px solid var(--bd-gold);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.2s var(--bd-ease),
                background 0.2s var(--bd-ease);
}

.bd-timeline__item:hover .bd-timeline__dot {
    background: var(--bd-gold);
    transform: scale(1.3);
}

.bd-timeline__card {
    background: var(--bd-white);
    border: 1px solid var(--bd-rule);
    border-radius: var(--bd-r-md);
    padding: 1.125rem 1.375rem;
    transition: box-shadow 0.25s var(--bd-ease),
                border-color 0.25s var(--bd-ease),
                transform 0.25s var(--bd-ease);
}

.bd-timeline__item:hover .bd-timeline__card {
    border-color: rgba(200,150,62,0.35);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateX(4px);
}

.bd-timeline__event {
    font-family: var(--bd-ff-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--bd-ink);
    margin: 0 0 0.375rem;
    line-height: 1.4;
}

.bd-timeline__desc {
    font-size: 0.9rem;
    color: var(--bd-fog);
    line-height: 1.65;
    margin: 0;
}

/* ── VOICES (访谈人物) ── */
.bd-voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.bd-voice-card {
    border: 1px solid var(--bd-rule);
    border-radius: var(--bd-r-md);
    padding: 1.75rem;
    background: var(--bd-white);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s var(--bd-ease),
                transform 0.25s var(--bd-ease);
}

.bd-voice-card::before {
    content: '\201C';
    font-family: var(--bd-ff-display);
    font-size: 6rem;
    line-height: 1;
    color: rgba(200,150,62,0.08);
    position: absolute;
    top: -0.5rem;
    left: 0.75rem;
    pointer-events: none;
    user-select: none;
}

.bd-voice-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);
    transform: translateY(-3px);
}

.bd-voice-card__avatar-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--bd-rule);
    margin-bottom: 1rem;
    flex-shrink: 0;
    background: var(--bd-paper);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bd-voice-card__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bd-voice-card__avatar-initial {
    font-family: var(--bd-ff-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bd-gold);
}

.bd-voice-card__bio {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 1rem;
}

.bd-voice-card__name {
    font-family: var(--bd-ff-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--bd-ink);
}

.bd-voice-card__role {
    font-family: var(--bd-ff-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bd-fog);
}

.bd-voice-card__quote {
    margin: 0;
    padding: 0;
    border: none;
}

.bd-voice-card__quote p {
    font-family: var(--bd-ff-body);
    font-size: 0.9375rem;
    font-style: italic;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .bd-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem 1.5rem 2.5rem;
        gap: 1.5rem;
    }

    .bd-hero {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .bd-hero__inner {
        padding: 2rem 1rem 2rem;
    }

    .bd-hero__deco-year {
        right: -0.15em;
        font-size: clamp(5rem, 30vw, 8rem);
    }

    .bd-body {
        padding: 2.5rem 1rem 4rem;
    }

    .bd-timeline__item {
        grid-template-columns: 3rem 20px 1fr;
        gap: 0 0.5rem;
    }

    .bd-timeline__year {
        font-size: 0.75rem;
    }

    .bd-voices-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bd-timeline__item {
        animation: none;
    }

    .bd-timeline__card,
    .bd-voice-card,
    .bd-website-link,
    .bd-timeline__dot {
        transition: none;
    }
}
