/* Site 5 — Modern Product SaaS Finance (Teal + Slate) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #0F766E;
  --teal-light: #14B8A6;
  --teal-dim: rgba(15, 118, 110, 0.1);
  --teal-dim-strong: rgba(15, 118, 110, 0.18);
  --slate: #334155;
  --slate-light: #64748B;
  --slate-muted: #94A3B8;
  --bg-cool: #F1F5F9;
  --bg-white: #FFFFFF;
  --border: #E2E8F0;
  --text: #1E293B;
  --text-muted: #64748B;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.1);
  --radius: 8px;
  --nav-h: 64px;
  --font: "Segoe UI", "PingFang SC", "Helvetica Neue", sans-serif;
  --max-w: 1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-cool);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-light); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Keyframes ── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.04); }
}

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.nav-brand:hover { color: var(--teal); }

.nav-check { display: none; }

.nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--slate);
  padding: 4px 8px;
  border-radius: var(--radius);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 8px 14px;
  color: var(--slate-light);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: #0D6B63;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-white);
  color: var(--teal);
  border: 1.5px solid var(--teal);
}

.btn-outline:hover:not(:disabled) {
  background: var(--teal-dim);
}

.btn-lg { padding: 14px 32px; font-size: 16px; }

.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-cool) 60%, #E0F2F1 100%);
  padding: 72px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content { max-width: 540px; }

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--teal-dim);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--slate);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--slate-light);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

/* ── Section Common ── */
section { padding: 72px 0; }

.section-alt { background: var(--bg-white); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* ── Function Deep-dive ── */
.functions { background: var(--bg-white); }

.func-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.func-block:last-child { border-bottom: none; }

.func-block.reverse { direction: rtl; }
.func-block.reverse > * { direction: ltr; }

.func-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 14px;
}

.func-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.func-list {
  list-style: none;
  margin-top: 16px;
}

.func-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--slate);
}

.func-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

.func-visual {
  background: var(--bg-cool);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.func-visual svg { width: 100%; max-width: 320px; height: auto; }

/* ── Stats ── */
.stats {
  background: linear-gradient(135deg, var(--teal) 0%, #115E59 100%);
  color: #fff;
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 14px;
  opacity: 0.85;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Platforms ── */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.platform-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.platform-card.featured {
  border-color: var(--teal);
  background: linear-gradient(180deg, #fff 0%, var(--teal-dim) 100%);
  position: relative;
}

.platform-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.platform-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate);
  margin: 12px 0 8px;
}

.platform-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--teal);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Reviews ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.review-stars svg { width: 18px; height: 18px; }

.review-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
}

.review-meta {
  font-size: 12px;
  color: var(--slate-muted);
  margin-top: 2px;
}

/* ── Comparison Table ── */
.comparison-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  background: var(--slate);
  color: #fff;
  font-weight: 600;
}

.comparison-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }

.comparison-table tbody tr:hover { background: var(--bg-cool); }

.comparison-table .check { color: var(--teal); font-weight: 600; }
.comparison-table .cross { color: var(--slate-muted); }

.comparison-table td:first-child { font-weight: 500; color: var(--slate); }

/* ── Download Page ── */
.download-hero {
  background: linear-gradient(135deg, var(--bg-white) 0%, #E0F2F1 100%);
  padding: 56px 0 64px;
  text-align: center;
}

.download-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 14px;
}

.download-hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

.download-featured {
  background: var(--bg-white);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.download-featured .version-tag {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 12px;
}

.download-featured h2 {
  font-size: 1.35rem;
  color: var(--slate);
  margin-bottom: 8px;
}

.download-featured .meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.download-featured .specs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--slate-light);
}

.install-steps {
  counter-reset: step;
  list-style: none;
  max-width: 640px;
}

.install-steps li {
  position: relative;
  padding: 20px 20px 20px 56px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

.install-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.install-steps li strong { color: var(--slate); display: block; margin-bottom: 4px; }

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.req-card {
  background: var(--bg-cool);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.req-card h3 {
  font-size: 16px;
  color: var(--slate);
  margin-bottom: 12px;
}

.req-card ul {
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
}

.req-card li {
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.req-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.changelog {
  max-width: 720px;
}

.changelog-item {
  border-left: 3px solid var(--teal);
  padding: 16px 0 16px 20px;
  margin-bottom: 20px;
}

.changelog-item h4 {
  font-size: 15px;
  color: var(--slate);
  margin-bottom: 6px;
}

.changelog-item .date {
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 8px;
}

.changelog-item ul {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 18px;
}

.security-banner {
  background: var(--teal-dim);
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.security-banner h3 {
  font-size: 17px;
  color: var(--slate);
  margin-bottom: 8px;
}

.security-banner p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ── Article (zh-cn) ── */
.article-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}

.article-wrap h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--slate);
  margin-bottom: 16px;
  line-height: 1.35;
}

.article-meta {
  font-size: 14px;
  color: var(--slate-muted);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-wrap h2 {
  font-size: 1.25rem;
  color: var(--slate);
  margin: 32px 0 14px;
}

.article-wrap p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.article-wrap ul {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.article-wrap li { margin-bottom: 8px; }

.article-cta {
  background: linear-gradient(135deg, var(--teal-dim) 0%, #E0F2F1 100%);
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 36px 0;
}

.article-cta h3 {
  font-size: 1.15rem;
  color: var(--slate);
  margin-bottom: 10px;
}

.article-cta p {
  margin-bottom: 20px;
}

.article-cta a.cta-link {
  display: inline-block;
  padding: 14px 36px;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.article-cta a.cta-link:hover {
  background: #0D6B63;
  color: #fff;
}

/* ── Footer ── */
.site-footer {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0 32px;
  font-size: 14px;
}

.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.footer-security {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a { color: rgba(255, 255, 255, 0.8); }
.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* ── Page Header (subpages) ── */
.page-header {
  background: var(--bg-white);
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--slate);
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-muted);
  max-width: 600px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid,
  .func-block,
  .two-col { grid-template-columns: 1fr; }

  .func-block.reverse { direction: ltr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .requirements-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-check:checked ~ .nav-links { display: flex; }

  .nav-links a { width: 100%; padding: 12px 0; }

  .hero { padding: 48px 0 56px; }
  .hero-visual { order: -1; }
  .hero-visual svg { max-width: 320px; }

  .stats-grid,
  .features-grid,
  .platforms-grid,
  .reviews-grid { grid-template-columns: 1fr; }

  section { padding: 48px 0; }

  .article-wrap { padding: 32px 20px; }
  .download-featured { padding: 28px 20px; }
  .security-banner { flex-direction: column; }
}
