/* ===== Ginlyn · Model-as-a-Service 官网样式（国际版） ===== */
:root {
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --teal-500:  #14B8A6;
  --teal-400:  #2DD4BF;
  --teal-300:  #5EEAD4;
  --teal-200:  #99F6E4;
  --teal-100:  #CCFBF1;
  --teal-50:   #F0FDFA;
  --white: #FFFFFF;

  --font-display: "Poppins", "Inter", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-body: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow: 0 12px 40px -16px rgba(15,23,42,.16);
  --shadow-lg: 0 32px 80px -24px rgba(15,23,42,.28);
  --ring: 0 0 0 3px rgba(20,184,166,.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--slate-600);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img, svg { display: block; }
.container { width: min(1160px, 92%); margin: 0 auto; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px; line-height: 1;
  padding: 13px 22px; border-radius: 10px; cursor: pointer; letter-spacing: .1px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 28px; font-size: 15.5px; }
.btn-primary { background: var(--slate-800); color: var(--white); }
.btn-primary:hover { background: var(--slate-900); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--teal-500); color: var(--white); box-shadow: 0 10px 24px -10px rgba(20,184,166,.6); }
.btn-accent:hover { background: var(--teal-400); transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(20,184,166,.7); }
.btn-ghost { background: transparent; color: var(--slate-700); border: 1px solid var(--slate-300); }
.btn-ghost:hover { border-color: var(--slate-400); background: var(--slate-50); }

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--slate-100);
}
.nav-inner {
  width: min(1160px, 92%); margin: 0 auto; height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; }
.brand-logo svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--slate-800); letter-spacing: -.3px; }
.brand-cn { font-size: 10.5px; color: var(--slate-500); letter-spacing: 1.5px; display: none; }
.lang-zh .brand-cn { display: inline-block; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--slate-600); transition: color .15s ease; }
.nav-links a:hover { color: var(--slate-900); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  background: var(--slate-100); border: 1px solid var(--slate-200); color: var(--slate-700);
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  padding: 8px 14px; border-radius: 8px; cursor: pointer; transition: .15s ease;
}
.lang-toggle:hover { background: var(--slate-200); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--slate-800); border-radius: 2px; transition: .2s ease; }

/* ===== Hero ===== */
.hero { position: relative; padding: 104px 0 120px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 55% at 82% 18%, rgba(20,184,166,.10), transparent 60%),
    radial-gradient(45% 45% at 8% 88%, rgba(226,232,240,.8), transparent 60%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-50); color: var(--teal-500);
  border: 1px solid var(--teal-200);
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 5.6vw, 62px); line-height: 1.08; color: var(--slate-900);
  margin: 24px 0; letter-spacing: -2px;
}
.hero h1 span { display: block; }
.grad {
  background: linear-gradient(115deg, var(--teal-500), var(--teal-400) 55%, #0D9488);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 18px; color: var(--slate-500); max-width: 520px; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; margin: 34px 0 30px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 26px; list-style: none; flex-wrap: wrap; }
.hero-points li { position: relative; padding-left: 16px; font-size: 14px; color: var(--slate-500); }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); }

/* Hero 终端卡片 */
.hero-visual { position: relative; }
.terminal {
  background: var(--slate-900); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }
.term-title { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--slate-400); }
.term-body { padding: 22px 20px; overflow-x: auto; }
.term-body pre { margin: 0; }
.term-body code, .dev-code code { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--slate-200); }
.tk { color: var(--teal-300); }
.st { color: var(--teal-200); }

/* ===== 版块通用 ===== */
.section { padding: 100px 0; }
.section-tint { background: var(--slate-50); }
.section-dark { background: linear-gradient(135deg, var(--slate-900), var(--slate-800)); color: var(--slate-200); }
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 2.5px;
  color: var(--teal-500); text-transform: uppercase;
}
.eyebrow-light { color: var(--teal-300); }
.section h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.8vw, 40px); color: var(--slate-900); margin: 16px 0; letter-spacing: -1px;
}
.section-dark h2 { color: var(--white); }
.section-sub { font-size: 17px; color: var(--slate-500); }

/* 卡片 */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-300); }
.card-icon { font-size: 26px; color: var(--teal-500); margin-bottom: 16px; }
.card h3 { font-size: 17px; color: var(--slate-900); margin-bottom: 9px; font-weight: 600; }
.card p { font-size: 14.5px; color: var(--slate-500); }

/* 技术优势 */
.adv { padding: 6px 4px; }
.adv-num {
  font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1;
  color: var(--teal-500); opacity: .9; margin-bottom: 14px;
}
.adv h3 { font-size: 17px; color: var(--slate-900); margin-bottom: 8px; font-weight: 600; }
.adv p { font-size: 14.5px; color: var(--slate-500); }

/* ===== 开发者 ===== */
.dev-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.dev-copy h2 { font-size: clamp(28px, 3.8vw, 40px); }
.dev-sub { font-size: 17px; color: var(--slate-300); margin: 4px 0 30px; }
.dev-code {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 26px 28px; overflow-x: auto;
}
.dev-code code { color: var(--slate-300); }
.c-k { color: #C084FC; }
.c-s { color: var(--teal-200); }
.c-f { color: #FBBF24; }

/* ===== 关于 ===== */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about-copy h2 { font-family: var(--font-display); font-size: clamp(28px, 3.8vw, 40px); color: var(--slate-900); margin: 16px 0 20px; }
.about-copy p { font-size: 16px; color: var(--slate-500); margin-bottom: 16px; }
.about-visual { display: flex; justify-content: center; }
.about-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: 36px 42px; box-shadow: var(--shadow);
}
.about-card svg { width: 82px; height: 82px; }
.about-brand { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--slate-900); }
.about-brand-cn { font-size: 13.5px; color: var(--slate-500); }

/* ===== 联系 ===== */
.contact-inner { text-align: center; max-width: 640px; }
.contact-inner h2 { color: var(--slate-900); }
.contact-sub { font-size: 17px; color: var(--slate-500); margin-bottom: 32px; }
.contact-meta { margin-top: 26px; font-size: 13px; color: var(--slate-400); letter-spacing: 1px; }

/* ===== 页脚 ===== */
.footer { background: var(--slate-900); color: var(--slate-400); padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-cn { color: var(--slate-500); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 14px; transition: color .15s ease; }
.footer-links a:hover { color: var(--teal-300); }
.footer-copy { font-size: 13px; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .dev-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 72px 0 88px; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--slate-100);
    padding: 8px 0; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 24px; width: 100%; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .term-body code, .dev-code code { font-size: 12px; }
}


