/* ==========================================================================
   WPS Office Landing Page - Zenith Theme (Coral & Indigo)
   ========================================================================== */

   :root {
    --primary: #f43f5e; /* Rose 500 */
    --primary-hover: #e11d48; /* Rose 600 */
    --secondary: #4f46e5; /* Indigo 600 */
    --accent: #f59e0b; /* Amber 500 */
    
    --bg-main: #ffffff;
    --bg-soft: #fff1f2; /* Rose 50 */
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-card: #ffffff;
    
    --text-main: #1e293b; /* Slate 800 */
    --text-mut: #64748b; /* Slate 500 */
    --text-light: #f8fafc; /* Slate 50 */
    
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 10px 25px -5px rgba(244, 63, 94, 0.4);
    
    --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  
  * { box-sizing: border-box; margin: 0; padding: 0; }
  
  body {
    font-family: var(--font-base);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  img, svg { max-width: 100%; height: auto; display: block; }
  a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
  ul { list-style: none; }
  
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  /* 导航栏 */
  .navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: 72px;
  }
  
  .nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
  }
  
  .nav-brand {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.25rem; font-weight: 700; color: var(--bg-dark);
    letter-spacing: -0.5px;
  }
  
  .nav-brand svg { width: 32px; height: 32px; color: var(--primary); }
  
  .nav-menu { display: flex; gap: 8px; }
  
  .nav-link {
    padding: 8px 16px;
    font-size: 0.95rem; font-weight: 500;
    color: var(--text-mut);
    border-radius: var(--radius-pill);
  }
  
  .nav-link:hover { color: var(--bg-dark); background: var(--bg-soft); }
  .nav-link.active { color: var(--primary); background: var(--bg-soft); font-weight: 600; }
  
  /* 按钮通用 */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; font-weight: 600; cursor: pointer;
    border: none; outline: none;
    border-radius: var(--radius-pill);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit; font-size: 1rem;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; padding: 14px 32px;
    box-shadow: var(--shadow-glow);
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(244, 63, 94, 0.5);
  }
  
  .btn-secondary {
    background: var(--bg-soft); color: var(--primary);
    padding: 14px 32px; font-weight: 600;
  }
  .btn-secondary:hover { background: #ffe4e6; }
  
  .btn-dark {
    background: var(--bg-dark); color: white;
    padding: 12px 24px;
  }
  .btn-dark:hover { background: #1e293b; transform: translateY(-2px); }
  
  .btn-outline {
    background: transparent; border: 2px solid var(--border);
    color: var(--text-main); padding: 12px 24px;
  }
  .btn-outline:hover { border-color: var(--primary); color: var(--primary); }
  
  /* 布局容器 */
  .section { padding: 80px 24px; }
  .section-soft { background-color: var(--bg-soft); }
  .section-dark { background-color: var(--bg-dark); color: white; }
  .section-gray { background-color: #f8fafc; }
  
  .container { max-width: 1200px; margin: 0 auto; }
  
  .sec-header { text-align: center; margin-bottom: 56px; max-width: 700px; margin-inline: auto; }
  .sec-tag {
    display: inline-block; padding: 6px 16px; border-radius: var(--radius-pill);
    background: #ffe4e6; color: var(--primary); font-size: 0.85rem; font-weight: 700;
    margin-bottom: 16px; letter-spacing: 1px; text-transform: uppercase;
  }
  .sec-title { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; letter-spacing: -1px; }
  .sec-desc { font-size: 1.125rem; color: var(--text-mut); }
  .sec-dark .sec-title { color: white; }
  .sec-dark .sec-desc { color: var(--text-light); opacity: 0.8; }
  
  /* 首页 Hero */
  .hero {
    padding: 160px 24px 100px;
    background: radial-gradient(circle at top right, rgba(244,63,94,0.1) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(79,70,229,0.1) 0%, transparent 40%);
    text-align: center;
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; background: white; border: 1px solid var(--border);
    border-radius: var(--radius-pill); font-size: 0.9rem; font-weight: 600;
    box-shadow: var(--shadow-sm); margin-bottom: 32px;
  }
  .hero-badge svg { color: var(--accent); width: 18px; height: 18px; }
  .hero-title {
    font-size: 4.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -2px;
    margin-bottom: 24px; max-width: 900px; margin-inline: auto;
  }
  .hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero-desc {
    font-size: 1.25rem; color: var(--text-mut); margin-bottom: 48px;
    max-width: 600px; margin-inline: auto;
  }
  .hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
  
  /* 数据统计条 */
  .stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    background: white; border-radius: var(--radius-lg); padding: 40px;
    box-shadow: var(--shadow-md); border: 1px solid var(--border);
    margin-top: 60px; max-width: 1000px; margin-inline: auto; text-align: center;
  }
  .stat-num { font-size: 2.5rem; font-weight: 800; color: var(--bg-dark); margin-bottom: 8px; }
  .stat-lbl { color: var(--text-mut); font-weight: 500; }
  
  /* 核心特性网格 */
  .feat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
  }
  .feat-card {
    background: white; padding: 40px; border-radius: var(--radius-lg);
    border: 1px solid var(--border); transition: all 0.3s;
    box-shadow: var(--shadow-sm);
  }
  .feat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: #fca5a5; }
  .feat-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: var(--bg-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
  }
  .feat-icon svg { width: 32px; height: 32px; }
  .feat-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
  .feat-desc { color: var(--text-mut); line-height: 1.6; }
  
  /* 深度对比 / 特性拆解 */
  .split-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
    align-items: center; margin-bottom: 100px;
  }
  .split-row.rev { direction: rtl; }
  .split-row.rev > * { direction: ltr; }
  .split-info h3 { font-size: 2.25rem; font-weight: 800; margin-bottom: 24px; letter-spacing: -1px; }
  .split-info p { font-size: 1.125rem; color: var(--text-mut); margin-bottom: 32px; }
  .split-list li {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 16px; font-weight: 500; font-size: 1.05rem;
  }
  .split-list svg { color: var(--primary); width: 24px; height: 24px; flex-shrink: 0; }
  .split-visual {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: var(--radius-lg); padding: 40px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
  }
  .visual-mock {
    background: white; border-radius: 12px; width: 100%; box-shadow: var(--shadow-md);
    padding: 24px; overflow: hidden;
  }
  
  /* 用户评价 */
  .review-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
  }
  .review-card {
    background: white; padding: 32px; border-radius: var(--radius-md);
    border: 1px solid var(--border);
  }
  .review-stars { color: var(--accent); display: flex; gap: 4px; margin-bottom: 16px; }
  .review-stars svg { width: 20px; height: 20px; fill: currentColor; }
  .review-text { font-size: 1.1rem; font-style: italic; color: var(--text-main); margin-bottom: 24px; }
  .review-author { display: flex; align-items: center; gap: 16px; }
  .review-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--bg-dark); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700;
  }
  .review-info h4 { font-size: 1rem; font-weight: 700; }
  .review-info p { font-size: 0.85rem; color: var(--text-mut); }
  
  /* 对比表格 */
  .cmp-wrap { overflow-x: auto; background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
  .cmp-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 800px; }
  .cmp-table th, .cmp-table td { padding: 20px 24px; border-bottom: 1px solid var(--border); }
  .cmp-table th { background: var(--bg-soft); font-weight: 700; color: var(--bg-dark); }
  .cmp-table tr:last-child td { border-bottom: none; }
  .cmp-hl { background: rgba(244, 63, 94, 0.05); color: var(--primary); font-weight: 700; }
  .cmp-icon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }
  .cmp-yes { color: #10b981; }
  .cmp-no { color: #ef4444; }
  
  /* FAQ 模块 */
  .faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
  .faq-item {
    background: white; border: 1px solid var(--border); border-radius: var(--radius-md);
    overflow: hidden; transition: all 0.3s;
  }
  .faq-q {
    padding: 24px; font-size: 1.125rem; font-weight: 700;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; background: white; border: none; width: 100%; text-align: left;
    font-family: inherit; color: inherit; outline: none;
  }
  .faq-q svg { width: 24px; height: 24px; transition: transform 0.3s; color: var(--text-mut); }
  .faq-item.active { border-color: var(--primary); box-shadow: var(--shadow-sm); }
  .faq-item.active .faq-q { color: var(--primary); }
  .faq-item.active .faq-q svg { transform: rotate(180deg); color: var(--primary); }
  .faq-a {
    max-height: 0; padding: 0 24px; color: var(--text-mut); line-height: 1.6;
    transition: all 0.3s ease; opacity: 0; visibility: hidden;
  }
  .faq-item.active .faq-a { max-height: 400px; padding: 0 24px 24px; opacity: 1; visibility: visible; }
  
  /* 平台下载页 (download.html) */
  .dl-hero { padding: 140px 24px 80px; text-align: center; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
  .dl-main-card {
    max-width: 800px; margin: -40px auto 60px;
    background: white; border-radius: var(--radius-lg); padding: 48px;
    box-shadow: var(--shadow-md); border: 1px solid var(--border); text-align: center;
    position: relative; z-index: 10;
  }
  .dl-main-icon {
    width: 80px; height: 80px; margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px; color: white; display: flex; align-items: center; justify-content: center;
  }
  .dl-main-icon svg { width: 40px; height: 40px; }
  .dl-meta { display: flex; justify-content: center; gap: 24px; margin: 24px 0 32px; color: var(--text-mut); font-size: 0.95rem; }
  .dl-meta span { display: flex; align-items: center; gap: 6px; }
  .dl-meta svg { width: 18px; height: 18px; }
  
  .plat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
  .plat-card {
    background: white; border: 1px solid var(--border); padding: 32px;
    border-radius: var(--radius-md); text-align: center;
  }
  .plat-card svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--bg-dark); }
  .plat-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
  .plat-card p { color: var(--text-mut); font-size: 0.9rem; margin-bottom: 24px; flex-grow: 1; }
  
  /* 系统要求 & 版本时间线 */
  .req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
  .req-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px; }
  .req-title { font-size: 0.9rem; color: var(--text-mut); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; font-weight: 700; }
  .req-val { font-size: 1.1rem; font-weight: 600; color: var(--bg-dark); }
  
  .timeline { border-left: 2px solid var(--border); padding-left: 32px; margin-left: 16px; }
  .timeline-item { position: relative; margin-bottom: 32px; }
  .timeline-item:last-child { margin-bottom: 0; }
  .timeline-dot {
    position: absolute; left: -41px; top: 0; width: 16px; height: 16px;
    border-radius: 50%; background: var(--primary); border: 4px solid white;
  }
  .timeline-date { font-size: 0.9rem; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
  .timeline-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
  .timeline-desc { color: var(--text-mut); }
  
  .step-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
  }
  .step-card {
    background: white; padding: 32px; border-radius: var(--radius-md);
    border: 1px solid var(--border); position: relative;
  }
  .step-num {
    width: 40px; height: 40px; background: var(--bg-soft); color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.25rem; margin-bottom: 20px;
  }
  .step-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
  .step-card p { color: var(--text-mut); font-size: 0.95rem; }
  
  /* 文章页 (zh-cn.html) */
  .article-layout {
    display: grid; grid-template-columns: 1fr 340px; gap: 48px;
    max-width: 1200px; margin: 120px auto 80px; padding: 0 24px;
  }
  .article-main { background: white; padding: 48px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
  .article-main h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 24px; letter-spacing: -1px; }
  .article-main h2 { font-size: 1.75rem; font-weight: 700; margin: 48px 0 24px; color: var(--bg-dark); border-bottom: 2px solid var(--bg-soft); padding-bottom: 12px; }
  .article-main h3 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 16px; }
  .article-main p { font-size: 1.1rem; color: var(--text-mut); margin-bottom: 20px; line-height: 1.8; }
  .article-main ul { list-style: disc; margin-left: 24px; margin-bottom: 24px; color: var(--text-mut); font-size: 1.1rem; }
  .article-main li { margin-bottom: 8px; }
  
  /* 技巧卡片网格 */
  .tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
  .tip-card { background: var(--bg-soft); padding: 24px; border-radius: var(--radius-md); border: 1px solid #ffe4e6; }
  .tip-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
  .tip-card p { font-size: 0.95rem; margin-bottom: 0; }
  
  .sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
  .side-box {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 24px;
  }
  .side-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .side-links a {
    display: block; padding: 10px 12px; border-radius: 6px;
    color: var(--text-main); font-weight: 500; font-size: 0.95rem; margin-bottom: 8px;
  }
  .side-links a:hover { background: var(--bg-soft); color: var(--primary); }
  
  .cta-inline {
    background: linear-gradient(135deg, var(--bg-dark), #1e293b); color: white;
    padding: 40px; border-radius: var(--radius-md); text-align: center; margin: 48px 0;
  }
  .cta-inline h3 { color: white; border: none; margin: 0 0 16px; font-size: 1.75rem; }
  .cta-inline p { color: var(--text-light); opacity: 0.9; margin-bottom: 24px; font-size: 1.05rem; }
  
  /* 页脚 */
  .site-footer {
    background: var(--bg-dark); color: var(--text-light);
    padding: 64px 24px; text-align: center; border-top: 1px solid rgba(255,255,255,0.1);
  }
  .footer-security {
    display: inline-flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.05); padding: 12px 24px; border-radius: var(--radius-pill);
    margin-bottom: 24px; font-weight: 600; color: #a7f3d0;
  }
  .footer-security svg { width: 20px; height: 20px; }
  .footer-copy { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.6; }
  
  /* 响应式 */
  @media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .split-row { grid-template-columns: 1fr; gap: 40px; }
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { position: relative; top: 0; }
    .tips-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 768px) {
    .nav-menu { display: none; } /* 移动端简化导航，仅保留品牌和下载按纽 */
    .hero { padding: 120px 24px 80px; }
    .hero-title { font-size: 2.75rem; }
    .sec-title { font-size: 2rem; }
    .dl-main-card { padding: 32px 24px; }
    .dl-meta { flex-direction: column; gap: 12px; }
    .stats-bar { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  }
