/* ==============================
   搜狗浏览器 - 全新设计主题
   ============================== */

/* === 字体引入 === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === CSS 变量 === */
:root {
    --primary: #FF6B2B;
    --primary-hover: #FF8750;
    --primary-glow: rgba(255, 107, 43, 0.35);
    --primary-subtle: rgba(255, 107, 43, 0.08);
    --accent: #FFA726;
    --bg-root: #080C12;
    --bg-elevated: #0F151C;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.06);
    --border-active: rgba(255, 107, 43, 0.3);
    --text-primary: #F0F3F5;
    --text-secondary: rgba(240, 243, 245, 0.60);
    --text-muted: rgba(240, 243, 245, 0.38);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 60px var(--primary-glow), 0 0 120px rgba(255, 107, 43, 0.1);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Microsoft YaHei', 'PingFang SC', -apple-system, sans-serif;
    background: var(--bg-root);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === 背景粒子系统 === */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* === 导航栏 === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(8, 12, 18, 0.82);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-default);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-svg {
    width: 36px;
    height: 36px;
}

.logo-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-subtle);
}

.nav-cta {
    margin-left: 12px;
    padding: 9px 22px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 3px 16px var(--primary-glow);
}

.nav-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--primary-glow);
}

/* === 页面主容器 === */
.page-wrap {
    position: relative;
    z-index: 1;
}

/* === Hero 区域 === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 32px 80px;
    position: relative;
}

.hero-grid {
    max-width: 1280px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 8px;
    background: var(--primary-subtle);
    border: 1px solid var(--border-active);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    width: fit-content;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: dot-pulse 2s ease infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--primary-glow); }
    50% { opacity: 0.6; box-shadow: 0 0 0 8px transparent; }
}

.hero-heading {
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

.hero-heading .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #FF9A3C 50%, #FFC107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #FF8A45);
    color: #fff;
    box-shadow: 0 6px 28px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn-outline:hover {
    border-color: var(--border-active);
    background: var(--bg-card);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.hero-visual-col {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.browser-mockup {
    width: 100%;
    max-width: 520px;
    background: rgba(18, 24, 34, 0.85);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    overflow: hidden;
}

.browser-mockup-header {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-default);
}

.mockup-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.mockup-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.mockup-dot.red { background: #FF5F57; }
.mockup-dot.yellow { background: #FFBD2E; }
.mockup-dot.green { background: #27CA40; }

.mockup-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 7px;
    font-size: 12px;
    color: var(--text-muted);
}

.mockup-url .url-lock { color: #27CA40; font-size: 11px; }

.browser-mockup-body {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background: linear-gradient(180deg, rgba(255,107,43,0.03) 0%, transparent 100%);
}

.mockup-logo {
    position: relative;
    width: 80px;
    height: 80px;
}

.mockup-logo-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid var(--border-active);
    animation: logo-ring-spin 8s linear infinite;
}

.mockup-logo-ring:nth-child(2) {
    inset: -24px;
    border-color: rgba(255, 107, 43, 0.15);
    animation-duration: 12s;
    animation-direction: reverse;
}

@keyframes logo-ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mockup-logo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #FF9A3C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 8px 32px var(--primary-glow);
}

.mockup-message {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 280px;
}

.mockup-glare {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* === 数据统计条 === */
.stats-strip {
    padding: 36px 0;
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}

.stats-strip-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === 区块通用 === */
.section {
    padding: 100px 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    padding: 4px 14px;
    background: var(--primary-subtle);
    border-radius: 6px;
}

.section-title {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* === 功能卡片 === */
.features-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-subtle), transparent);
    border: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-box {
    border-color: var(--border-active);
    box-shadow: 0 0 28px var(--primary-glow);
}

.feature-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === 性能亮点 === */
.highlights-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.highlight-item {
    text-align: center;
}

.highlight-metric {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.highlight-unit {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    opacity: 0.7;
}

.highlight-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* === CTA 区域 === */
.cta-section {
    padding: 100px 32px;
}

.cta-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 48px;
    background: linear-gradient(135deg, rgba(255, 107, 43, 0.06), rgba(255, 154, 60, 0.03));
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 0%, var(--primary-glow), transparent);
    opacity: 0.15;
    pointer-events: none;
}

.cta-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary), #FF8A45);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    transition: var(--transition);
    box-shadow: 0 8px 36px var(--primary-glow);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 48px var(--primary-glow);
}

.cta-btn svg {
    width: 20px;
    height: 20px;
}

/* === 下载页 === */
.download-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 32px 80px;
}

.dl-card {
    max-width: 520px;
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.dl-icon-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 32px;
}

.dl-icon {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), #FF9A3C);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    box-shadow: 0 12px 40px var(--primary-glow);
}

.dl-ripple {
    position: absolute;
    inset: -10px;
    border-radius: 30px;
    border: 2px solid var(--border-active);
    animation: ripple-out 2s ease-out infinite;
}

.dl-ripple:nth-child(2) { animation-delay: 0.7s; }
.dl-ripple:nth-child(3) { animation-delay: 1.4s; }

@keyframes ripple-out {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.dl-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.dl-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.dl-meta {
    display: flex;
    justify-content: center;
    gap: 36px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 28px;
}

.dl-meta-item {
    text-align: center;
}

.dl-meta-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dl-meta-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.dl-systems {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.dl-sys-badge {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.dl-sys-badge:hover {
    border-color: var(--border-active);
    background: var(--bg-card-hover);
}

.dl-sys-badge .sys-icon { font-size: 18px; }
.dl-sys-badge .sys-ver { margin-left: auto; color: var(--text-muted); font-size: 11px; }

.dl-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.dl-tag {
    padding: 6px 14px;
    background: var(--primary-subtle);
    border: 1px solid var(--border-default);
    border-radius: 50px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.dl-main-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 17px;
    background: linear-gradient(135deg, var(--primary), #FF8A45);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 32px var(--primary-glow);
}

.dl-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 44px var(--primary-glow);
}

.dl-main-btn svg {
    width: 20px;
    height: 20px;
}

.dl-alt-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.dl-alt-link:hover { color: var(--primary); }

.dl-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.dl-back:hover { color: var(--text-secondary); }
.dl-back svg { width: 16px; height: 16px; }

/* === 404 页面 === */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 32px 80px;
}

.error-card {
    max-width: 540px;
    width: 100%;
    text-align: center;
}

.error-code {
    font-size: clamp(72px, 12vw, 120px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.error-code-dim {
    font-size: clamp(72px, 12vw, 120px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;
    color: var(--border-default);
}

.error-illustration {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 40px;
}

.error-browser-icon {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.error-browser-bar {
    width: 100%;
    padding: 12px 16px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border-default);
}

.error-browser-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--text-muted);
}

.error-broken-icon {
    font-size: 48px;
    opacity: 0.3;
    margin-top: 12px;
}

.error-question {
    position: absolute;
    top: 50%;
    right: -10px;
    width: 48px;
    height: 48px;
    background: rgba(255, 80, 80, 0.12);
    border: 2px solid rgba(255, 80, 80, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #FF6B6B;
    animation: err-pulse 2s ease infinite;
}

@keyframes err-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 80, 80, 0.2); }
    50% { box-shadow: 0 0 0 16px transparent; }
}

.error-heading {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.error-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* === 页脚 === */
.footer {
    padding: 48px 32px;
    border-top: 1px solid var(--border-default);
    text-align: center;
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-tagline {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* === 进入动画 === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === 响应式 === */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-text-col {
        align-items: center;
    }
    
    .hero-desc {
        max-width: 100%;
    }
    
    .browser-mockup {
        max-width: 400px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-inner { padding: 14px 20px; }
    
    .hero { padding: 120px 20px 60px; }
    .section { padding: 60px 20px; }
    .cta-section { padding: 60px 20px; }
    
    .section-header { margin-bottom: 40px; }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .stats-strip-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }
    
    .cta-card {
        padding: 40px 24px;
    }
    
    .dl-card { padding: 36px 24px; }
    .dl-systems { flex-direction: column; }
    .dl-meta { gap: 24px; }
    
    .error-code, .error-code-dim {
        font-size: clamp(56px, 16vw, 80px);
    }
}

@media (max-width: 480px) {
    .hero-heading { font-size: 34px; }
    .hero-desc { font-size: 15px; }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-strip-inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .browser-mockup {
        max-width: 320px;
    }
    
    .browser-mockup-body {
        padding: 32px 20px;
    }
}
