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

/* 夏季主题样式 — 荷花 / 知了 / 气泡 */

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

.lotus-petal {
    position: absolute;
    top: -10px;
    width: 14px;
    height: 24px;
    border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
    pointer-events: none;
    opacity: 0;
    animation: petalFall linear forwards;
    will-change: transform, opacity;
}

@keyframes petalFall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(.8);
        opacity: .8;
    }
    15% {
        transform: translateY(15vh) translateX(25px) rotate(50deg) scale(1);
        opacity: .75;
    }
    35% {
        transform: translateY(35vh) translateX(-20px) rotate(130deg) scale(1.05);
        opacity: .7;
    }
    55% {
        transform: translateY(55vh) translateX(35px) rotate(220deg) scale(.95);
        opacity: .55;
    }
    75% {
        transform: translateY(78vh) translateX(-25px) rotate(310deg) scale(.75);
        opacity: .3;
    }
    100% {
        transform: translateY(110vh) translateX(15px) rotate(400deg) scale(.4);
        opacity: 0;
    }
}

/* ========== 知了容器 ========== */
#cicada-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.cicada {
    position: absolute;
    width: 22px;
    height: 28px;
    pointer-events: none;
    animation: cicadaVibrate .25s ease-in-out infinite alternate,
               cicadaSway 8s ease-in-out infinite;
}

.cicada-body {
    position: absolute;
    top: 3px;
    left: 5px;
    width: 12px;
    height: 20px;
    border-radius: 50% 50% 25% 25%;
    background: linear-gradient(135deg, #6d4c41, #4e342e);
}

.cicada-wing-left,
.cicada-wing-right {
    position: absolute;
    top: 1px;
    width: 12px;
    height: 18px;
    border-radius: 55% 35% 55% 35%;
    background: linear-gradient(135deg, rgba(190, 215, 235, .5), rgba(230, 245, 255, .25));
    border: 1px solid rgba(160, 190, 210, .4);
}

.cicada-wing-left {
    left: 0;
    transform: rotate(-20deg);
}

.cicada-wing-right {
    right: 0;
    transform: rotate(20deg);
}

.cicada-eye {
    position: absolute;
    top: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ff6d00;
    box-shadow: 0 0 2px rgba(255, 109, 0, .5);
}

.cicada-eye.left {
    left: 5px;
}

.cicada-eye.right {
    right: 5px;
}

@keyframes cicadaVibrate {
    0% { transform: translateX(0); }
    100% { transform: translateX(2px); }
}

@keyframes cicadaSway {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    25% { transform: translateY(-8px) rotate(2deg); }
    50% { transform: translateY(0) rotate(-1deg); }
    75% { transform: translateY(-5px) rotate(3deg); }
}

/* ========== 气泡容器 ========== */
#bubble-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 997;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -40px;
    border-radius: 50%;
    pointer-events: none;
    animation: bubbleRise ease-in forwards;
}

.bubble::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 30%;
    height: 25%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    transform: rotate(-30deg);
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) translateX(0) scale(.7);
        opacity: .7;
    }
    40% {
        transform: translateY(-40vh) translateX(25px) scale(1);
        opacity: .5;
    }
    100% {
        transform: translateY(-110vh) translateX(-15px) scale(.3);
        opacity: 0;
    }
}

/* ========== 夏日标题 ========== */
.summer-title {
    position: fixed;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%) rotate(-3deg) skewX(-5deg);
    font-size: 8rem;
    font-weight: normal;
    font-family: 'Ma Shan Zheng', 'STXingkai', 'STKaiti', 'KaiTi', '华文行楷', '楷体', 'FangSong', '仿宋', cursive, serif;
    letter-spacing: .15em;
    background: linear-gradient(135deg, #00bcd4, #26a69a, #66bb6a, #29b6f6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(0, 188, 212, .5), 0 0 40px rgba(38, 166, 154, .4);
    -webkit-text-stroke: 1px rgba(0, 188, 212, .15);
    z-index: 1003;
    opacity: 0;
    animation: summerTitleFade 5s ease-in-out forwards,
               titleGradientShift 5s ease-in-out forwards;
    pointer-events: none;
    will-change: opacity, filter;
}

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

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

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

/* ========== 夏日页面背景 ========== */
.summer-mode {
    background: linear-gradient(180deg, #e0f7fa 0%, #e8f5e9 30%, #b2dfdb 60%, #b3e5fc 100%);
    color: #00695c;
}

.summer-mode a {
    color: #00897b;
}

.summer-mode a:hover {
    color: #00695c;
}

/* ========== 按钮 ========== */
.summer-mode .btn-primary {
    background: linear-gradient(135deg, #26c6da, #26a69a);
    border: none;
    box-shadow: 0 4px 15px rgba(38, 166, 154, .35);
    color: #fff;
}

.summer-mode .btn-primary:hover {
    background: linear-gradient(135deg, #00bcd4, #00897b);
    box-shadow: 0 6px 20px rgba(38, 166, 154, .5);
}

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

.summer-mode .card:hover {
    box-shadow: 0 8px 30px rgba(0, 188, 212, .18);
}

/* ========== 阳光柔光 ========== */
.summer-mode::before {
    content: '';
    position: fixed;
    top: -25%;
    left: -10%;
    width: 65%;
    height: 65%;
    background: radial-gradient(circle, rgba(224, 247, 250, .4) 0%, rgba(178, 235, 242, .15) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: sunGlowSummer 8s ease-in-out infinite alternate;
}

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

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

/* ========== 页脚 ========== */
body.summer-mode .site-footer {
    background: linear-gradient(180deg, rgba(224, 247, 250, .95), rgba(178, 235, 242, .92));
    border-top: 1px solid rgba(0, 188, 212, .25);
    color: #00695c;
}

body.summer-mode .footer-heading {
    color: #00838f;
    text-shadow: 0 0 6px rgba(0, 188, 212, .3);
}

body.summer-mode .social-link {
    background-color: rgba(0, 188, 212, .08);
    border: 1px solid rgba(0, 188, 212, .25);
    color: #00838f;
}

body.summer-mode .social-link:hover {
    background-color: rgba(0, 188, 212, .18);
    border-color: #00bcd4;
    color: #006064;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 188, 212, .25);
}

body.summer-mode .footer-link {
    color: #00838f;
}

body.summer-mode .footer-link:hover {
    color: #004d40;
    text-decoration: underline;
    text-decoration-color: #00bcd4;
}

body.summer-mode .footer-copyright {
    color: rgba(0, 105, 92, .55);
}

.summer-mode .forum-category-btn {
    color: #00897b;
    background-color: rgba(0, 188, 212, .08);
    border-color: rgba(0, 188, 212, .2);
}

.summer-mode .forum-category-btn:hover {
    background-color: rgba(0, 188, 212, .15);
}

.summer-mode .hint-text h3,
.summer-mode .hint-text p {
    color: #00695c;
}

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

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

.summer-mode .breadcrumb {
    color: #00796b;
}

.summer-mode .breadcrumb a {
    color: #00897b;
}

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