/* home3.css - 两罐王的秘密空间 · 首页3（紫罗兰星云主题） */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 星云主题色 */
    --primary-bg: #150a2e;
    --secondary-bg: #1e1140;
    --surface-bg: #2a1850;

    /* 紫罗兰色系（柔和化） */
    --neon-blue: #b388eb;
    --neon-purple: #e879f9;
    --neon-pink: #c4b5fd;
    --neon-cyan: #a78bfa;

    /* 文字颜色 */
    --text-primary: #efe9ff;
    --text-secondary: #cdbfee;
    --text-muted: #9a8fc0;

    /* 特效 */
    --glow-blue: rgba(179, 136, 235, 0.3);
    --card-glow: 0 0 30px rgba(179, 136, 235, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(232, 121, 249, 0.16) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(179, 136, 235, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary-bg) 0%, #1e1140 100%);
}

/* 星空背景 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.5;
    animation: twinkle ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 主容器 */
.universe-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ===== 导航栏 ===== */
.nav-bar {
    background: rgba(30, 17, 64, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(179, 136, 235, 0.28);
    border-radius: 20px;
    padding: 18px 28px;
    margin-bottom: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    box-shadow: var(--card-glow);
    position: relative;
    overflow: hidden;
}

.nav-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-purple), var(--neon-blue), transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg,
        var(--neon-blue) 0%,
        var(--neon-purple) 25%,
        var(--neon-pink) 50%,
        var(--neon-cyan) 75%,
        var(--neon-blue) 100%);
    background-size: 200% auto;
    animation: gradientShift 5s linear infinite;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-bg);
}

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--neon-cyan);
    background: rgba(179, 136, 235, 0.12);
}

.nav-link.active {
    color: var(--neon-blue);
    background: rgba(179, 136, 235, 0.18);
}

.nav-link i {
    font-size: 17px;
}

/* ===== 英雄区域 ===== */
.hero-section {
    background: rgba(42, 24, 80, 0.5);
    border: 1px solid rgba(179, 136, 235, 0.3);
    border-radius: 25px;
    padding: 44px 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-glow);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(179,136,235,0.06)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* 紫色星球装饰（带土星环） */
.hero-orb {
    position: absolute;
    bottom: -70px;
    right: -45px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #e9d5ff, #a855f7 55%, #4c1d95 90%);
    box-shadow: 0 0 90px rgba(168, 85, 247, 0.55), inset -22px -22px 60px rgba(0, 0, 0, 0.5);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.hero-orb .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    height: 120px;
    border: 2px solid rgba(232, 121, 249, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
}

@media (max-width: 600px) {
    .hero-orb { display: none; }
}

/* 紫晶方块装饰（百化分训练右侧，漂浮水晶） */
.crystal-cube {
    position: absolute;
    top: 240px;
    left: 400px;
    width: 120px;
    height: 120px;
    perspective: 600px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
    animation: crystalFloat 6s ease-in-out infinite;
}

.crystal-cube .cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: crystalFlip 18s ease-in-out infinite;
}

.crystal-cube .face {
    position: absolute;
    inset: 0;
    border: 2px solid var(--neon-purple);
    background: rgba(232, 121, 249, 0.16);
    box-shadow: 0 0 22px rgba(232, 121, 249, 0.35);
}

.crystal-cube .face.front  { transform: translateZ(60px); }
.crystal-cube .face.back   { transform: rotateY(180deg) translateZ(60px); }
.crystal-cube .face.right  { transform: rotateY(90deg) translateZ(60px); }
.crystal-cube .face.left   { transform: rotateY(-90deg) translateZ(60px); }
.crystal-cube .face.top    { transform: rotateX(90deg) translateZ(60px); }
.crystal-cube .face.bottom { transform: rotateX(-90deg) translateZ(60px); }

@keyframes crystalFlip {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes crystalFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@media (max-width: 900px) {
    .crystal-cube { display: none; }
}

.hero-title {
    font-family: 'Orbitron', 'Exo 2', sans-serif;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-title i {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 国考倒计时标题：流动渐变（贴合紫罗兰色系） */
.hero-main {
    display: inline-block;
    background: linear-gradient(135deg,
        var(--neon-blue) 0%,
        var(--neon-purple) 25%,
        var(--neon-pink) 50%,
        var(--neon-cyan) 75%,
        var(--neon-blue) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 5s linear infinite;
}

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

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 26px;
}

/* 倒计时 */
.countdown-section {
    display: flex;
    gap: 16px;
    margin: 10px 0 30px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(179, 136, 235, 0.28);
    border-radius: 14px;
    padding: 16px 20px;
    min-width: 86px;
    transition: var(--transition);
}

.countdown-item:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px var(--glow-blue);
}

.countdown-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: var(--neon-blue);
    text-shadow: 0 0 8px rgba(179, 136, 235, 0.35);
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 13px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 15px;
    font-family: inherit;
}

.hero-btn.primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: var(--primary-bg);
    box-shadow: 0 0 24px var(--glow-blue);
}

.hero-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 36px var(--glow-blue);
}

.hero-btn.secondary {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
}

.hero-btn.secondary:hover {
    background: rgba(167, 139, 250, 0.1);
    transform: translateY(-3px);
}

/* 国考倒计时主按钮（申论背诵，cta-btn 渐变 + 涟漪） */
.cta-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn.primary {
    background: linear-gradient(135deg,
        var(--neon-blue) 0%,
        var(--neon-purple) 25%,
        var(--neon-pink) 50%,
        var(--neon-cyan) 75%,
        var(--neon-blue) 100%);
    background-size: 200% auto;
    animation: gradientShift 5s linear infinite;
    color: var(--primary-bg);
    box-shadow: 0 0 30px var(--glow-blue);
}

.cta-btn.primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 40px var(--glow-blue);
}

.energy-wave {
    position: relative;
}

.energy-wave::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: waveExpand 2s ease-out infinite;
    pointer-events: none;
}

@keyframes waveExpand {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 150px; height: 150px; opacity: 0; }
}

/* 每日打卡 */
.hero-checkin {
    display: flex;
}

.checkin-card {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(232, 121, 249, 0.35);
    border-radius: 16px;
    padding: 22px;
    backdrop-filter: blur(6px);
}

.checkin-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--neon-purple);
}

.checkin-date {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: auto;
}

.checkin-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.checkin-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    border: 1px solid transparent;
}

.checkin-item:hover {
    background: rgba(179, 136, 235, 0.12);
    border-color: rgba(179, 136, 235, 0.25);
}

.checkin-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(239, 233, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: transparent;
    flex-shrink: 0;
    transition: var(--transition);
}

.checkin-item.checked .checkin-box {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #fff;
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.5);
}

.checkin-item.checked .checkin-label {
    text-decoration: line-through;
    opacity: 0.6;
}

.checkin-label {
    font-size: 14px;
    color: var(--text-primary);
}

.checkin-rate {
    margin-left: auto;
    width: 76px;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid rgba(179, 136, 235, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
    font-size: 13px;
    text-align: center;
    font-family: inherit;
    cursor: text;
}

.checkin-rate:focus {
    outline: none;
    border-color: rgba(179, 136, 235, 0.7);
}

.checkin-rate::placeholder {
    color: var(--text-muted);
    font-size: 12px;
}

.checkin-note {
    margin-left: auto;
    flex: 1;
    max-width: 200px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(179, 136, 235, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    cursor: text;
}

.checkin-note:focus {
    outline: none;
    border-color: rgba(179, 136, 235, 0.7);
}

.checkin-note::placeholder {
    color: var(--text-muted);
    font-size: 12px;
}

.checkin-footer {
    display: flex;
    justify-content: center;
}

.checkin-history-btn {
    background: rgba(232, 121, 249, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(232, 121, 249, 0.4);
    border-radius: 8px;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
    font-family: inherit;
}

.checkin-history-btn:hover {
    background: rgba(232, 121, 249, 0.3);
    color: #fff;
}

/* 打卡历史弹窗 */
.checkin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.checkin-modal.open {
    display: flex;
}

.checkin-modal-content {
    background: #1e1140;
    border: 1px solid rgba(179, 136, 235, 0.35);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(179, 136, 235, 0.25);
}

.checkin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 17px;
    font-weight: 700;
    color: var(--neon-blue);
}

.checkin-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.checkin-modal-close:hover {
    color: #fff;
}

.checkin-modal-body {
    padding: 16px 24px;
    overflow-y: auto;
    color: var(--text-primary);
}

.checkin-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 30px 0;
}

.history-day {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.history-day:last-child {
    border-bottom: none;
}

.history-date {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 15px;
}

.history-count {
    font-weight: 400;
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    padding: 2px 0;
}

.history-item i {
    width: 16px;
    text-align: center;
}

.history-item.done {
    color: var(--text-primary);
}

.history-item.done i {
    color: #2ecc71;
}

.history-rate {
    margin-left: auto;
    font-size: 12px;
    color: #2ecc71;
}

.history-note {
    margin-left: auto;
    font-size: 12px;
    color: #2ecc71;
}

/* ===== 工具列表 ===== */
.tools-section {
    background: rgba(30, 17, 64, 0.5);
    border: 1px solid rgba(179, 136, 235, 0.3);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 34px;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    color: var(--neon-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

.tool-card {
    background: rgba(42, 24, 80, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 26px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: inherit;
}

.tool-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(179, 136, 235, 0.22);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.tool-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.tool-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: white;
    font-size: 24px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
}

.tool-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.tool-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.tool-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(179, 136, 235, 0.18);
    color: var(--neon-cyan);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: 16px;
    right: 16px;
}

.tool-card.coming-soon .tool-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

/* ===== 统计 ===== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stats-card {
    background: rgba(42, 24, 80, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    transition: var(--transition);
}

.stats-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(179, 136, 235, 0.16);
}

.stats-card i {
    font-size: 34px;
    color: var(--neon-blue);
    margin-bottom: 14px;
    text-shadow: 0 0 8px rgba(179, 136, 235, 0.35);
}

.stats-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.stats-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== 页脚 ===== */
.universe-footer {
    background: rgba(21, 10, 46, 0.9);
    border: 1px solid rgba(179, 136, 235, 0.28);
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
}

.footer-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: var(--neon-blue);
    margin-bottom: 8px;
}

.footer-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.footer-link-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link-row a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-link-row a:hover {
    color: var(--neon-blue);
}

/* ===== Toast ===== */
.toast {
    display: none;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(42, 24, 80, 0.95);
    border: 1px solid var(--neon-blue);
    border-radius: 12px;
    padding: 12px 24px;
    color: var(--text-primary);
    font-size: 14px;
    z-index: 1100;
    box-shadow: 0 0 30px rgba(179, 136, 235, 0.3);
}

.toast.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

.toast.success {
    border-color: #2ecc71;
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.3);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .nav-bar {
        justify-content: center;
    }

    .nav-menu {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .universe-container {
        padding: 10px;
    }

    .hero-section {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 26px;
    }

    .countdown-number {
        font-size: 30px;
    }

    .countdown-item {
        min-width: 68px;
        padding: 12px 12px;
    }

    .tools-section {
        padding: 26px 18px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .universe-footer {
        padding: 24px 18px;
    }
}

/* ===== 工具星系（数字宇宙环绕布局） ===== */
.galaxy-section {
    background: rgba(21, 10, 46, 0.55);
    border: 1px solid rgba(179, 136, 235, 0.3);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.galaxy-container {
    position: relative;
    width: 750px;
    height: 750px;
    max-width: 100%;
    margin: 0 auto 20px;
}

/* 中心恒星 */
.central-star {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    text-decoration: none;
    display: block;
}

.star-core {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #f3e8ff 0%, #a855f7 50%, #6d28d9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    box-shadow: 0 0 60px #a855f7;
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 60px #a855f7; }
    50% { transform: scale(1.1); box-shadow: 0 0 80px #a855f7; }
}

.star-info h4 {
    font-size: 18px;
    color: #c4b5fd;
    margin-bottom: 4px;
}

.star-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* 轨道 */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(179, 136, 235, 0.25);
    border-radius: 50%;
    pointer-events: none;
    --radius: 150px;
}

.orbit-1 {
    width: 280px;
    height: 280px;
    --radius: 140px;
    animation: orbitRotate 40s linear infinite;
}

.orbit-2 {
    width: 440px;
    height: 440px;
    --radius: 220px;
    animation: orbitRotate 60s linear infinite reverse;
}

.orbit-3 {
    width: 600px;
    height: 600px;
    --radius: 300px;
    animation: orbitRotate 80s linear infinite;
}

.orbit-4 {
    width: 750px;
    height: 750px;
    --radius: 375px;
    animation: orbitRotate 100s linear infinite reverse;
}

@keyframes orbitRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 行星工具 */
.planet-tool {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--radius)) rotate(calc(var(--angle) * -1));
}

.planet-tool.no-link {
    cursor: default;
}

.planet-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.planet-tool:hover .planet-icon {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 0 30px currentColor;
}

.planet-info {
    text-align: center;
    background: rgba(21, 10, 46, 0.85);
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(179, 136, 235, 0.25);
    min-width: 90px;
}

.planet-info h5 {
    font-size: 13px;
    color: #fff;
    margin-bottom: 2px;
}

.planet-info p {
    font-size: 10px;
    color: var(--text-muted);
}

/* 行星配色 */
.planet-icon.electric { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
.planet-icon.percent { background: linear-gradient(135deg, #9b59b6, #8e44ad); box-shadow: 0 0 20px rgba(155, 89, 182, 0.5); }
.planet-icon.shenlun { background: linear-gradient(135deg, #f39c12, #e67e22); box-shadow: 0 0 20px rgba(243, 156, 18, 0.5); }
.planet-icon.food { background: linear-gradient(135deg, #e74c3c, #c0392b); box-shadow: 0 0 20px rgba(231, 76, 60, 0.5); }
.planet-icon.f1 { background: linear-gradient(135deg, #e10600, #c10500); box-shadow: 0 0 20px rgba(225, 6, 0, 0.5); }
.planet-icon.file { background: linear-gradient(135deg, #667eea, #764ba2); box-shadow: 0 0 20px rgba(102, 126, 234, 0.5); }
.planet-icon.poison { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 0 20px rgba(139, 92, 246, 0.5); }
.planet-icon.love { background: linear-gradient(135deg, #ec4899, #db2777); box-shadow: 0 0 20px rgba(236, 72, 153, 0.5); }
.planet-icon.calendar { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }
.planet-icon.housing { background: linear-gradient(135deg, #3498db, #2980b9); box-shadow: 0 0 20px rgba(52, 152, 219, 0.5); }
.planet-icon.future { background: linear-gradient(135deg, #95a5a6, #7f8c8d); box-shadow: 0 0 20px rgba(149, 165, 166, 0.5); }

/* 星系控制 */
.galaxy-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.galaxy-btn {
    width: 50px;
    height: 50px;
    background: rgba(179, 136, 235, 0.12);
    border: 1px solid var(--neon-blue);
    border-radius: 50%;
    color: var(--neon-blue);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.galaxy-btn:hover {
    background: var(--neon-blue);
    color: var(--primary-bg);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--neon-blue);
}

.galaxy-btn.paused {
    background: rgba(232, 121, 249, 0.2);
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

/* 工具星系响应式 */
@media (max-width: 900px) {
    .galaxy-container {
        width: 560px;
        height: 560px;
    }

    .orbit-1 { width: 230px; height: 230px; --radius: 115px; }
    .orbit-2 { width: 360px; height: 360px; --radius: 180px; }
    .orbit-3 { width: 490px; height: 490px; --radius: 245px; }
    .orbit-4 { width: 560px; height: 560px; --radius: 280px; }
}

@media (max-width: 600px) {
    .galaxy-section {
        padding: 24px 14px;
    }

    .galaxy-container {
        width: 340px;
        height: 340px;
    }

    .orbit-1 { width: 150px; height: 150px; --radius: 75px; }
    .orbit-2 { width: 235px; height: 235px; --radius: 117px; }
    .orbit-3 { width: 320px; height: 320px; --radius: 160px; }
    .orbit-4 { display: none; }

    .planet-tool {
        width: 78px;
        height: 78px;
    }

    .planet-icon {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .planet-info {
        min-width: 68px;
        padding: 4px 6px;
    }

    .planet-info h5 {
        font-size: 11px;
    }

    .planet-info p {
        font-size: 9px;
    }

    .star-core {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }

    .star-info h4 {
        font-size: 15px;
    }
}

/* ===== 星系四角氛围装饰（二进制环 / 扭曲线 / 引力透镜 / 脉冲光点） =====
   页面背景层，固定在视口四边，位于内容（.universe-container z-index:1）之后，不遮挡文字。 */
.galaxy-deco {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

/* 二进制环（右上） */
.deco-binary {
    top: 120px;
    right: 22px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid rgba(179, 136, 235, 0.3);
    animation: spin 55s linear infinite;
    font-family: 'JetBrains Mono', monospace;
    color: var(--neon-cyan);
    font-size: 14px;
    text-shadow: 0 0 8px var(--neon-cyan);
    opacity: 0.95;
}

.deco-binary span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
}

/* 扭曲线（左侧中部） */
.deco-twist {
    top: 42%;
    left: 22px;
    width: 150px;
    height: 150px;
    opacity: 0.95;
}

.deco-twist::before,
.deco-twist::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 34px;
    border: 3px solid;
    border-radius: 50%;
}

.deco-twist::before {
    border-color: var(--neon-blue) transparent transparent transparent;
    transform: translate(-50%, -50%) rotate(25deg);
    animation: spin 26s linear infinite;
}

.deco-twist::after {
    border-color: transparent transparent var(--neon-purple) transparent;
    transform: translate(-50%, -50%) rotate(-25deg);
    animation: spinReverse 20s linear infinite;
}

/* 引力透镜（右侧下部） */
.deco-lens {
    top: 62%;
    right: 22px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 30%, rgba(179, 136, 235, 0.18) 45%, transparent 60%);
    animation: spin 72s linear infinite;
    opacity: 0.95;
}

.deco-lens i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 2px;
    margin-top: -1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    transform-origin: left center;
}

/* 脉冲光点（左下） */
.deco-pulse {
    bottom: 40px;
    left: 22px;
    width: 140px;
    height: 140px;
    animation: spin 45s linear infinite;
    opacity: 0.95;
}

.deco-pulse i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-purple);
    box-shadow: 0 0 16px var(--neon-purple);
    transform-origin: 0 0;
    animation: pulseDot 2.4s ease-in-out infinite;
}

.deco-pulse i:nth-child(1) { --d: 0deg; }
.deco-pulse i:nth-child(2) { --d: 72deg; animation-delay: 0.48s; }
.deco-pulse i:nth-child(3) { --d: 144deg; animation-delay: 0.96s; }
.deco-pulse i:nth-child(4) { --d: 216deg; animation-delay: 1.44s; }
.deco-pulse i:nth-child(5) { --d: 288deg; animation-delay: 1.92s; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.25; transform: rotate(var(--d)) translate(70px) scale(0.7); }
    50% { opacity: 1; transform: rotate(var(--d)) translate(70px) scale(1.3); }
}

@media (max-width: 900px) {
    .galaxy-deco { display: none; }
}

/* 导航栏保持单行（不换行） */
.nav-bar { flex-wrap: nowrap; }
.nav-menu { flex-wrap: nowrap; gap: 4px; }
.nav-link { padding: 6px 10px; }

@media (max-width: 1024px) {
    .nav-bar { flex-wrap: wrap; }
    .nav-menu { flex-wrap: wrap; }
}
