/* ToDesk - 现代科技蓝紫主题 */
:root {
    --primary: #6C5CE7;
    --primary-light: #a29bfe;
    --primary-dark: #5241d0;
    --accent: #00cec9;
    --accent-light: #55efc4;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.08);
    --text: #f0f0f8;
    --text-muted: #9a9ab8;
    --border: rgba(255,255,255,0.06);
    --glow: rgba(108,92,231,0.4);
    --glow-accent: rgba(0,206,201,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    color: var(--text);
    background: var(--bg-dark);
    overflow-x: hidden;
}

/* ===== 背景 ===== */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-effects::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(108,92,231,0.15) 0%, transparent 60%);
    animation: bgFloat1 12s ease-in-out infinite;
}
.bg-effects::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(0,206,201,0.1) 0%, transparent 60%);
    animation: bgFloat2 15s ease-in-out infinite;
}
@keyframes bgFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(60px, 40px); }
}
@keyframes bgFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -30px); }
}

/* ===== 网格背景 ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(108,92,231,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108,92,231,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ===== 导航 ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 30px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(10,10,26,0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}
.nav-logo {
    position: absolute;
    left: 30px;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 22px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}
nav a:hover {
    color: var(--text);
    background: rgba(108,92,231,0.1);
}
nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 15px var(--glow);
}

/* ===== 主内容 ===== */
main {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 24px 80px;
}

/* ===== 英雄区 ===== */
.hero {
    text-align: center;
    padding: 40px 20px 60px;
}

/* 远程视觉动画 */
.remote-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.screen {
    width: 200px;
    height: 130px;
    background: linear-gradient(145deg, #1a1a3e, #12122a);
    border-radius: 14px;
    border: 2px solid rgba(108,92,231,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5), 0 0 30px var(--glow);
    position: relative;
    overflow: hidden;
}
.screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(108,92,231,0.1), transparent 30%);
    animation: screenRotate 4s linear infinite;
}
@keyframes screenRotate {
    to { transform: rotate(360deg); }
}
.screen-content {
    width: 82%;
    height: 72%;
    background: #0a0a1a;
    border-radius: 6px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.screen-lines {
    position: absolute;
    inset: 8px;
}
.screen-lines span {
    display: block;
    height: 3px;
    background: rgba(108,92,231,0.2);
    border-radius: 2px;
    margin-bottom: 5px;
    animation: lineAppear 2s ease-in-out infinite;
}
.screen-lines span:nth-child(1) { width: 70%; animation-delay: 0s; }
.screen-lines span:nth-child(2) { width: 50%; animation-delay: 0.2s; }
.screen-lines span:nth-child(3) { width: 80%; animation-delay: 0.4s; }
.screen-lines span:nth-child(4) { width: 40%; animation-delay: 0.6s; }
@keyframes lineAppear {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px var(--accent), 0 0 30px rgba(0,206,201,0.3);
    animation: cursorMove 3s ease-in-out infinite;
}
@keyframes cursorMove {
    0% { top: 30%; left: 30%; }
    25% { top: 30%; left: 70%; }
    50% { top: 60%; left: 70%; }
    75% { top: 60%; left: 30%; }
    100% { top: 30%; left: 30%; }
}
.connection-line {
    width: 70px;
    height: 3px;
    background: rgba(108,92,231,0.2);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.connection-line::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
    animation: dataFlow 1.5s linear infinite;
}
@keyframes dataFlow {
    from { left: -20px; }
    to { left: 70px; }
}
.phone {
    width: 52px;
    height: 88px;
    background: linear-gradient(145deg, #1a1a3e, #12122a);
    border-radius: 10px;
    border: 2px solid rgba(108,92,231,0.4);
    box-shadow: 0 10px 35px rgba(0,0,0,0.4), 0 0 20px var(--glow);
    position: relative;
    overflow: hidden;
}
.phone::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 3px;
    background: rgba(108,92,231,0.3);
    border-radius: 2px;
}

/* 标题 */
.hero h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fff 30%, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* 下载按钮 */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px var(--glow);
    position: relative;
    overflow: hidden;
}
.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}
.download-btn:hover::before {
    left: 100%;
}
.download-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px var(--glow), 0 0 60px rgba(108,92,231,0.2);
}
.download-btn .btn-arrow {
    display: inline-block;
    transition: transform 0.3s;
}
.download-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ===== 统计 ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 50px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.stat-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108,92,231,0.2);
    transform: translateY(-2px);
}
.stat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* ===== 功能卡片 ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 50px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108,92,231,0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px var(--glow);
    background: var(--bg-card-hover);
}
.f-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(0,206,201,0.1));
    border: 1px solid rgba(108,92,231,0.2);
}
.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== 页脚 ===== */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
    position: relative;
    z-index: 1;
}
footer a {
    color: var(--primary-light);
    text-decoration: none;
}

/* ========== 下载页 ========== */
.download-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
}
.download-wrap {
    display: flex;
    align-items: center;
    gap: 70px;
    max-width: 900px;
    animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.dl-visual { flex-shrink: 0; }
.dl-icon {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    box-shadow: 0 20px 60px var(--glow), 0 0 40px var(--glow-accent);
    animation: iconPulse 3s ease-in-out infinite;
    position: relative;
}
.dl-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 42px;
    border: 2px solid rgba(108,92,231,0.2);
    animation: iconRing 3s ease-in-out infinite;
}
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes iconRing {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.2; }
}
.dl-info { flex: 1; }
.dl-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108,92,231,0.15);
    border: 1px solid rgba(108,92,231,0.4);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-light);
    margin-bottom: 18px;
    font-weight: 600;
}
.dl-info h1 {
    font-size: 46px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dl-version {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 500;
}
.dl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-muted);
}
.dl-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dl-features {
    margin-bottom: 28px;
}
.dl-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}
.dl-features li:hover {
    color: var(--text);
}
.dl-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--glow-accent);
}
.dl-actions {
    display: flex;
    gap: 14px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 6px 25px var(--glow);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px var(--glow);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid rgba(108,92,231,0.4);
    color: var(--primary-light);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.btn-secondary:hover {
    background: rgba(108,92,231,0.1);
    border-color: var(--primary);
}
.update-time {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 18px;
}

/* ========== 404页 ========== */
.error-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    text-align: center;
}
.error-content {
    animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.error-icon {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 34px;
    margin: 0 auto 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    box-shadow: 0 15px 50px var(--glow), 0 0 40px var(--glow-accent);
    animation: errorFloat 4s ease-in-out infinite;
}
@keyframes errorFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(2deg); }
    75% { transform: translateY(4px) rotate(-1deg); }
}
.error-code {
    font-size: 120px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -4px;
}
.error-content h1 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 700;
}
.error-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 35px;
}
.error-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
}

/* ===== 滚动动画 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 粒子效果 ===== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 38px; }
    .subtitle { font-size: 16px; }
    .remote-visual { transform: scale(0.75); margin-bottom: 20px; }
    .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .stat-num { font-size: 26px; }
    .stat-item { padding: 16px 8px; }
    .features { grid-template-columns: 1fr 1fr; gap: 14px; }
    .feature-card { padding: 22px; }
    .nav-logo { display: none; }
    .download-wrap {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .dl-info h1 { font-size: 34px; }
    .dl-meta { justify-content: center; }
    .dl-actions { justify-content: center; flex-wrap: wrap; }
    .error-actions { flex-direction: column; align-items: center; }
    .error-code { font-size: 80px; }
}

@media (max-width: 480px) {
    .features { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .stats { grid-template-columns: 1fr; gap: 10px; }
}
