/* 国庆节模式动画效果样式 — 红绸 / 金星 / 烟花 */

@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap');

/* ========== 容器 ========== */
#national-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

/* ========== 天空渐变 ========== */
.national-sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 997;
    background: radial-gradient(ellipse at 50% 0%, rgba(244,67,54,.05) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 30%, rgba(255,215,0,.03) 0%, transparent 40%);
}

/* ========== 顶部红绸横幅 ========== */
.national-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    pointer-events: none;
    z-index: 1002;
    background: linear-gradient(90deg, #b71c1c, #e53935, #d32f2f, #f44336, #d32f2f, #e53935, #b71c1c);
    box-shadow: 0 2px 12px rgba(229,57,53,.3);
}

.national-banner::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    opacity: .6;
}

/* ========== 烟花 ========== */
.national-firework {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    z-index: 1003;
}

.national-firework-particle {
    position: absolute;
    border-radius: 50%;
    animation: nfBurst 2s ease-out forwards;
}

@keyframes nfBurst {
    0%   { transform: translate(0, 0) scale(1); opacity: .7; }
    40%  { opacity: .6; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* 烟花尾迹 */
.national-firework-trail {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ffd700;
    animation: nfTrail 1.2s ease-out forwards;
}

@keyframes nfTrail {
    0%   { transform: translate(0, 0) scale(1); opacity: .5; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* 烟花中心闪光 */
.national-firework-flash {
    position: absolute;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.9) 0%, rgba(255,255,200,.5) 30%, transparent 70%);
    animation: nfFlash .5s ease-out forwards;
    pointer-events: none;
}

@keyframes nfFlash {
    0%   { transform: scale(0); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* ========== 金星飘落 ========== */
.national-star {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    animation: starSpin 8s linear forwards;
    z-index: 1001;
    filter: drop-shadow(0 0 3px rgba(255,215,0,.25)) drop-shadow(0 0 8px rgba(255,152,0,.12));
}

.national-star svg {
    display: block;
}

@keyframes starSpin {
    0%   { transform: translateY(-40px) rotate(0deg) scale(.3); opacity: 0; }
    8%   { opacity: .6; }
    25%  { transform: translateY(16vh) rotate(72deg) scale(.8); }
    50%  { transform: translateY(38vh) rotate(180deg) scale(1); }
    75%  { transform: translateY(62vh) rotate(280deg) scale(.75); opacity: .5; }
    100% { transform: translateY(108vh) rotate(360deg) scale(.2); opacity: 0; }
}

/* 大金星 */
.national-big-star {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    animation: bigStarFall 10s linear forwards;
    z-index: 1001;
    filter: drop-shadow(0 0 5px rgba(255,215,0,.3)) drop-shadow(0 0 15px rgba(255,152,0,.15));
}

.national-big-star svg {
    display: block;
}

@keyframes bigStarFall {
    0%   { transform: translateY(-80px) rotate(0deg) scale(.15); opacity: 0; }
    8%   { opacity: .55; }
    20%  { transform: translateY(12vh) rotate(60deg) scale(.7); }
    45%  { transform: translateY(30vh) rotate(200deg) scale(1); }
    70%  { transform: translateY(55vh) rotate(320deg) scale(.8); opacity: .45; }
    100% { transform: translateY(108vh) rotate(450deg) scale(.15); opacity: 0; }
}

/* ========== 红绸飘带 ========== */
.national-ribbon {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    animation: ribbonFloat 12s linear forwards;
    z-index: 999;
    filter: drop-shadow(0 2px 4px rgba(183,28,28,.1));
}

.national-ribbon svg {
    display: block;
}

@keyframes ribbonFloat {
    0%   { transform: translateY(-30px) translateX(0) rotate(0deg); opacity: 0; }
    8%   { opacity: .5; }
    30%  { transform: translateY(18vh) translateX(20px) rotate(12deg); }
    60%  { transform: translateY(42vh) translateX(-15px) rotate(-8deg); }
    85%  { transform: translateY(70vh) translateX(25px) rotate(15deg); opacity: .4; }
    100% { transform: translateY(108vh) translateX(-10px) rotate(-20deg); opacity: 0; }
}

/* ========== 国庆标题 ========== */
.national-title {
    position: fixed;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
    font-size: 6.5rem;
    font-weight: normal;
    font-family: 'Ma Shan Zheng', 'STXingkai', 'STKaiti', 'KaiTi', '华文行楷', '楷体', cursive, serif;
    letter-spacing: .2em;
    background: linear-gradient(135deg, #d32f2f, #f44336, #ffd700, #d32f2f);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(211,47,47,.4), 0 0 50px rgba(255,215,0,.25);
    z-index: 1003;
    opacity: 0;
    animation: natTitleFade 5s ease-in-out forwards, natTitleShift 5s ease-in-out forwards;
    pointer-events: none;
    will-change: opacity, filter;
}

@keyframes natTitleShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes natTitleFade {
    0% { opacity: 0; filter: blur(12px); }
    15% { opacity: 1; filter: blur(0px); }
    80% { opacity: 1; filter: blur(0px); }
    100% { opacity: 0; filter: blur(4px); }
}

/* ========== 国庆主题颜色 ========== */
.national-mode {
    background: linear-gradient(180deg, #fff 0%, #fff5f5 30%, #fff8e1 60%, #fff 100%);
    color: #b71c1c;
}
.national-mode a { color: #c62828; }
.national-mode a:hover { color: #b71c1c; }
.national-mode .btn-primary {
    background: linear-gradient(135deg, #e53935, #c62828);
    border: none;
    box-shadow: 0 4px 15px rgba(229,57,53,.4);
    color: #fff;
}
.national-mode .btn-primary:hover {
    background: linear-gradient(135deg, #f44336, #b71c1c);
    box-shadow: 0 6px 20px rgba(229,57,53,.55);
}
.national-mode .card {
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(229,57,53,.12);
    box-shadow: 0 4px 20px rgba(229,57,53,.05);
}
.national-mode .card:hover { box-shadow: 0 8px 30px rgba(229,57,53,.1); }
.national-mode .navbar {
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(229,57,53,.15);
}
.national-mode .forum-category-btn {
    color: #c62828;
    background-color: rgba(229,57,53,.06);
    border-color: rgba(229,57,53,.15);
}
.national-mode .forum-category-btn:hover { background-color: rgba(229,57,53,.12); }
.national-mode .hint-text h3, .national-mode .hint-text p { color: #b71c1c; }
.national-mode .hint-box {
    background: rgba(255,255,255,.9) !important;
    border: 2px solid rgba(229,57,53,.12) !important;
    box-shadow: 0 10px 30px rgba(229,57,53,.04), 0 0 0 1px rgba(229,57,53,.03) inset !important;
}
.national-mode .hint-box:hover {
    background: rgba(255,255,255,.95) !important;
    border-color: rgba(229,57,53,.25) !important;
    box-shadow: 0 20px 40px rgba(229,57,53,.06), 0 0 0 1px rgba(229,57,53,.08) inset !important;
}
.national-mode .breadcrumb { color: #b71c1c; }
.national-mode .breadcrumb a { color: #c62828; }
body.national-mode .site-footer {
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,250,250,.92));
    border-top: 1px solid rgba(229,57,53,.2);
    color: #b71c1c;
}
body.national-mode .footer-heading { color: #c62828; text-shadow: 0 0 6px rgba(229,57,53,.2); }
body.national-mode .social-link {
    background-color: rgba(229,57,53,.06);
    border: 1px solid rgba(229,57,53,.2);
    color: #c62828;
}
body.national-mode .social-link:hover {
    background-color: rgba(229,57,53,.12);
    border-color: #b71c1c;
    color: #b71c1c;
    box-shadow: 0 5px 15px rgba(229,57,53,.2);
}
body.national-mode .footer-link { color: #c62828; }
body.national-mode .footer-link:hover { color: #b71c1c; }
body.national-mode .footer-copyright { color: rgba(183,28,28,.4); }

@media (max-width: 768px) {
    .national-title { font-size: 4.2rem; letter-spacing: .12em; }
}