/* Embedded CNY decorations (integrated with layout, not top overlay) */

.container {
    position: relative;
}

.spring-embedded-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.spring-chain {
    position: absolute;
    top: 28px;
    left: 8%;
    right: 8%;
    height: 10px;
    background: radial-gradient(circle, rgba(255, 219, 132, 0.92) 0 2px, transparent 2.2px) 0 0 / 18px 10px repeat-x;
    filter: drop-shadow(0 0 5px rgba(255, 130, 82, 0.45));
    opacity: 0.95;
}

.spring-side {
    position: absolute;
    top: 120px;
    width: 46px;
    padding: 12px 0 14px;
    border: 1px solid rgba(255, 214, 120, 0.75);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(210, 22, 28, 0.95), rgba(130, 0, 10, 0.95));
    box-shadow: 0 0 14px rgba(255, 104, 74, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.spring-side::before {
    content: "";
    position: absolute;
    top: -26px;
    left: 50%;
    width: 2px;
    height: 26px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255, 235, 169, 0.9), rgba(188, 130, 44, 0.9));
}

.spring-side::after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #ffd67b, #b21532);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.spring-side-inner {
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(255, 216, 130, 0.62);
    border-radius: 6px;
}

.spring-side span {
    color: #ffe7aa;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    text-shadow: 0 0 6px rgba(255, 234, 172, 0.5);
}

.spring-mini-lantern {
    position: absolute;
    width: 32px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(255, 210, 110, 0.95);
    background: radial-gradient(circle at 50% 20%, #ffb489 0%, #d61f28 48%, #8e0012 100%);
    box-shadow: 0 0 10px rgba(255, 102, 72, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cnyMiniSwing 3.4s ease-in-out infinite;
    transform-origin: top center;
}

.spring-mini-lantern::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 50%;
    width: 2px;
    height: 16px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255, 234, 168, 0.95), rgba(190, 134, 52, 0.95));
}

.spring-mini-lantern::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 10px;
    height: 10px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #ffd67b, #b21532);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.spring-mini-lantern span {
    color: #ffe5a2;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 233, 176, 0.52);
}

.spring-mini-lantern-a {
    left: -10px;
    top: 50px;
}

.spring-mini-lantern-b {
    right: -10px;
    top: 60px;
    animation-delay: -0.8s;
}

.spring-mini-lantern-c {
    left: -12px;
    top: 270px;
    animation-delay: -1.4s;
}

.spring-mini-lantern-d {
    right: -12px;
    top: 320px;
    animation-delay: -2.1s;
}

.spring-fu-ornate {
    position: absolute;
    width: 82px;
    height: 82px;
    border: 2px solid #ffd981;
    clip-path: polygon(18% 0, 82% 0, 100% 18%, 100% 82%, 82% 100%, 18% 100%, 0 82%, 0 18%);
    background: linear-gradient(140deg, #f6523e 0%, #c0162b 52%, #790010 100%);
    box-shadow: 0 0 20px rgba(255, 109, 80, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cnyFloat 4s ease-in-out infinite;
}

.spring-fu-ornate::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 223, 148, 0.95);
    clip-path: polygon(18% 0, 82% 0, 100% 18%, 100% 82%, 82% 100%, 18% 100%, 0 82%, 0 18%);
}

.spring-fu-ornate::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 8px;
    height: 8px;
    border: 1px solid rgba(255, 223, 148, 0.95);
    background: rgba(255, 233, 165, 0.18);
    box-shadow: 54px 0 0 rgba(255, 233, 165, 0.18), 0 54px 0 rgba(255, 233, 165, 0.18), 54px 54px 0 rgba(255, 233, 165, 0.18);
}

.spring-fu-ornate span {
    color: #ffeec0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 34px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 233, 170, 0.65);
    z-index: 1;
}

.spring-fu-ornate-left {
    left: 14px;
    top: 620px;
    transform: rotate(45deg);
}

.spring-fu-ornate-right {
    right: 14px;
    top: 670px;
    transform: rotate(45deg);
    animation-delay: -1.4s;
}

.spring-fu-ornate-left span,
.spring-fu-ornate-right span {
    transform: rotate(-45deg);
}

.spring-seal {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 210, 115, 0.85);
    background: linear-gradient(180deg, rgba(210, 20, 30, 0.94), rgba(120, 0, 10, 0.94));
    color: #ffe9b3;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 94, 72, 0.3);
    animation: sealBlink 2.6s ease-in-out infinite;
}

.spring-seal-a {
    left: 68px;
    top: 176px;
}

.spring-seal-b {
    right: 68px;
    top: 206px;
    animation-delay: -0.6s;
}

.spring-seal-c {
    left: 76px;
    top: 500px;
    animation-delay: -1.2s;
}

.spring-seal-d {
    right: 76px;
    top: 570px;
    animation-delay: -1.8s;
}

.spring-left {
    left: -8px;
}

.spring-right {
    right: -8px;
}

.spring-coin {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #ffd26a;
    background: radial-gradient(circle at 32% 28%, #ffbe90 0%, #d71e2a 50%, #960014 100%);
    box-shadow: 0 0 14px rgba(255, 94, 72, 0.4);
    color: #ffe8ac;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cnyFloat 3.8s ease-in-out infinite;
}

.spring-coin-a {
    left: -10px;
    top: 360px;
}

.spring-coin-b {
    right: -10px;
    top: 470px;
    animation-delay: -1.6s;
}

.spring-coin-c {
    left: -12px;
    top: 700px;
    animation-delay: -0.9s;
}

.spring-coin-d {
    right: -12px;
    top: 760px;
    animation-delay: -2.2s;
}

.spring-festive-line {
    margin: 8px auto 22px;
    padding: 6px 14px;
    width: fit-content;
    max-width: 92%;
    border: 1px solid rgba(255, 213, 120, 0.75);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(116, 10, 17, 0.84), rgba(178, 25, 35, 0.92), rgba(116, 10, 17, 0.84));
    color: #ffecc4;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 1px;
    text-align: center;
    box-shadow: 0 0 12px rgba(255, 110, 78, 0.35);
}

.spring-festive-line::before,
.spring-festive-line::after {
    content: "福";
    margin: 0 10px;
    color: #ffd57c;
}

.hero-tag {
    position: relative;
    padding-right: 28px;
}

.hero-tag::after {
    content: "新春";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #ffd981;
    opacity: 0.9;
}

.nav-brand {
    position: relative;
    padding: 0 18px;
}

.nav-brand::before,
.nav-brand::after {
    content: "✦";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffd777;
    font-size: 11px;
    opacity: 0.9;
}

.nav-brand::before {
    left: 0;
}

.nav-brand::after {
    right: 0;
}

.time-widget {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 206, 110, 0.35);
}

.time-widget::before {
    content: "恭贺新禧";
    position: absolute;
    right: 10px;
    top: -1px;
    padding: 2px 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border: 1px solid rgba(255, 211, 116, 0.7);
    background: linear-gradient(180deg, rgba(202, 26, 36, 0.9), rgba(123, 0, 14, 0.9));
    color: #ffe8b0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 1px;
}

.feature-title {
    position: relative;
    padding-left: 18px;
}

.feature-title::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    color: #ffd777;
    font-size: 12px;
}

.btn {
    position: relative;
}

.btn::after {
    position: absolute;
    top: 3px;
    right: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 214, 118, 0.8);
    background: linear-gradient(180deg, rgba(220, 34, 38, 0.95), rgba(120, 0, 10, 0.95));
    color: #ffe6aa;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    box-shadow: 0 0 8px rgba(255, 104, 72, 0.35);
}

.btn-primary::after { content: "福"; }
.btn-secondary::after { content: "春"; }
.btn-outline::after { content: "禧"; }

@keyframes cnyFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@keyframes cnyMiniSwing {
    0% { transform: rotate(3deg); }
    50% { transform: rotate(-3deg); }
    100% { transform: rotate(3deg); }
}

@keyframes sealBlink {
    0%, 100% { opacity: 0.7; box-shadow: 0 0 8px rgba(255, 94, 72, 0.25); }
    50% { opacity: 1; box-shadow: 0 0 14px rgba(255, 126, 84, 0.42); }
}

@media (max-width: 1200px) {
    .spring-left,
    .spring-right,
    .spring-chain,
    .spring-mini-lantern,
    .spring-seal,
    .spring-fu-ornate,
    .spring-coin {
        display: none;
    }
}

@media (max-width: 768px) {
    .spring-festive-line {
        margin-top: 2px;
        margin-bottom: 14px;
        font-size: 11px;
        line-height: 1.35;
        padding: 5px 10px;
    }

    .spring-festive-line::before,
    .spring-festive-line::after {
        margin: 0 5px;
    }

    .hero-tag {
        padding-right: 22px;
    }

    .hero-tag::after {
        right: 3px;
        font-size: 9px;
    }

    .nav-brand {
        padding: 0 12px;
    }

    .nav-brand::before,
    .nav-brand::after {
        font-size: 9px;
    }

    .btn::after {
        width: 14px;
        height: 14px;
        font-size: 9px;
        line-height: 12px;
        top: 2px;
        right: 4px;
    }

    .feature-title {
        padding-left: 14px;
    }

    .feature-title::before {
        font-size: 10px;
    }
}
