/* =====================================================
   ASTRAEUS & CO. - Refined White Edition
   Based on UI Reference Images
   极简主义 · 高级感 · 双语设计
   ===================================================== */

:root {
    /* Refined Color Palette */
    --bg-paper: #FAFAF8;           /* 米白纸张色 */
    --bg-pure: #FFFFFF;
    --text-primary: #2C2C2C;       /* 深炭灰 */
    --text-secondary: #6B6B6B;     /* 中灰 */
    --text-light: #9A9A9A;         /* 浅灰 */
    --line-subtle: #E8E8E6;        /* 极淡分割线 */
    --line-medium: #D5D5D3;        /* 中等分割线 */

    /* Typography */
    --font-serif-en: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
    --font-serif-cn: 'Noto Serif SC', 'Songti SC', serif;
    --font-sans: 'Inter', -apple-system, sans-serif;

    /* Spacing */
    --space-unit: 8px;
    --space-xs: calc(var(--space-unit) * 1);
    --space-sm: calc(var(--space-unit) * 2);
    --space-md: calc(var(--space-unit) * 4);
    --space-lg: calc(var(--space-unit) * 8);
    --space-xl: calc(var(--space-unit) * 16);
    --space-xxl: calc(var(--space-unit) * 24);

    /* Layout */
    --max-width: 1200px;
    --gutter: 80px;
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-primary);
    background: var(--bg-paper);
    line-height: 1.8;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    /* 纸张纹理 */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
    background-size: 200px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ===================
   Navigation
   =================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gutter);
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 0.5px solid var(--line-subtle);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-icon {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
}

.nav-title {
    font-family: var(--font-serif-en);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.25em;
}

.nav-menu {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-serif-en);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-cart {
    display: flex;
    align-items: center;
}

.cart-icon {
    width: 32px;
    height: 32px;
    border: 0.5px solid var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cart-diamond {
    width: 8px;
    height: 8px;
    border: 0.5px solid var(--text-primary);
    transform: rotate(45deg);
}

.cart-count {
    position: absolute;
    bottom: -6px;
    right: -6px;
    font-size: 0.6rem;
    color: var(--text-light);
}

/* ===================
   Hero Section
   =================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px var(--gutter);
    overflow: hidden;
}

.hero-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.circles-svg {
    width: 90vmin;
    height: 90vmin;
    max-width: 800px;
    max-height: 800px;
}

.circle-line {
    fill: none;
    stroke: var(--line-subtle);
    stroke-width: 0.5;
}

.radial-line {
    stroke: var(--line-subtle);
    stroke-width: 0.5;
}

.degree-text {
    fill: var(--text-light);
    font-family: var(--font-sans);
    font-size: 10px;
    text-anchor: middle;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
}

.hero-philosophy-block {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.hero-philosophy {
    font-family: var(--font-serif-cn), var(--font-serif-en);
    font-size: clamp(1rem, 2vw, 1.5rem);  /* 约为大标题的40% */
    font-weight: 300;
    font-style: normal;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.location-line {
    width: 60px;
    height: 0.5px;
    background: var(--line-medium);
}

.location-text {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
}

.hero-title {
    font-family: var(--font-serif-en);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
}

.hero-divider {
    width: 1px;
    height: 60px;
    background: var(--line-medium);
    margin: 0 auto var(--space-md);
}

.hero-quote {
    margin-bottom: var(--space-lg);
}

.quote-cn {
    display: block;
    font-family: var(--font-serif-cn);
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.quote-en {
    display: block;
    font-family: var(--font-serif-en);
    font-size: 0.85rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
}

.hero-cta {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border: 0.5px solid var(--text-primary);
    transition: all 0.4s ease;
}

.cta-text {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.25em;
}

.hero-cta:hover {
    background: var(--text-primary);
    color: var(--bg-paper);
}

.hero-year {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-serif-en);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-light);
}

/* Family Motto Styles */
.hero-quote-line {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.quote-motto {
    font-family: 'IM Fell English', var(--font-serif-en);
    font-size: 1.4rem;
    font-style: italic;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

.quote-subtitle {
    font-family: var(--font-serif-cn);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.quote-attribution {
    font-family: 'IM Fell English', var(--font-serif-en);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: rgba(107, 107, 107, 0.6);
    font-style: italic;
    margin-top: 0.75rem;
}

/* ===================
   Trinity Navigation
   =================== */
.trinity-nav {
    display: flex;
    gap: var(--space-lg);
}

.trinity-btn {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    transition: all 0.3s ease;
    text-transform: uppercase;
    -webkit-text-stroke: 0.3px var(--text-secondary);
}

.trinity-btn:hover,
.trinity-btn.active {
    color: var(--text-primary);
    -webkit-text-stroke: 0.5px var(--text-primary);
}

/* ===================
   Single Line Hero Title
   =================== */
.hero-title-single {
    font-family: var(--font-serif-en);
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    white-space: nowrap;
    text-align: center;
    color: var(--text-primary);
}

/* Axis line for star track alignment */
.axis-line {
    stroke: var(--line-subtle);
    stroke-width: 0.5;
    opacity: 0.6;
}

.center-point {
    fill: var(--text-primary);
    transition: all 0.4s ease;
}

/* ===================
   Trinity Interaction Zones
   =================== */
.trinity-zones {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    pointer-events: none;
    z-index: 2;
}

.trinity-zone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: auto;
}

.trinity-zone.active {
    opacity: 1;
}

.zone-label {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    color: var(--text-light);
    position: absolute;
    top: 35%;
}

/* Zone SET - Left */
.zone-set.active .zone-label {
    animation: labelFade 0.5s ease forwards;
}

.zone-set.active ~ .hero-circles .center-point {
    r: 8;
    fill: var(--text-primary);
}

/* Zone LATTICE - Center */
.wireframe-svg {
    width: 120px;
    height: 120px;
    color: var(--line-medium);
    opacity: 0;
    transform: rotateY(0deg);
    transition: all 0.6s ease;
}

.zone-lattice.active .wireframe-svg {
    opacity: 1;
    animation: wireframeRotate 8s linear infinite;
}

@keyframes wireframeRotate {
    from { transform: rotateY(0deg) rotateX(15deg); }
    to { transform: rotateY(360deg) rotateX(15deg); }
}

/* Zone CODE - Right */
.hex-stream {
    position: absolute;
    right: 10%;
    top: 20%;
    bottom: 20%;
    width: 60px;
    font-family: 'Courier New', monospace;
    font-size: 0.5rem;
    color: var(--text-light);
    opacity: 0;
    overflow: hidden;
    line-height: 1.4;
}

.zone-code.active .hex-stream {
    opacity: 0.6;
    animation: hexScroll 4s linear infinite;
}

@keyframes hexScroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes labelFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================
   Quote Line with Blend Mode
   =================== */
.hero-quote-line {
    position: absolute;
    bottom: 25%;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
    padding: 0 var(--gutter);
}

.quote-blend {
    font-family: var(--font-serif-cn);
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    mix-blend-mode: difference;
    white-space: nowrap;
}

/* Responsive for quote */
@media (max-width: 768px) {
    .quote-blend {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }

    .hero-title-single {
        font-size: clamp(1.2rem, 6vw, 2rem);
    }

    .trinity-nav {
        gap: var(--space-sm);
    }

    .trinity-btn {
        font-size: 0.6rem;
        letter-spacing: 0.15em;
        padding: var(--space-xs);
    }
}

/* ===================
   Section Labels
   =================== */
.section-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

/* ===================
   Maison Section
   =================== */
.maison {
    padding: var(--space-xxl) var(--gutter);
    max-width: var(--max-width);
    margin: 0 auto;
}

.maison-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.maison-content {
    padding-right: var(--space-lg);
}

.maison-title {
    font-family: var(--font-serif-cn);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: var(--space-xs);
}

.maison-subtitle {
    font-family: var(--font-serif-en);
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.maison-divider {
    width: 40px;
    height: 0.5px;
    background: var(--text-primary);
    margin-bottom: var(--space-md);
}

.maison-text {
    font-family: var(--font-serif-cn);
    font-size: 1rem;
    font-weight: 300;
    line-height: 2.2;
    color: var(--text-secondary);
}

.maison-aside {
    padding-left: var(--space-md);
}

.aside-frame {
    border: 0.5px solid var(--line-medium);
    padding: var(--space-lg);
}

.aside-quote {
    margin-bottom: var(--space-lg);
    position: relative;
}

.quote-mark {
    font-family: var(--font-serif-en);
    font-size: 6rem;
    color: var(--line-subtle);
    position: absolute;
    top: -30px;
    left: -10px;
    line-height: 1;
}

.quote-text {
    font-family: var(--font-serif-cn);
    font-size: 1rem;
    font-weight: 300;
    line-height: 2;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.aside-metrics {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 0.5px solid var(--line-subtle);
}

.metric-item {
    text-align: center;
}

.metric-value {
    display: block;
    font-family: var(--font-serif-en);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: var(--space-xs);
}

.metric-label {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-light);
}

/* ===================
   Collection Section
   =================== */
.collection {
    padding: var(--space-xxl) var(--gutter);
    background: var(--bg-pure);
}

.collection-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.collection-title {
    font-family: var(--font-serif-en);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-md);
}

.collection-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--line-medium), transparent);
    margin: 0 auto;
}

/* Collection Intro */
.collection-intro {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    text-align: center;
    padding: var(--space-lg) var(--space-md);
}

.collection-intro h3 {
    font-family: var(--font-serif-en);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.collection-intro p {
    font-family: var(--font-serif-cn);
    font-size: 1rem;
    font-weight: 300;
    line-height: 2.2;
    color: var(--text-secondary);
}

/* Series Section */
.series-section {
    max-width: var(--max-width);
    margin: 0 auto var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 0.5px solid var(--line-subtle);
}

.series-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.series-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 0.5px solid rgba(184, 150, 62, 0.25);
}

.series-title {
    font-family: 'IM Fell English', var(--font-serif-en);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: #b8963e;
}

.series-glyph {
    font-family: var(--font-serif-cn);
    font-size: 0.9rem;
    font-weight: 200;
    color: rgba(184, 150, 62, 0.4);
    letter-spacing: 0.1em;
}

/* ===================
   Category Filter Buttons
   类别筛选 · 黑底白字选中效果
   =================== */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-xl);
    padding: 0 var(--gutter);
}

.filter-btn {
    /* 绝对直角矩形 */
    border-radius: 0 !important;

    /* 基础样式 */
    background: transparent;
    border: 0.5px solid var(--line-medium);
    font-family: var(--font-serif-cn);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 14px 40px;
    min-width: 120px;

    /* 瞬间过渡 */
    transition: all 0.1s ease-out;
}

/* 选中状态：黑底白字 */
.filter-btn.active {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #1a1a1a;
    font-weight: 500;
}

/* 悬停状态 */
.filter-btn:hover:not(.active) {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(26, 26, 26, 0.03);
}

/* 合并边框 - 相邻按钮 */
.filter-btn:not(:first-child) {
    margin-left: -0.5px;
}

/* 产品卡片隐藏动画 */
.product-card.hidden {
    display: none;
}

.product-card {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}

.product-card {
    cursor: pointer;
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image-wrap {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.product-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    text-align: center;
}

.product-ref {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-light);
    margin-bottom: var(--space-xs);
}

.product-name {
    font-family: var(--font-serif-en);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.product-name-cn {
    font-family: var(--font-serif-cn);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-secondary);
}

/* ===================
   Heritage Section
   =================== */
.heritage {
    padding: var(--space-xxl) var(--gutter);
    max-width: var(--max-width);
    margin: 0 auto;
}

.heritage-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.heritage-title {
    font-family: var(--font-serif-en);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-xs);
}

.heritage-subtitle {
    font-family: var(--font-serif-cn);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
}

/* Heritage Intro */
.heritage-intro {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    text-align: center;
    padding: var(--space-md);
}

.heritage-lead {
    font-family: var(--font-serif-cn);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: 0.1em;
}

.heritage-text {
    font-family: var(--font-serif-cn);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 2.2;
    color: var(--text-secondary);
}

.craft-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.craft-item {
    text-align: center;
    padding: var(--space-md);
}

.craft-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    color: var(--text-primary);
}

.craft-icon svg {
    width: 100%;
    height: 100%;
}

.craft-title {
    font-family: var(--font-serif-cn);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.craft-subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.craft-desc {
    font-family: var(--font-serif-cn);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 2;
    color: var(--text-secondary);
}

/* ===================
   Contact Section
   =================== */
.contact {
    padding: var(--space-xxl) var(--gutter);
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.contact-title {
    font-family: var(--font-serif-en);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-md);
}

.contact-desc {
    font-family: var(--font-serif-cn);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 2;
    color: var(--text-secondary);
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-frame {
    width: 100%;
    border: 0.5px solid var(--line-medium);
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
    font-family: var(--font-serif-cn);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 0.5px solid var(--line-medium);
    padding: var(--space-sm) 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--text-primary);
}

.form-textarea {
    resize: none;
    border: 0.5px solid var(--line-subtle);
    padding: var(--space-sm);
}

.form-submit {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    border: 0.5px solid var(--text-primary);
    background: transparent;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    color: var(--text-primary);
    transition: all 0.4s ease;
}

.form-submit:hover {
    background: var(--text-primary);
    color: var(--bg-paper);
}

/* ===================
   Footer
   =================== */
.footer {
    padding: var(--space-xl) var(--gutter) var(--space-lg);
}

.footer-divider {
    width: 100%;
    height: 0.5px;
    background: var(--line-subtle);
    margin-bottom: var(--space-xl);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-logo {
    font-family: var(--font-serif-en);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.footer-tagline {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-light);
}

.footer-latin {
    font-family: var(--font-serif-en);
    font-size: 0.7rem;
    font-style: italic;
    color: var(--text-secondary);
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
}

.footer-link {
    font-family: var(--font-serif-cn);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-year {
    font-family: var(--font-serif-en);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-light);
}

.footer-location {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-light);
}

.footer-copyright {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 0.5px solid var(--line-subtle);
}

.footer-copyright span {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

/* ===================
   Modal - Immersive Asymmetric Layout
   沉浸式非对称布局
   =================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
}

.modal.active {
    display: block;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #FFFFFF;
    overflow: hidden;
    z-index: 1;
}

.modal-close {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    background: none;
    border: 0.5px solid var(--line-medium);
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    z-index: 100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* ═══ Immersive Grid: 68% Left / 32% Right ═══ */
.modal-grid {
    display: grid;
    grid-template-columns: 68fr 32fr;
    height: 100vh;
}

/* ═══ Primary Gallery (Left 68%) ═══ */
.modal-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    padding: 5%;
    overflow-y: auto;
    border-right: 0.5px solid var(--line-subtle);
}

.modal-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    /* 无感瞬间切换 */
    transition: opacity 0.1s ease-out;
}

/* ═══ Technical Panel (Right 32%) - Sticky ═══ */
.modal-info-section {
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FFFFFF;
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.modal-ref {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.modal-title {
    font-family: var(--font-serif-en);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.modal-title-cn {
    display: block;
    font-family: var(--font-serif-cn);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.modal-specs {
    margin-bottom: var(--space-lg);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 0.5px solid var(--line-subtle);
}

.spec-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-light);
}

.spec-value {
    font-family: var(--font-serif-en);
    font-size: 0.85rem;
    font-weight: 400;
}

.modal-deterministic {
    background: var(--bg-paper);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.deterministic-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.deterministic-desc {
    font-family: var(--font-serif-cn);
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.deterministic-values {
    display: flex;
    gap: var(--space-md);
}

.det-item {
    text-align: center;
}

.det-value {
    display: block;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 200;
}

.det-unit {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.modal-cta {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border: 0.5px solid var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-align: center;
    transition: all 0.4s ease;
}

.modal-cta:hover {
    background: var(--text-primary);
    color: var(--bg-paper);
}

/* ===================
   Responsive
   =================== */
@media (max-width: 1024px) {
    :root {
        --gutter: 40px;
    }

    .maison-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .maison-aside {
        padding-left: 0;
    }

    .products-grid,
    .craft-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mobile: 流式布局 */
    .modal-grid {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .modal-image-section {
        border-right: none;
        border-bottom: 0.5px solid var(--line-subtle);
        height: 60vh;
        padding: var(--space-lg);
        /* 双指放大支持 */
        touch-action: pinch-zoom;
        overflow: hidden;
    }

    .modal-image {
        max-height: 55vh;
        /* 启用双指缩放 */
        touch-action: manipulation;
    }

    .modal-info-section {
        position: relative;
        height: auto;
        padding: var(--space-lg);
    }

    .modal-close {
        top: var(--space-md);
        right: var(--space-md);
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    :root {
        --gutter: 24px;
    }

    .nav-menu {
        display: none;
    }

    .hero-title {
        letter-spacing: 0.1em;
    }

    .products-grid,
    .craft-grid {
        grid-template-columns: 1fr;
    }

    .form-frame {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-meta {
        text-align: center;
    }
}

/* ===================
   Animations
   =================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Smooth scroll indicator */
@keyframes scrollHint {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* ===================
   Language Switcher
   =================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: var(--space-md);
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-secondary);
}

.lang-btn.active {
    color: var(--text-primary);
    font-weight: 400;
}

.lang-divider {
    color: var(--line-medium);
    font-size: 0.7rem;
}

/* ===================
   Category Filter
   =================== */
.category-filter {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 0.5px solid var(--line-subtle);
    padding: var(--space-xs) var(--space-md);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-paper);
}

/* Product card hidden state for filtering */
.product-card.hidden {
    display: none;
}

/* ===================
   Floating Contact Buttons
   =================== */
.floating-contact {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 90;
}

.contact-float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0.5px solid var(--line-medium);
    background: var(--bg-pure);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.contact-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-float-btn svg {
    width: 22px;
    height: 22px;
}

.contact-float-btn.whatsapp {
    color: #25D366;
}

.contact-float-btn.whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.contact-float-btn.wechat {
    color: #07C160;
}

.contact-float-btn.wechat:hover {
    background: #07C160;
    color: white;
    border-color: #07C160;
}

/* ===================
   WeChat QR Popup
   =================== */
.wechat-qr-popup {
    position: fixed;
    bottom: calc(var(--space-lg) + 110px);
    right: var(--space-lg);
    width: 200px;
    background: var(--bg-pure);
    border: 0.5px solid var(--line-medium);
    padding: var(--space-md);
    text-align: center;
    z-index: 91;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.wechat-qr-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wechat-qr-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 14px;
    height: 14px;
    background: var(--bg-pure);
    border-right: 0.5px solid var(--line-medium);
    border-bottom: 0.5px solid var(--line-medium);
    transform: rotate(45deg);
}

.qr-title {
    font-family: var(--font-serif-cn);
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.qr-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-paper);
    border: 0.5px solid var(--line-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.qr-placeholder span {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    color: var(--text-light);
    letter-spacing: 0.1em;
}

.qr-hint {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    color: var(--text-light);
}

/* ===================
   Trinity Navigation - Category Buttons
   黑底白字选中效果 · 直角矩形 · 瞬间反色
   =================== */
.trinity-nav {
    display: flex;
    gap: 15px;
}

.trinity-btn {
    /* 绝对直角矩形 - 严禁 border-radius */
    border-radius: 0 !important;

    /* 基础样式 */
    background: transparent;
    border: 0.5px solid rgba(26, 26, 26, 0.15);
    font-family: 'IBM Plex Mono', 'Inter', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #1a1a1a;
    cursor: crosshair;
    padding: 10px 25px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;

    /* 瞬间过渡 - 相机快门感 (0.1s) */
    transition: all 0.1s step-end;
}

/* 选中状态：绝对黑底白字 (The Blackout State) */
.trinity-btn.active {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: 0.5px solid #1a1a1a;
    font-weight: 500;
    /* 实体按键按下的极轻微阴影 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 悬停状态：边框加深 */
.trinity-btn:hover:not(.active) {
    border-color: #1a1a1a;
    background: rgba(26, 26, 26, 0.05);
}

/* 点击闪烁动画 - 相机快门效果 */
@keyframes shutter-flash {
    0% { filter: invert(1); }
    50% { filter: invert(0); }
    100% { filter: invert(0); }
}

.trinity-btn.shutter-active {
    animation: shutter-flash 0.1s ease-out;
}

/* ===================
   Star Trail Glitch Effect
   星轨高频震荡联动
   =================== */
@keyframes starfield-glitch {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    10% {
        transform: translate(-2px, 1px) scale(1.002);
        opacity: 0.9;
    }
    20% {
        transform: translate(2px, -1px) scale(0.998);
        opacity: 1;
    }
    30% {
        transform: translate(-1px, 2px) scale(1.001);
        opacity: 0.85;
    }
    40% {
        transform: translate(1px, -2px) scale(0.999);
        opacity: 1;
    }
    50% {
        transform: translate(-2px, -1px) scale(1.003);
        opacity: 0.9;
    }
    60% {
        transform: translate(2px, 1px) scale(0.997);
        opacity: 1;
    }
    70% {
        transform: translate(-1px, -2px) scale(1.002);
        opacity: 0.88;
    }
    80% {
        transform: translate(1px, 2px) scale(0.998);
        opacity: 1;
    }
    90% {
        transform: translate(-2px, 0) scale(1.001);
        opacity: 0.92;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

@keyframes line-distortion {
    0%, 100% { stroke-dashoffset: 0; }
    25% { stroke-dashoffset: 3; }
    50% { stroke-dashoffset: -2; }
    75% { stroke-dashoffset: 4; }
}

.hero-circles.glitch-active .circles-svg {
    animation: starfield-glitch 0.25s ease-out;
}

.hero-circles.glitch-active .circle-line {
    stroke-dasharray: 5 2;
    animation: line-distortion 0.15s linear 3;
}

.hero-circles.glitch-active .radial-line {
    animation: line-distortion 0.1s linear 4;
}

/* ===================
   Responsive - New Components
   =================== */
@media (max-width: 768px) {
    .lang-switcher {
        margin-left: auto;
    }

    .category-filter {
        padding: 0 var(--space-sm);
    }

    .filter-btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.65rem;
    }

    .floating-contact {
        bottom: var(--space-md);
        right: var(--space-md);
    }

    .contact-float-btn {
        width: 44px;
        height: 44px;
    }

    .wechat-qr-popup {
        right: var(--space-md);
        bottom: calc(var(--space-md) + 100px);
        width: 180px;
    }
}
