/* =========================================
   1. 全局变量与基础设置 (Global & Variables)
   ========================================= */
:root {
    /* Minori 主题色 */
    --minori-orange: #FFAB76;
    --minori-deep: #FF8E53;
    --mmj-green: #88DD88;

    /* 渐变辅助色 */
    --gradient-start: #ffe0b3;
    --gradient-end: #ffb880;

    /* Apple 风格毛玻璃变量 */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --shadow-soft: 0 10px 40px rgba(255, 171, 118, 0.15);
    --shadow-hover: 0 20px 50px rgba(255, 171, 118, 0.25);
    --text-main: #1d1d1f;
    --apple-blur: 20px;

    /* 字体系统 */
    --font-heading: "Quicksand", "M PLUS Rounded 1c", sans-serif;
    --font-body: "Quicksand", "M PLUS Rounded 1c", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

    /* 动画与高级阴影 (Market Update) */
    --ease-spring: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-card: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-modal: 0 25px 60px rgba(0,0,0,0.4);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;

    /* 动态弥散背景 */
    background-color: #FFFBF5;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 171, 118, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(136, 221, 136, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255, 221, 170, 0.5) 0%, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    transition: background-color 1s ease;
}

/* =========================================
   2. 毛玻璃容器体系 (Glassmorphism System)
   ========================================= */

/* 通用容器 */
.section-container {
    max-width: 980px;
    margin: 60px auto;
    padding: 40px;
    
    background: var(--glass-bg);
    backdrop-filter: blur(var(--apple-blur));
    -webkit-backdrop-filter: blur(var(--apple-blur));
    
    border-radius: 24px;
    border: var(--glass-border);
    box-shadow: var(--shadow-soft);
    
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
}

.section-container.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 统一卡片样式 */
.news-card, .event-card, .message-card, .gallery-item, .info-item, .media-item {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 1) !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease !important;
}

.news-card:hover, .event-card:hover, .message-card:hover, .gallery-item:hover, .media-item:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: var(--shadow-hover) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    z-index: 10;
}

/* =========================================
   3. 标题与文本 (Typography)
   ========================================= */
h1, h2, h3, h4, h5, h6, .nav-brand, .btn, .hero-title, .section-title, .cheer-number, .fortune-message {
    font-family: var(--font-heading);
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--minori-orange), var(--minori-deep));
    border-radius: 2px;
}

.title-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-left: 10px;
    animation: rotateClover 4s linear infinite;
}

/* =========================================
   4. 按钮 (Buttons)
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    outline: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--minori-orange), var(--minori-deep));
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(255, 171, 118, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 171, 118, 0.6);
}

.btn-cheer {
    background-color: var(--mmj-green);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(136, 221, 136, 0.4);
}

.btn-cheer:hover {
    background-color: #9BE49B;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(136, 221, 136, 0.6);
}

.hero-btn-more {
    position: relative;
    padding-right: 45px;
    overflow: visible;
}

.hero-btn-more .btn-clover-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: rotateClover 10s linear infinite;
}

.hero-btn-more:hover .btn-clover-icon {
    transform: scale(1.2) rotate(20deg);
}

/* =========================================
   5. 导航栏 (Navbar) - 修复版
   ========================================= */
.main-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

.nav-brand {
    color: #1d1d1f;
    font-size: 1.5em;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: transform 0.2s ease;
    white-space: nowrap;
}
.nav-brand:hover { transform: scale(1.05); }

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px; /* 紧凑间距 */
}

/* 通用按钮 */
.nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: transparent;
}

.nav-item:hover {
    background: rgba(255, 171, 118, 0.15);
    color: var(--minori-deep);
}

.nav-item.active {
    background-color: var(--minori-orange);
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 171, 118, 0.3);
}
.nav-item.active:hover {
    background-color: var(--minori-deep);
    color: white;
}

/* 特殊按钮：登录 (绿色实心) */
.nav-item.btn-login {
    background: var(--mmj-green) !important;
    color: white !important;
    padding: 0 20px;
    box-shadow: 0 4px 10px rgba(136, 221, 136, 0.4);
    margin-left: 5px;
}
.nav-item.btn-login:hover {
    background: #66bb66 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(136, 221, 136, 0.6);
}

/* 特殊按钮：个人主页 (默认透明 -> 悬停绿色实心) */
.nav-item.btn-user {
    background: transparent !important;
    color: var(--mmj-green) !important;
    border: 1px solid transparent !important;
    gap: 6px;
    font-weight: 700;
    padding: 0 18px;
    margin-left: 5px;
    box-shadow: none;
}
.nav-item.btn-user:hover {
    background: var(--mmj-green) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(136, 221, 136, 0.4);
}

/* 特殊按钮：退出 (弱化) */
.nav-item.btn-logout {
    background: transparent !important;
    color: #aaa !important;
    padding: 0 8px;
    font-size: 0.85em;
}
.nav-item.btn-logout:hover {
    background: transparent !important;
    color: #FF6666 !important;
}

.nav-item::after { display: none; }

/* =========================================
   6. 底部 (Footer)
   ========================================= */
.main-footer {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: #666;
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-clover {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    font-weight: 600;
    color: var(--minori-orange);
}

.footer-clover .clover-icon {
    width: 25px;
    height: 25px;
    margin-right: 8px;
    animation: rotateClover 5s linear infinite reverse;
}

/* =========================================
   7. 首页 Hero 区域
   ========================================= */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 100px 20px;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    color: #1d1d1f;
    opacity: 0;
    transform: translateY(30px);
}

.hero-section.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-out, transform 0.8s ease-out;
}

.hero-section::before, .hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(40px);
    opacity: 0.7;
    animation: floatParticle 8s ease-in-out infinite alternate;
    z-index: 0;
}
.hero-section::before { width: 200px; height: 200px; top: 10%; left: 15%; animation-delay: 0s; }
.hero-section::after { width: 150px; height: 150px; bottom: 20%; right: 20%; animation-delay: 2s; }

.hero-image-wrapper {
    position: relative;
    width: 50%;
    max-width: 600px;
    z-index: 2;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transform: translateX(30px);
    opacity: 0;
}
.hero-section.is-visible .hero-image-wrapper {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.hero-image {
    max-height: 650px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 25px 50px rgba(255, 171, 118, 0.5));
    animation: floatEffect 3s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    max-width: 45%;
    padding-left: 20px;
    transform: translateY(-20px);
    opacity: 0;
}
.hero-section.is-visible .hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-out 0.5s, transform 0.8s ease-out 0.5s;
}

.hero-title {
    font-size: 5.5em;
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: -2.5px;
    line-height: 1.05;
    background: linear-gradient(135deg, var(--minori-deep) 0%, #FF6666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.hero-slogan {
    font-size: 1.8em;
    color: #444;
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-section.fade-in, .hero-section.slide-up { animation: none; opacity: 1; transform: none; }

/* =========================================
   8. 功能区域
   ========================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.news-date { font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 0.85em; color: #888; margin-bottom: 8px; display: block; text-transform: uppercase; }
.news-title { font-size: 1.2em; font-weight: 700; color: #333; line-height: 1.4; }

.fortune-box, .cheer-box {
    text-align: center;
    background: transparent;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border: 2px dashed rgba(255, 171, 118, 0.5);
}
.cheer-box { border-color: rgba(136, 221, 136, 0.5); }

.fortune-message {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--minori-deep);
    margin-bottom: 20px;
    min-height: 50px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.5s ease-out;
}
.clover-fortune-area { display: flex; flex-direction: column; align-items: center; }
.fortune-clover-btn { width: 90px; height: 90px; cursor: pointer; transition: transform 0.3s ease; filter: drop-shadow(0 10px 15px rgba(255, 171, 118, 0.3)); }
.fortune-clover-btn:hover { transform: scale(1.1); }
.fortune-level-display { margin-top: 15px; font-size: 1.2em; font-weight: bold; color: var(--mmj-green); min-height: 25px; }
.fortune-level-display::before { content: ''; display: inline-block; width: 25px; height: 25px; background-size: cover; margin-right: 8px; vertical-align: middle; }
.fortune-level-display[data-level="clover1.svg"]::before { background-image: url('../images/clover1.svg'); }
.fortune-level-display[data-level="clover2.svg"]::before { background-image: url('../images/clover2.svg'); }
.fortune-level-display[data-level="clover3.svg"]::before { background-image: url('../images/clover3.svg'); }
.fortune-level-display[data-level="clover4.svg"]::before { background-image: url('../images/clover4.svg'); }

.cheer-number {
    font-size: 3em;
    font-weight: 800;
    background: linear-gradient(to right, var(--minori-orange), var(--minori-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; margin: 0 10px; min-width: 80px;
    transition: transform 0.2s ease-out;
}
.cheer-number.pop { transform: scale(1.2); }

/* =========================================
   9. 档案页 (Profile)
   ========================================= */
.profile-hero {
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    color: #333;
    padding: 60px 20px;
    box-shadow: var(--shadow-soft);
    border: var(--glass-border);
    border-radius: 24px;
    margin-top: 40px;
    opacity: 0; transform: translateY(30px);
    animation: fadeIn 0.8s ease-out forwards;
}
.profile-title { font-size: 3.5em; margin-bottom: 5px; font-weight: 800; letter-spacing: -1px; }
.profile-unit { font-size: 1.5em; font-weight: 500; margin-bottom: 30px; color: #666; }
.profile-avatar { margin-top: 30px; display: inline-block; position: relative; }
.profile-image { width: 250px; height: 250px; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); animation: floatEffect 3s ease-in-out infinite alternate; }
.profile-info { margin-top: 50px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 30px; }
.info-item { padding: 20px; display: flex; justify-content: space-between; align-items: center; opacity: 0; transform: translateY(20px); border-left: 4px solid var(--minori-orange) !important; }
.info-item.is-visible { animation: fadeInUp 0.6s ease-out forwards; }
.info-item strong { color: var(--minori-deep); font-weight: 700; }
.profile-description { padding: 30px; margin-top: 30px; opacity: 0; transform: translateY(20px); }
.profile-description.is-visible { animation: fadeInUp 0.6s ease-out forwards; animation-delay: 0.5s; }
.profile-description h3 { color: var(--minori-deep); margin-top: 0; font-size: 1.5em; border-bottom: 1px solid rgba(0, 0, 0, 0.1); padding-bottom: 15px; margin-bottom: 15px; }

/* Timeline */
.timeline { position: relative; padding: 20px 0; margin-top: 30px; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: 100%; background-color: rgba(255, 171, 118, 0.5); transform: translateX(-50%); }
.timeline-item { position: relative; width: 50%; padding: 20px; box-sizing: border-box; margin-bottom: 40px; opacity: 0; transition: all 0.6s ease-out; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; transform: translateX(-50px) translateY(20px); }
.timeline-item:nth-child(even) { left: 50%; text-align: left; transform: translateX(50px) translateY(20px); }
.timeline-item.is-visible { opacity: 1; transform: translateX(0) translateY(0); }
.timeline-item::before { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background-color: var(--mmj-green); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--minori-orange); top: 28px; z-index: 1; }
.timeline-item:nth-child(odd)::before { right: -11px; }
.timeline-item:nth-child(even)::before { left: -11px; }
.timeline-year { font-size: 1.1em; font-weight: 800; color: var(--minori-deep); margin-bottom: 10px; background-color: rgba(255, 171, 118, 0.2); padding: 4px 12px; border-radius: 12px; display: inline-block; }
.timeline-content { background: rgba(255, 255, 255, 0.8); padding: 20px; border-radius: 18px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); border-left: 5px solid var(--mmj-green); }

/* =========================================
   10. 相册 (Gallery)
   ========================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; margin-top: 20px; }
.image-wrapper { position: relative; overflow: hidden; height: 180px; cursor: pointer; border-radius: 18px 18px 0 0; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.image-wrapper:hover .gallery-img { transform: scale(1.1); }
.img-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 171, 118, 0.4); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; color: white; font-weight: bold; letter-spacing: 1px; }
.image-wrapper:hover .img-overlay { opacity: 1; }
.gallery-caption { padding: 15px; text-align: center; font-size: 0.9em; color: #666; border-top: 1px solid rgba(0, 0, 0, 0.05); font-weight: 500; }
.gallery-filter { text-align: center; margin-bottom: 20px; }
.btn-filter { background: rgba(255, 255, 255, 0.5); border: 1px solid var(--minori-orange); border-radius: 20px; padding: 6px 18px; color: var(--minori-orange); cursor: pointer; margin: 0 5px; font-family: inherit; font-weight: 600; transition: all 0.3s ease; }
.btn-filter.active, .btn-filter:hover { background: var(--minori-orange); color: white; box-shadow: 0 4px 10px rgba(255, 171, 118, 0.4); }

/* Lightbox (基础兼容) */
.lightbox { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); justify-content: center; align-items: center; flex-direction: column; animation: fadeIn 0.3s; }
.lightbox-content { max-width: 90%; max-height: 80vh; border: none; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
#lightbox-caption { margin-top: 20px; color: white; font-size: 1.2em; font-weight: 600; }
.close-btn { position: absolute; top: 30px; right: 40px; color: rgba(255, 255, 255, 0.7); font-size: 40px; font-weight: 200; cursor: pointer; transition: 0.3s; }
.close-btn:hover { color: #fff; transform: scale(1.1); }

/* =========================================
   11. 留言板 (Messages)
   ========================================= */
.message-form-box { background: rgba(255, 255, 255, 0.6); padding: 30px; border-radius: 24px; border: 1px solid rgba(255, 171, 118, 0.3); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; box-shadow: var(--shadow-soft); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 12px; font-family: inherit; box-sizing: border-box; background: rgba(255, 255, 255, 0.9); transition: border 0.3s ease; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--minori-orange); box-shadow: 0 0 0 3px rgba(255, 171, 118, 0.2); }
.form-textarea { height: 120px; resize: vertical; }
.messages-list { display: flex; flex-direction: column; gap: 20px; }
.message-card { padding: 20px 24px; border-left-width: 5px !important; }
.msg-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9em; color: #888; }
.msg-name { font-weight: 700; color: #333; font-size: 1.1em; }
.msg-content { font-size: 1.05em; color: #444; line-height: 1.6; }
.msg-decoration { position: absolute; bottom: 15px; right: 20px; opacity: 0.2; font-size: 1.8em; }
.message-card.group-theme { border-left-color: #88DD88 !important; background: rgba(240, 255, 240, 0.85) !important; }
.message-card.minori-theme { border-left-color: #FFAB76 !important; background: rgba(255, 249, 245, 0.85) !important; }
.message-card.haruka-theme { border-left-color: #66AAFF !important; background: rgba(240, 248, 255, 0.85) !important; }
.message-card.airi-theme { border-left-color: #FF88AA !important; background: rgba(255, 240, 245, 0.85) !important; }
.message-card.shizuku-theme { border-left-color: #77EEDD !important; background: rgba(240, 255, 255, 0.85) !important; }

/* =========================================
   12. 活动攻略页 (Events)
   ========================================= */
.events-list { display: flex; flex-direction: column; gap: 40px; }
.event-status { position: absolute; top: 20px; left: 20px; padding: 6px 18px; border-radius: 30px; color: white; font-weight: 700; font-size: 0.85em; z-index: 10; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); backdrop-filter: blur(5px); }
.status-ongoing { background-color: #FF6666; animation: pulse 2s infinite; }
.status-upcoming { background-color: #FFAB76; }
.status-ended { background-color: #999; }
.event-body { display: flex; flex-wrap: wrap; }
.event-image-box { flex: 1; min-width: 300px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 18px 0 0 18px; }
@media (max-width: 600px) { .event-image-box { border-radius: 18px 18px 0 0; } }
.event-banner { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.event-card:hover .event-banner { transform: scale(1.05); }
.event-info { flex: 1; min-width: 300px; padding: 30px; display: flex; flex-direction: column; }
.event-heading { margin-top: 0; margin-bottom: 10px; color: #1d1d1f; font-size: 1.6em; font-weight: 700; }
.event-date { font-family: "Quicksand", sans-serif; color: #888; font-size: 0.9em; margin-bottom: 20px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); padding-bottom: 15px; font-weight: 600; }
.strategy-box { background: rgba(0, 0, 0, 0.02); border-radius: 12px; padding: 15px; margin-bottom: 20px; }
.strategy-row { display: flex; margin-bottom: 10px; align-items: center; }
.strategy-label { font-weight: 600; color: #666; width: 100px; flex-shrink: 0; }
.strategy-value { color: #333; font-weight: 500; }
.attr-badge { display: inline-block; padding: 4px 12px; border-radius: 6px; color: white; font-size: 0.85em; font-weight: 600; }
.attr-pure { background-color: #44BB44; }
.attr-cute { background-color: #FF6699; }
.attr-cool { background-color: #3366CC; }
.attr-happy { background-color: #FF9900; }
.attr-mysterious { background-color: #884499; }
.event-desc { background: rgba(255, 171, 118, 0.1); padding: 20px; border-radius: 12px; font-size: 0.95em; line-height: 1.6; border-left: 4px solid var(--minori-orange); white-space: pre-line; }

/* === 翻转卡片 === */
.detail-banner-wrapper { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); margin-bottom: 30px; }
.detail-banner { width: 100%; display: block; }
.detail-title { font-size: 2.5em; color: #1d1d1f; margin: 15px 0; text-align: center; font-weight: 800; }
.detail-date { font-family: "Quicksand", sans-serif; text-align: center; color: #888; margin-bottom: 25px; font-weight: 600; }
.detail-tags { text-align: center; margin-bottom: 35px; }
.detail-desc { background: rgba(255, 255, 255, 0.5); padding: 30px; border-radius: 18px; border-left: 5px solid var(--minori-orange); line-height: 1.8; white-space: pre-line; color: #444; }
.tag { display: inline-block; padding: 6px 16px; border-radius: 20px; color: white; font-weight: 700; margin: 0 5px; font-size: 0.9em; }
.type-tag { background-color: #aaa; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 30px; }
.gacha-card-container { display: flex; flex-direction: column; align-items: center; height: auto; }
.flip-card { background-color: transparent; width: 300px; height: 180px; perspective: 1000px; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); }
.flip-card-front img, .flip-card-back img { width: 100%; height: 100%; object-fit: cover; }
.flip-card-back { transform: rotateY(180deg); }
.card-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); color: white; padding: 4px 10px; border-radius: 6px; font-size: 0.75em; font-weight: 600; }
.card-info { background: rgba(255, 255, 255, 0.9); width: 300px; padding: 20px; margin-top: 20px; border-radius: 16px; box-shadow: var(--shadow-soft); border-top: 4px solid var(--minori-orange); text-align: center; backdrop-filter: blur(10px); overflow-wrap: break-word; }
.char-name { color: #FF6666; margin: 0; font-size: 1.2em; font-weight: 700; }
.card-title { color: #555; margin: 8px 0 15px 0; font-size: 0.95em; font-weight: 600; }
.card-story { font-size: 0.85em; color: #555; line-height: 1.6; text-align: left; white-space: pre-wrap; padding-top: 12px; border-top: 1px dashed rgba(0, 0, 0, 0.1); font-family: "SF Mono", "Menlo", "Monaco", "Courier New", monospace; }

/* === 动画 (Animations) === */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes rotateClover { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes floatEffect { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
@keyframes floatParticle { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(20px, 30px) scale(1.1); } 66% { transform: translate(-10px, -20px) scale(0.9); } 100% { transform: translate(0, 0) scale(1); } }
.animate-pulse { animation: pulse 2s infinite; }
.pulse-effect:hover { animation: pulse 0.8s infinite; }
.fade-in { animation: fadeIn 1s ease-out forwards; opacity: 0; }
.slide-up { animation: slideUp 0.8s ease-out forwards; opacity: 0; }

/* =========================================
   13. 移动端适配 (Responsive Mobile)
   ========================================= */
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1100; }
.menu-toggle .bar { width: 100%; height: 3px; background-color: #333; border-radius: 3px; transition: all 0.3s ease; }

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 70%; height: 100vh; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center; gap: 25px; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1); margin-top: 0; padding: 0; }
    .nav-links.mobile-active { right: 0; }
    .nav-item { font-size: 1.2em; padding: 12px 30px; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .hero-section { flex-direction: column; padding: 80px 20px 40px 20px; min-height: 500px; text-align: center; }
    .hero-content { order: 1; margin-top: 0; margin-bottom: 30px; text-align: center; max-width: 100%; padding-left: 0; transform: none; opacity: 1; z-index: 3; }
    .hero-title { font-size: 3em; letter-spacing: -1.5px; }
    .hero-slogan { font-size: 1.3em; margin-bottom: 25px; }
    .hero-image-wrapper { order: 2; position: relative; width: 90%; max-width: 300px; margin: 0 auto; right: auto; bottom: auto; transform: none; opacity: 1; }
    .hero-image { max-height: 380px; filter: drop-shadow(0 15px 30px rgba(255, 171, 118, 0.4)); }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .hero-btn-more { padding-right: 35px; }
    .hero-btn-more .btn-clover-icon { width: 30px; height: 30px; top: -3px; right: -3px; }

    .section-container { margin: 30px 15px; padding: 25px 20px; border-radius: 20px; }
    .section-title { font-size: 1.8em; }
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 50px; padding-right: 10px; text-align: left !important; transform: translateY(20px); }
    .timeline-item:nth-child(odd)::before, .timeline-item:nth-child(even)::before { left: 12px; right: auto; }
    .event-body { flex-direction: column; }
    .event-image-box { min-width: 100%; border-radius: 18px 18px 0 0; min-height: 180px; }
    .event-info { padding: 20px; }
    .flip-card { width: 100%; max-width: 320px; height: 190px; margin: 0 auto; }
    .card-info { width: 100%; max-width: 320px; }
    .btn { padding: 12px 24px; font-size: 0.95em; }
    .cheer-number { font-size: 2.2em; }
    
    /* Showcase 强制双列 */
    .collection-grid, .detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 5px; }
    .hero-stage { height: 380px; }
    .album-card-container { height: 240px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5em; }
    .btn { width: 100%; margin-bottom: 10px; display: block; text-align: center; }
    .hero-content div { display: block !important; }
    .footer-clover { font-size: 0.9em; }
}

/* === 登录锁定特效 === */
.blur-lock { filter: blur(10px); pointer-events: none; user-select: none; opacity: 0.6; transition: all 0.5s ease; }
.login-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; display: flex; justify-content: center; align-items: center; }
.login-card { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); padding: 40px; border-radius: 24px; text-align: center; box-shadow: 0 20px 60px rgba(255, 171, 118, 0.4); border: 1px solid rgba(255,255,255,1); max-width: 300px; width: 90%; }