/* ========================================
   智能中控系统官网 - 样式表
   风格参考: Cursor.com 深色科技风
======================================== */

/* CSS 变量 - 浅色主题 */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --accent-light: #dbeafe;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --accent-glow: rgba(37, 99, 235, 0.15);
    
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================================
   导航栏
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon-svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-primary);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-primary);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    max-height: 300px;
    padding: 24px;
    opacity: 1;
    pointer-events: auto;
    box-shadow: var(--shadow-md);
}

.mobile-nav-link {
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-tertiary);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: var(--accent-primary);
}

.nav-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-primary);
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    background: var(--accent-primary);
    color: white;
}

/* ========================================
   Hero 区域
======================================== */
.hero {
    min-height: 100vh;
    padding: 140px 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation: float 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    top: 50%;
    right: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
    bottom: -100px;
    left: 30%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-primary);
    background: var(--accent-light);
    border: none;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent-primary);
}

.hero-title {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    color: white;
    background: var(--accent-primary);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Hero 视觉展示 */
.hero-visual {
    margin-top: 60px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
}

.dashboard-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

.preview-dots span:nth-child(1) { background: #f87171; }
.preview-dots span:nth-child(2) { background: #fbbf24; }
.preview-dots span:nth-child(3) { background: #4ade80; }

.preview-title {
    font-size: 13px;
    color: var(--text-tertiary);
}

.preview-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.preview-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-primary);
}

.card-icon.temp svg {
    stroke: #2563eb;
}

.card-icon.light svg {
    stroke: #f59e0b;
}

.card-icon.device svg {
    stroke: #22c55e;
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

.card-value {
    font-size: 18px;
    font-weight: 600;
}

.card-status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--bg-card);
    color: var(--text-tertiary);
}

.card-status.on {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

/* ========================================
   通用区块样式
======================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
    background: var(--accent-light);
    border: none;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   功能特性
======================================== */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-primary);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   应用场景
======================================== */
.scenarios {
    padding: 100px 0;
    background: var(--bg-primary);
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.scenario-card {
    padding: 28px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.scenario-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card);
}

.scenario-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
}

.scenario-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-primary);
}

.scenario-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.scenario-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   下载区域
======================================== */
.download {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-info .section-badge,
.download-info .section-title,
.download-info .section-desc {
    text-align: left;
    margin-left: 0;
}

.download-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.download-feature svg {
    width: 20px;
    height: 20px;
    stroke: #22c55e;
    flex-shrink: 0;
}

.download-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.download-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.download-card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.download-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.download-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-primary);
}

.download-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.download-card-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.download-card-body {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.version-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.version {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
}

.platform {
    font-size: 13px;
    color: var(--text-tertiary);
}

.btn-download {
    padding: 10px 20px;
    font-size: 14px;
    background: var(--accent-primary);
    border: none;
    color: white;
}

.btn-download svg {
    width: 16px;
    height: 16px;
}

.btn-download:hover {
    background: #1d4ed8;
}

/* ========================================
   联系我们
======================================== */
.contact {
    padding: 100px 0;
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.contact-grid.contact-single {
    max-width: 360px;
    margin: 0 auto;
}

.contact-card {
    padding: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.contact-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card);
}

.contact-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border: none;
    border-radius: var(--radius-sm);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-primary);
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 18px;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.contact-time {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ========================================
   页脚
======================================== */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ========================================
   响应式
======================================== */
@media (max-width: 1024px) {
    .download-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .download-info .section-badge,
    .download-info .section-title,
    .download-info .section-desc {
        text-align: center;
    }
    
    .download-features {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 120px 20px 60px;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .download-card-body {
        flex-direction: column;
        text-align: center;
    }
    
    .version-info {
        align-items: center;
    }
}
.update-date { font-size: 0.75rem; color: #64748b; background: rgba(100, 116, 139, 0.1); padding: 2px 8px; border-radius: 4px; }
