/* ===========================
   CraftSunrise 样式表
   Minecraft 风格暗色主题
   =========================== */

/* --- 字体 --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS 变量 --- */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2333;
    --bg-card-hover: #242d3d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.3);
    --accent-dark: #b45309;
    --green: #22c55e;
    --green-glow: rgba(34, 197, 94, 0.3);
    --blue: #3b82f6;
    --red: #ef4444;
    --border: #30363d;
    --border-light: #21262d;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.6);
    --container: 1200px;
}

/* --- 全局重置 --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- 粒子画布 --- */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===========================
   导航栏
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 1.6rem;
    animation: logoBounce 2s ease-in-out infinite;
}

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

.logo-text {
    color: var(--text-primary);
}

.logo-highlight {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   Hero 区域
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    z-index: 1;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-block {
    display: block;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    color: var(--text-primary);
}

.title-sun {
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow);
}

.title-sub {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-desc strong {
    color: var(--accent);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: #1a1a2e;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-qq {
    background: #12B7F5;
    color: #fff;
    box-shadow: 0 4px 20px rgba(18, 183, 245, 0.3);
}

.btn-qq:hover {
    background: #3dc9f7;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(18, 183, 245, 0.4);
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-icon {
    font-size: 1.1em;
}

/* IP 显示 */
.hero-ip-display {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 32px;
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.ip-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ip-value {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--green);
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Hero 视觉效果 */
.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.mc-cube {
    position: absolute;
    border-radius: 4px;
    opacity: 0.12;
    animation: floatCube 8s ease-in-out infinite;
}

.cube-1 {
    width: 80px;
    height: 80px;
    background: var(--accent);
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}
.cube-2 {
    width: 60px;
    height: 60px;
    background: var(--green);
    top: 25%;
    right: 12%;
    animation-delay: -2s;
}
.cube-3 {
    width: 100px;
    height: 100px;
    background: var(--blue);
    bottom: 20%;
    left: 15%;
    animation-delay: -4s;
}
.cube-4 {
    width: 40px;
    height: 40px;
    background: var(--accent);
    bottom: 30%;
    right: 20%;
    animation-delay: -6s;
}

@keyframes floatCube {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(10deg);
    }
    75% {
        transform: translateY(15px) rotate(3deg);
    }
}

.sun-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: sunPulse 4s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.scroll-arrow {
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ===========================
   状态栏
   =========================== */
.status-bar {
    position: relative;
    z-index: 2;
    margin-top: -40px;
    padding-bottom: 60px;
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.status-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.online {
    background: var(--green);
    box-shadow: 0 0 12px var(--green-glow);
    animation: pulseIndicator 2s ease-in-out infinite;
}

.status-indicator.players {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.status-indicator.version {
    background: var(--blue);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

@keyframes pulseIndicator {
    0%, 100% { box-shadow: 0 0 8px var(--green-glow); }
    50% { box-shadow: 0 0 20px var(--green-glow); }
}

.status-info {
    display: flex;
    flex-direction: column;
}

.status-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.status-value {
    font-weight: 700;
    font-size: 1.05rem;
}

.status-online {
    color: var(--green);
}

/* ===========================
   Section 通用样式
   =========================== */
.section {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

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

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ===========================
   关于我们
   =========================== */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.about-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
}

.about-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================
   游戏模式
   =========================== */
.gamemodes {
    background: var(--bg-primary);
}

.gamemodes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.gamemode-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.gamemode-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* 游戏模式 Banner */
.gm-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 28px 0;
}

.gm-icon {
    font-size: 2.6rem;
    transition: var(--transition);
}

.gamemode-card:hover .gm-icon {
    transform: scale(1.15);
}

.gm-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag-survival {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tag-pvp {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag-skywars {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tag-oneblock {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* 卡片顶部渐变装饰条 */
.gamemode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    opacity: 0;
    transition: var(--transition);
}

.gm-survival::before {
    background: linear-gradient(90deg, var(--green), transparent);
}
.gm-kitpvp::before {
    background: linear-gradient(90deg, var(--red), transparent);
}
.gm-skywars::before {
    background: linear-gradient(90deg, var(--blue), transparent);
}
.gm-oneblock::before {
    background: linear-gradient(90deg, #a855f7, transparent);
}

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

.gm-body {
    padding: 20px 28px 28px;
}

.gm-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.gm-desc {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.gm-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gm-features li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.gm-check {
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
}

/* ===========================
   服务器规则
   =========================== */
.rules {
    background: var(--bg-secondary);
}

.rules-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.rule-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(6px);
}

.rule-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.6;
    flex-shrink: 0;
    line-height: 1;
}

.rule-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.rule-content p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===========================
   加入我们
   =========================== */
.join {
    background: var(--bg-primary);
}

.join-steps {
    max-width: 700px;
    margin: 0 auto 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.step:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.step-num {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #1a1a2e;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.93rem;
    color: var(--text-secondary);
}

.step-ip-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding: 10px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.step-ip-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-ip {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--green);
    background: none;
}

.join-cta {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.join-qq {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* ===========================
   页脚
   =========================== */
.footer {
    position: relative;
    z-index: 2;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.footer-brand {
    flex-shrink: 0;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.footer-col a,
.footer-col span {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===========================
   Toast 提示
   =========================== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-card);
    border: 1px solid var(--green);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.2rem;
}

/* ===========================
   响应式设计
   =========================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gamemodes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-cards {
        grid-template-columns: 1fr;
    }

    .status-bar {
        margin-top: -20px;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 32px;
    }

    .navbar {
        padding: 12px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: rgba(13, 17, 23, 0.98);
        backdrop-filter: blur(16px);
        padding: 80px 24px 24px;
        gap: 4px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        display: block;
        padding: 14px 18px;
        font-size: 1.1rem;
        border-radius: var(--radius-sm);
    }

    .hero {
        padding: 100px 16px 40px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-ip-display {
        width: 100%;
        max-width: 340px;
    }

    .status-bar {
        margin-top: 0;
        padding-top: 20px;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .title-block {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }
}

/* ===========================
   入场动画
   =========================== */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.status-bar {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.status-bar.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   主题切换按钮
   =========================== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    margin-right: 8px;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
}

.theme-toggle .theme-icon-dark,
.theme-toggle .theme-icon-light {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .theme-icon-dark {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.theme-toggle .theme-icon-light {
    opacity: 0;
    transform: translateY(20px) scale(0.5);
}

/* 亮色模式下的按钮图标 */
[data-theme="light"] .theme-toggle {
    border-color: #d0d7de;
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: #afb8c1;
}

[data-theme="light"] .theme-toggle .theme-icon-dark {
    opacity: 0;
    transform: translateY(-20px) scale(0.5);
}

[data-theme="light"] .theme-toggle .theme-icon-light {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===========================
   亮色主题
   =========================== */
[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #f3f4f6;
    --bg-card: #ffffff;
    --bg-card-hover: #f9fafb;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #6b7280;
    --accent: #d97706;
    --accent-glow: rgba(217, 119, 6, 0.25);
    --accent-dark: #b45309;
    --green: #16a34a;
    --green-glow: rgba(22, 163, 74, 0.25);
    --blue: #2563eb;
    --border: #e5e7eb;
    --border-light: #e5e7eb;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] body {
    background-color: var(--bg-primary);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .navbar.scrolled {
    border-bottom-color: #e5e7eb;
}

[data-theme="light"] .nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .nav-link.active {
    background: rgba(217, 119, 6, 0.1);
}

[data-theme="light"] .title-sun {
    text-shadow: 0 0 40px rgba(217, 119, 6, 0.2);
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    border-color: #d0d7de;
    color: var(--text-primary);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: #afb8c1;
}

[data-theme="light"] .hero-ip-display {
    background: rgba(243, 244, 246, 0.8);
}

[data-theme="light"] .sun-circle {
    background: radial-gradient(circle, rgba(217, 119, 6, 0.2) 0%, transparent 70%);
}

[data-theme="light"] .mc-cube {
    opacity: 0.08;
}

[data-theme="light"] .step-ip-box {
    background: #f3f4f6;
}

[data-theme="light"] #particles {
    opacity: 0.6;
}

[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .mobile-menu-btn span {
    background: #1a1a2e;
}

[data-theme="light"] .toast {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
