*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --wps-red:#e2231a;
  --wps-red-dark:#c41e16;
  --wps-blue:#1a6fd4;
  --wps-blue-light:#e8f2fc;
  --text-primary:#1a1a2e;
  --text-secondary:#5a6270;
  --text-muted:#8c95a3;
  --bg-light:#f5f7fa;
  --bg-white:#ffffff;
  --border:#e4e8ef;
  --shadow:0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:0 12px 48px rgba(0,0,0,.12);
  --radius:12px;
  --radius-lg:20px;
  --header-h:64px;
  --max-w:1200px;
  --transition:.25s ease;
}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:var(--text-primary);line-height:1.6;background:var(--bg-white)}
a{color:inherit;text-decoration:none;transition:color var(--transition)}
img{max-width:100%;display:block}
ul{list-style:none}
.container{max-width:var(--max-w);margin:0 auto;padding:0 24px}

/* Header */
.site-header{position:fixed;top:0;left:0;right:0;height:var(--header-h);background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);z-index:1000}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:100%}
.logo{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700;color:var(--text-primary)}
.logo-icon{width:36px;height:36px;background:var(--wps-red);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:14px}
.nav-main{display:flex;align-items:center;gap:32px}
.nav-main a{font-size:15px;color:var(--text-secondary);font-weight:500}
.nav-main a:hover,.nav-main a.active{color:var(--wps-red)}
.header-actions{display:flex;align-items:center;gap:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 24px;border-radius:8px;font-size:15px;font-weight:600;border:none;cursor:pointer;transition:all var(--transition)}
.btn-primary{background:var(--wps-red);color:#fff}
.btn-primary:hover{background:var(--wps-red-dark);transform:translateY(-1px);box-shadow:0 4px 16px rgba(226,35,26,.35)}
.btn-outline{background:transparent;color:var(--wps-red);border:2px solid var(--wps-red)}
.btn-outline:hover{background:var(--wps-red);color:#fff}
.btn-lg{padding:14px 36px;font-size:16px;border-radius:10px}
.btn-white{background:#fff;color:var(--wps-red)}
.btn-white:hover{background:#f8f8f8}
.mobile-toggle{display:none;background:none;border:none;font-size:24px;cursor:pointer;color:var(--text-primary)}

/* Hero */
.hero{padding:calc(var(--header-h) + 60px) 0 80px;background:linear-gradient(135deg,#fff5f4 0%,#e8f2fc 50%,#fff 100%);position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;top:-50%;right:-20%;width:600px;height:600px;background:radial-gradient(circle,rgba(226,35,26,.06) 0%,transparent 70%);border-radius:50%}
.hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;position:relative}
.hero-badge{display:inline-block;padding:6px 16px;background:rgba(226,35,26,.1);color:var(--wps-red);border-radius:20px;font-size:13px;font-weight:600;margin-bottom:20px}
.hero h1{font-size:48px;line-height:1.2;font-weight:800;margin-bottom:20px;background:linear-gradient(135deg,var(--text-primary) 0%,var(--wps-red) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-desc{font-size:18px;color:var(--text-secondary);margin-bottom:32px;line-height:1.8}
.hero-btns{display:flex;gap:16px;flex-wrap:wrap}
.hero-stats{display:flex;gap:40px;margin-top:48px;padding-top:32px;border-top:1px solid var(--border)}
.stat-item strong{display:block;font-size:28px;font-weight:800;color:var(--wps-red)}
.stat-item span{font-size:13px;color:var(--text-muted)}
.hero-visual{display:flex;justify-content:center;align-items:center}
.hero-card{background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);padding:32px;width:100%;max-width:480px}
.hero-card-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.hero-module{padding:24px;border-radius:var(--radius);text-align:center;transition:transform var(--transition)}
.hero-module:hover{transform:translateY(-4px)}
.hero-module.wps-writer{background:#fff0ef}
.hero-module.wps-sheet{background:#e8f5e9}
.hero-module.wps-slide{background:#fff8e1}
.hero-module.wps-pdf{background:#e3f2fd}
.module-icon{font-size:36px;margin-bottom:8px}
.hero-module h3{font-size:15px;font-weight:600}

/* Section */
.section{padding:80px 0}
.section-header{text-align:center;margin-bottom:56px}
.section-header h2{font-size:36px;font-weight:800;margin-bottom:16px}
.section-header p{font-size:17px;color:var(--text-secondary);max-width:640px;margin:0 auto}
.section-alt{background:var(--bg-light)}

/* Features */
.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.feature-card{background:#fff;border-radius:var(--radius-lg);padding:36px 28px;box-shadow:var(--shadow);transition:transform var(--transition),box-shadow var(--transition);border:1px solid transparent}
.feature-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:var(--border)}
.feature-icon{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:28px;margin-bottom:20px}
.feature-icon.red{background:#fff0ef}
.feature-icon.blue{background:var(--wps-blue-light)}
.feature-icon.green{background:#e8f5e9}
.feature-card h3{font-size:18px;font-weight:700;margin-bottom:10px}
.feature-card p{font-size:14px;color:var(--text-secondary);line-height:1.7}

/* Products */
.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.product-item{background:#fff;border-radius:var(--radius);padding:28px 20px;text-align:center;border:1px solid var(--border);transition:all var(--transition)}
.product-item:hover{border-color:var(--wps-red);box-shadow:var(--shadow)}
.product-item .icon{font-size:40px;margin-bottom:12px}
.product-item h3{font-size:16px;font-weight:600;margin-bottom:6px}
.product-item p{font-size:13px;color:var(--text-muted)}

/* Download cards */
.download-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.download-card{background:#fff;border-radius:var(--radius-lg);padding:36px 28px;text-align:center;border:1px solid var(--border);transition:all var(--transition)}
.download-card:hover{box-shadow:var(--shadow-lg);border-color:var(--wps-red)}
.download-card .platform-icon{font-size:48px;margin-bottom:16px}
.download-card h3{font-size:20px;font-weight:700;margin-bottom:8px}
.download-card .version{font-size:13px;color:var(--text-muted);margin-bottom:6px}
.download-card .sys-req{font-size:13px;color:var(--text-secondary);margin-bottom:24px}

/* Steps */
.steps-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.step-item{text-align:center;position:relative}
.step-num{width:48px;height:48px;background:var(--wps-red);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;margin:0 auto 16px}
.step-item h3{font-size:16px;font-weight:600;margin-bottom:8px}
.step-item p{font-size:14px;color:var(--text-secondary)}

/* Articles */
.articles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.article-card{background:#fff;border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--border);transition:all var(--transition)}
.article-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-4px)}
.article-card-img{height:180px;background:linear-gradient(135deg,var(--wps-blue-light),#fff5f4);display:flex;align-items:center;justify-content:center;font-size:48px}
.article-card-body{padding:24px}
.article-card-body .tag{display:inline-block;padding:4px 10px;background:var(--wps-blue-light);color:var(--wps-blue);border-radius:4px;font-size:12px;font-weight:600;margin-bottom:12px}
.article-card-body h3{font-size:17px;font-weight:700;margin-bottom:10px;line-height:1.4}
.article-card-body p{font-size:14px;color:var(--text-secondary);margin-bottom:16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.article-meta{font-size:12px;color:var(--text-muted);display:flex;justify-content:space-between}

/* Daily update */
.daily-update{background:linear-gradient(135deg,#1a6fd4,#e2231a);border-radius:var(--radius-lg);padding:40px;color:#fff;margin-top:40px}
.daily-update h3{font-size:22px;font-weight:700;margin-bottom:12px}
.daily-update p{font-size:15px;opacity:.9;margin-bottom:16px;line-height:1.7}
.daily-update .update-date{font-size:13px;opacity:.7}

/* CTA */
.cta-section{background:linear-gradient(135deg,var(--wps-red) 0%,#ff6b5b 100%);padding:80px 0;text-align:center;color:#fff}
.cta-section h2{font-size:36px;font-weight:800;margin-bottom:16px}
.cta-section p{font-size:18px;opacity:.9;margin-bottom:32px}

/* Footer */
.site-footer{background:#1a1a2e;color:rgba(255,255,255,.7);padding:60px 0 24px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;margin-bottom:40px}
.footer-brand .logo{color:#fff;margin-bottom:16px}
.footer-brand p{font-size:14px;line-height:1.7}
.footer-col h4{color:#fff;font-size:15px;font-weight:600;margin-bottom:16px}
.footer-col a{display:block;font-size:14px;margin-bottom:10px;color:rgba(255,255,255,.6)}
.footer-col a:hover{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:24px;display:flex;justify-content:space-between;font-size:13px}

/* Article page */
.article-page{padding:calc(var(--header-h) + 40px) 0 80px}
.article-page .container{max-width:800px}
.article-page h1{font-size:36px;font-weight:800;line-height:1.3;margin-bottom:16px}
.article-page .article-info{display:flex;gap:20px;font-size:14px;color:var(--text-muted);margin-bottom:32px;padding-bottom:24px;border-bottom:1px solid var(--border)}
.article-content h2{font-size:24px;font-weight:700;margin:36px 0 16px;color:var(--text-primary)}
.article-content h3{font-size:18px;font-weight:600;margin:28px 0 12px}
.article-content p{font-size:16px;color:var(--text-secondary);margin-bottom:16px;line-height:1.8}
.article-content ul,.article-content ol{margin:16px 0 16px 24px;color:var(--text-secondary)}
.article-content li{margin-bottom:8px;font-size:16px;line-height:1.7}
.article-content blockquote{border-left:4px solid var(--wps-red);padding:16px 24px;background:var(--bg-light);border-radius:0 var(--radius) var(--radius) 0;margin:24px 0;font-style:italic;color:var(--text-secondary)}
.breadcrumb{font-size:14px;color:var(--text-muted);margin-bottom:24px}
.breadcrumb a{color:var(--wps-blue)}
.breadcrumb a:hover{color:var(--wps-red)}

/* FAQ */
.faq-list{max-width:800px;margin:0 auto}
.faq-item{border:1px solid var(--border);border-radius:var(--radius);margin-bottom:12px;overflow:hidden}
.faq-q{padding:20px 24px;font-weight:600;cursor:pointer;display:flex;justify-content:space-between;align-items:center;background:#fff;transition:background var(--transition)}
.faq-q:hover{background:var(--bg-light)}
.faq-q::after{content:"+";font-size:20px;color:var(--wps-red);transition:transform var(--transition)}
.faq-item.open .faq-q::after{transform:rotate(45deg)}
.faq-a{padding:0 24px;max-height:0;overflow:hidden;transition:max-height .3s ease,padding .3s ease}
.faq-item.open .faq-a{max-height:300px;padding:0 24px 20px}
.faq-a p{font-size:14px;color:var(--text-secondary);line-height:1.7}

/* Responsive */
@media(max-width:1024px){
  .hero-inner{grid-template-columns:1fr;text-align:center}
  .hero-btns,.hero-stats{justify-content:center}
  .hero-visual{order:-1}
  .features-grid,.products-grid{grid-template-columns:repeat(2,1fr)}
  .download-grid,.articles-grid{grid-template-columns:repeat(2,1fr)}
  .steps-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .nav-main{display:none;position:absolute;top:var(--header-h);left:0;right:0;background:#fff;flex-direction:column;padding:20px;gap:16px;border-bottom:1px solid var(--border);box-shadow:var(--shadow)}
  .nav-main.open{display:flex}
  .mobile-toggle{display:block}
  .hero h1{font-size:32px}
  .section-header h2{font-size:28px}
  .features-grid,.products-grid,.download-grid,.articles-grid,.steps-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;gap:12px;text-align:center}
}
