/* ==============================
   WPS Office 品牌落地站 - 共享样式
   ============================== */

/* ---------- 设计变量 ---------- */
:root {
  --clr-bg: #faf9f7;
  --clr-surface: #ffffff;
  --clr-primary: #d96c38;
  --clr-primary-hover: #c25a2b;
  --clr-accent: #f4a879;
  --clr-text: #1f2430;
  --clr-text-muted: #5e6478;
  --clr-border: #e8eaef;
  --clr-success: #2a9d8f;
  --clr-warm-glow: radial-gradient(circle at 20% 30%, rgba(244,168,121,.18), transparent 60%),
                   radial-gradient(circle at 80% 70%, rgba(217,108,56,.12), transparent 50%);
  --font-display: "Source Serif 4", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 6px 20px rgba(31,36,48,.06);
  --shadow-hover: 0 12px 32px rgba(31,36,48,.10);
  --container-max: 1200px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease, transform .2s ease; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; text-wrap: balance; }
p { margin-bottom: var(--space-sm); }
time { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2rem, var(--container-max)); margin-inline: auto; }
.grid-auto { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.asymmetric-split { display: grid; gap: var(--space-lg); align-items: center; }
.asymmetric-split.reverse { direction: rtl; }
.asymmetric-split.reverse > * { direction: ltr; }

/* ---------- Typography ---------- */
.section-title { font-size: clamp(1.8rem, 3.5vw + 0.5rem, 2.8rem); margin-bottom: var(--space-md); color: var(--clr-text); }
.section-subtitle { font-size: clamp(1rem, 1.5vw + 0.3rem, 1.25rem); color: var(--clr-text-muted); margin-bottom: var(--space-lg); max-width: 68ch; }
.text-accent { color: var(--clr-primary); }

/* ---------- Header & Footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,247,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clr-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: var(--space-xs); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.nav-desktop { display: flex; gap: var(--space-md); }
.nav-desktop a { padding: 0.4rem 0; border-radius: var(--radius-sm); font-weight: 500; position: relative; }
.nav-desktop a:hover, .nav-desktop [aria-current="page"] { color: var(--clr-primary); }
.nav-desktop [aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--clr-primary); border-radius: 2px;
}
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--clr-text); }
.footer { background: #11131a; color: #cbd2e1; padding: var(--space-lg) 0; margin-top: var(--space-xl); }
.footer-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer h3 { color: #fff; margin-bottom: var(--space-sm); font-size: 1.1rem; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a:hover { color: var(--clr-accent); }
.footer-bottom { border-top: 1px solid #2a2f3a; margin-top: var(--space-md); padding-top: var(--space-md); text-align: center; color: #8b94a8; font-size: 0.9rem; }

/* ---------- Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-md); font-weight: 600; cursor: pointer;
  border: none; transition: all .25s ease; font-size: 1rem;
}
.btn-primary { background: linear-gradient(135deg, var(--clr-primary), #e88a5c); color: #fff; box-shadow: 0 4px 14px rgba(217,108,56,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217,108,56,.45); }
.btn-outline { background: transparent; border: 2px solid var(--clr-primary); color: var(--clr-primary); }
.btn-outline:hover { background: var(--clr-primary); color: #fff; }
.card {
  background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-lg);
  padding: var(--space-md); box-shadow: var(--shadow-card); transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.badge { display: inline-block; padding: 0.25rem 0.6rem; border-radius: 99px; font-size: 0.8rem; font-weight: 600; background: rgba(217,108,56,.1); color: var(--clr-primary); }

/* Table */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th, .data-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--clr-border); text-align: left; }
.data-table th { background: rgba(0,0,0,.02); font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }

/* FAQ / Details */
.faq-list details { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-md); margin-bottom: 0.8rem; overflow: hidden; }
.faq-list summary { padding: 1rem 1.2rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-content { padding: 0 1.2rem 1.2rem; color: var(--clr-text-muted); }

/* Focus & Accessibility */
:focus-visible { outline: 3px solid var(--clr-accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--clr-primary); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm); z-index: 200; }
.skip-link:focus { left: 0; }

/* SVG Animation Utilities */
.svg-animated { will-change: transform, opacity; }
.float-y-1 { animation: float-y-1 6s ease-in-out infinite; }
.float-y-2 { animation: float-y-2 7.5s ease-in-out infinite 1s; }
.float-y-3 { animation: float-y-3 8s ease-in-out infinite 2s; }
.draw-path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-measure 6s cubic-bezier(.4,0,.2,1) infinite alternate; }
.glow-soft { filter: drop-shadow(0 0 8px rgba(217,108,56,.25)); animation: pulse-glow 4s ease-in-out infinite alternate; }
@keyframes float-y-1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-y-2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes float-y-3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes draw-measure { 0% { stroke-dashoffset: 0; } 50% { stroke-dashoffset: -1; } 100% { stroke-dashoffset: 0; } }
@keyframes pulse-glow { 0% { filter: drop-shadow(0 0 6px rgba(217,108,56,.2)); opacity: .9; } 100% { filter: drop-shadow(0 0 14px rgba(217,108,56,.45)); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .asymmetric-split { grid-template-columns: 1fr; }
  .mobile-toggle { display: block; }
  .nav-desktop { 
    position: fixed; inset: 72px 0 auto 0; background: rgba(250,249,247,.95); backdrop-filter: blur(12px);
    flex-direction: column; padding: var(--space-md); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: all .3s ease;
  }
  .nav-desktop.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
}
@media (max-width: 600px) {
  :root { --space-lg: 2.5rem; --space-xl: 3.5rem; }
  .section-title { text-wrap: pretty; }
}
