/* 站点基础样式，后续官网页面会复用这套排版和配色。 */
:root {
    color-scheme: light;
    --bg: #f4efe6;
    --panel: #ffffff;
    --text: #1f2933;
    --muted: #5f6b7a;
    --accent: #a86f3d;
    --line: #e7dccd;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 42%),
        linear-gradient(180deg, #fbf7f0 0%, var(--bg) 100%);
    color: var(--text);
}

/* 中文注释：全站页面进场与离场状态。 */
.site-layout {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.site-layout[data-motion-state='leaving'] {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(6px);
}

.site-layout main > * {
    animation: section-rise 560ms ease-out both;
}

.site-layout main > *:nth-child(2) {
    animation-delay: 70ms;
}

.site-layout main > *:nth-child(3) {
    animation-delay: 140ms;
}

.site-layout main > *:nth-child(4) {
    animation-delay: 210ms;
}

.site-layout main > *:nth-child(5) {
    animation-delay: 280ms;
}

.animate-dialog-in {
    animation: dialog-in 240ms ease-out both;
}

.animate-dialog-out {
    animation: dialog-out 180ms ease-out both;
}

.animate-tab-in {
    animation: tab-in 220ms ease-out both;
}

.animate-section-rise {
    animation: section-rise 560ms ease-out both;
}

.site-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.hero {
    width: min(960px, 100%);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(104, 74, 39, 0.12);
    backdrop-filter: blur(10px);
}

.hero__badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(168, 111, 61, 0.12);
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
}

.hero__lead {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.hero__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.panel {
    padding: 24px;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
}

.panel h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.panel ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.9;
}

@keyframes section-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes dialog-in {
    from {
        opacity: 0;
        transform: translate(-50%, -46%) scale(0.96);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

@keyframes dialog-out {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -46%) scale(0.96);
        filter: blur(6px);
    }
}

@keyframes tab-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@media (prefers-reduced-motion: reduce) {
    .site-layout,
    .site-layout main > *,
    .animate-dialog-in,
    .animate-dialog-out,
    .animate-tab-in,
    .animate-section-rise {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 720px) {
    .hero {
        padding: 24px;
        border-radius: 22px;
    }

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