/* ============================================================
   PaddleWaver — Unified Design System (Visual Upgrade)
   Modern Corporate SaaS · Clean Blue & White · Soft Gradients
   Subtle Glassmorphism · Generous White Space · Consistent UI
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --brand:        #2563eb;   /* primary blue   */
  --brand-deep:   #1d4ed8;
  --brand-700:    #1e40af;
  --brand-light:  #3b82f6;
  --brand-50:     #eff6ff;
  --brand-100:    #dbeafe;
  --accent:       #06b6d4;   /* cyan/teal partner */
  --accent-soft:  #22d3ee;

  --ink-900:      #0f172a;   /* headings */
  --ink-700:      #334155;
  --ink-600:      #475569;   /* body */
  --ink-500:      #64748b;
  --ink-400:      #94a3b8;

  --bg:           #ffffff;
  --bg-soft:      #f8fafc;   /* slate-50 */
  --bg-blue:      #f0f6ff;   /* very light blue section */
  --line:         #e6edf6;
  --line-strong:  #d6e0ee;

  --grad-brand:   linear-gradient(135deg, #2563eb 0%, #4f86f7 45%, #06b6d4 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.12));
  --grad-text:    linear-gradient(120deg, #1d4ed8 0%, #2563eb 40%, #06b6d4 100%);

  --shadow-sm:    0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow:       0 4px 16px rgba(30,64,175,.08), 0 2px 6px rgba(15,23,42,.05);
  --shadow-lg:    0 18px 50px rgba(30,64,175,.14), 0 6px 18px rgba(15,23,42,.06);
  --shadow-blue:  0 14px 40px rgba(37,99,235,.22);

  --radius:       16px;
  --radius-lg:    24px;
  --radius-sm:    10px;

  --maxw:         1200px;
  --nav-h:        72px;

  --font:         'Inter', 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;

  --ease:         cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-600);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.2; margin: 0; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout Helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--blue { background: linear-gradient(180deg, var(--bg-blue) 0%, #ffffff 100%); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-50);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  border: 1px solid var(--brand-100);
}
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--ink-900);
}
.section-sub { margin-top: 16px; font-size: 19px; color: var(--ink-500); }
.text-gradient {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 16px 34px; border-radius: 999px; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  color: #fff; background: var(--grad-brand);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(37,99,235,.34); }
.btn-ghost {
  color: var(--brand); background: #fff; border: 1.5px solid var(--brand-100);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.btn-sm { padding: 11px 22px; font-size: 14px; }

/* ---------- Header / Nav (glassmorphism) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(214,224,238,.6);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow); background: rgba(255,255,255,.88); }
.site-header { box-shadow: 0 1px 0 rgba(214,224,238,.7); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; }
.brand img.logo-main-img { height: 46px; width: auto; max-width: 210px; }
.brand .brand-text { font-weight: 800; font-size: 20px; color: var(--ink-900); letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative; padding: 10px 16px; font-weight: 600; font-size: 16px; color: var(--ink-700);
  border-radius: 10px; transition: color .2s, background .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
  background: var(--grad-brand); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-link:hover { color: var(--brand); }
.nav-link.active { color: var(--brand); }
.nav-link.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.mobile-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink-900); }
.mobile-toggle svg { width: 26px; height: 26px; }

/* Mobile menu panel */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: linear-gradient(160deg, #f4f8ff 0%, #ffffff 45%, #eef5ff 100%);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 76px 20px 40px;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-brand { margin-bottom: 30px; opacity: 0; transform: translateY(-10px); transition: opacity .35s, transform .35s; }
.mobile-brand img { height: 40px; width: auto; }
.mobile-menu.open .mobile-brand { opacity: 1; transform: translateY(0); transition-delay: .05s; }
.mobile-nav {
  width: 100%; max-width: 360px; background: #fff;
  border: 1px solid var(--brand-100); border-radius: 20px;
  box-shadow: 0 18px 50px rgba(30,64,175,.12);
  padding: 10px; display: flex; flex-direction: column;
}
.mobile-menu .mobile-link {
  font-size: 18px; font-weight: 600; color: var(--ink-700);
  padding: 17px 20px; border-radius: 12px; text-align: center;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .3s, background .2s, color .2s;
}
.mobile-menu .mobile-link:last-child { border-bottom: 0; }
.mobile-menu.open .mobile-link { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mobile-nav .mobile-link:nth-child(1) { transition-delay: .10s; }
.mobile-menu.open .mobile-nav .mobile-link:nth-child(2) { transition-delay: .16s; }
.mobile-menu.open .mobile-nav .mobile-link:nth-child(3) { transition-delay: .22s; }
.mobile-menu.open .mobile-nav .mobile-link:nth-child(4) { transition-delay: .28s; }
.mobile-menu .mobile-link:hover,
.mobile-menu .mobile-link.active { background: var(--brand-50); color: var(--brand); }
.mobile-menu .mobile-link.cta {
  margin-top: 8px; background: var(--grad-brand); color: #fff; border: 0;
  font-weight: 700; box-shadow: var(--shadow-blue);
}
.mobile-menu .mobile-link.cta:hover { color: #fff; filter: brightness(1.05); }
.mobile-close {
  position: absolute; top: 20px; right: 20px; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink-700); font-size: 26px; line-height: 1; box-shadow: var(--shadow-sm);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 92px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before, .hero-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
}
.hero-bg::before {
  width: 520px; height: 520px; top: -160px; right: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(37,99,235,.45), transparent 70%);
}
.hero-bg::after {
  width: 460px; height: 460px; bottom: -200px; left: -140px;
  background: radial-gradient(circle at 70% 70%, rgba(6,182,212,.38), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(34px, 5vw, 56px); font-weight: 800; color: var(--ink-900); }
.hero-title .text-gradient { display: inline; }
.hero-sub { margin-top: 22px; font-size: 19px; color: var(--ink-600); max-width: 520px; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.6);
}
.hero-media::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  background: var(--grad-brand-soft); border-radius: var(--radius-lg);
}

/* ---------- Feature Tabs (WHAT MAKES US UNIQUE) ---------- */
.tabs { margin-top: 8px; }
.tab-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 40px;
}
.tab-btn {
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink-600);
  font-weight: 700; font-size: 16px; padding: 12px 24px; border-radius: 999px;
  transition: all .25s var(--ease);
}
.tab-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.tab-btn.active {
  color: #fff; background: var(--grad-brand); border-color: transparent;
  box-shadow: var(--shadow-blue);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .5s var(--ease); }
.tab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.tab-media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--bg-blue); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
}
.tab-media img { width: 100%; height: 100%; object-fit: cover; }
.tab-text { padding-top: 12px; }
.tab-text h3 { font-size: 30px; margin: 0 0 48px; line-height: 1.2; }
.tab-text p { font-size: 20px; line-height: 1.8; color: var(--ink-600); }

/* ---------- Card Grid (generic feature cards) ---------- */
.card-grid { display: grid; gap: 26px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.feature-icon {
  width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand-soft); margin-bottom: 22px; color: var(--brand);
}
.feature-icon svg { width: 30px; height: 30px; }
.feature-icon img { width: 34px; height: 34px; object-fit: contain; }
.feature-title { font-size: 22px; margin-bottom: 12px; color: var(--ink-900); }
.feature-desc { font-size: 15.5px; color: var(--ink-600); }

/* media-style feature card (image on top) */
.feature-card.media { padding: 0; overflow: hidden; }
.feature-card.media .fc-media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-blue); }
.feature-card.media .fc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.feature-card.media:hover .fc-media img { transform: scale(1.06); }
.feature-card.media .fc-body { padding: 26px 26px 30px; }
.feature-card.media .feature-title { font-size: 22px; }

/* ---------- Logo grids (partners / clients) ---------- */
.logo-grid { display: grid; gap: 18px; }
.logo-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.logo-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.logo-item {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  height: 96px; display: flex; align-items: center; justify-content: center; padding: 18px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, background .3s;
}
.logo-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); background: #fff; }
.logo-item img { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; opacity: 1; transition: transform .3s var(--ease); }
.logo-item:hover img { transform: scale(1.05); }

/* ---------- Partner logo marquee ---------- */
.marquee {
  width: 100%; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: pw-marquee 56s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
/* 图片已预处理：主体字母统一高度、垂直居中于统一画布，CSS 只需等高显示 */
.marquee-logo {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; height: 48px;
}
.marquee-logo img {
  height: 48px; width: auto; max-width: none; object-fit: contain;
  transition: transform .3s var(--ease), opacity .3s; opacity: .95;
}
.marquee-logo:hover img { transform: scale(1.06); opacity: 1; }
@keyframes pw-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Case Studies ---------- */
.case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: 26px; row-gap: 18px;
}
/* 同行卡片的四个部分（case-top / title / overview / results）各自共享一条网格行轨道：
   标题或介绍自然换行时，由同行最高的内容撑高该轨道，灰色分隔线因此始终齐平。
   只在同一行内对齐，不要求不同行之间横线同高。 */
.case-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 30px 30px; box-shadow: var(--shadow);
  grid-row: span 4; display: grid; grid-template-rows: subgrid; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad-brand);
}
.case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-badge {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 6px 12px; border-radius: 999px;
}
.case-logo { height: 34px; display: flex; align-items: center; }
.case-logo img { max-height: 34px; max-width: 120px; object-fit: contain; }
.case-logo-text { font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--ink-700); }
.case-logo img.logo-square { max-height: 38px; max-width: 60px; border-radius: 6px; }
.case-title { font-size: 22px; color: var(--ink-900); }
.case-overview { font-size: 16px; color: var(--ink-600); line-height: 1.65; }
.case-results { margin-top: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.case-results.cols-2 { grid-template-columns: repeat(2, 1fr); }
.stat { text-align: left; }
.case-results:not(.cols-2) .stat { text-align: center; }
.stat-num { display: block; font-size: 24px; font-weight: 800; color: var(--brand); line-height: 1.1; letter-spacing: -.02em; }
.stat-label { display: block; font-size: 13.5px; color: var(--ink-500); margin-top: 4px; line-height: 1.4; }
.case-note { font-size: 12.5px; color: var(--ink-400); text-align: center; margin-top: 28px; }

/* ---------- Stats strip ---------- */
.stats-section {
  background: linear-gradient(180deg, #eef5ff 0%, #f7fbff 55%, #ffffff 100%);
  border-top: 1px solid var(--brand-100);
  border-bottom: 1px solid var(--brand-100);
}
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-block {
  min-width: 0;
  text-align: center; padding: 30px 16px; background: rgba(255,255,255,.9);
  border: 1px solid var(--brand-100); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.stat-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(37,99,235,.16);
  border-color: var(--brand-light);
}
.stat-block:hover .stat-num { color: var(--brand-deep); transform: scale(1.06); }
.stat-block .stat-num {
  font-size: clamp(24px, 2.8vw, 36px); display: inline-block; max-width: 100%;
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.stat-block .stat-label { font-size: 14px; letter-spacing: .01em; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: #c7d2e0; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand-text { color: #fff; font-size: 20px; font-weight: 800; }
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand img.logo-footer-img { height: 44px; max-width: 240px; margin-bottom: 18px; }
.footer-tag { font-size: 16px; color: #93a4ba; max-width: 280px; margin-top: 12px; }
.footer-col h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: #aebccf; font-size: 15.5px; margin-bottom: 11px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: #7e8ea4; }

/* ---------- All major headings: UPPERCASE ---------- */
.hero-title, .section-title, .case-title, .feature-title, .page-title, .tab-text h3 {
  text-transform: uppercase;
  letter-spacing: .005em;
}

/* ---------- Text highlighting ---------- */
.hl-key { font-weight: 700; color: var(--brand); }
.hl-num { font-weight: 700; color: var(--brand); }
.hl-cap { font-weight: 600; color: var(--brand-deep); }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; max-width: 560px; }
  .tab-grid { grid-template-columns: 1fr; gap: 28px; }
  .tab-media { max-width: 520px; }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .client-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-actions .btn { display: none; }
  .mobile-toggle { display: inline-flex; }
  .hero { padding: 48px 0 64px; }
  .hero-title { font-size: 34px; }
  .card-grid.cols-3, .card-grid.cols-4, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .logo-grid.cols-5, .logo-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
  .client-grid, .case-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .marquee-group { gap: 40px; padding-right: 40px; }
  .marquee-logo { height: 40px; }
  .marquee-logo img { height: 40px; max-width: 180px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .tab-nav { gap: 8px; }
  .tab-btn { padding: 10px 16px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
