/* ==================== CSS 变量 ==================== */
:root {
    /* 日间模式 */
    --bg: #FFFFFF;
    --bg-card: #F8F9FA;
    --bg-elevated: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.92);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
    --primary: #1ABC9C;
    --primary-dark: #16A085;
    --accent: #E67E22;
    --accent-dark: #D35400;
    --text-primary: #1a1a2e;
    --text-secondary: #636e72;
    --text-muted: #b2bec3;
    --success: #27AE60;
    --info: #2980B9;
    --danger: #E74C3C;
    --nav-height: 72px;
    --font-pixel: 'Microsoft YaHei', sans-serif;
    --font-body: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    --font-mono: 'Microsoft YaHei', sans-serif;
    --cube-glow: rgba(26, 188, 156, 0.2);
}

[data-theme="dark"] {
    /* 夜间模式 */
    --bg: #0D1117;
    --bg-card: #161B22;
    --bg-elevated: #1C2333;
    --bg-glass: rgba(13, 17, 23, 0.92);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.5);
    --primary: #00D4AA;
    --primary-dark: #00A88A;
    --accent: #FFB800;
    --accent-dark: #D29922;
    --text-primary: #E6EDF3;
    --text-secondary: #8B949E;
    --text-muted: #484F58;
    --success: #3FB950;
    --info: #58A6FF;
    --danger: #F85149;
    --cube-glow: rgba(0, 212, 170, 0.3);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 2rem;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    position: relative;
}

.logo-cube {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.logo-cube.small {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

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

/* 主题切换按钮 */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 0.75rem;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(26, 188, 156, 0.06);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

/* ==================== 首屏 Hero ==================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

/* 标题淡入动效 */
.hero-title-cn,
.hero-title-en,
.hero-slogan,
.hero-buttons {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
}

.hero-title-cn  { animation-delay: 0.2s; }
.hero-title-en  { animation-delay: 0.4s; }
.hero-slogan    { animation-delay: 0.55s; }
.hero-buttons   { animation-delay: 0.7s; }

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

/* Logo - 轻量等距立方体（纯2D, 无preserve-3d, 无drop-shadow） */
.hero-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.iso-cube {
    width: 160px;
    height: 160px;
    position: relative;
    animation: cubeFloat 6s ease-in-out infinite;
    will-change: transform;
}

/* 只用 Y 轴轻微旋转（2D平面旋转, 极轻） */
@keyframes cubeFloat {
    0%, 100% { transform: rotateY(0deg) translateY(0); }
    25%      { transform: rotateY(8deg) translateY(-6px); }
    75%      { transform: rotateY(-8deg) translateY(6px); }
}

/* 三个可见面 - 纯SVG路径绘制, 0个子元素, 0层叠 */
.iso-cube-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px var(--cube-glow));
}

.iso-cube-svg .cube-top    { fill: var(--primary); opacity: 0.55; transition: fill 0.3s ease; }
.iso-cube-svg .cube-left   { fill: var(--primary); opacity: 0.35; transition: fill 0.3s ease; }
.iso-cube-svg .cube-right  { fill: var(--primary); opacity: 0.2; transition: fill 0.3s ease; }

.hero-title-cn {
    font-size: clamp(2rem, 6vw, 3.6rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    letter-spacing: 4px;
}

.hero-title-en {
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: 10px;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.hero-slogan {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== 按钮 ==================== */
.btn-pixel {
    position: relative;
    padding: 0.85rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(26, 188, 156, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 28px rgba(26, 188, 156, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow: var(--shadow);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    color: var(--primary-dark);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* 滚动指示器 - 固定在视口底部，不受内容挤压 */
.scroll-indicator {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    opacity: 0;
    animation: fadeInLate 1s ease 1.2s forwards, bounceDown 2s ease-in-out 2.2s infinite;
}

@keyframes fadeInLate {
    to { opacity: 0.7; }
}

.scroll-indicator.hidden {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scroll-arrow {
    width: 26px;
    height: 26px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    opacity: 0.7;
}

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

/* ==================== 通用板块样式 ==================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    text-align: center;
    font-family: var(--font-pixel);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.title-bracket {
    color: var(--primary);
    font-family: var(--font-mono);
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

/* 滚动渐入动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 服务器信息 ==================== */
.info-section {
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.2;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.info-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(26, 188, 156, 0.04), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

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

.info-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.pixel-icon {
    width: 100%;
    height: 100%;
}

.svg-bg-fill {
    fill: var(--bg-elevated);
    transition: fill 0.3s ease;
}

.info-card h3 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.info-value {
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    color: var(--primary);
}

.ip-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.ip-display code {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent);
    background: rgba(230, 126, 34, 0.08);
    padding: 0.4rem 1rem;
    border: 1px solid rgba(230, 126, 34, 0.25);
    border-radius: 4px;
}

[data-theme="dark"] .ip-display code {
    background: rgba(255, 184, 0, 0.1);
    border-color: rgba(255, 184, 0, 0.25);
    color: var(--accent);
}

.copy-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 0.4rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    background: rgba(26, 188, 156, 0.1);
    border-color: var(--primary);
}

.copy-btn svg {
    pointer-events: none;
}

.copy-toast {
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    background: var(--success);
    color: white;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 3000;
}

.copy-toast.show {
    opacity: 1;
}

.info-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 10px var(--success); }
    50% { box-shadow: 0 0 20px var(--success), 0 0 30px var(--success); }
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--success);
}

/* 加入步骤 */
.join-steps {
    text-align: center;
    margin-top: 2rem;
}

.join-steps h3 {
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.step {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: var(--shadow);
}

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

.step-num {
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

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

.step-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
    flex-shrink: 0;
}

/* ==================== 特色玩法 ==================== */
.features-section {
    background: var(--bg);
    position: relative;
    transition: background-color 0.3s ease;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(26, 188, 156, 0.04), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

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

.feature-card-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s ease;
    pointer-events: none;
}

.feature-card:hover .feature-card-border {
    width: 60%;
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    color: var(--primary);
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

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

/* ==================== 图库 ==================== */
.gallery-section {
    background: var(--bg-card);
    position: relative;
    transition: background-color 0.3s ease;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.4s ease;
    background: var(--bg-elevated);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.gallery-overlay p {
    font-size: 0.8rem;
    color: #ccc;
}

/* ==================== 灯箱 ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border: 3px solid var(--primary);
    box-shadow: 0 0 60px rgba(0, 212, 170, 0.2);
}

.lightbox-placeholder {
    color: var(--text-secondary);
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 300px;
    border: 2px dashed var(--text-secondary);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover { color: var(--danger); }

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(0, 212, 170, 0.2); color: var(--primary); }

/* ==================== 公告动态 ==================== */
.news-section {
    background: var(--bg);
    position: relative;
    transition: background-color 0.3s ease;
}

.news-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.news-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    opacity: 0.3;
}

.news-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2.5rem;
}

.news-marker {
    position: absolute;
    left: 12px;
    top: 8px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
}

.news-dot {
    width: 10px;
    height: 10px;
    transform: rotate(-45deg);
    border-radius: 50%;
}

.news-line {
    display: none;
}

/* 公告类型配色 */
.news-update .news-marker         { background-color: var(--primary); }
.news-update .news-dot            { box-shadow: 0 0 12px var(--primary); }
.news-update .news-card           { border-left: 3px solid var(--primary); }
.news-update .news-badge          { background-color: rgba(26, 188, 156, 0.15); color: var(--primary); border: 1px solid var(--primary); }

[data-theme="dark"] .news-update .news-marker  { background-color: #00D4AA; }
[data-theme="dark"] .news-update .news-dot     { box-shadow: 0 0 12px #00D4AA; }
[data-theme="dark"] .news-update .news-card    { border-left-color: #00D4AA; }
[data-theme="dark"] .news-update .news-badge   { background-color: rgba(0, 212, 170, 0.15); color: #00D4AA; border-color: #00D4AA; }

.news-event .news-marker          { background-color: var(--accent); }
.news-event .news-dot             { box-shadow: 0 0 12px var(--accent); }
.news-event .news-card            { border-left: 3px solid var(--accent); }
.news-event .news-badge           { background-color: rgba(230, 126, 34, 0.15); color: var(--accent); border: 1px solid var(--accent); }

[data-theme="dark"] .news-event .news-marker   { background-color: #FFB800; }
[data-theme="dark"] .news-event .news-dot      { box-shadow: 0 0 12px #FFB800; }
[data-theme="dark"] .news-event .news-card     { border-left-color: #FFB800; }
[data-theme="dark"] .news-event .news-badge    { background-color: rgba(255, 184, 0, 0.15); color: #FFB800; border-color: #FFB800; }

.news-announcement .news-marker   { background-color: var(--info); }
.news-announcement .news-dot      { box-shadow: 0 0 12px var(--info); }
.news-announcement .news-card     { border-left: 3px solid var(--info); }
.news-announcement .news-badge    { background-color: rgba(41, 128, 185, 0.15); color: var(--info); border: 1px solid var(--info); }

[data-theme="dark"] .news-announcement .news-marker  { background-color: #58A6FF; }
[data-theme="dark"] .news-announcement .news-dot     { box-shadow: 0 0 12px #58A6FF; }
[data-theme="dark"] .news-announcement .news-card    { border-left-color: #58A6FF; }
[data-theme="dark"] .news-announcement .news-badge   { background-color: rgba(88, 166, 255, 0.15); color: #58A6FF; border-color: #58A6FF; }

.news-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.news-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateX(4px);
}

.news-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.news-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    letter-spacing: 1px;
}

.news-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.news-card h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

/* ==================== 联系方式 ==================== */
.contact-section {
    background: var(--bg-card);
    position: relative;
    transition: background-color 0.3s ease;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(230, 126, 34, 0.04), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

[data-theme="dark"] .contact-card::before {
    background: radial-gradient(circle at 50% 50%, rgba(255, 184, 0, 0.04), transparent 70%);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

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

.contact-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    color: var(--accent);
}

.contact-icon {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-contact {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-contact:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.3);
}

[data-theme="dark"] .btn-contact:hover {
    box-shadow: 0 4px 16px rgba(255, 184, 0, 0.3);
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    transition: background-color 0.3s ease;
}

.footer-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-name {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--primary);
    letter-spacing: 3px;
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer-slogan {
    color: var(--primary) !important;
    font-family: var(--font-mono);
    font-size: 0.8rem !important;
}

.footer-links h4, .footer-community h4 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-links a, .footer-community a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.35rem 0;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-community a:hover {
    color: var(--primary);
}

.footer-bottom {
    position: relative;
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
}

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

.footer-icp {
    margin-top: 0.35rem;
}

.footer-icp a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-icp a:hover {
    color: var(--primary);
}

/* ==================== 返回顶部 ==================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

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

.back-to-top:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26, 188, 156, 0.3);
}

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

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

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

    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .navbar {
        padding: 0 1rem;
        background: var(--bg-glass);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid var(--border);
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-glass);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem;
        gap: 0.75rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
    }

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

    .nav-link {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border: 1px solid transparent;
    }

    .nav-link.active {
        border-color: var(--border);
        background: rgba(26, 188, 156, 0.06);
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .steps-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

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

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

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

    .news-item {
        padding-left: 50px;
    }

    .news-card {
        padding: 1.25rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

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

    .btn-pixel {
        width: 100%;
        max-width: 280px;
    }

    .lightbox-prev, .lightbox-next {
        padding: 0.25rem 0.5rem;
        font-size: 2rem;
    }

    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}

@media (max-width: 480px) {
    .section-container {
        padding: 4rem 1rem;
    }

    .hero-title-cn {
        font-size: 1.2rem;
    }

    .hero-title-en {
        font-size: 0.8rem;
        letter-spacing: 4px;
    }

    .hero-slogan {
        font-size: 0.9rem;
    }

    .mega-cube,
    .iso-cube {
        width: 100px;
        height: 100px;
    }

    .ip-display code {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 38px;
        height: 38px;
    }
}
