/* ============================================
   Clash 官网 - Clash Verge 智能代理客户端
   主样式表 - index.css
   版本: v2.4.0-release
   ============================================ */

/* ---------- CSS 自定义属性 ---------- */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #eff6ff;
    --primary-border: #bfdbfe;
    --primary-soft: #dbeafe;
    --text-dark: #1e293b;
    --text-body: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 4px 14px rgba(59, 130, 246, 0.25);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 50px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    --max-width: 1100px;
}

/* ---------- 全局重置 ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- 通用元素 ---------- */
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

mark {
    background: linear-gradient(180deg, transparent 60%, #dbeafe 60%);
    color: inherit;
}

/* ---------- 头部导航 ---------- */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.3px;
}

.logo-area img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

nav a {
    text-decoration: none;
    color: #475569;
    font-size: 0.93rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: var(--primary-light);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
}

.repo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #1e293b;
    color: #ffffff !important;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.repo-btn:hover {
    background-color: #0f172a;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ---------- Hero 主视觉区 ---------- */
.hero {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 70px 20px 40px;
}

.badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 7px 18px;
    border-radius: var(--radius-xl);
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid var(--primary-border);
    margin-bottom: 22px;
    letter-spacing: 0.2px;
}

h1 {
    font-size: 2.5rem;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 22px;
    letter-spacing: -0.6px;
    font-weight: 800;
}

.hero-desc {
    font-size: 1.06rem;
    color: #475569;
    max-width: 780px;
    margin: 0 auto 32px;
    text-align: justify;
    text-indent: 2em;
    line-height: 1.75;
}

.hero-desc strong {
    color: var(--text-dark);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: var(--shadow-primary);
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-border);
    box-shadow: none;
}

.cta-btn.secondary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* Hero 统计徽章 */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---------- 媒体展示区 ---------- */
.media-section {
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.banner-placeholder {
    width: 100%;
    height: auto;
    min-height: 360px;
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.banner-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background-color: #000000;
    box-shadow: var(--shadow-lg);
    margin-top: 28px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- 内容容器 ---------- */
.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px 40px;
}

/* ---------- Section 通用样式 ---------- */
section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border-light);
}

section:last-of-type {
    border-bottom: none;
}

.section-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-title-area svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-color);
    flex-shrink: 0;
}

h2 {
    font-size: 1.75rem;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.4px;
}

p {
    color: var(--text-body);
    font-size: 1.03rem;
    margin-bottom: 16px;
    text-align: justify;
    text-indent: 2em;
    line-height: 1.75;
}

p strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ---------- 网格布局 ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 28px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 28px;
}

/* ---------- 特性卡片 (icon-lead) ---------- */
.feat-card {
    background-color: var(--bg-light);
    padding: 26px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.feat-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
}

.feat-icon-wrap {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.feat-icon-wrap svg {
    width: 22px;
    height: 22px;
    fill: var(--primary-color);
}

.feat-card h4 {
    font-size: 1.12rem;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 600;
}

.feat-card p {
    text-indent: 0;
    font-size: 0.94rem;
    color: #475569;
    margin-bottom: 0;
}

/* ---------- 特性盒子 (feat-box) ---------- */
.feat-box {
    background-color: #ffffff;
    border-left: 4px solid var(--primary-color);
    padding: 8px 0 8px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.feat-box h4 {
    font-size: 1.12rem;
    color: #0f172a;
    margin-bottom: 8px;
    font-weight: 600;
}

.feat-box p {
    text-indent: 0;
    font-size: 0.96rem;
    color: #475569;
    margin-bottom: 0;
}

/* ---------- 策略网格 ---------- */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 26px;
}

.strategy-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color var(--transition-fast);
}

.strategy-item:hover {
    border-color: var(--primary-border);
}

.strategy-icon {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.strategy-item strong {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 600;
}

.strategy-item span:last-child {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---------- 对比表格 ---------- */
.compare-table-wrap {
    overflow-x: auto;
    margin-top: 26px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.compare-table thead {
    background-color: #f1f5f9;
}

.compare-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}

.compare-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    color: var(--text-body);
}

.compare-table tbody tr:hover {
    background-color: var(--primary-light);
}

/* ---------- 协议标签 ---------- */
.protocol-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.protocol-tags span {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-border);
    padding: 7px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.protocol-tags span:hover {
    background-color: var(--primary-soft);
    border-color: var(--primary-color);
}

/* ---------- 时间线 ---------- */
.timeline {
    position: relative;
    margin-top: 28px;
    padding-left: 10px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 52px;
    margin-bottom: 32px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.step-icon {
    position: absolute;
    left: 0;
    top: 2px;
    width: 38px;
    height: 38px;
    background-color: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.step-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-color);
}

.timeline-item h4 {
    font-size: 1.12rem;
    margin-bottom: 8px;
    color: #0f172a;
    font-weight: 600;
}

.timeline-item p {
    text-indent: 0;
    font-size: 0.96rem;
    color: #475569;
    margin-bottom: 0;
}

/* ---------- 卡片 (card) 通用 ---------- */
.card {
    background-color: var(--bg-light);
    padding: 28px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 42px;
    height: 42px;
    background-color: #ffffff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.card-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--primary-color);
}

.card h3 {
    font-size: 1.2rem;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 600;
}

.card p {
    text-indent: 0;
    font-size: 0.93rem;
    color: #475569;
    margin-bottom: 0;
}

/* ---------- 页脚 ---------- */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 55px 20px 30px;
    margin-top: 50px;
    font-size: 0.9rem;
}

.footer-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    border-bottom: 1px solid #334155;
    padding-bottom: 40px;
}

.footer-col h5 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.footer-col ul li {
    margin-bottom: 11px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1000px;
    margin: 28px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.84rem;
}

.footer-bottom p {
    margin-bottom: 0;
    text-indent: 0;
    color: #64748b;
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 14px;
        padding: 12px 16px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    nav a {
        font-size: 0.88rem;
    }

    .repo-btn {
        padding: 7px 14px;
        font-size: 0.84rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.45rem;
    }

    .hero {
        padding: 50px 16px 30px;
    }

    .hero-desc {
        font-size: 0.96rem;
        text-indent: 1.5em;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
    }

    .hero-stats {
        gap: 22px;
    }

    .stat-num {
        font-size: 1.3rem;
    }

    .grid-2,
    .grid-3,
    .strategy-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .banner-placeholder {
        min-height: 220px;
    }

    .timeline::before {
        left: 18px;
    }

    .timeline-item {
        padding-left: 42px;
    }

    .step-icon {
        left: 0;
        width: 34px;
        height: 34px;
    }

    .compare-table-wrap {
        font-size: 0.82rem;
    }

    .compare-table th,
    .compare-table td {
        padding: 10px 12px;
    }

    .protocol-tags {
        gap: 8px;
    }

    .protocol-tags span {
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    section {
        padding: 34px 0;
    }

    p {
        text-indent: 1.5em;
        font-size: 0.96rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.55rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-item {
        flex: 0 0 40%;
    }

    .badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .section-title-area svg {
        width: 24px;
        height: 24px;
    }

    .card {
        padding: 22px 16px;
    }

    .timeline-item {
        padding-left: 36px;
    }

    .step-icon {
        width: 30px;
        height: 30px;
    }
}

/* ---------- 打印样式 ---------- */
@media print {
    header,
    footer,
    .cta-btn,
    .video-wrapper,
    .repo-btn {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .content-container {
        max-width: 100%;
    }

    section {
        page-break-inside: avoid;
    }
}