/* Snipaste 下载站 - 主样式表 */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #4a9af5;
    --primary-bg: #e8f0fe;
    --dark: #1a1a2e;
    --dark-secondary: #16213e;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-section: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #10b981;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== 导航栏 ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.nav {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 22px; font-weight: 700; color: var(--text-primary);
}
.nav-logo:hover { color: var(--text-primary); }
.nav-logo svg { width: 36px; height: 36px; }

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
    display: block; padding: 8px 16px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 15px; font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary); background: var(--primary-bg);
}

.nav-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; border-radius: var(--radius-md);
    background: var(--primary); color: #fff !important;
    font-size: 14px; font-weight: 600;
    box-shadow: 0 2px 8px rgba(26,115,232,0.3);
    transition: var(--transition);
}
.nav-cta:hover {
    background: var(--primary-dark); color: #fff !important;
    box-shadow: 0 4px 12px rgba(26,115,232,0.4);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text-primary); border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero区域 ===== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 50%, #f8fafc 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, rgba(26,115,232,0.06) 0%, transparent 70%);
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; left: -10%;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(26,115,232,0.04) 0%, transparent 70%);
}

.hero-content {
    position: relative; z-index: 1;
    text-align: center; max-width: 800px; margin: 0 auto;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 20px;
    background: var(--bg-white); border: 1px solid var(--border);
    font-size: 13px; color: var(--text-secondary); font-weight: 500;
    margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--success); animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 52px; font-weight: 800; line-height: 1.2;
    color: var(--text-primary); margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero h1 span { color: var(--primary); }
.hero p {
    font-size: 19px; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 36px; line-height: 1.8;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 32px; border-radius: var(--radius-md);
    background: var(--primary); color: #fff;
    font-size: 16px; font-weight: 600;
    box-shadow: 0 4px 14px rgba(26,115,232,0.35);
    transition: var(--transition); border: none; cursor: pointer;
}
.btn-primary:hover {
    background: var(--primary-dark); color: #fff;
    box-shadow: 0 6px 20px rgba(26,115,232,0.45);
    transform: translateY(-2px);
}
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 32px; border-radius: var(--radius-md);
    background: var(--bg-white); color: var(--text-primary);
    font-size: 16px; font-weight: 600;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition); cursor: pointer;
}
.btn-secondary:hover {
    border-color: var(--primary); color: var(--primary);
    box-shadow: var(--shadow-md); transform: translateY(-2px);
}

.hero-stats {
    display: flex; justify-content: center; gap: 48px;
    margin-top: 56px; padding-top: 40px;
    border-top: 1px solid var(--border);
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 28px; font-weight: 700; color: var(--primary); }
.hero-stat .label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* ===== 通用Section ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-section); }
.section-dark { background: var(--dark); color: #fff; }

.section-header {
    text-align: center; max-width: 680px; margin: 0 auto 64px;
}
.section-header .tag {
    display: inline-block; padding: 4px 14px;
    border-radius: 16px; background: var(--primary-bg);
    color: var(--primary); font-size: 13px; font-weight: 600;
    margin-bottom: 16px; letter-spacing: 0.5px;
}
.section-header h2 {
    font-size: 38px; font-weight: 700; margin-bottom: 16px;
    line-height: 1.3; letter-spacing: -0.3px;
}
.section-header p {
    font-size: 17px; color: var(--text-secondary); line-height: 1.8;
}

/* ===== 特性卡片 ===== */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature-card {
    background: var(--bg-white); border-radius: var(--radius-lg);
    padding: 36px; border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.feature-card:hover {
    box-shadow: var(--shadow-lg); transform: translateY(-4px);
    border-color: var(--primary-bg);
}
.feature-icon {
    width: 52px; height: 52px; border-radius: var(--radius-md);
    background: var(--primary-bg); display: flex;
    align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; color: var(--primary); }
.feature-card h3 {
    font-size: 19px; font-weight: 600; margin-bottom: 10px;
    color: var(--text-primary);
}
.feature-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ===== 下载页 ===== */
.download-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    color: #fff; text-align: center;
}
.download-hero h1 { font-size: 44px; font-weight: 700; margin-bottom: 16px; }
.download-hero p { font-size: 18px; color: rgba(255,255,255,0.7); }

.download-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px; margin-top: 48px;
}
.download-card {
    background: var(--bg-white); border-radius: var(--radius-lg);
    padding: 36px; border: 1px solid var(--border);
    box-shadow: var(--shadow-md); transition: var(--transition);
}
.download-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.download-card-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.download-card-icon {
    width: 56px; height: 56px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
}
.download-card-icon svg { width: 32px; height: 32px; }
.download-card h3 { font-size: 22px; font-weight: 600; }
.download-card .version { font-size: 13px; color: var(--text-light); }

.download-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 14px 24px; border-radius: var(--radius-md);
    background: var(--primary); color: #fff;
    font-size: 15px; font-weight: 600;
    box-shadow: 0 2px 8px rgba(26,115,232,0.3);
    transition: var(--transition); border: none; cursor: pointer;
    margin-bottom: 12px; text-decoration: none;
}
.download-btn:hover {
    background: var(--primary-dark); color: #fff;
    box-shadow: 0 4px 12px rgba(26,115,232,0.4);
    transform: translateY(-1px);
}
.download-btn-secondary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px 20px; border-radius: var(--radius-md);
    background: var(--bg-light); color: var(--text-primary);
    font-size: 14px; font-weight: 500;
    border: 1px solid var(--border);
    transition: var(--transition); text-decoration: none;
    margin-bottom: 8px;
}
.download-btn-secondary:hover {
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-bg);
}

.download-info {
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light);
    font-size: 13px; color: var(--text-light);
}

/* ===== 步骤区域 ===== */
.steps-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    position: relative;
}
.steps-grid::before {
    content: ''; position: absolute; top: 36px;
    left: 12.5%; right: 12.5%; height: 2px;
    background: linear-gradient(to right, var(--primary-bg), var(--primary), var(--primary-bg));
}
.step-item { text-align: center; position: relative; z-index: 1; }
.step-number {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700;
    margin: 0 auto 20px; box-shadow: 0 4px 14px rgba(26,115,232,0.3);
}
.step-item h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 12px; overflow: hidden;
    background: var(--bg-white);
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary-bg); }
.faq-question {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; cursor: pointer;
    font-size: 16px; font-weight: 600;
    color: var(--text-primary);
    background: none; border: none; width: 100%;
    text-align: left; transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question .arrow {
    width: 20px; height: 20px; transition: transform 0.3s;
    flex-shrink: 0; margin-left: 12px;
}
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 15px; color: var(--text-secondary); line-height: 1.8;
}

/* ===== 表格 ===== */
.info-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-white); border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.info-table th, .info-table td {
    padding: 16px 24px; text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.info-table th {
    background: var(--bg-section); font-weight: 600;
    font-size: 14px; color: var(--text-secondary);
}
.info-table td { font-size: 15px; }
.info-table tr:last-child td { border-bottom: none; }

/* ===== 页脚 ===== */
.footer {
    background: var(--dark); color: rgba(255,255,255,0.8);
    padding: 80px 0 40px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; margin-bottom: 60px;
}
.footer-brand p {
    font-size: 14px; line-height: 1.8;
    color: rgba(255,255,255,0.6); margin-top: 16px;
}
.footer-col h4 {
    font-size: 15px; font-weight: 600; margin-bottom: 20px;
    color: #fff;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: rgba(255,255,255,0.6); font-size: 14px;
    transition: var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: rgba(255,255,255,0.4);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 100px 0 20px;
    background: var(--bg-section);
}
.breadcrumb-list {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; list-style: none;
}
.breadcrumb-list a { color: var(--text-light); }
.breadcrumb-list a:hover { color: var(--primary); }
.breadcrumb-list .sep { color: var(--text-light); }
.breadcrumb-list .current { color: var(--text-primary); font-weight: 500; }

/* ===== 内页通用 ===== */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    text-align: center;
}
.page-hero h1 { font-size: 40px; font-weight: 700; margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.content-section { padding: 80px 0; }
.content-section h2 {
    font-size: 28px; font-weight: 700; margin-bottom: 20px;
    padding-bottom: 12px; border-bottom: 2px solid var(--primary-bg);
}
.content-section h3 {
    font-size: 20px; font-weight: 600; margin: 32px 0 12px;
    color: var(--text-primary);
}
.content-section p {
    font-size: 16px; color: var(--text-secondary);
    line-height: 1.9; margin-bottom: 16px;
}
.content-section ul, .content-section ol {
    margin: 16px 0; padding-left: 24px;
}
.content-section li {
    font-size: 15px; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 8px;
}

/* ===== CTA区域 ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center; color: #fff;
}
.cta-section h2 { font-size: 34px; font-weight: 700; margin-bottom: 16px; }
.cta-section p { font-size: 17px; opacity: 0.9; margin-bottom: 32px; }
.cta-section .btn-primary {
    background: #fff; color: var(--primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.cta-section .btn-primary:hover {
    background: #f8fafc; transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ===== 专业版区域 ===== */
.pro-banner {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: var(--radius-xl); padding: 48px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px; margin-top: 48px; color: #fff;
}
.pro-banner h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.pro-banner p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.7; }
.pro-banner .btn-primary {
    background: #fff; color: var(--text-primary); white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.pro-banner .btn-primary:hover { background: #f8fafc; }

/* ===== 404页面 ===== */
.error-page {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center;
    background: var(--bg-light); padding: 24px;
}
.error-code {
    font-size: 140px; font-weight: 800; color: var(--primary);
    line-height: 1; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.error-page h1 { font-size: 28px; font-weight: 600; margin-bottom: 12px; }
.error-page p { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex; flex-direction: column;
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--bg-white); padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .mobile-toggle { display: flex; }
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 28px; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; gap: 24px; }
    .download-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .pro-banner { flex-direction: column; text-align: center; padding: 32px; }
    .page-hero h1 { font-size: 30px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .breadcrumb { padding: 80px 0 16px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .download-card { padding: 24px; }
    .error-code { font-size: 100px; }
}
