/* ===== Reset & Variables ===== */
:root {
    --cream: #f8f6f2;
    --cream-deep: #eeece4;
    --ink: #1e2a2f;
    --ink-soft: #3f4c52;
    --gold: #8b9a7a;
    --gold-deep: #6f7f5e;
    --nude: #f0ede8;
    --line: rgba(30, 42, 47, 0.08);
    --container-wide: 1280px;
    --spacing-section: 5rem;
    --ease-premium: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --text-eyebrow--letter-spacing: 0.22em;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}

/* ===== Utilities ===== */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}
.focus\:not-sr-only:focus {
    position: fixed !important;
    width: auto !important;
    height: auto !important;
    padding: 0.5rem 1rem !important;
    margin: 1rem !important;
    overflow: visible !important;
    clip: auto !important;
    background: var(--ink) !important;
    color: var(--cream) !important;
    z-index: 50 !important;
    border-radius: 4px;
}

.container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (min-width: 1024px) {
    .container {
        padding: 0 2.5rem;
    }
}

/* ===== Reveal animations ===== */
.reveal,
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible,
.reveal-stagger > *.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.40s; }

/* ===== Header — 透明磨砂效果 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.header.scrolled {
    background-color: rgba(248, 246, 242, 0.78);
    box-shadow: 0 4px 30px -8px rgba(30, 42, 47, 0.08);
    border-bottom-color: rgba(30, 42, 47, 0.06);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: #fff;
    font-weight: 700;
    transition: color 0.3s;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
.logo:hover {
    color: rgba(255, 255, 255, 0.75);
}
.header.scrolled .logo {
    color: var(--ink);
    text-shadow: none;
}
.header.scrolled .logo:hover {
    color: var(--gold-deep);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav-desktop a {
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: color 0.3s;
    position: relative;
}
.nav-desktop a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.3s ease;
}
.nav-desktop a:hover {
    color: #fff;
}
.nav-desktop a:hover::after {
    width: 100%;
}

.header.scrolled .nav-desktop a {
    color: var(--ink);
    text-shadow: none;
}
.header.scrolled .nav-desktop a::after {
    background: var(--gold-deep);
}
.header.scrolled .nav-desktop a:hover {
    color: var(--gold-deep);
}

/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 50;
    transition: transform 0.3s ease;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.header.scrolled .hamburger span {
    background: var(--ink);
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Language switcher */
.lang-switch {
    display: flex;
    gap: 0.3rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    align-items: center;
}
.lang-switch a {
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    color: rgba(255, 255, 255, 0.7);
}
.lang-switch a.active {
    color: #fff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
}
.lang-switch a:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.header.scrolled .lang-switch {
    color: var(--ink-soft);
}
.header.scrolled .lang-switch a {
    color: var(--ink-soft);
}
.header.scrolled .lang-switch a.active {
    color: var(--ink);
    background: rgba(30, 42, 47, 0.06);
}
.header.scrolled .lang-switch a:hover:not(.active) {
    background: rgba(30, 42, 47, 0.04);
    color: var(--ink);
}
.lang-switch .divider {
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}
.header.scrolled .lang-switch .divider {
    color: var(--line);
}

/* ===== 响应式：平板及以下 ===== */
@media (max-width: 1023px) {
    .hamburger {
        display: flex;
    }

    .nav-desktop {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(248, 246, 242, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2.5rem 2rem;
        gap: 1.8rem;
        border-bottom: 1px solid rgba(30, 42, 47, 0.06);
        box-shadow: 0 24px 48px -20px rgba(30, 42, 47, 0.2);
        z-index: 39;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .nav-desktop.open {
        display: flex;
    }
    .nav-desktop a {
        font-size: 1rem;
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
        color: var(--ink) !important;
        text-shadow: none !important;
    }
    .nav-desktop a::after {
        background: var(--gold-deep) !important;
    }
    .nav-desktop a:hover {
        color: var(--gold-deep) !important;
    }
    .lang-switch {
        padding-top: 0.5rem;
        border-top: 1px solid var(--line);
        width: 100%;
        justify-content: center;
        gap: 0.8rem;
        font-size: 1rem;
        color: var(--ink-soft) !important;
    }
    .lang-switch a {
        color: var(--ink-soft) !important;
    }
    .lang-switch a.active {
        color: var(--ink) !important;
        background: rgba(30, 42, 47, 0.06) !important;
    }
    .lang-switch .divider {
        color: var(--line) !important;
    }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 100svh;
    min-height: 640px;
    width: 100%;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #2b3a3f, #4f5f4d);
}
.hero-bg-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #4d5f4a, #3b4b3d);
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(30, 42, 47, 0.10), rgba(30, 42, 47, 0.15), rgba(30, 42, 47, 0.75));
}
.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 6rem;
}
@media (min-width: 1024px) {
    .hero-content {
        padding-bottom: 8rem;
    }
}
.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s 0.2s forwards;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    line-height: 1.1;
    max-width: 48rem;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    white-space: pre-line;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s 0.4s forwards;
}
.hero-desc {
    margin-top: 1.5rem;
    max-width: 36rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s 0.6s forwards;
}
.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s 0.8s forwards;
}
.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.85rem 1.8rem;
    border-radius: 0;
    transition: all 0.3s var(--ease-premium);
    cursor: pointer;
    border: 1px solid transparent;
    min-height: 48px;
    min-width: 48px;
}
.btn-primary {
    background: var(--cream);
    color: var(--ink);
    border-color: var(--cream);
}
.btn-primary:hover {
    background: #edeae4;
    border-color: #edeae4;
}
.btn-secondary {
    background: transparent;
    color: var(--cream);
    border-color: var(--cream);
}
.btn-secondary:hover {
    background: var(--cream);
    color: var(--ink);
}
.btn-dark {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}
.btn-dark:hover {
    background: var(--ink-soft);
    border-color: var(--ink-soft);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
    opacity: 0;
    animation: heroFadeUp 0.8s 1.0s forwards;
}
.scroll-indicator:hover {
    color: #fff;
}
.scroll-line {
    display: block;
    width: 1px;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.6);
}

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 639px) {
    .hero {
        min-height: 520px;
    }
    .hero-content {
        padding-bottom: 4rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-desc {
        font-size: 0.95rem;
        margin-top: 1rem;
    }
    .hero-actions {
        margin-top: 1.8rem;
        gap: 0.8rem;
    }
    .btn {
        font-size: 0.65rem;
        padding: 0.7rem 1.2rem;
        min-height: 44px;
    }
    .scroll-indicator {
        bottom: 1.2rem;
        font-size: 0.65rem;
    }
    .scroll-line {
        height: 1.8rem;
    }
}

/* ===== General sections ===== */
section {
    padding: var(--spacing-section) 0;
}
.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: var(--text-eyebrow--letter-spacing);
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 1.25rem;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.15;
    color: var(--ink);
    white-space: pre-line;
}
.section-desc {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 42rem;
}

.bg-cream { background: var(--cream); }
.bg-cream-deep { background: var(--cream-deep); }
.bg-nude { background: var(--nude); }

@media (max-width: 639px) {
    section {
        --spacing-section: 3rem;
        padding: 3rem 0;
    }
    .section-eyebrow {
        font-size: 0.65rem;
        margin-bottom: 0.8rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section-desc {
        font-size: 0.95rem;
        margin-top: 1rem;
    }
}

/* ===== Promise ===== */
.promise-grid {
    margin-top: 4rem;
    display: grid;
    gap: 2.5rem;
}
@media (min-width: 768px) {
    .promise-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}
@media (max-width: 639px) {
    .promise-grid {
        margin-top: 2.5rem;
        gap: 1.8rem;
    }
}
.promise-item {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
}
.promise-item .num {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
.promise-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-top: 1rem;
    color: var(--ink);
}
.promise-item p {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--ink-soft);
}
@media (max-width: 639px) {
    .promise-item h3 {
        font-size: 1.1rem;
        margin-top: 0.6rem;
    }
    .promise-item p {
        font-size: 0.8rem;
        margin-top: 0.4rem;
    }
}

/* ===== Categories — 左大右四布局 ===== */
.category-grid {
    margin-top: 4rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
}
.category-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
    }
    .category-grid .category-card:nth-child(1) {
        grid-row: span 2;
        aspect-ratio: auto;
        min-height: 420px;
    }
    .category-grid .category-card:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    .category-grid .category-card:nth-child(3) {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }
    .category-grid .category-card:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    .category-grid .category-card:nth-child(5) {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }
}

@media (max-width: 767px) {
    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    .category-grid .category-card:nth-child(1) {
        grid-column: span 2;
        aspect-ratio: 16 / 9;
    }
    .category-grid .category-card {
        aspect-ratio: 4 / 3;
    }
}

.category-card {
    position: relative;
    overflow: hidden;
    background: #cfd4c8;
    display: flex;
    align-items: flex-end;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    min-height: 160px;
    border-radius: 8px;
    cursor: default;
}

.category-card:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.category-card .bg-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #bcc2b0, #a8af9a);
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.category-card:hover .bg-placeholder {
    transform: scale(1.04);
}

.category-card .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(30, 42, 47, 0.85), rgba(30, 42, 47, 0.4), transparent);
    color: #fff;
    border-radius: 0 0 8px 8px;
}

.category-card .caption h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 0.1rem;
}

.category-card .caption p {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.1rem;
}

@media (max-width: 639px) {
    .category-card .caption {
        padding: 0.8rem 1rem;
    }
    .category-card .caption h4 {
        font-size: 1rem;
    }
    .category-card .caption p {
        font-size: 0.6rem;
    }
}

/* ===== Why Aootty — timeline style ===== */
.why-steps {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.why-steps::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: var(--gold);
    opacity: 0.3;
}
.why-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.why-step:last-child {
    border-bottom: none;
}
.why-step .step-number {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold-deep);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(107, 127, 94, 0.25);
    z-index: 2;
}
.why-step .step-content {
    flex: 1;
    padding-top: 0.2rem;
}
.why-step .step-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 0.25rem;
}
.why-step .step-content p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 30rem;
}

@media (min-width: 768px) {
    .why-steps::before {
        left: 44px;
        top: 30px;
        bottom: 30px;
    }
    .why-step .step-number {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    .why-step .step-content h3 {
        font-size: 1.5rem;
    }
}
@media (max-width: 639px) {
    .why-steps {
        margin-top: 2.5rem;
    }
    .why-steps::before {
        left: 24px;
        top: 16px;
        bottom: 16px;
    }
    .why-step {
        gap: 1rem;
        padding: 1.2rem 0;
    }
    .why-step .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        box-shadow: 0 2px 8px rgba(107, 127, 94, 0.2);
    }
    .why-step .step-content h3 {
        font-size: 1.05rem;
        margin-bottom: 0.15rem;
    }
    .why-step .step-content p {
        font-size: 0.8rem;
        line-height: 1.6;
    }
}

/* ===== About ===== */
#about {
    padding-bottom: 2rem;
}

/* ===== Contact ===== */
#contact {
    padding-top: var(--spacing-section);
}

.contact-grid {
    margin-top: 4rem;
    display: grid;
    gap: 3rem;
}
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 639px) {
    .contact-grid {
        margin-top: 2.5rem;
        gap: 2rem;
    }
}

.contact-info {
    background: rgba(255, 255, 255, 0.5);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(30, 42, 47, 0.04);
}

.contact-info .highlight {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
}

.contact-info .address {
    margin-top: 1.2rem;
    font-style: normal;
    line-height: 1.9;
}

.contact-info .address strong {
    display: inline-block;
    margin-bottom: 0.2rem;
    color: var(--gold-deep);
    font-weight: 600;
}

.contact-info p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--ink-soft);
}
.contact-info strong {
    color: var(--ink);
    font-weight: 600;
}

@media (max-width: 639px) {
    .contact-info {
        padding: 1.5rem 1.25rem;
    }
    .contact-info .highlight {
        font-size: 1rem;
    }
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--ink-soft);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}
@media (max-width: 639px) {
    .footer-bottom {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        font-size: 0.7rem;
        text-align: center;
        gap: 0.3rem;
    }
}