/* ============================================================
   🍂 无聊的枣 · 全局样式
   所有页面的共用基础样式、毛玻璃组件、导航栏、响应式适配
   ============================================================ */

/* ===== 1. 全局重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== 2. 背景壁纸（全站共用） ===== */
.bg-wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* ★ 替换为你的必应壁纸链接 */
    background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.bg-wallpaper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.30);
    z-index: -1;
}

/* ============================================================
   3. 导航栏（两种模式）
   ============================================================ */

/* --- 3a. 全功能灵动岛（index.html / about.html） --- */
.dynamic-island {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 620px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.20);
    transition: all 0.3s ease;
}

.island-left {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.30);
}

.island-right {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    font-weight: 400;
}

.island-right a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
    letter-spacing: 0.5px;
}
.island-right a:hover {
    color: #ffffff;
    opacity: 1;
}

/* 特殊禁用状态（主页/关于） */
.island-right a.btn-disabled {
    color: #ffffff;
    font-weight: 600;
    opacity: 1;
    cursor: default;
    border-bottom: 2px solid rgba(255, 255, 255, 0.40);
}

/* --- 3b. 简化导航（仅返回按钮，用于 pages/ 下各子页面） --- */
.simple-island {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 620px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.20);
}

.simple-island .island-right a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.25s ease;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
    letter-spacing: 0.5px;
    font-size: 14px;
}
.simple-island .island-right a:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.40);
}

/* ============================================================
   4. 毛玻璃组件
   ============================================================ */

/* --- 4a. 通用毛玻璃卡片 --- */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    padding: 36px 40px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    width: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.35);
}

/* --- 4b. 首页专用玻璃标题框 --- */
.glass-box {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 28px;
    padding: 28px 56px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.glass-box:hover {
    transform: scale(1.02);
}
.glass-box h1 {
    font-size: 4.2rem;
    font-weight: 700;
    letter-spacing: 12px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.40);
    line-height: 1.2;
}

/* ============================================================
   5. 通用按钮
   ============================================================ */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 18px 48px;
    border-radius: 80px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: 3px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.20);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex: 0 1 auto;
    min-width: 150px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.20);
}
.btn:hover {
    transform: scale(1.08) translateY(-4px);
    border-color: rgba(255, 255, 255, 0.60);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.btn:active {
    transform: scale(0.96);
}

/* 按钮配色方案（对应首页五个入口） */
.btn-jujube   { background: rgba(190, 110,  80, 0.45); }
.btn-jujube:hover   { background: rgba(190, 110,  80, 0.80); }

.btn-porridge { background: rgba(215, 175, 115, 0.45); }
.btn-porridge:hover { background: rgba(215, 175, 115, 0.80); }

.btn-mumu     { background: rgba(130, 110,  90, 0.45); }
.btn-mumu:hover     { background: rgba(130, 110,  90, 0.80); }

.btn-grass    { background: rgba(100, 140,  80, 0.45); }
.btn-grass:hover    { background: rgba(100, 140,  80, 0.80); }

.btn-egg      { background: rgba(230, 190, 140, 0.45); }
.btn-egg:hover      { background: rgba(230, 190, 140, 0.80); }

/* ============================================================
   6. 规则卡片（用于各子页面的规则说明）
   ============================================================ */
.rules-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px 32px;
    width: 100%;
}
.rules-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.70);
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
}
.rules-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.rules-card li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    letter-spacing: 0.3px;
}
.rules-card li:last-child {
    border-bottom: none;
}
.rules-card li strong {
    color: #f5e3c4;
    font-weight: 500;
}

/* ============================================================
   7. 重置按钮（彩蛋 / 结算通用）
   ============================================================ */
.reset-btn {
    margin-top: 8px;
    padding: 14px 48px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 60px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.20);
}
.reset-btn:hover {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.40);
}
.reset-btn:active {
    transform: scale(0.94);
}

/* ============================================================
   8. 作弊指示器（grass.html / mumu.html 共用）
   ============================================================ */
.cheat-indicator {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 200, 50, 0.20);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 200, 50, 0.40);
    border-radius: 30px;
    padding: 6px 20px;
    color: #ffd966;
    font-size: 0.9rem;
    letter-spacing: 2px;
    z-index: 10;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.30);
}
.cheat-indicator.active {
    display: block;
}

/* ============================================================
   9. 隐藏辅助类
   ============================================================ */
.hidden {
    display: none !important;
}

/* ============================================================
   10. 响应式适配（全站共用）
   ============================================================ */
@media (max-width: 680px) {
    .dynamic-island,
    .simple-island {
        top: 16px;
        padding: 10px 18px;
        width: 94%;
        border-radius: 32px;
    }
    .island-left {
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    .island-right {
        gap: 12px;
        font-size: 12px;
    }
    .glass-box {
        padding: 20px 28px;
        border-radius: 20px;
    }
    .glass-box h1 {
        font-size: 2.6rem;
        letter-spacing: 6px;
    }
    .glass-card {
        padding: 24px 20px;
        border-radius: 24px;
    }
    .btn {
        padding: 14px 30px;
        font-size: 1.2rem;
        min-width: 120px;
    }
    .rules-card {
        padding: 18px 20px;
    }
    .rules-card li {
        font-size: 0.88rem;
    }
    .reset-btn {
        padding: 12px 32px;
        font-size: 1rem;
    }
    .cheat-indicator {
        top: 80px;
        font-size: 0.8rem;
        padding: 4px 14px;
    }
}

@media (max-width: 420px) {
    .glass-box h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }
    .island-right {
        gap: 8px;
        font-size: 11px;
    }
    .island-left {
        font-size: 12px;
    }
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 100px;
    }
    .cheat-indicator {
        top: 74px;
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}