/* 秋季动画效果样式 — 硕果累累 */

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

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

/* 果实容器 */
#autumn-fruit-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

/* 落叶 */
.autumn-leaf {
    position: absolute;
    top: -10px;
    pointer-events: none;
    opacity: 0;
    animation: autumnLeafFall linear forwards;
    will-change: transform, opacity;
}

.autumn-leaf::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 5% 60% 5% 60%;
    background: var(--leaf-color, #d4a017);
}

@keyframes autumnLeafFall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(.8);
        opacity: .8;
    }
    15% {
        transform: translateY(15vh) translateX(20px) rotate(55deg) scale(1);
        opacity: .75;
    }
    35% {
        transform: translateY(35vh) translateX(-18px) rotate(130deg) scale(1);
        opacity: .7;
    }
    55% {
        transform: translateY(55vh) translateX(25px) rotate(220deg) scale(.9);
        opacity: .55;
    }
    75% {
        transform: translateY(78vh) translateX(-20px) rotate(310deg) scale(.75);
        opacity: .3;
    }
    100% {
        transform: translateY(110vh) translateX(12px) rotate(400deg) scale(.5);
        opacity: 0;
    }
}

/* 果实 */
.autumn-fruit {
    position: absolute;
    top: -10px;
    pointer-events: none;
    opacity: 0;
    animation: fruitFall linear forwards;
    will-change: transform, opacity;
}

/* 柿子 */
.fruit-persimmon {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 35% 35%, #ff8f00, #e65100);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 143, 0, .3), inset 0 -3px 5px rgba(0, 0, 0, .15);
}

.fruit-persimmon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #5d4037;
    border-radius: 50% 50% 0 0;
}

/* 苹果 */
.fruit-apple {
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at 35% 35%, #ff5252, #b71c1c);
    border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
    box-shadow: 0 0 8px rgba(255, 82, 82, .3), inset 0 -3px 5px rgba(0, 0, 0, .15);
}

.fruit-apple::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 5px;
    background: #4e342e;
    border-radius: 1px;
}

/* 橘子 */
.fruit-orange {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 35% 35%, #ffb74d, #e65100);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 183, 77, .3), inset 0 -3px 5px rgba(0, 0, 0, .12);
}

.fruit-orange::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 4px;
    background: #33691e;
    border-radius: 50%;
}

@keyframes fruitFall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: .85;
    }
    25% {
        transform: translateY(30vh) translateX(18px) rotate(100deg);
        opacity: .75;
    }
    55% {
        transform: translateY(60vh) translateX(-12px) rotate(220deg);
        opacity: .55;
    }
    100% {
        transform: translateY(110vh) translateX(8px) rotate(360deg);
        opacity: 0;
    }
}

/* 秋季模糊效果 */
.autumn-mode .slider-container {
    filter: blur(1.5px);
    transition: filter 2s ease-in-out;
    background: transparent !important;
}

/* 秋季标题 */
.autumn-title {
    position: fixed;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%) rotate(-2deg) skewX(-4deg);
    font-size: 8rem;
    font-weight: normal;
    font-family: 'Ma Shan Zheng', 'STXingkai', 'STKaiti', 'KaiTi', '华文行楷', '楷体', 'FangSong', '仿宋', cursive, serif;
    letter-spacing: .15em;
    background: linear-gradient(135deg, #d4a017, #ff8f00, #ffb74d, #e65100);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(212, 160, 23, .5), 0 0 40px rgba(255, 143, 0, .4);
    -webkit-text-stroke: 1px rgba(212, 160, 23, .15);
    z-index: 1003;
    opacity: 0;
    animation: autumnTitleFade 5s ease-in-out forwards,
               autumnTitleGradientShift 5s ease-in-out forwards;
    pointer-events: none;
    will-change: opacity, filter;
}

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

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

/* 秋季模式背景 */
.autumn-mode {
    background: linear-gradient(180deg, #fff8e1 0%, #fff3e0 30%, #fbe9e7 60%, #ffecb3 100%);
    color: #5d4037;
}

.autumn-mode a {
    color: #e65100;
}

.autumn-mode a:hover {
    color: #bf360c;
}

/* 按钮 */
.autumn-mode .btn-primary {
    background: linear-gradient(135deg, #ff8f00, #e65100);
    border: none;
    box-shadow: 0 4px 15px rgba(230, 81, 0, .35);
    color: #fff;
}

.autumn-mode .btn-primary:hover {
    background: linear-gradient(135deg, #ffa726, #d84315);
    box-shadow: 0 6px 20px rgba(230, 81, 0, .5);
}

/* 卡片 */
.autumn-mode .card {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 143, 0, .2);
    box-shadow: 0 4px 20px rgba(255, 143, 0, .1);
}

.autumn-mode .card:hover {
    box-shadow: 0 8px 30px rgba(255, 143, 0, .18);
}

/* 暖阳光晕 */
.autumn-mode::before {
    content: '';
    position: fixed;
    top: -25%;
    right: -10%;
    width: 65%;
    height: 65%;
    background: radial-gradient(circle, rgba(255, 224, 130, .35) 0%, rgba(255, 183, 77, .12) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: sunGlowAutumn 8s ease-in-out infinite alternate;
}

@keyframes sunGlowAutumn {
    0% { opacity: .7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* 导航栏 */
.autumn-mode .navbar {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(255, 143, 0, .2);
}

/* 论坛按钮 */
.autumn-mode .forum-category-btn {
    color: #e65100;
    background-color: rgba(255, 143, 0, .08);
    border-color: rgba(255, 143, 0, .2);
}

.autumn-mode .forum-category-btn:hover {
    background-color: rgba(255, 143, 0, .15);
}

.autumn-mode .hint-text h3,
.autumn-mode .hint-text p {
    color: #5d4037;
}

.autumn-mode .hint-box {
    background: rgba(255, 255, 255, .85) !important;
    border: 2px solid rgba(255, 143, 0, .2) !important;
    box-shadow: 0 10px 30px rgba(255, 143, 0, .08), 0 0 0 1px rgba(255, 143, 0, .08) inset !important;
}

.autumn-mode .hint-box:hover {
    background: rgba(255, 255, 255, .92) !important;
    border-color: rgba(255, 143, 0, .35) !important;
    box-shadow: 0 20px 40px rgba(255, 143, 0, .12), 0 0 0 1px rgba(255, 143, 0, .15) inset !important;
}

.autumn-mode .breadcrumb {
    color: #e65100;
}

.autumn-mode .breadcrumb a {
    color: #d84315;
}

/* 页脚 */
body.autumn-mode .site-footer {
    background: linear-gradient(180deg, rgba(255, 248, 225, .95), rgba(255, 243, 224, .92));
    border-top: 1px solid rgba(255, 143, 0, .25);
    color: #5d4037;
}

body.autumn-mode .footer-heading {
    color: #e65100;
    text-shadow: 0 0 6px rgba(255, 143, 0, .3);
}

body.autumn-mode .social-link {
    background-color: rgba(255, 143, 0, .08);
    border: 1px solid rgba(255, 143, 0, .25);
    color: #e65100;
}

body.autumn-mode .social-link:hover {
    background-color: rgba(255, 143, 0, .18);
    border-color: #ff8f00;
    color: #bf360c;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 143, 0, .25);
}

body.autumn-mode .footer-link {
    color: #e65100;
}

body.autumn-mode .footer-link:hover {
    color: #bf360c;
    text-decoration: underline;
    text-decoration-color: #ff8f00;
}

body.autumn-mode .footer-copyright {
    color: rgba(93, 64, 55, .55);
}

/* 手机端标题适配 */
@media (max-width: 768px) {
    .autumn-title {
        font-size: 5.5rem;
        letter-spacing: .12em;
        -webkit-text-stroke: 0.5px rgba(212, 160, 23, .12);
    }
}