/* 用户前端样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--gray-50); color: var(--gray-900); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.logo-icon { width: 32px; height: 32px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.125rem; }
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a { color: var(--gray-600); font-weight: 500; transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--primary); }
.header-actions { display: flex; gap: 0.75rem; align-items: center; }

/* Hero */
.hero { padding: 5rem 0; background: linear-gradient(135deg, var(--primary-50) 0%, var(--white) 100%); text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; color: var(--gray-900); }
.hero p { font-size: 1.25rem; color: var(--gray-500); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 4rem; }
.hero-stat-value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.hero-stat-label { color: var(--gray-500); }

/* Features */
.features { padding: 5rem 0; }
.section-title { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.section-desc { text-align: center; color: var(--gray-500); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 48px; height: 48px; background: var(--primary-100); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { color: var(--gray-500); font-size: 0.9375rem; }

/* Pricing */
.pricing { padding: 5rem 0; background: var(--white); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.plan-card { background: var(--gray-50); border: 2px solid var(--gray-100); border-radius: var(--radius-xl); padding: 2rem; text-align: center; transition: all 0.2s; }
.plan-card:hover { border-color: var(--primary); }
.plan-card.featured { border-color: var(--primary); background: var(--primary-50); }
.plan-badge { display: inline-block; padding: 0.25rem 0.75rem; background: var(--primary); color: var(--white); border-radius: 9999px; font-size: 0.75rem; font-weight: 600; margin-bottom: 1rem; }
.plan-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.plan-price { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--gray-500); }
.plan-desc { color: var(--gray-500); margin-bottom: 1.5rem; font-size: 0.9375rem; }
.plan-features { list-style: none; margin-bottom: 2rem; text-align: left; }
.plan-features li { padding: 0.5rem 0; display: flex; align-items: center; gap: 0.5rem; color: var(--gray-600); }
.plan-features li::before { content: '✓'; color: var(--success); font-weight: 600; }

/* Nodes */
.nodes { padding: 5rem 0; }
.nodes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.node-card { background: var(--white); border-radius: var(--radius-lg); padding: 1rem 1.25rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem; }
.node-flag { font-size: 2rem; }
.node-info { flex: 1; }
.node-name { font-weight: 600; }
.node-addr { font-size: 0.875rem; color: var(--gray-500); }
.node-status { display: flex; align-items: center; gap: 0.5rem; }
.node-dot { width: 8px; height: 8px; border-radius: 50%; }
.node-dot.online { background: var(--success); }
.node-dot.offline { background: var(--danger); }
.node-dot.busy { background: var(--warning); }

/* Footer */
.footer { padding: 3rem 0; background: var(--gray-900); color: var(--gray-400); text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; }
.footer-links a { color: var(--gray-400); }
.footer-links a:hover { color: var(--white); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 500; border: none; border-radius: var(--radius); cursor: pointer; transition: all 0.2s; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1.125rem; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary-50); color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); }

/* Form */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--gray-700); }
.form-input { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 1rem; }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.form-hint { font-size: 0.875rem; color: var(--gray-500); margin-top: 0.25rem; }

/* Badge */
.badge { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* Toast */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); background: var(--gray-900); color: var(--white); padding: 0.875rem 1.5rem; border-radius: var(--radius); z-index: 9999; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.toast.show { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .features-grid, .pricing-grid { grid-template-columns: 1fr; }
    .nodes-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
    .nav { display: none; }
}
