/* ToDesk - 绿色远程控制主题 */
:root {
    --green: #29c775;
    --green-dark: #1fa864;
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --text: #fff;
    --text-muted: #8b949e;
    --border: rgba(255,255,255,0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 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; }
.bg-effects::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 50% 30%, rgba(41,199,117,0.12) 0%, transparent 50%); }

/* 导航 */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 15px 30px; display: flex; gap: 20px; justify-content: center; background: rgba(13,17,23,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; padding: 8px 20px; border-radius: 20px; transition: all 0.3s; }
nav a:hover, nav a.active { color: var(--text); background: rgba(41,199,117,0.2); }

/* 主内容 */
main { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 100px 20px 60px; }

/* 英雄区 */
.hero { text-align: center; padding: 20px 20px 50px; }

/* 远程视觉 */
.remote-visual { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 30px; }
.screen { width: 180px; height: 120px; background: linear-gradient(145deg, #2d333b, #1c2128); border-radius: 12px; border: 2px solid rgba(41,199,117,0.3); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.screen-content { width: 80%; height: 70%; background: #0d1117; border-radius: 4px; position: relative; }
.cursor-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 10px var(--green); animation: cursorBlink 1.5s ease-in-out infinite; }
@keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.connection-line { width: 60px; height: 3px; background: linear-gradient(90deg, var(--green), transparent); position: relative; }
.connection-line::before { content: ''; position: absolute; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, var(--green)); animation: lineFlow 1s linear infinite; }
@keyframes lineFlow { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.phone { width: 50px; height: 80px; background: linear-gradient(145deg, #2d333b, #1c2128); border-radius: 8px; border: 2px solid rgba(41,199,117,0.3); }

h1 { font-size: 44px; font-weight: 700; margin-bottom: 15px; letter-spacing: -0.5px; }
.subtitle { font-size: 17px; color: var(--text-muted); line-height: 1.7; margin-bottom: 35px; }

/* 按钮 */
.download-btn { display: inline-block; padding: 14px 40px; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: white; text-decoration: none; border-radius: 30px; font-size: 16px; font-weight: 600; transition: all 0.3s; box-shadow: 0 4px 20px rgba(41,199,117,0.3); }
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(41,199,117,0.4); }

/* 统计 */
.stats { display: flex; justify-content: center; gap: 50px; padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 36px; font-weight: 700; color: var(--green); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 5px; }

/* 功能 */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 50px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 25px; transition: all 0.3s; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(41,199,117,0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.f-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ========== 下载页 ========== */
.download-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 20px; }
.download-wrap { display: flex; align-items: center; gap: 60px; max-width: 850px; animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.dl-visual { flex-shrink: 0; }
.dl-icon { width: 140px; height: 140px; background: linear-gradient(135deg, var(--green), var(--green-dark)); border-radius: 30px; display: flex; align-items: center; justify-content: center; font-size: 60px; box-shadow: 0 15px 40px rgba(41,199,117,0.3); }
.dl-info { flex: 1; }
.dl-badge { display: inline-block; padding: 5px 14px; background: rgba(41,199,117,0.2); border: 1px solid var(--green); border-radius: 15px; font-size: 11px; color: var(--green); margin-bottom: 15px; }
.dl-info h1 { font-size: 42px; margin-bottom: 8px; }
.dl-version { font-size: 16px; color: var(--green); margin-bottom: 20px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; font-size: 13px; color: var(--text-muted); }
.dl-features { margin-bottom: 25px; }
.dl-features li { padding: 6px 0; font-size: 14px; color: var(--text-muted); list-style: none; }
.dl-features li::before { content: '✓ '; color: var(--green); margin-right: 8px; }
.dl-actions { display: flex; gap: 12px; }
.btn-primary { padding: 14px 35px; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: white; border: none; border-radius: 25px; font-size: 15px; cursor: pointer; transition: all 0.3s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(41,199,117,0.4); }
.btn-secondary { padding: 12px 28px; background: transparent; border: 2px solid var(--green); color: var(--green); border-radius: 25px; font-size: 15px; cursor: pointer; transition: all 0.3s; }
.btn-secondary:hover { background: rgba(41,199,117,0.1); }
.update-time { font-size: 12px; color: var(--text-muted); opacity: 0.7; margin-top: 15px; }

/* ========== 404页 ========== */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 20px; text-align: center; }
.error-content { animation: fadeIn 0.6s ease-out; }
.error-icon { width: 120px; height: 120px; background: linear-gradient(135deg, var(--green), var(--green-dark)); border-radius: 30px; margin: 0 auto 30px; display: flex; align-items: center; justify-content: center; font-size: 50px; box-shadow: 0 10px 40px rgba(41,199,117,0.3); animation: errorPulse 2s ease-in-out infinite; }
@keyframes errorPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.error-code { font-size: 100px; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 15px; }
.error-content h1 { font-size: 26px; margin-bottom: 10px; }
.error-content p { font-size: 15px; color: var(--text-muted); margin-bottom: 30px; }
.error-actions { display: flex; gap: 12px; justify-content: center; }

/* 响应式 */
@media (max-width: 768px) {
    h1 { font-size: 34px; }
    .stats { gap: 30px; }
    .stat-num { font-size: 28px; }
    .remote-visual { transform: scale(0.8); }
    .download-wrap { flex-direction: column; text-align: center; gap: 30px; }
    .dl-info h1 { font-size: 32px; }
    .dl-meta { justify-content: center; }
    .dl-features li { list-style: none; }
    .dl-actions { justify-content: center; }
    .error-actions { flex-direction: column; align-items: center; }
    .error-code { font-size: 70px; }
}
