/* ===== 1A1S Craft 官网样式 ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0f1a;
    --bg2: #131b2e;
    --bg3: #1c2740;
    --bg4: #243352;
    --primary: #4ecca3;
    --primary-light: #6ee7c0;
    --primary-dark: #3a9b7e;
    --primary-glow: rgba(78, 204, 163, 0.15);
    --gold: #c9a227;
    --gold-light: #e0b83a;
    --gold-glow: rgba(201, 162, 39, 0.15);
    --red: #e94560;
    --red-light: #ff6b81;
    --blue: #4a9eff;
    --purple: #9b59b6;
    --text: #e2e8f0;
    --text-dim: #8899b0;
    --text-dimmer: #5a6a80;
    --border: #1e2d4a;
    --border-light: #2a3d5e;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(78, 204, 163, 0.2);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 800px 600px at 20% 10%, rgba(78, 204, 163, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 600px 500px at 80% 80%, rgba(201, 162, 39, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 500px 400px at 50% 50%, rgba(74, 158, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* 网格背景 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(78, 204, 163, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(78, 204, 163, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

code {
    font-family: "JetBrains Mono", "Consolas", "Monaco", "Courier New", monospace;
    background: rgba(201, 162, 39, 0.1);
    color: var(--gold-light);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.9em;
    border: 1px solid rgba(201, 162, 39, 0.15);
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--bg3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== 选中文字 ===== */
::selection {
    background: var(--primary);
    color: var(--bg);
}

/* ===== 导航栏 ===== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

#navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 19px;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(78, 204, 163, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

.nav-links a.active {
    color: var(--primary);
    background: var(--primary-glow);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.nav-cta {
    background: var(--primary) !important;
    color: var(--bg) !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--primary-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(78, 204, 163, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: var(--bg2);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* ===== 页面切换动画 ===== */
.page {
    display: none;
    position: relative;
    z-index: 1;
}

.page.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

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

/* ===== Hero 区域 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(78, 204, 163, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-glow);
    border: 1px solid rgba(78, 204, 163, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease-out;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    color: transparent;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -2px;
    line-height: 1.1;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--text-dim);
    margin-bottom: 40px;
    font-weight: 400;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* IP 复制框 */
.ip-box {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 40px;
    margin-bottom: 36px;
    display: inline-block;
    position: relative;
    animation: fadeInUp 0.6s ease-out 0.3s both;
    box-shadow: var(--shadow);
}

.ip-box::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), transparent, var(--gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.ip-label {
    display: block;
    font-size: 11px;
    color: var(--text-dimmer);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-weight: 600;
}

.ip-copy {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ip-copy code {
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 700;
    color: var(--gold-light);
    background: none;
    border: none;
    padding: 0;
    letter-spacing: 1px;
}

.copy-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 204, 163, 0.35);
}

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

.copy-btn.copied {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

/* Hero 统计 */
.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 20px;
    position: relative;
}

.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: var(--border);
}

.stat-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    font-family: "JetBrains Mono", monospace;
}

.stat-label {
    font-size: 12px;
    color: var(--text-dimmer);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 在线时间显示 */
.uptime-section {
    margin-top: 40px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.uptime-title {
    font-size: 12px;
    color: var(--text-dimmer);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-weight: 600;
}

.uptime-display {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.uptime-unit {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    min-width: 80px;
    text-align: center;
    transition: var(--transition);
}

.uptime-unit:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.15);
}

.uptime-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold-light);
    font-family: "JetBrains Mono", monospace;
    line-height: 1;
    display: block;
}

.uptime-label {
    font-size: 11px;
    color: var(--text-dimmer);
    margin-top: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dimmer);
    font-size: 12px;
    animation: bounce 2s infinite;
}

.scroll-hint svg {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== 通用区块 ===== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

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

.section-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    margin: 16px auto 0;
    border-radius: 2px;
}

.subsection-title {
    font-size: 22px;
    font-weight: 700;
    margin: 56px 0 24px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.subsection-title .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* ===== 信息卡片 ===== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-card {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.info-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
    font-family: "JetBrains Mono", monospace;
}

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

/* ===== 特色网格 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    group: true;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(78, 204, 163, 0.2);
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.8;
}

.feature-card.gold .feature-icon {
    background: var(--gold-glow);
}
.feature-card.gold:hover {
    border-color: var(--gold);
}
.feature-card.red .feature-icon {
    background: rgba(233, 69, 96, 0.1);
}
.feature-card.red:hover {
    border-color: var(--red);
}

/* ===== 允许/禁止列表 ===== */
.allow-list, .ban-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
}

.allow-item, .ban-item {
    background: var(--bg2);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    border-left: 3px solid;
    transition: var(--transition);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.allow-item:hover, .ban-item:hover {
    background: var(--bg3);
    transform: translateX(4px);
}

.allow-item {
    border-left-color: var(--primary);
}
.ban-item {
    border-left-color: var(--red);
}

.item-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.allow-item strong, .ban-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--text);
}

.allow-item span, .ban-item span {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ===== 红石网格 ===== */
.redstone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.redstone-item {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    text-align: center;
    font-size: 14px;
    transition: var(--transition);
    cursor: default;
}

.redstone-item:hover {
    border-color: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.1);
}

.redstone-item .ri-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

/* ===== 公告 ===== */
.announcements {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.announce-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 24px;
    font-size: 14px;
    transition: var(--transition);
}

.announce-item:hover {
    border-color: var(--border-light);
    transform: translateX(4px);
}

.announce-date {
    color: var(--gold);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    font-weight: 600;
    min-width: 55px;
}

.announce-tag {
    background: var(--primary-glow);
    color: var(--primary);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.announce-tag.warn {
    background: var(--gold-glow);
    color: var(--gold);
}

.announce-tag.news {
    background: rgba(74, 158, 255, 0.15);
    color: var(--blue);
}

.announce-text {
    color: var(--text);
    flex: 1;
}

/* ===== 规则区块 ===== */
.rule-block {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.rule-block:hover {
    border-color: var(--border-light);
}

.rule-block.danger {
    border-color: rgba(233, 69, 96, 0.3);
}

.rule-block.danger:hover {
    border-color: var(--red);
}

.rule-block.gold-border {
    border-color: rgba(201, 162, 39, 0.3);
}

.rule-block h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-block h3 .rb-icon {
    font-size: 22px;
}

.rule-content p {
    margin-bottom: 12px;
    color: var(--text-dim);
    font-size: 15px;
}

.rule-content ul {
    list-style: none;
    padding-left: 0;
}

.rule-content li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.7;
}

.rule-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
}

.rule-content li strong {
    color: var(--text);
    font-weight: 600;
}

.rule-content .warn-text {
    color: var(--red-light);
    font-weight: 600;
}

/* 处罚等级 */
.penalty-levels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.penalty-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-sm);
}

.penalty-item .level {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.penalty-item .level.red {
    background: linear-gradient(135deg, var(--red), #c0392b);
    color: white;
}

.penalty-item .level.orange {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
}

.penalty-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--text);
}

.penalty-item p {
    font-size: 13px;
    color: var(--text-dim);
    margin: 0;
}

/* ===== 步骤 ===== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 48px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 44px;
    bottom: 44px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--gold));
    opacity: 0.3;
}

.step {
    display: flex;
    gap: 24px;
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
}

.step:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(78, 204, 163, 0.25);
    z-index: 1;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.step-content p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.8;
}

/* ===== 资源网格 ===== */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.resource-item {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
}

.resource-item:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.1);
}

.res-icon {
    font-size: 36px;
    margin-bottom: 4px;
}

.resource-item strong {
    font-size: 15px;
    color: var(--text);
}

.resource-item span {
    font-size: 12px;
    color: var(--text-dim);
    font-family: "JetBrains Mono", monospace;
}

/* ===== 提示 ===== */
.tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
}

.tip {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-dim);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: var(--transition);
}

.tip:hover {
    border-color: var(--border-light);
    background: var(--bg3);
}

.tip-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq-search {
    margin-bottom: 28px;
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.faq-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.faq-search input::placeholder {
    color: var(--text-dimmer);
}

.faq-search .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-dimmer);
}

.faq-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.faq-cat {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
}

.faq-cat:hover, .faq-cat.active {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-light);
}

.faq-item.open {
    border-color: var(--primary);
}

.faq-q {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
    color: var(--text);
    user-select: none;
}

.faq-q:hover {
    color: var(--primary);
}

.faq-q .q-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.open .q-icon {
    transform: rotate(45deg);
    background: var(--primary);
    color: var(--bg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 24px;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.9;
}

.faq-item.open .faq-a {
    max-height: 500px;
    padding: 0 24px 20px;
}

/* ===== 关于页面 ===== */
.about-intro {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.about-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
}

.about-intro p {
    color: var(--text-dim);
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.9;
    position: relative;
}

.about-intro p:last-child {
    margin-bottom: 0;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 48px;
    border: 1px solid var(--border);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 18px 28px;
    background: var(--bg2);
    transition: var(--transition);
}

.spec-item:hover {
    background: var(--bg3);
}

.spec-label {
    color: var(--text-dim);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-label .spec-icon {
    font-size: 16px;
}

.spec-value {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    font-family: "JetBrains Mono", monospace;
}

.copyable {
    cursor: pointer;
    color: var(--gold-light) !important;
    transition: var(--transition);
    position: relative;
}

.copyable:hover {
    color: var(--primary) !important;
}

.copyable::after {
    content: '点击复制';
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg4);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.copyable:hover::after {
    opacity: 1;
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 56px;
}

.contact-item {
    display: flex;
    gap: 18px;
    align-items: center;
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-item span {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-light);
    cursor: pointer;
    font-family: "JetBrains Mono", monospace;
}

/* CTA */
.join-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 56px 32px;
    position: relative;
    overflow: hidden;
}

.join-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--primary-glow) 0%, transparent 70%);
}

.join-cta h3 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
}

.join-cta p {
    color: var(--text-dim);
    margin-bottom: 32px;
    font-size: 16px;
    position: relative;
}

.join-cta .ip-copy {
    position: relative;
    justify-content: center;
}

/* ===== 页脚 ===== */
footer {
    background: linear-gradient(to bottom, transparent, var(--bg2));
    border-top: 1px solid var(--border);
    padding: 64px 24px 24px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.8;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.footer-col a {
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-col li span {
    font-family: "JetBrains Mono", monospace;
    color: var(--gold);
    font-size: 12px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-dimmer);
}

.footer-bottom .disclaimer {
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-dimmer);
    opacity: 0.7;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg);
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 8px 30px rgba(78, 204, 163, 0.3);
}

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

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--bg);
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(78, 204, 163, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 68px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 68px);
        background: rgba(10, 15, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transition: right 0.3s ease;
        align-items: stretch;
    }

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

    .nav-links a {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        border-radius: var(--radius-sm);
    }

    .nav-cta {
        margin-top: 12px;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat:not(:last-child)::after {
        display: none;
    }

    .ip-copy {
        flex-direction: column;
        gap: 16px;
    }

    .ip-box {
        padding: 24px 20px;
    }

    .step {
        flex-direction: column;
    }

    .steps::before {
        display: none;
    }

    .spec-item {
        flex-direction: column;
        gap: 6px;
    }

    .announce-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .section {
        padding: 60px 16px;
    }

    .uptime-unit {
        min-width: 64px;
        padding: 12px 14px;
    }

    .uptime-num {
        font-size: 22px;
    }

    .rule-block {
        padding: 20px;
    }

    .about-intro {
        padding: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .uptime-display {
        gap: 8px;
    }

    .uptime-unit {
        min-width: 56px;
        padding: 10px 8px;
    }

    .uptime-num {
        font-size: 20px;
    }

    .uptime-label {
        font-size: 10px;
    }
}

/* ===== 额外动画 ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(78, 204, 163, 0.2); }
    50% { box-shadow: 0 0 40px rgba(78, 204, 163, 0.4); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(78, 204, 163, 0.3); }
    50% { text-shadow: 0 0 20px rgba(78, 204, 163, 0.6), 0 0 30px rgba(78, 204, 163, 0.3); }
}

@keyframes borderGlow {
    0%, 100% { border-color: var(--primary); }
    50% { border-color: var(--gold); }
}

/* ===== 额外工具类 ===== */
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-sm { border-radius: var(--radius-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }
.grid { display: grid; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.font-mono { font-family: "JetBrains Mono", "Consolas", monospace; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 22px; }
.text-2xl { font-size: 28px; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.tracking-wide { letter-spacing: 1px; }
.tracking-wider { letter-spacing: 2px; }
.leading-relaxed { line-height: 1.8; }
.transition-all { transition: var(--transition); }
.cursor-pointer { cursor: pointer; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* ===== 额外组件样式 ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}
.badge-primary {
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(78, 204, 163, 0.2);
}
.badge-gold {
    background: var(--gold-glow);
    color: var(--gold);
    border: 1px solid rgba(201, 162, 39, 0.2);
}
.badge-red {
    background: rgba(233, 69, 96, 0.1);
    color: var(--red);
    border: 1px solid rgba(233, 69, 96, 0.2);
}
.badge-blue {
    background: rgba(74, 158, 255, 0.1);
    color: var(--blue);
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 32px 0;
}

.divider-vertical {
    width: 1px;
    height: 100%;
    background: var(--border);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-border {
    position: relative;
    background: var(--bg2);
    border-radius: var(--radius);
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass {
    background: rgba(19, 27, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hover-lift {
    transition: var(--transition);
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

.hover-scale {
    transition: var(--transition);
}
.hover-scale:hover {
    transform: scale(1.05);
}

.hover-bright:hover {
    filter: brightness(1.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg3);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.tooltip {
    position: relative;
}
.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg4);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.tooltip:hover::after {
    opacity: 1;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg);
    flex-shrink: 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-dim);
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.alert-info {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.2);
    color: var(--blue);
}
.alert-success {
    background: var(--primary-glow);
    border: 1px solid rgba(78, 204, 163, 0.2);
    color: var(--primary);
}
.alert-warning {
    background: var(--gold-glow);
    border: 1px solid rgba(201, 162, 39, 0.2);
    color: var(--gold);
}
.alert-danger {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.2);
    color: var(--red);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
th {
    background: var(--bg2);
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
td {
    color: var(--text-dim);
}
tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
tr:last-child td {
    border-bottom: none;
}

/* 打印样式 */
@media print {
    #navbar, .back-to-top, .toast, .scroll-hint, .nav-toggle {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .page {
        display: block !important;
        page-break-after: always;
    }
}

/* 焦点样式（无障碍） */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --border: #4a5568;
        --text-dim: #a0aec0;
    }
}

/* 额外的装饰性样式 */
.deco-line {
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--gold), transparent);
    border-radius: 1px;
}

.deco-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.deco-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.5;
}
.deco-dots span:nth-child(2) {
    background: var(--gold);
    opacity: 0.7;
}
.deco-dots span:nth-child(3) {
    background: var(--blue);
    opacity: 0.5;
}

.corner-deco {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--primary);
    opacity: 0.3;
}
.corner-deco.tl {
    top: 8px;
    left: 8px;
    border-top: 2px solid;
    border-left: 2px solid;
}
.corner-deco.tr {
    top: 8px;
    right: 8px;
    border-top: 2px solid;
    border-right: 2px solid;
}
.corner-deco.bl {
    bottom: 8px;
    left: 8px;
    border-bottom: 2px solid;
    border-left: 2px solid;
}
.corner-deco.br {
    bottom: 8px;
    right: 8px;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

/* 像素风格装饰 */
.pixel-border {
    box-shadow:
        0 -4px 0 0 var(--primary),
        0 4px 0 0 var(--primary),
        -4px 0 0 0 var(--primary),
        4px 0 0 0 var(--primary);
}

/* 扫描线效果（复古CRT） */
.scanlines::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
}

/* 噪点纹理 */
.noise {
    position: relative;
}
.noise::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}


/* ===== 更多动画 ===== */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

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

@keyframes rainbow {
    0% { color: #ff6b6b; }
    16% { color: #ffd93d; }
    33% { color: #6bcb77; }
    50% { color: #4d96ff; }
    66% { color: #9b59b6; }
    83% { color: #ff6b6b; }
    100% { color: #ff6b6b; }
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

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

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

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes flipIn {
    from { opacity: 0; transform: perspective(400px) rotateY(90deg); }
    to { opacity: 1; transform: perspective(400px) rotateY(0); }
}

/* ===== 更多工具类 ===== */
.animate-bounce { animation: bounce 1s infinite; }
.animate-shake { animation: shake 0.5s; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.animate-shimmer {
    background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.animate-rainbow { animation: rainbow 3s linear infinite; }
.animate-blink { animation: blink 1s step-end infinite; }
.animate-wave { animation: wave 1s ease-in-out infinite; }
.animate-heartbeat { animation: heartbeat 1.5s ease-in-out infinite; }
.animate-slideUp { animation: slideUp 0.5s ease-out; }
.animate-slideDown { animation: slideDown 0.5s ease-out; }
.animate-zoomIn { animation: zoomIn 0.5s ease-out; }
.animate-flipIn { animation: flipIn 0.5s ease-out; }
.animate-fadeIn { animation: fadeIn 0.5s ease-out; }
.animate-scaleIn { animation: scaleIn 0.5s ease-out; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; }
.delay-1000 { animation-delay: 1s; }

.duration-100 { animation-duration: 0.1s; }
.duration-200 { animation-duration: 0.2s; }
.duration-300 { animation-duration: 0.3s; }
.duration-500 { animation-duration: 0.5s; }
.duration-700 { animation-duration: 0.7s; }
.duration-1000 { animation-duration: 1s; }
.duration-2000 { animation-duration: 2s; }

.ease-linear { animation-timing-function: linear; }
.ease-in { animation-timing-function: ease-in; }
.ease-out { animation-timing-function: ease-out; }
.ease-in-out { animation-timing-function: ease-in-out; }

/* ===== 更多组件 ===== */
.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}
.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.card-body {
    color: var(--text-dim);
    line-height: 1.7;
}

.card-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--bg);
}

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
}
.btn-ghost:hover {
    background: var(--bg3);
    color: var(--text);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #a88520);
    color: var(--bg);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.3);
}

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.input {
    width: 100%;
    padding: 10px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}
.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.input::placeholder {
    color: var(--text-dim);
}

.textarea {
    resize: vertical;
    min-height: 100px;
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238899b0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.checkbox, .radio {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--bg3);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--text-dim);
    border-radius: 50%;
    transition: var(--transition);
}
.switch.active {
    background: var(--primary);
}
.switch.active::after {
    left: 22px;
    background: var(--bg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.badge-dot.green { background: var(--primary); }
.badge-dot.red { background: var(--red); }
.badge-dot.gold { background: var(--gold); }
.badge-dot.blue { background: var(--blue); }
.badge-dot.gray { background: var(--text-dim); }

.skeleton {
    background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    animation: scaleIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg3);
    color: var(--text-dim);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: var(--red);
    color: white;
}

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}
.tab:hover {
    color: var(--text);
}
.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}

.accordion-header {
    padding: 14px 20px;
    background: var(--bg2);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}
.accordion-header:hover {
    background: var(--bg3);
}

.accordion-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.accordion-item.open .accordion-body {
    padding: 16px 20px;
    max-height: 1000px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dim);
}
.breadcrumb a {
    color: var(--text-dim);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb .separator {
    opacity: 0.5;
}

.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 24px;
}
.pagination button {
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg2);
    color: var(--text-dim);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}
.pagination button:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.pagination button.active {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-dim);
}
.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-state h3 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 8px;
}

.stat-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.stat-card .label {
    font-size: 13px;
    color: var(--text-dim);
}

.list-group {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.list-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}
.list-item:last-child {
    border-bottom: none;
}
.list-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}
.spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 26, 0.8) 100%);
    pointer-events: none;
}

.gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.gradient-gold {
    background: linear-gradient(135deg, var(--gold), #a88520);
}
.gradient-blue {
    background: linear-gradient(135deg, var(--blue), #2980b9);
}
.gradient-red {
    background: linear-gradient(135deg, var(--red), #c0392b);
}
.gradient-dark {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
}

.text-shadow { text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.text-shadow-lg { text-shadow: 0 4px 8px rgba(0,0,0,0.5); }

.ring-1 { box-shadow: 0 0 0 1px var(--primary); }
.ring-2 { box-shadow: 0 0 0 2px var(--primary); }
.ring-4 { box-shadow: 0 0 0 4px var(--primary-glow); }

.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.scrollbar-thin::-webkit-scrollbar { width: 6px; height: 6px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }
.scrollbar-thin::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }

.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.break-words { word-break: break-word; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-hidden { overflow: hidden; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-fill { object-fit: fill; }

.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-4-3 { aspect-ratio: 4 / 3; }

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.grid-cols-auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-cols-auto-sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid-cols-auto-lg { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-full { grid-column: 1 / -1; }

.row-span-2 { grid-row: span 2; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1; }
.flex-auto { flex: 1 1 auto; }
.flex-none { flex: none; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

.self-start { align-self: flex-start; }
.self-end { align-self: flex-end; }
.self-center { align-self: center; }
.self-stretch { align-self: stretch; }

.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.content-start { align-content: flex-start; }
.content-center { align-content: center; }
.content-between { align-content: space-between; }

.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }
.m-0 { margin: 0; }
.p-0 { padding: 0; }

.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-l { border-left: 1px solid var(--border); }
.border-r { border-right: 1px solid var(--border); }
.border-primary { border-color: var(--primary); }
.border-gold { border-color: var(--gold); }
.border-red { border-color: var(--red); }
.border-none { border: none; }

.rounded-full { border-radius: 50%; }
.rounded-pill { border-radius: 50px; }

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.z-modal { z-index: 1000; }
.z-max { z-index: 9999; }

.pointer-events-auto { pointer-events: auto; }
.pointer-events-none { pointer-events: none; }

.cursor-default { cursor: default; }
.cursor-help { cursor: help; }
.cursor-wait { cursor: wait; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-grab { cursor: grab; }
.cursor-grabbing { cursor: grabbing; }

.resize-none { resize: none; }
.resize-y { resize: vertical; }
.resize-x { resize: horizontal; }
.resize-both { resize: both; }

.outline-none { outline: none; }

.appearance-none { appearance: none; }

.fill-current { fill: currentColor; }
.stroke-current { stroke: currentColor; }

/* ===== 打印样式 ===== */
@media print {
    .navbar, .back-to-top, .copy-btn, .cta-section, .footer-bottom-links {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .page {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .page.active {
        display: block !important;
    }
    .hero, .section, .container {
        background: white !important;
        color: black !important;
    }
    a {
        color: black;
        text-decoration: underline;
    }
}

/* ===== 无障碍 ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--bg);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* ===== 像素装饰 ===== */
.pixel-border {
    box-shadow:
        0 -4px 0 0 var(--primary),
        0 4px 0 0 var(--primary),
        -4px 0 0 0 var(--primary),
        4px 0 0 0 var(--primary);
}

.pixel-corners {
    clip-path: polygon(
        0 4px, 4px 4px, 4px 0,
        calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
        100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
        4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)
    );
}

/* ===== 更多响应式 ===== */
@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4, .grid-cols-5, .grid-cols-6 {
        grid-template-columns: 1fr;
    }
    .col-span-2, .col-span-3 {
        grid-column: span 1;
    }
    .card { padding: 16px; }
    .modal { padding: 20px; }
    .btn-lg { padding: 12px 20px; font-size: 14px; }
    .stat-card .value { font-size: 24px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 24px; }
    .hero-title { font-size: 32px; }
    .up-time { gap: 8px; }
    .up-time > div { padding: 8px 10px; min-width: 50px; }
    .up-time .num { font-size: 20px; }
    .up-time .unit { font-size: 10px; }
    .info-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .contact-list { gap: 12px; }
    .rule-block { padding: 16px; }
    .faq-item { padding: 14px 16px; }
    .tip { padding: 10px 14px; font-size: 13px; }
    .allowed-list, .redstone-list { grid-template-columns: repeat(2, 1fr); }
    .announcement-item { padding: 12px 14px; }
    .announcement-date { min-width: 50px; font-size: 11px; }
    .spec-item { padding: 10px 14px; }
    .penalty-item { padding: 12px 14px; }
    .penalty-item .level { width: 32px; height: 32px; font-size: 14px; }
    .ip-box { flex-direction: column; }
    .ip-box .copy-btn { width: 100%; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .quick-start { padding: 20px; }
    .hero-badge { font-size: 11px; padding: 4px 12px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .scroll-hint { display: none; }
    .pagination button { min-width: 32px; height: 32px; font-size: 12px; }
    .breadcrumb { font-size: 12px; }
    .list-item { padding: 10px 14px; }
    .tabs { gap: 0; }
    .tab { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 380px) {
    .info-cards { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .allowed-list, .redstone-list { grid-template-columns: 1fr; }
    .up-time { gap: 6px; }
    .up-time > div { padding: 6px 8px; min-width: 42px; }
    .up-time .num { font-size: 18px; }
}

/* ===== 高DPI屏幕优化 ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
}

/* ===== 触摸设备优化 ===== */
@media (hover: none) {
    .feature-card:hover, .info-card:hover, .rule-block:hover, .step:hover, .tip:hover {
        transform: none;
    }
    .btn:hover { transform: none; }
    .copy-btn:hover { transform: none; }
    .nav-links a:hover { background: none; }
}

/* ===== 暗色/亮色模式（强制暗色）===== */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #0a0f1a;
        --bg2: #111827;
        --bg3: #1a2332;
        --bg4: #243044;
        --text: #e8edf5;
        --text-dim: #8899b0;
        --border: rgba(255, 255, 255, 0.08);
    }
}

/* ===== 选中文字样式 ===== */
::selection {
    background: var(--primary);
    color: var(--bg);
}
::-moz-selection {
    background: var(--primary);
    color: var(--bg);
}

/* ===== 更多装饰 ===== */
.glow-text {
    text-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow);
}

.glow-box {
    box-shadow: 0 0 20px var(--primary-glow), inset 0 0 20px rgba(78, 204, 163, 0.05);
}

.glow-gold {
    text-shadow: 0 0 10px rgba(201, 162, 39, 0.5), 0 0 20px rgba(201, 162, 39, 0.3);
}

.stripes {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(78, 204, 163, 0.03) 10px,
        rgba(78, 204, 163, 0.03) 20px
    );
}

.stripes-gold {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(201, 162, 39, 0.03) 10px,
        rgba(201, 162, 39, 0.03) 20px
    );
}

.dots {
    background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 20px 20px;
}

.diagonal-lines {
    background-image: repeating-linear-gradient(
        -45deg,
        var(--border) 0,
        var(--border) 1px,
        transparent 0,
        transparent 50%
    );
    background-size: 10px 10px;
}

.crosshatch {
    background:
        repeating-linear-gradient(45deg, transparent 0, transparent 9px, var(--border) 10px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 9px, var(--border) 10px);
}

/* ===== 状态指示 ===== */
.status-online {
    color: var(--primary);
}
.status-online::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 6px var(--primary);
}

.status-offline {
    color: var(--red);
}
.status-offline::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    margin-right: 6px;
}

/* ===== 评分/星级 ===== */
.stars {
    color: var(--gold);
    letter-spacing: 2px;
}

/* ===== 进度条变体 ===== */
.progress-bar.thin { height: 4px; }
.progress-bar.thick { height: 12px; }
.progress-bar.rounded { border-radius: 50px; }
.progress-bar.gold .progress-fill { background: linear-gradient(90deg, var(--gold), #e8c547); }
.progress-bar.red .progress-fill { background: linear-gradient(90deg, var(--red), #e74c3c); }
.progress-bar.blue .progress-fill { background: linear-gradient(90deg, var(--blue), #3498db); }
.progress-bar.animated .progress-fill {
    background-size: 30px 30px;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    animation: progress-stripe 1s linear infinite;
}

@keyframes progress-stripe {
    0% { background-position: 0 0; }
    100% { background-position: 30px 0; }
}

/* ===== 标签页变体 ===== */
.tabs-pill {
    background: var(--bg3);
    border-radius: 50px;
    padding: 4px;
    border-bottom: none;
    gap: 2px;
}
.tabs-pill .tab {
    border-radius: 50px;
    border-bottom: none;
    padding: 8px 20px;
}
.tabs-pill .tab.active {
    background: var(--primary);
    color: var(--bg);
    border-bottom: none;
}

.tabs-vertical {
    flex-direction: column;
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding-right: 16px;
}
.tabs-vertical .tab {
    border-bottom: none;
    border-right: 2px solid transparent;
    text-align: left;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.tabs-vertical .tab.active {
    border-bottom: none;
    border-right-color: var(--primary);
    background: var(--bg3);
}

/* ===== 提示框变体 ===== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
}
.alert-icon { font-size: 20px; flex-shrink: 0; }
.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #5dade2;
}
.alert-success {
    background: rgba(78, 204, 163, 0.1);
    border: 1px solid rgba(78, 204, 163, 0.3);
    color: var(--primary);
}
.alert-warning {
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: var(--gold);
}
.alert-danger {
    background: rgba(239, 71, 111, 0.1);
    border: 1px solid rgba(239, 71, 111, 0.3);
    color: var(--red);
}

/* ===== 头像组 ===== */
.avatar-group {
    display: flex;
}
.avatar-group .avatar {
    margin-left: -8px;
    border: 2px solid var(--bg2);
}
.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* ===== 下拉菜单 ===== */
.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 100;
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.dropdown-item:hover {
    background: var(--bg3);
    color: var(--text);
}
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* ===== 工具提示 ===== */
[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg4);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}
[data-tooltip]:hover::after {
    opacity: 1;
}

/* ===== 加载占位 ===== */
.placeholder {
    background: var(--bg3);
    border-radius: var(--radius-sm);
    display: inline-block;
}
.placeholder-lg { height: 32px; width: 200px; }
.placeholder-md { height: 20px; width: 120px; }
.placeholder-sm { height: 14px; width: 80px; }
.placeholder-line { height: 14px; width: 100%; margin-bottom: 8px; }
.placeholder-circle { border-radius: 50%; }

/* ===== 键盘按键样式 ===== */
kbd {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-family: monospace;
    color: var(--text);
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 2px 0 var(--border);
    line-height: 1.4;
}

/* ===== 代码块 ===== */
code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    padding: 2px 6px;
    background: var(--bg3);
    border-radius: 4px;
    color: var(--primary);
}
pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
    margin: 12px 0;
}
pre code {
    padding: 0;
    background: none;
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;
}

/* ===== 引用块 ===== */
blockquote {
    border-left: 3px solid var(--primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: rgba(78, 204, 163, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-dim);
    font-style: italic;
}
blockquote p:last-child {
    margin-bottom: 0;
}

/* ===== 表格增强 ===== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
thead {
    background: var(--bg3);
}
th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
}
tbody tr:last-child td {
    border-bottom: none;
}
tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.table-striped tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}
.table-compact th, .table-compact td {
    padding: 8px 12px;
    font-size: 13px;
}

/* ===== 分隔线变体 ===== */
.hr-dashed {
    border: none;
    border-top: 1px dashed var(--border);
}
.hr-dotted {
    border: none;
    border-top: 1px dotted var(--border);
}
.hr-double {
    border: none;
    border-top: 3px double var(--border);
}
.hr-gradient {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.hr-gradient-gold {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===== 徽章变体 ===== */
.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}
.badge-dot-only::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 6px;
}

/* ===== 图片增强 ===== */
.img-rounded { border-radius: var(--radius-sm); }
.img-circle { border-radius: 50%; }
.img-bordered { border: 2px solid var(--border); }
.img-shadow { box-shadow: var(--shadow); }
.img-hover-zoom { overflow: hidden; }
.img-hover-zoom img {
    transition: transform 0.3s ease;
}
.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* ===== 链接变体 ===== */
.link-underline {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.link-hover-underline {
    text-decoration: none;
}
.link-hover-underline:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.link-muted {
    color: var(--text-dim);
}
.link-muted:hover {
    color: var(--primary);
}

/* ===== 定位工具 ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.static { position: static; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

/* ===== 尺寸工具 ===== */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-fit { width: fit-content; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.max-w-sm { max-width: 640px; }
.max-w-md { max-width: 768px; }
.max-w-lg { max-width: 1024px; }
.max-w-xl { max-width: 1280px; }

/* ===== 文本工具 ===== */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }
.text-italic { font-style: italic; }
.text-normal { font-style: normal; font-weight: normal; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-mono { font-family: monospace; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.75; }
.tracking-tight { letter-spacing: -0.02em; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-wider { letter-spacing: 0.1em; }

.text-xs { font-size: 12px; }
.text-sm { font-size: 13px; }
.text-base { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 32px; }
.text-4xl { font-size: 40px; }

.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-dim { color: var(--text-dim); }
.text-white { color: var(--text); }

.bg-primary { background: var(--primary); }
.bg-gold { background: var(--gold); }
.bg-red { background: var(--red); }
.bg-blue { background: var(--blue); }
.bg-dark { background: var(--bg); }
.bg-darker { background: var(--bg2); }
.bg-card { background: var(--bg2); }

/* ===== 间距工具 ===== */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.space-x-1 > * + * { margin-left: 4px; }
.space-x-2 > * + * { margin-left: 8px; }
.space-x-3 > * + * { margin-left: 12px; }
.space-x-4 > * + * { margin-left: 16px; }
.space-y-1 > * + * { margin-top: 4px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }

.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }

.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 12px; }
.m-4 { margin: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

/* ===== 显示工具 ===== */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-col-reverse { flex-direction: column-reverse; }

/* ===== 结束 ===== */

/* ========== 多页面通用样式 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-header {
    padding: 120px 0 48px;
    text-align: center;
    background: linear-gradient(180deg, rgba(78,204,163,0.05) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}
.page-header .section-tag {
    display: inline-block;
    margin-bottom: 12px;
}
.page-header h1 {
    font-size: 42px;
    margin: 0 0 12px;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-header p {
    font-size: 18px;
    color: var(--text-dim);
    margin: 0;
}

.about-intro {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 40px;
    line-height: 1.9;
    color: var(--text);
}
.about-intro p {
    margin: 0 0 16px;
}
.about-intro p:last-child {
    margin-bottom: 0;
}

.specs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}
.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.spec-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.spec-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 14px;
}
.spec-value {
    font-weight: 600;
    color: var(--primary);
}
.spec-value.copyable {
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}
.spec-value.copyable:hover {
    color: var(--gold);
}

.contact-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex: 1;
    min-width: 240px;
    transition: var(--transition);
}
.contact-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.contact-icon {
    font-size: 32px;
}
.contact-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}
.contact-item span {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}
.contact-item span:hover {
    color: var(--gold);
}

/* 响应式补充 */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 32px;
    }
    .page-header h1 {
        font-size: 30px;
    }
    .page-header p {
        font-size: 15px;
    }
    .specs-list {
        grid-template-columns: 1fr;
    }
    .about-intro {
        padding: 20px;
    }
    .contact-list {
        flex-direction: column;
    }
}

/* ============================================
   🎬 高级动画效果
   ============================================ */

/* ---------- 页面加载淡入 ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Hero区域入场动画 */
.hero-content > * {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }
.hero-content > *:nth-child(6) { animation-delay: 0.85s; }

/* ---------- Hero背景动态渐变 ---------- */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero {
    background: linear-gradient(-45deg, #0a0f1a, #0f1a2e, #0a1628, #0d1f2d, #0a0f1a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Hero浮动粒子效果 */
@keyframes floatParticle {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.hero-particle {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px var(--primary);
    animation: floatParticle linear infinite;
}

/* ---------- 导航链接下划线动画 ---------- */
.nav-links a {
    position: relative;
}
.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ---------- Logo动画 ---------- */
.nav-logo-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-logo:hover .nav-logo-icon {
    transform: rotate(-15deg) scale(1.15);
}

/* ---------- 卡片悬停光效 ---------- */
.feature-card, .info-card, .rule-block, .spec-item, .contact-item, .faq-item {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.feature-card::before, .info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78,204,163,0.08), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}
.feature-card:hover::before, .info-card:hover::before {
    left: 100%;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(78,204,163,0.15);
    border-color: var(--primary);
}
.feature-card.gold:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(201,162,39,0.2);
    border-color: var(--gold);
}
.feature-card.red:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(239,71,111,0.15);
    border-color: var(--red);
}

/* ---------- 按钮光泽划过动画 ---------- */
.btn, .copy-btn, .ip-copy .copy-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn::before, .copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn:hover::before, .copy-btn:hover::before {
    left: 100%;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78,204,163,0.3);
}
.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(78,204,163,0.4);
}
.btn-gold:hover {
    box-shadow: 0 8px 25px rgba(201,162,39,0.4);
}
.copy-btn:hover {
    transform: translateY(-2px);
}
.btn:active, .copy-btn:active {
    transform: translateY(0) scale(0.97);
}

/* ---------- IP盒子脉冲发光 ---------- */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(78,204,163,0.2); }
    50% { box-shadow: 0 0 40px rgba(78,204,163,0.4), 0 0 60px rgba(78,204,163,0.1); }
}
.ip-box {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* ---------- 数字跳动动画 ---------- */
@keyframes numberPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
.info-num {
    display: inline-block;
    animation: numberPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ---------- 标签闪烁 ---------- */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.section-tag, .hero-badge, .announce-tag {
    background: linear-gradient(90deg, var(--primary) 0%, var(--gold) 50%, var(--primary) 100%);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-badge {
    -webkit-text-fill-color: initial;
    color: var(--primary);
    background: rgba(78,204,163,0.1);
    border: 1px solid rgba(78,204,163,0.3);
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 5px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold), #b8921f);
}

/* ---------- 回到顶部按钮动画 ---------- */
@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}
.back-to-top.visible {
    display: flex;
    animation: bounceIn 0.4s ease forwards;
}
.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(78,204,163,0.4);
}

/* ---------- Toast滑入 ---------- */
@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}
.toast {
    transform: translateX(120%);
    opacity: 0;
    transition: none;
}
.toast.show {
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.toast.hide {
    animation: slideOutRight 0.3s ease forwards;
}

/* ---------- FAQ展开动画增强 ---------- */
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}
.faq-item.open .faq-a {
    max-height: 500px;
}
.faq-q .q-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faq-item.open .q-icon {
    transform: rotate(45deg);
}
.faq-item {
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}
.faq-item.open {
    border-color: var(--primary);
    background: rgba(78,204,163,0.05);
}

/* ---------- 公告项滑入 ---------- */
.announce-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}
.announce-item:hover {
    border-left-color: var(--primary);
    transform: translateX(6px);
    background: rgba(78,204,163,0.05);
}

/* ---------- 步骤数字动画 ---------- */
.step .step-num {
    transition: all 0.3s ease;
}
.step:hover .step-num {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 0 20px rgba(78,204,163,0.4);
}

/* ---------- 允许/禁止项悬停 ---------- */
.allow-item, .ban-item, .redstone-item {
    transition: all 0.3s ease;
}
.allow-item:hover {
    background: rgba(78,204,163,0.1);
    border-color: var(--primary);
    transform: translateX(4px);
}
.ban-item:hover {
    background: rgba(239,71,111,0.08);
    border-color: var(--red);
    transform: translateX(4px);
}
.redstone-item:hover {
    background: rgba(201,162,39,0.08);
    border-color: var(--gold);
    transform: translateX(4px);
}

/* ---------- 在线时间数字翻转效果 ---------- */
@keyframes flipIn {
    0% { transform: rotateX(90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}
.uptime-num {
    display: inline-block;
    min-width: 2ch;
    transition: transform 0.2s ease;
}

/* ---------- 页面头部渐变动画 ---------- */
.page-header {
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(78,204,163,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(201,162,39,0.05) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
    pointer-events: none;
}
.page-header > * {
    position: relative;
    z-index: 1;
}

/* ---------- 标题下划线动画 ---------- */
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 2px;
    transition: width 0.4s ease;
}
.section-header:hover .section-title::after {
    width: 120px;
}
.section-header {
    text-align: center;
}
.section-header .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ---------- 复制成功打勾动画 ---------- */
@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.copy-success {
    animation: checkPop 0.3s ease;
}

/* ---------- 汉堡菜单动画 ---------- */
.nav-toggle span {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- 移动端菜单滑入 ---------- */
@media (max-width: 768px) {
    .nav-links {
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links li {
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.3s ease;
    }
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-links.active li:nth-child(7) { transition-delay: 0.4s; }
}

/* ---------- 选择文本颜色 ---------- */
::selection {
    background: rgba(78,204,163,0.3);
    color: #fff;
}
::-moz-selection {
    background: rgba(78,204,163,0.3);
    color: #fff;
}

/* ---------- 跳过链接动画 ---------- */
.skip-link {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
.skip-link:focus {
    transform: translateY(0);
}

/* ---------- 处罚等级条动画 ---------- */
.penalty-item {
    transition: all 0.3s ease;
}
.penalty-item:hover {
    transform: translateX(6px);
}
.penalty-item .level {
    transition: all 0.3s ease;
}
.penalty-item:hover .level {
    transform: scale(1.1);
}

/* ---------- CTA区域呼吸效果 ---------- */
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}
.join-cta, .ip-box {
    animation: breathe 4s ease-in-out infinite;
}

/* ---------- 图标跳动 ---------- */
@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.feature-card .icon, .subsection-title .icon {
    display: inline-block;
    transition: transform 0.3s ease;
}
.feature-card:hover .icon {
    animation: iconBounce 0.6s ease infinite;
}

/* ---------- 全局平滑滚动 ---------- */
html {
    scroll-behavior: smooth;
}

/* ---------- 链接悬停颜色过渡 ---------- */
a {
    transition: color 0.2s ease;
}

/* ---------- 输入框聚焦动画 ---------- */
.faq-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78,204,163,0.2), 0 0 20px rgba(78,204,163,0.1);
    transform: translateY(-2px);
}
.faq-search input {
    transition: all 0.3s ease;
}

/* ---------- FAQ分类标签动画 ---------- */
.faq-cat {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.faq-cat:hover {
    transform: translateY(-2px);
}
.faq-cat.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a0f1a;
    box-shadow: 0 4px 15px rgba(78,204,163,0.3);
}

/* ---------- 页脚链接动画 ---------- */
footer a {
    position: relative;
    transition: all 0.2s ease;
}
footer a:hover {
    color: var(--primary) !important;
    padding-left: 4px;
}

/* ---------- 图片/图标加载占位动画 ---------- */
@keyframes skeletonPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}
