/* ==========================================================================
   暖色主题 + 视频首屏（可整体移除）
   还原：删除本文件、index.html 中的 <link> 一行、以及 .hero-media 整段，
        并把 .hero-shell 里被移动的内容保持原样即可。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 调色板：冷白 + 蓝  →  暖白 + 琥珀 + 浓缩咖啡棕
   -------------------------------------------------------------------------- */

:root {
    --color-ink: #2b1d13;
    --color-ink-soft: #5a463a;
    --color-muted: #8d7563;
    --color-primary: #3a2718;
    --color-action: #c2751a;
    --color-action-hover: #a45f10;
    --color-success: #7d8b3a;
    --color-surface: #fffcf7;
    --color-surface-muted: #faf3e8;
    --color-surface-blue: #f6ead9;
    --color-border: #ece0cf;
    --color-border-strong: #d9c6ab;
    --shadow-window: 0 28px 70px rgba(64, 40, 18, 0.14), 0 4px 16px rgba(64, 40, 18, 0.07);

    --cafe-glass: rgba(255, 255, 255, 0.14);
    --cafe-glass-line: rgba(255, 245, 232, 0.52);
}

/* --------------------------------------------------------------------------
   2. 冷色硬编码补丁
   -------------------------------------------------------------------------- */

:focus-visible {
    outline-color: rgba(194, 117, 26, 0.5);
}

.site-header {
    background: rgba(255, 252, 247, 0.94);
    border-bottom-color: rgba(236, 224, 207, 0.9);
}

.hero-label span {
    box-shadow: 0 0 0 5px rgba(125, 139, 58, 0.14);
}

.button-secondary {
    background: var(--color-surface);
}

.button-secondary:hover {
    border-color: #c4ab8c;
}

.app-window {
    background: var(--color-surface);
}

.app-window:hover {
    border-color: #c4ab8c;
    box-shadow: 0 32px 78px rgba(64, 40, 18, 0.17), 0 6px 18px rgba(64, 40, 18, 0.08);
}

.window-image,
.template-image-button {
    background: #f4ebdd;
}

.template-view {
    background: var(--color-surface);
}

.download-section {
    border-top-color: #eed9ba;
}

.button-outline-light {
    border-color: #d3b98f;
}

.button-outline-light:hover {
    background: rgba(255, 255, 255, 0.66);
    border-color: #bb9a68;
}

.site-footer {
    color: #e4d7c6;
    background: #241a12;
}

.footer-brand span,
.footer-shell > p {
    color: #a8917c;
}

.footer-links a {
    color: #d5c3ae;
}

.footer-shell > p {
    border-top-color: #3d2d20;
}

.lightbox {
    background: var(--color-surface);
    box-shadow: 0 30px 100px rgba(30, 18, 10, 0.5);
}

.lightbox::backdrop {
    background: rgba(30, 20, 12, 0.9);
}

.lightbox-close {
    background: rgba(43, 29, 19, 0.9);
    border-color: rgba(255, 245, 232, 0.3);
}

/* --------------------------------------------------------------------------
   3. 视频首屏
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(86vh, 720px);
    background: #2a1c12;
    border-bottom: 0;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(120deg, #3a2416 0%, #7c5227 38%, #d99a4e 68%, #f3cf92 100%);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
}

/* 左侧压暗 + 底部融入页面底色，保证文案可读、人物不被糊住 */
.hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(28, 17, 9, 0.86) 0%, rgba(28, 17, 9, 0.62) 34%, rgba(28, 17, 9, 0.16) 62%, rgba(28, 17, 9, 0) 82%),
        linear-gradient(180deg, rgba(28, 17, 9, 0.5) 0%, rgba(28, 17, 9, 0) 26%),
        linear-gradient(180deg, rgba(255, 252, 247, 0) 74%, rgba(255, 252, 247, 0.72) 92%, var(--color-surface) 100%);
}

.hero-shell {
    position: relative;
    z-index: 1;
    max-width: 660px;
    margin-right: auto;
    margin-left: max(24px, calc((100% - var(--container)) / 2));
    padding: 96px 0 104px;
    text-align: left;
}

.hero-label {
    padding: 7px 15px 7px 12px;
    color: #ffeacb;
    background: rgba(255, 236, 208, 0.14);
    border: 1px solid rgba(255, 236, 208, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.hero-label span {
    background: #b9d15c;
    box-shadow: 0 0 0 5px rgba(185, 209, 92, 0.2);
}

.hero h1 {
    color: #fffaf2;
    text-shadow: 0 2px 24px rgba(28, 17, 9, 0.5);
}

.hero-statement {
    max-width: 560px;
    margin: 22px 0 0;
    color: rgba(255, 246, 234, 0.9);
    text-shadow: 0 1px 14px rgba(28, 17, 9, 0.45);
}

.hero-actions {
    justify-content: flex-start;
}

.hero .button-primary {
    color: #2b1a08;
    background: #f0b04a;
    box-shadow: 0 10px 30px rgba(28, 17, 9, 0.34);
}

.hero .button-primary:hover {
    background: #ffc464;
}

.hero .button-secondary {
    color: #fff8ee;
    background: var(--cafe-glass);
    border-color: var(--cafe-glass-line);
    backdrop-filter: blur(8px);
}

.hero .button-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 245, 232, 0.78);
}

.hero .support-link {
    color: #ffd9a3;
}

.hero .support-link:hover {
    color: #fff2dc;
}

.hero .release-line {
    justify-content: flex-start;
    color: rgba(255, 244, 230, 0.78);
}

.hero .release-line span + span::before {
    background: rgba(255, 244, 230, 0.38);
}

/* --------------------------------------------------------------------------
   4. 自适应与降级
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .hero-shell {
        max-width: 600px;
    }
}

@media (max-width: 800px) {
    .hero {
        min-height: 600px;
    }

    .hero-shell {
        max-width: none;
        margin-right: auto;
        margin-left: auto;
        padding: 76px 0 84px;
        text-align: center;
    }

    .hero-video {
        object-position: 66% center;
    }

    .hero-veil {
        background:
            linear-gradient(180deg, rgba(28, 17, 9, 0.72) 0%, rgba(28, 17, 9, 0.56) 46%, rgba(28, 17, 9, 0.68) 100%),
            linear-gradient(180deg, rgba(255, 252, 247, 0) 82%, var(--color-surface) 100%);
    }

    .hero-statement {
        max-width: none;
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions,
    .hero .release-line {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .hero {
        min-height: 580px;
    }

    .hero-shell {
        padding: 64px 0 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
}
