/* ==========================================
   Jolianne 珠莉安 - Brand Styles
   ========================================== */

/* CSS Variables */
:root {
    --color-bg-dark: #12100e;
    --color-bg-secondary: #1a1714;
    --color-bg-light: #f5f0e8;
    --color-text-primary: #f0ebe3;
    --color-text-secondary: rgba(240, 235, 227, 0.7);
    --color-text-muted: rgba(240, 235, 227, 0.5);
    --color-gold: #c9a96e;
    --color-gold-light: #e0c99a;
    --color-purple: #b8a0b8;
    --color-cream: #faf6f0;
    --font-serif: "Playfair Display", "Cormorant Garamond", "Georgia", serif;
    --font-serif-cn: "Noto Serif SC", serif;
    --font-sans: "Inter", -apple-system, sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 110, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 169, 110, 0.5);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 169, 110, 0.3) var(--color-bg-dark);
}

/* 所有中文衬线字体使用Semi-Bold */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-title,
.hero-desc,
.philosophy-text h2,
.philosophy-text h3,
.philosophy-text p,
.poem-content h3,
.poem-content p,
.collection-info h3,
.collection-info p,
.gallery-name,
.story-text h2,
.story-text p,
.story-quote,
.footer-tagline,
nav a,
.mobile-nav-links a {
    font-family: var(--font-serif-cn);
    font-weight: 600;
}

/* 英文内容使用Cormorant Garamond */
.hero-subtitle,
.section-label,
.nav-logo,
.hero-subtitle *,
.section-label * {
    font-family: var(--font-serif) !important;
    font-weight: 400;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
}

/* ==========================================
   Loading Screen
   ========================================== */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        opacity 1.2s var(--transition-smooth),
        visibility 1.2s;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.loading-logo-wrap {
    width: 280px;
    max-width: 60vw;
    margin-bottom: 2rem;
}

.loading-logo-wrap svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* ---- Logo Motion: Wipe reveal (left-to-right clip-path) + Sheen sweep ---- */
.loading-logo-wrap #wordmark {
    transform-box: fill-box;
    transform-origin: center;
    opacity: 1;
    clip-path: inset(0 100% 0 0);
    animation: loading-wipe-open 1200ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.loading-logo-wrap #sheen {
    opacity: 0;
    clip-path: url(#text-clip);
    pointer-events: none;
    animation: loading-sheen-sweep 1800ms cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 600ms;
}

@keyframes loading-wipe-open {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0% 0 0);
    }
}

@keyframes loading-sheen-sweep {
    0%,
    20% {
        opacity: 0;
        transform: translateX(0);
    }
    24% {
        opacity: 0.6;
    }
    35% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
    65% {
        opacity: 0.9;
    }
    72% {
        opacity: 0;
        transform: translateX(980px);
    }
    100% {
        opacity: 0;
        transform: translateX(980px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .loading-logo-wrap #wordmark,
    .loading-logo-wrap #sheen {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }
}

.loading-line {
    width: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-gold),
        transparent
    );
    margin: 0 auto 1.5rem;
    animation: expandLine 1.5s ease forwards 1.8s;
}

.loading-text {
    font-family: var(--font-serif-cn);
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 2.2s;
}

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

@keyframes expandLine {
    to {
        width: 120px;
    }
}

/* ==========================================
   Navigation
   ========================================== */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.6s var(--transition-smooth);
}

#main-nav.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.4s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-serif-cn);
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    padding: 0.5rem 0;
    transition: color 0.4s ease;
    overflow: hidden;
    display: inline-block;
}

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

.nav-actions {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
    position: relative;
}

.nav-btn:hover {
    color: var(--color-gold);
    transform: scale(1.1);
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--color-gold);
    color: var(--color-bg-dark);
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.cart-badge.active {
    opacity: 1;
    transform: scale(1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-text-primary);
    transition: all 0.4s ease;
}

/* Mobile Menu */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(10, 10, 10, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
}

#mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    text-align: center;
}

.mobile-nav-links a {
    display: block;
    font-family: var(--font-serif-cn);
    font-size: 1.5rem;
    padding: 1rem 0;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--color-gold);
}

/* ==========================================
   Hero Section - Enhanced with warm tones
   ========================================== */
#hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 70% 50%,
            rgba(28, 22, 18, 0.8) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse at 30% 80%,
            rgba(45, 35, 28, 0.4) 0%,
            transparent 50%
        ),
        linear-gradient(180deg, #141210 0%, #0f0e0d 50%, #12100e 100%);
    will-change: opacity;
}

#three-canvas-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
    pointer-events: auto;
}

/* Film grain over the hero — velvet texture instead of flat digital black */
#hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

#three-canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 0 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    pointer-events: none;
}

.hero-content a,
.hero-content button,
.hero-content .btn-primary,
.hero-content .btn-secondary,
.hero-scroll-indicator {
    pointer-events: auto;
}

.hero-text {
    max-width: 520px;
    padding-left: 2vw;
    position: relative;
}

.hero-text::before {
    content: "";
    position: absolute;
    inset: -3rem;
    background: radial-gradient(
        ellipse at center,
        rgba(15, 14, 13, 0.5) 0%,
        transparent 70%
    );
    z-index: -1;
    pointer-events: none;
}

.hero-subtitle {
    font-family: "Cormorant Garamond", var(--font-serif), serif !important;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-serif-cn);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .title-line {
    display: block;
}

.hero-title .highlight {
    color: var(--color-gold);
    font-weight: 600;
    /* Statement → landing: the golden line is the beat of the sentence */
    font-size: 1.35em;
    line-height: 1.1;
}

.hero-desc {
    font-family: var(--font-serif-cn);
    font-size: 1.1rem;
    color: rgba(240, 235, 227, 0.65);
    line-height: 2;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    /* Champagne gold — soft gradient instead of a flat metallic block */
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 60%, #b8935a 100%);
    color: var(--color-bg-dark);
    font-family: var(--font-serif-cn);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    border: 1px solid var(--color-gold);
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-gold);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--color-text-primary);
    font-family: var(--font-serif-cn);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    border: 1px solid rgba(240, 235, 227, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
    font-family: var(--font-serif);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

@keyframes scrollPulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* ==========================================
   Sections General
   ========================================== */
.section-dark {
    background: var(--color-bg-dark);
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

/* React-bits style Aurora background — gold gradient blobs */
.section-dark::before,
.section-dark::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    will-change: transform;
}

.section-dark::before {
    background:
        radial-gradient(
            ellipse 50% 40% at 15% 25%,
            rgba(201, 169, 110, 0.28) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 40% 50% at 85% 75%,
            rgba(163, 131, 45, 0.2) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 60% 40% at 50% 50%,
            rgba(224, 201, 154, 0.14) 0%,
            transparent 70%
        );
    animation: aurora-drift-1 22s ease-in-out infinite alternate;
}

.section-dark::after {
    background:
        radial-gradient(
            ellipse 45% 35% at 75% 20%,
            rgba(212, 175, 55, 0.2) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 35% 45% at 25% 80%,
            rgba(184, 160, 100, 0.12) 0%,
            transparent 60%
        );
    animation: aurora-drift-2 28s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(4%, -3%) scale(1.05);
    }
    66% {
        transform: translate(-3%, 4%) scale(0.98);
    }
    100% {
        transform: translate(2%, -2%) scale(1.03);
    }
}

@keyframes aurora-drift-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    40% {
        transform: translate(-5%, 3%) scale(1.08);
    }
    100% {
        transform: translate(3%, -4%) scale(0.95);
    }
}

.section-dark > .container {
    position: relative;
    z-index: 1;
}

.section-light {
    background: var(--color-cream);
    color: var(--color-bg-dark);
    padding: 10rem 0;
}

.section-label {
    display: block;
    font-family: "Cormorant Garamond", var(--font-serif), serif !important;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-serif-cn);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.section-title .light {
    font-weight: 200;
    opacity: 0.7;
}

.section-title .highlight {
    color: var(--color-gold);
}

.section-desc {
    font-family: var(--font-serif-cn);
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 500px;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-light .section-desc {
    color: rgba(17, 17, 17, 0.6);
}

/* ==========================================
   Philosophy Section
   ========================================== */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
    padding: 0 2rem;
}

.philosophy-poems {
    margin-top: 3.5rem;
}

.poem-item {
    display: flex;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(240, 235, 227, 0.08);
    align-items: flex-start;
}

.poem-item:last-child {
    border-bottom: none;
}

.poem-icon {
    font-family: var(--font-serif-cn);
    font-size: 1.8rem;
    color: var(--color-gold);
    line-height: 1.2;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    padding-top: 0.2rem;
}

.poem-content {
    flex: 1;
}

.poem-content h3 {
    font-family: var(--font-serif-cn);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.poem-content p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.9;
}

.philosophy-visual {
    position: relative;
}

.pearl-circle {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1;
    max-width: 480px;
    margin: 0 auto;
}

.pearl-circle::before {
    content: "";
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 50%;
    animation: rotateSlow 30s linear infinite;
}

.pearl-circle::after {
    content: "";
    position: absolute;
    inset: -40px;
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: 50%;
    animation: rotateSlow 40s linear infinite reverse;
}

.pearl-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.pearl-circle:hover img {
    transform: scale(1.05);
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   Collections Section
   ========================================== */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.collection-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
}

.collection-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.collection-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.collection-card.large .collection-image {
    aspect-ratio: 1;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition-smooth);
}

.collection-card:hover .collection-image img {
    transform: scale(1.08);
}

.collection-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transition: transform 0.5s ease;
}

.collection-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.collection-info h3 {
    font-family: var(--font-serif-cn);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.collection-info p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* ==========================================
   Gallery Section - Enhanced
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
}

.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 1px solid rgba(201, 169, 110, 0.1);
    pointer-events: none;
    transition: border-color 0.5s ease;
}

.gallery-item:hover::before {
    border-color: rgba(201, 169, 110, 0.4);
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
}
.gallery-item:nth-child(4) {
    grid-column: span 2;
}
.gallery-item:nth-child(6) {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-name {
    font-family: var(--font-serif-cn);
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

/* ==========================================
   Story Section
   ========================================== */
.story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.story-images {
    position: relative;
}

.story-img-main {
    position: relative;
    z-index: 1;
}

.story-img-main img {
    width: 100%;
    height: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.story-img-secondary {
    position: absolute;
    bottom: -3rem;
    right: -2rem;
    width: 60%;
    z-index: 2;
    border: 8px solid var(--color-cream);
}

.story-img-secondary img {
    width: 100%;
    height: auto;
}

.story-text .section-title {
    margin-bottom: 2rem;
}

.story-body p {
    font-family: var(--font-serif-cn);
    color: rgba(17, 17, 17, 0.7);
    margin-bottom: 1.5rem;
    line-height: 2;
    font-size: 1.05rem;
}

.story-quote {
    margin-top: 2.5rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
    font-family: var(--font-serif-cn);
    font-size: 1.2rem;
    font-style: normal;
    color: var(--color-bg-dark);
    line-height: 1.8;
}

.story-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-style: normal;
    color: rgba(17, 17, 17, 0.5);
    letter-spacing: 0.1em;
}

/* ---- Daily Ritual Section ---- */
#ritual {
    padding: 8rem 0;
}

.ritual-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.ritual-content .section-title {
    margin-bottom: 3rem;
}

.ritual-body p {
    font-family: var(--font-serif-cn);
    color: rgba(17, 17, 17, 0.7);
    margin-bottom: 1.5rem;
    line-height: 2;
    font-size: 1.05rem;
    text-align: left;
}

/* ==========================================
   CTA Section
   ========================================== */
#cta {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(201, 169, 110, 0.06) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 50% 100%,
            rgba(184, 160, 184, 0.04) 0%,
            transparent 50%
        ),
        var(--color-bg-dark);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-serif-cn);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 1rem;
}

.cta-content p {
    font-family: var(--font-serif-cn);
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* ==========================================
   Footer
   ========================================== */
#footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(240, 235, 227, 0.05);
}

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

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer-tagline {
    font-family: var(--font-serif-cn);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.footer-links h4 {
    font-family: var(--font-serif-cn);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(240, 235, 227, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.footer-credit {
    font-family: var(--font-serif);
    letter-spacing: 0.1em;
}

/* ==========================================
   Animation States (for JS)
   ========================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s var(--transition-smooth),
        transform 0.8s var(--transition-smooth);
}

[data-animate="fade-in"] {
    opacity: 0;
    transform: none;
    transition: opacity 1.2s var(--transition-smooth);
}

[data-animate="scale-in"] {
    opacity: 0;
    transform: scale(0.95);
    transition:
        opacity 0.8s var(--transition-smooth),
        transform 0.8s var(--transition-smooth);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

[data-animate="fade-in"].animated {
    opacity: 1;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .philosophy-grid,
    .story-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .collection-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }

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

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(6) {
        grid-column: span 1;
    }

    .story-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 80%;
        margin: -2rem auto 0;
    }

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

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content {
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        padding-left: 0;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .collection-card.large {
        grid-column: span 1;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery-item.tall {
        grid-row: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section-dark,
    .section-light {
        padding: 5rem 0;
    }

    .pearl-circle {
        max-width: 320px;
    }
}

/* ==========================================
   Smooth cursor glow (subtle)
   ========================================== */
@media (pointer: fine) {
    body::after {
        content: "";
        position: fixed;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: radial-gradient(
            circle,
            rgba(201, 169, 110, 0.04) 0%,
            transparent 70%
        );
        pointer-events: none;
        z-index: 9998;
        transform: translate(-50%, -50%);
        transition:
            left 0.3s ease-out,
            top 0.3s ease-out;
        left: var(--cursor-x, 50%);
        top: var(--cursor-y, 50%);
    }
}
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 110, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 169, 110, 0.5);
}

/* ==========================================
   Scroll Progress Bar
   ========================================== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--color-gold),
        var(--color-gold-light),
        var(--color-gold)
    );
    z-index: 9998;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(201, 169, 110, 0.4);
}

/* ==========================================
   Hero Title — Character-by-character reveal
   ========================================== */
.hero-title span.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-30deg);
    transform-origin: center bottom;
    transition: none;
}

.hero-title span.char.revealed {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    transition:
        opacity 0.6s var(--transition-smooth),
        transform 0.6s var(--transition-smooth);
}

.hero-title span.char.highlight-char {
    color: var(--color-gold);
}

.hero-title .space-char {
    display: inline-block;
    width: 0.3em;
}

/* ==========================================
   Mouse Particle Trail
   ========================================== */
#mouse-particle-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    overflow: hidden;
}

.mouse-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

/* ==========================================
   Magnetic Buttons
   ========================================== */
.btn-magnetic {
    position: relative;
    display: inline-block;
    transition: transform 0.3s var(--transition-smooth);
}

/* ==========================================
   3D Tilt Cards
   ========================================== */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease-out;
}

.tilt-card-inner {
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

.tilt-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
}

.tilt-card:hover .tilt-card-shine {
    opacity: 1;
}

/* ==========================================
   Gallery Lightbox
   ========================================== */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 8, 6, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
}

#lightbox img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.4s var(--transition-smooth);
}

#lightbox.active img {
    transform: scale(1);
}

#lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

#lightbox-close:hover {
    color: var(--color-gold);
}

#lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-serif-cn);
    font-size: 1rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.1em;
}

/* ==========================================
   Navigation Underline Expand
   ========================================== */
.nav-links a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition:
        width 0.4s var(--transition-smooth),
        left 0.4s var(--transition-smooth);
    display: none; /* 隐藏横线 */
}

.nav-links a:hover::before {
    width: 100%;
    left: 0;
}

/* ==========================================
   Hero Subtitle — Letter spacing animation
   ========================================== */
.hero-subtitle.animated {
    letter-spacing: 0.4em;
    animation: subtitleExpand 1.5s ease forwards;
}

@keyframes subtitleExpand {
    from {
        letter-spacing: 0.1em;
        opacity: 0;
    }
    to {
        letter-spacing: 0.4em;
        opacity: 1;
    }
}

/* ==========================================
   Section Label — Gold line reveal
   ========================================== */
.section-label {
    position: relative;
    display: inline-block;
    padding-left: 2rem;
}

.section-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.8s var(--transition-smooth) 0.3s;
}

.section-label.animated::before {
    width: 1.5rem;
}

/* ==========================================
   Collection Card — Enhanced hover
   ========================================== */
.collection-card {
    transform-style: preserve-3d;
}

.collection-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(201, 169, 110, 0.08) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.collection-card:hover::after {
    opacity: 1;
}

/* ==========================================
   Gallery Item — Enhanced hover zoom
   ========================================== */
.gallery-item img {
    transition: transform 1.2s var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
}

/* ==========================================
   CTA — Shimmer effect on button
   ========================================== */
#cta .btn-primary {
    position: relative;
    overflow: hidden;
}

#cta .btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

#cta .btn-primary:hover::after {
    left: 100%;
}

/* ==========================================
   Footer — Social icons hover
   ========================================== */
.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* ==========================================
   Poem Item — Stagger line reveal
   ========================================== */
.poem-item {
    opacity: 0;
    transform: translateX(-20px);
    transition:
        opacity 0.6s var(--transition-smooth),
        transform 0.6s var(--transition-smooth);
}

.poem-item.animated {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================
   Responsive — Hide complex effects on mobile
   ========================================== */
@media (max-width: 768px) {
    #mouse-particle-container {
        display: none;
    }

    .tilt-card {
        transform: none !important;
    }

    .tilt-card-inner {
        transform: none !important;
    }
}

/* ==========================================
   Back to Top Button
   ========================================== */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.15);
    border: 1px solid rgba(201, 169, 110, 0.3);
    color: var(--color-gold);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--transition-smooth);
    backdrop-filter: blur(10px);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--color-gold);
    color: var(--color-bg-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(201, 169, 110, 0.3);
}

@media (max-width: 768px) {
    #back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* ==========================================
   Search Modal
   ========================================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 16, 14, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    transform: translateY(-30px);
    transition: transform 0.4s ease;
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-close {
    position: absolute;
    top: -3.5rem;
    right: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 50%;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.search-close:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    background: rgba(201, 169, 110, 0.1);
    transform: rotate(90deg);
}

.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    background: rgba(240, 235, 227, 0.05);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 8px;
    padding: 1.2rem 3.5rem 1.2rem 1.5rem;
    font-family: var(--font-serif-cn);
    font-size: 1.1rem;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(240, 235, 227, 0.08);
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gold);
    pointer-events: none;
}

.search-suggestions {
    animation: fadeInUp 0.5s ease 0.2s backwards;
}

.search-label {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.search-tag {
    font-family: var(--font-serif-cn);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 20px;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.search-tag:hover {
    background: rgba(201, 169, 110, 0.2);
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-2px);
}

/* ==========================================
   Cart Sidebar
   ========================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100%;
    background: var(--color-bg-dark);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.cart-header h3 {
    font-family: var(--font-serif-cn);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.cart-close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.cart-close:hover {
    color: var(--color-gold);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--color-text-secondary);
}

.cart-empty svg {
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.cart-empty p {
    font-family: var(--font-serif-cn);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-name {
    font-family: var(--font-serif-cn);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.cart-item-specs {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.cart-item-price {
    font-family: var(--font-serif-cn);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gold);
    font-variant-numeric: tabular-nums;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-qty button {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    background: none;
    color: var(--color-text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-qty button:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.cart-item-qty span {
    min-width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: #d9534f;
}

.cart-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif-cn);
    font-size: 1.1rem;
}

.cart-total-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gold);
    font-variant-numeric: tabular-nums;
}

.cart-checkout {
    width: 100%;
    margin-bottom: 1rem;
}

.cart-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 16, 14, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

/* ==========================================
 Lazy Load & Blur Placeholder
 ========================================== */
img[data-src] {
    filter: blur(20px);
    transform: scale(1.05);
    transition:
        filter 0.8s ease,
        transform 0.8s ease;
}

img.loaded {
    filter: blur(0);
    transform: scale(1);
}

.image-loading {
    background: linear-gradient(
        90deg,
        rgba(201, 169, 110, 0.05) 0%,
        rgba(201, 169, 110, 0.15) 50%,
        rgba(201, 169, 110, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 产品卡片加入购物袋按钮 */
.add-to-bag {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    background: var(--color-gold);
    color: var(--color-bg-dark);
    font-family: var(--font-serif-cn);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease;
    z-index: 10;
    white-space: nowrap;
}

.collection-card:hover .add-to-bag {
    opacity: 1;
    transform: translateY(0);
}

.add-to-bag:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(201, 169, 110, 0.4);
}

.add-to-bag:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(201, 169, 110, 0.35);
}

/* 图标与文字排布 */
.add-to-bag .btn-icon,
.book-appointment .btn-icon,
.gallery-add-btn .btn-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.add-to-bag:hover .btn-icon,
.gallery-add-btn:hover .btn-icon,
.book-appointment:hover .btn-icon {
    transform: translateY(-1px) scale(1.08);
}
.add-to-bag .btn-label,
.book-appointment .btn-label,
.gallery-add-btn .btn-label {
    display: inline-block;
    line-height: 1;
}

/* 「已加入」确认态：柔和墨绿 + 对勾 */
.add-to-bag.is-added,
.gallery-add-btn.is-added {
    background: #6f9070;
    color: #fff;
    box-shadow: 0 4px 14px rgba(111, 144, 112, 0.4);
}

/* 画廊臻品加入购物袋按钮（与系列卡统一风格） */
.gallery-add-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    background: var(--color-gold);
    color: var(--color-bg-dark);
    font-family: var(--font-serif-cn);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease;
}
.gallery-add-btn:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(201, 169, 110, 0.4);
}
.gallery-add-btn:active {
    transform: translateY(0);
}

/* 角标加入时脉冲 */
@keyframes cart-badge-pulse {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.55);
    }
    100% {
        transform: scale(1);
    }
}
.cart-badge.pulse {
    animation: cart-badge-pulse 0.45s ease;
}

/* Collection Actions - View Details + Add to Bag */
.collection-actions {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 10;
}

.collection-card:hover .collection-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-view-details {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    background: transparent;
    color: var(--color-text-primary);
    font-family: var(--font-serif-cn);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    border: 1px solid rgba(201, 169, 110, 0.5);
    border-radius: 2px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background: rgba(201, 169, 110, 0.1);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* Adjust add-to-bag for new layout */
.collection-actions .add-to-bag {
    position: static;
    opacity: 1;
    transform: none;
}

.collection-card:hover .collection-actions .add-to-bag {
    opacity: 1;
    transform: none;
}

.collection-info {
    padding-right: 8rem;
}

/* 浅色背景卡片的文字颜色调整 */
.section-light .collection-card .collection-info {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.3)
    );
}

.section-light .collection-tag {
    color: var(--color-gold-light);
}

.section-light .collection-info h3 {
    color: var(--color-text-primary);
}

.section-light .collection-info p {
    color: var(--color-text-secondary);
}

/* ==========================================
   English Mode — Philosophy Layout Adjustment
   ========================================== */
body.lang-en #philosophy .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 6vw;
}

body.lang-en #philosophy .philosophy-text {
    order: 1;
}

body.lang-en #philosophy .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 3rem;
    margin-top: 1rem;
}

body.lang-en #philosophy .philosophy-poems {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

body.lang-en #philosophy .poem-item {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem 0;
    border-bottom: none;
}

body.lang-en #philosophy .poem-icon {
    font-size: 1.4rem;
    width: auto;
    text-align: left;
}

body.lang-en #philosophy .poem-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

body.lang-en #philosophy .poem-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

body.lang-en #philosophy .philosophy-visual {
    order: 2;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    body.lang-en #philosophy .philosophy-poems {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    body.lang-en #philosophy .philosophy-grid {
        padding: 0 2vw;
    }
}

/* ==========================================
   Gold Particle Canvas — react-bits Particles style
   Canvas 2D floating gold particles with constellation lines
   ========================================== */
.section-dark .gold-particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   Enhanced Gold Aurora — react-bits style
   Additional animated grid pattern overlay
   ========================================== */
.section-dark .aurora-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    /* Grid pattern removed per user request */
}

/* ==========================================
   Service Detail Modal — dark bg with gold particles
   ========================================== */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 16, 14, 0.97);
    backdrop-filter: blur(12px);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
    overflow-y: auto;
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.service-modal.active .service-modal-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-color: rgba(201, 169, 110, 0.35) !important;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(201, 169, 110, 0.08);
}

.service-modal-content {
    position: relative;
    max-width: 760px;
    width: 90%;
    margin: 8vh auto 4vh;
    padding: 5rem 4rem;
    border-radius: 16px;
    border: 1px solid rgba(201, 169, 110, 0.15);
    background: var(--color-bg-dark);
    transform: none;
    transition: none;
    overflow: auto;
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Disable service-modal particles for stable modal rendering. */
.service-modal-content .gold-particle-canvas {
    display: none;
}

.service-modal-content .aurora-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Ensure service body text is always above canvas and aurora layers */
.service-body {
    position: relative;
    z-index: 10;
}

.service-modal.active .service-modal-content {
    transform: none;
}

.service-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 50%;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: all 0.3s ease;
}

.service-close:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    background: rgba(201, 169, 110, 0.1);
    transform: rotate(90deg);
}

/* Original .service-body rule — superseded by the z-index:10 rule above */

.service-section {
    display: none;
    animation: service-fade-in 0.5s ease;
}

.service-section.active {
    display: block;
}

@keyframes service-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-title {
    font-family: var(--font-serif-cn);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0.5rem 0 2rem;
    letter-spacing: 0.02em;
}

.service-text p {
    font-family: var(--font-serif-cn);
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.service-list li {
    font-family: var(--font-serif-cn);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(201, 169, 110, 0.08);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    opacity: 0.7;
}

.service-list li strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Service modal language blocks contain block elements (p, ul), so they
   need explicit block/hidden states instead of the global inline rule. */
body.lang-en .service-text > [data-lang="en"],
body:not(.lang-en) .service-text > [data-lang="zh"] {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

body.lang-en .service-text > [data-lang="zh"],
body:not(.lang-en) .service-text > [data-lang="en"] {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* English mode adjustments for service modal */
body.lang-en .service-title {
    font-weight: 300;
    letter-spacing: 0.03em;
}

body.lang-en .service-text p {
    font-size: 1.15rem;
    line-height: 1.8;
}

body.lang-en .service-list li {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .service-modal-content {
        padding: 4rem 1.5rem;
        margin: 4vh auto 2vh;
        width: 92%;
    }
}

/* ==========================================
   Stable Service Overlay
   ========================================== */
#service-overlay-stable {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: none;
    overflow-y: auto;
    padding: 8vh 4vw;
    background: rgba(18, 16, 14, 0.96);
    color: var(--color-text-primary);
}

#service-overlay-stable.active {
    display: block;
}

.stable-service-panel {
    position: relative;
    width: min(760px, 92vw);
    margin: 0 auto;
    padding: 4.5rem 4rem;
    border: 1px solid rgba(201, 169, 110, 0.35);
    border-radius: 16px;
    background: #12100e;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(201, 169, 110, 0.08);
    overflow: hidden;
}

/* React-bits style aurora + gold particles for stable service panel */
.stable-service-panel::before,
.stable-service-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    will-change: transform;
    border-radius: 16px;
}

.stable-service-panel::before {
    background:
        radial-gradient(
            ellipse 50% 40% at 15% 25%,
            rgba(201, 169, 110, 0.28) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 40% 50% at 85% 75%,
            rgba(163, 131, 45, 0.2) 0%,
            transparent 60%
        );
    animation: aurora-drift-1 22s ease-in-out infinite alternate;
}

.stable-service-panel::after {
    background:
        radial-gradient(
            ellipse 45% 35% at 75% 20%,
            rgba(212, 175, 55, 0.2) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 35% 45% at 25% 80%,
            rgba(184, 160, 100, 0.12) 0%,
            transparent 60%
        );
    animation: aurora-drift-2 28s ease-in-out infinite alternate;
}

.stable-service-panel .gold-particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.stable-service-panel .aurora-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Ensure all text content is above canvas and aurora layers */
.stable-service-panel > button,
.stable-service-panel > span,
.stable-service-panel > h2,
.stable-service-panel > .stable-service-copy {
    position: relative;
    z-index: 10;
}

.stable-service-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.stable-service-close:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.stable-service-label {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.8rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.stable-service-title {
    font-family: var(--font-serif-cn);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 2rem;
}

.stable-service-copy p {
    font-family: var(--font-serif-cn);
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

body.lang-en .stable-service-title,
body.lang-en .stable-service-copy p,
body.lang-en .stable-service-copy li {
    font-family: var(--font-serif);
}

@media (max-width: 768px) {
    #service-overlay-stable {
        padding: 4vh 4vw;
    }

    .stable-service-panel {
        padding: 4rem 1.5rem;
    }
}

/* ==========================================
   Search Highlight (P1.5)
   ========================================== */
.search-highlight {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.4);
    transition:
        outline 0.3s ease,
        box-shadow 0.3s ease;
}

/* ==========================================
   Motion Degradation (P1.4)
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .char,
    .hero-title .char {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }

    #mouse-particle-container {
        display: none !important;
    }

    .loading-screen .loading-particle {
        display: none !important;
    }
}

/* Mobile: disable heavy effects for performance */
@media (max-width: 768px) {
    #mouse-particle-container {
        display: none !important;
    }

    .tilt-card {
        transform: none !important;
    }

    .btn-magnetic {
        transform: none !important;
    }
}
