/* 参考传统年节海报：降低橙红饱和度，保留纸肌与暖金的层次。 */
:root {
    --annual-reference-red: #ad211a;
    --annual-reference-gold: #e3c28b;
    --annual-reference-ivory: #f7ead5
}

body {
    background-color: #ad211a;
    background-image: linear-gradient(rgba(145, 54, 52, .26), rgba(145, 54, 52, .26)), url('../images/theme-cinnabar-paper-lite.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed
}

.header,
.header.is-scrolled {
    background: rgba(139, 35, 29, .72);
    border-bottom-color: rgba(245, 218, 175, .31)
}

#hero.hs-hero:before {
    display: block;
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(138, 44, 35, .25), rgba(138, 44, 35, .06) 68%, transparent), url('../images/theme-cinnabar-paper-lite.webp') left center/cover no-repeat;
    opacity: .3;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 25%, transparent 58%);
    mask-image: linear-gradient(90deg, #000 0%, #000 25%, transparent 58%)
}

/* 标题保留可读的浅金底色，细微明暗营造压金质地。 */
#hero .hs-copy h1,
#solution .hs-solution-head h2,
#live .fl-heading h2,
#interaction .head h2,
#live-ai .annual-ai-heading h2,
#photo .copy h2,
#agent .annual-agent-copy h2,
#service .head h2,
#cases .head h2 {
    color: #f9dfae;
    text-shadow: 0 1px 0 rgba(113, 53, 26, .12), 0 3px 18px rgba(95, 25, 19, .14)
}

@supports ((-webkit-background-clip:text) or (background-clip:text)) {

    #hero .hs-copy h1,
    #solution .hs-solution-head h2,
    #live .fl-heading h2,
    #interaction .head h2,
    #live-ai .annual-ai-heading h2,
    #photo .copy h2,
    #agent .annual-agent-copy h2,
    #service .head h2,
    #cases .head h2 {
        background-image: linear-gradient(105deg, #fff2d0 0%, #f6dda9 29%, #e4bd7c 48%, #fff0cb 71%, #e8c68b 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: none
    }
}

#live .fl-list .fl-tab,
#interaction .interaction-options .game-option {
    background: linear-gradient(145deg, #f9ecd6, #ecd5b2);
    border-color: #e5c89e
}

#live .fl-list .fl-tab:not([aria-selected="true"]):hover,
#interaction .interaction-options .game-option:not([aria-selected="true"]):hover {
    background: linear-gradient(145deg, #fff2dc, #edd6b4);
    border-color: #f6d9a8
}

#live .fl-list .fl-tab[aria-selected="true"],
#interaction .interaction-options .game-option[aria-selected="true"] {
    background: linear-gradient(135deg, #bd3930, #a22520);
    border-color: #e9c08d;
    box-shadow: inset 0 0 0 1px rgba(255, 237, 204, .45), 0 8px 22px rgba(97, 23, 18, .2)
}

#service .timeline-tabs button.active {
    background: linear-gradient(135deg, #bd3930, #a22520);
    border-color: #e9c08d
}

#live-ai .ai-feature-unit .ai-feature-tile {
    background: linear-gradient(145deg, #faedd9, #ecd8b9);
    border-color: #e7cba2
}

#live-ai .ai-feature-unit .ai-feature-tile:hover,
#live-ai .ai-feature-unit .ai-feature-tile:focus-visible {
    background: linear-gradient(145deg, #c34035, #a52621);
    border-color: #f1d19c
}

#live-ai .ai-feature-unit .ai-feature-panel {
    background: linear-gradient(145deg, #faf0de, #f2e2ca 55%, #e8ceaa);
    border-color: #e8cba0
}

#service .timeline-panel,
#cases .case {
    background: linear-gradient(145deg, #f9eddb, #efddc2);
    border-color: #e8cda9
}

/* 装饰留在内容之后，独立于可点击区域。 */
#solution,
#interaction,
#live-ai,
#agent,
#cases,
.agx-cta {
    position: relative;
    isolation: isolate
}

#solution>.wrap,
#interaction>.wrap,
#live-ai>.wrap,
#agent>.wrap,
#cases>.wrap,
.agx-cta>.wrap {
    position: relative;
    z-index: 1
}

#solution:after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: auto 0 -10px;
    height: clamp(155px, 24vw, 285px);
    pointer-events: none;
    background: url('../images/theme-gold-cloud-deco-lite.webp') center bottom/100% auto no-repeat;
    opacity: .66;
    animation: annual-gold-breathe 9s ease-in-out infinite
}

#interaction:before,
#agent:before,
#cases:before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 3% 20%, rgba(255, 226, 167, .7) 0 1px, transparent 2px), radial-gradient(circle at 7% 68%, rgba(232, 192, 123, .6) 0 1px, transparent 2px), radial-gradient(circle at 94% 28%, rgba(255, 228, 177, .65) 0 1px, transparent 2px), radial-gradient(circle at 97% 72%, rgba(255, 232, 184, .7) 0 1.5px, transparent 3px), radial-gradient(circle at 91% 82%, rgba(216, 168, 98, .65) 0 1px, transparent 2px);
    animation: annual-foil-glow 7s ease-in-out infinite
}

@keyframes annual-gold-breathe {

    0%,
    100% {
        opacity: .56
    }

    50% {
        opacity: .74
    }
}

@keyframes annual-foil-glow {

    0%,
    100% {
        opacity: .4
    }

    50% {
        opacity: .9
    }
}

/* 咨询按钮上保留克制的一次光泽反馈。 */
.btn.consult {
    position: relative;
    isolation: isolate;
    overflow: hidden
}

.btn.consult:after {
    content: "";
    position: absolute;
    z-index: 1;
    top: -100%;
    bottom: -100%;
    left: -65%;
    width: 32%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 245, .45), transparent);
    transform: translateX(0) rotate(18deg);
    transition: transform .7s ease
}

.btn.consult:hover:after,
.btn.consult:focus-visible:after {
    transform: translateX(550%) rotate(18deg)
}

@media(max-width:900px) {
    #solution:after {
        height: 160px;
        background-size: auto 170px;
        opacity: .54
    }

    .header .nav {
        background: #a12a23
    }
}

@media(prefers-reduced-motion:reduce) {

    #solution:after,
    #interaction:before,
    #agent:before,
    #cases:before {
        animation: none
    }

    .btn.consult:after {
        transition: none
    }
}