/* Teal Cascade Marketing — WPS Office Download Landing */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --teal-950: #042f2e;
  --teal-900: #0a3d3c;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;
  --coral-600: #ea580c;
  --coral-500: #f97316;
  --coral-400: #fb923c;
  --coral-hover: #c2410c;
  --ink: #ecfdf5;
  --ink-muted: #a7f3d0;
  --ink-soft: #99f6e4;
  --surface: rgba(15, 118, 110, 0.22);
  --surface-strong: rgba(4, 47, 46, 0.72);
  --line: rgba(45, 212, 191, 0.28);
  --shadow: 0 18px 48px rgba(2, 24, 23, 0.45);
  --radius: 14px;
  --max: 1080px;
  --font-display: 'Outfit', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Outfit', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(20, 184, 166, 0.22), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(249, 115, 22, 0.08), transparent 50%),
    linear-gradient(165deg, var(--teal-950) 0%, #063a38 38%, var(--teal-900) 70%, #052e2d 100%);
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-300);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--coral-400);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(4, 47, 46, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--teal-300);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--teal-500), var(--teal-700));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.95rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.2rem;
  height: 2px;
  background: transparent;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  background: var(--coral-500);
}

.nav-links a.active {
  color: var(--ink);
  font-weight: 600;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 47, 46, 0.15) 0%, rgba(4, 47, 46, 0.55) 100%),
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(20, 184, 166, 0.28), transparent 70%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M0 40h80M40 0v80' stroke='%232dd4bf' stroke-width='0.6' fill='none'/%3E%3Ccircle cx='40' cy='40' r='2.5' fill='%2314b8a6'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: linear-gradient(120deg, #ecfdf5 10%, var(--teal-300) 55%, var(--coral-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
  max-width: 36em;
  margin-inline: auto;
}

.hero-lead {
  max-width: 38em;
  margin: 0 auto 2rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  line-height: 1.2;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(145deg, var(--coral-500), var(--coral-600));
  color: #fff7ed;
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(145deg, var(--coral-400), var(--coral-hover));
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(234, 88, 12, 0.42);
}

.btn-primary:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

.btn-secondary {
  background: rgba(15, 118, 110, 0.35);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: rgba(20, 184, 166, 0.22);
  border-color: var(--teal-400);
  color: #fff;
}

.btn-platform {
  width: 100%;
  background: linear-gradient(145deg, var(--teal-700), var(--teal-800));
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 1rem 1.25rem;
}

.btn-platform:hover {
  background: linear-gradient(145deg, var(--teal-600), var(--teal-700));
  border-color: var(--teal-400);
  transform: translateY(-1px);
}

.btn-platform:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

.btn-platform.btn-accent {
  background: linear-gradient(145deg, var(--coral-500), var(--coral-600));
  border-color: transparent;
  color: #fff7ed;
}

.btn-platform.btn-accent:hover {
  background: linear-gradient(145deg, var(--coral-400), var(--coral-hover));
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.section-head p {
  max-width: 36em;
  margin-inline: auto;
  color: var(--ink-muted);
  font-size: 1rem;
}

/* —— Capability grid 2x2 —— */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.cap-item {
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cap-item:hover {
  border-color: var(--teal-400);
  background: rgba(15, 118, 110, 0.35);
}

.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.35), rgba(13, 148, 136, 0.15));
  border: 1px solid var(--line);
}

.cap-icon svg {
  width: 24px;
  height: 24px;
  color: var(--teal-300);
}

.cap-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.cap-item p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* —— Compatibility strip —— */
.compat-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.compat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(4, 47, 46, 0.55);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.compat-chip svg {
  width: 18px;
  height: 18px;
  color: var(--teal-400);
}

/* —— Workflow 3 steps —— */
.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.workflow-step {
  position: relative;
  text-align: center;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.workflow-step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff7ed;
  background: linear-gradient(145deg, var(--coral-500), var(--coral-600));
}

.workflow-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.workflow-step p {
  color: var(--ink-muted);
  font-size: 0.93rem;
}

/* —— FAQ —— */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 1.25rem 1.4rem;
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.faq-item p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* —— Download page —— */
.page-intro {
  padding: 3.5rem 0 1.5rem;
  text-align: center;
}

.page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 750;
  margin-bottom: 0.85rem;
  background: linear-gradient(120deg, #ecfdf5, var(--teal-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-intro p {
  max-width: 40em;
  margin-inline: auto;
  color: var(--ink-soft);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.platform-card {
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.platform-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.platform-card h2 svg {
  width: 26px;
  height: 26px;
  color: var(--teal-300);
}

.platform-card p {
  color: var(--ink-muted);
  font-size: 0.93rem;
  flex: 1;
}

.steps-list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-block {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.step-block h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
  color: var(--teal-300);
}

.step-block ol {
  padding-left: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.step-block li + li {
  margin-top: 0.35rem;
}

.security-note {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: rgba(234, 88, 12, 0.1);
}

.security-note h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  color: var(--coral-400);
}

.security-note p,
.security-note ul {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.security-note ul {
  padding-left: 1.2rem;
  margin-top: 0.65rem;
}

.security-note li + li {
  margin-top: 0.35rem;
}

/* —— Article (zh-cn) —— */
.article-wrap {
  padding: 3rem 0 4rem;
}

.article-wrap article {
  max-width: 740px;
  margin-inline: auto;
}

.article-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 750;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  background: linear-gradient(120deg, #ecfdf5, var(--teal-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.article-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.article-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 2rem 0 0.85rem;
  color: var(--ink);
}

.article-wrap p {
  color: var(--ink-muted);
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

.article-wrap strong {
  color: var(--ink);
  font-weight: 600;
}

.article-cta {
  margin-top: 2.5rem;
  padding: 1.75rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.4), rgba(4, 47, 46, 0.7));
}

.article-cta p {
  margin-bottom: 1.1rem;
  color: var(--ink-soft);
}

/* —— Footer —— */
.site-footer {
  margin-top: 2rem;
  padding: 2.25rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: rgba(2, 24, 23, 0.55);
  text-align: center;
}

.footer-safe {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--teal-300);
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-safe svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.site-footer .copyright {
  color: var(--ink-muted);
  font-size: 0.85rem;
  max-width: 42em;
  margin-inline: auto;
  line-height: 1.65;
}

/* —— Loading spin (used by download.js) —— */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* —— Responsive —— */
@media (max-width: 820px) {
  .capability-grid,
  .platform-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 0;
    gap: 0.5rem;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .cta-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
