﻿/* ========== 云端跨境 官网样式 ========== */
:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --ink: #1C1917;
  --muted: #6B6660;
  --line: #E8E6E1;
  --accent: #0EA5E9;
  --accent-strong: #0284C7;
  --accent-soft: #E9F7FE;
  --ok: #15803D;
  --ok-bg: #EAF6EC;
  --dark: #191613;
  --dark-muted: #A8A29A;
  --radius: 8px;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 248, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-size: 17px; font-weight: 700; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; flex: 1; }
.nav-links a {
  text-decoration: none; font-size: 14px; color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); display: block; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-disabled {
  background: #F0EFEC; color: var(--muted); cursor: not-allowed;
}

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section-alt { background: #F3F2EE; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 14px;
}
.section-title { font-size: 30px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 560px; margin-bottom: 40px; }

/* ---------- 首屏 ---------- */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(14, 165, 233, 0.08), transparent),
    linear-gradient(rgba(28, 25, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 25, 23, 0.035) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 64px; align-items: center;
}
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.15; margin: 6px 0 18px; }
.accent { color: var(--accent); }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 480px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-meta { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: #C9C5BE; display: inline-block; }

/* 浏览器示意 */
.hero-visual { display: flex; justify-content: center; }
.browser {
  width: 100%; max-width: 460px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(28, 25, 23, 0.25);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #F5F4F1; border-bottom: 1px solid var(--line);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D6D3CE; }
.browser-bar i:first-child { background: #0EA5E9; opacity: 0.75; }
.browser-url {
  margin-left: 10px; font-size: 11px; color: var(--muted);
  background: #fff; border: 1px solid var(--line);
  padding: 3px 12px; border-radius: 99px; flex: 1;
}
.browser-body { padding: 18px; position: relative; min-height: 300px; }
.skel { background: #EFEEEA; border-radius: 4px; }
.skel-title { height: 14px; width: 45%; margin-bottom: 14px; }
.skel-row { display: flex; gap: 10px; margin-bottom: 14px; }
.skel-row .skel { height: 44px; flex: 1; }
.skel-block { height: 90px; }
.plugin-fab {
  position: absolute; right: 14px; top: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 20px -6px rgba(14, 165, 233, 0.45);
}
.plugin-panel {
  position: absolute; right: 14px; top: 70px; width: 172px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 16px 40px -16px rgba(28, 25, 23, 0.28);
  padding: 6px; font-size: 12px;
}
.plugin-panel-head {
  padding: 7px 10px; font-weight: 700; font-size: 12px;
  border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.plugin-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 5px; color: var(--ink);
}
.plugin-item:hover { background: var(--accent-soft); }
.pi { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.pi-a { background: #0EA5E9; }
.pi-b { background: #0E7C66; }
.pi-c { background: #B45309; }
.pi-d { background: #4D7C0F; }
.pi-e { background: #78716C; }

/* ---------- 产品中心 ---------- */
.product-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.group-title { margin-bottom: 14px; }
.group-tag {
  display: inline-block; font-size: 13px; font-weight: 700;
  padding: 5px 14px; border-radius: 99px;
  background: var(--ink); color: #fff;
}
.group-tag-soon { background: #D6D3CE; color: var(--ink); }
.product-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: 0 16px 44px -20px rgba(28, 25, 23, 0.22); transform: translateY(-2px); }
.product-card-soon { background: #F7F6F3; }
.product-head { display: flex; gap: 14px; align-items: flex-start; }
.product-head h4 { font-size: 18px; margin-bottom: 4px; }
.product-head > div { flex: 1; }
.product-icon {
  width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.product-icon-soon { background: #EDECE8; color: var(--muted); }
.product-desc { font-size: 14px; color: var(--muted); }
.badge {
  font-size: 12px; font-weight: 700; padding: 4px 12px;
  border-radius: 99px; white-space: nowrap;
}
.badge-live { background: var(--ok-bg); color: var(--ok); }
.badge-soon { background: #EAE9E5; color: var(--muted); }
.product-meta {
  font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 14px;
}
.product-actions { display: flex; gap: 10px; }

/* ---------- 功能特性 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.feature-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature h4 { font-size: 15.5px; margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--muted); }

/* ---------- 账号中心 ---------- */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.account-points { list-style: none; margin-top: 20px; }
.account-points li {
  padding: 10px 0 10px 28px; position: relative;
  color: var(--muted); font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.account-points li::before {
  content: ""; position: absolute; left: 2px; top: 17px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.account-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.tabs { display: flex; gap: 6px; background: #F3F2EE; padding: 4px; border-radius: 8px; margin-bottom: 22px; }
.tab {
  flex: 1; border: 0; background: transparent; padding: 9px 0;
  border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 600;
  color: var(--muted); font-family: inherit; transition: background 0.15s, color 0.15s;
}
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(28,25,23,0.15); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
form label { display: block; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; }
form input {
  width: 100%; padding: 11px 14px; margin-top: 6px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 14.5px; font-family: inherit; background: #FCFCFB;
  transition: border-color 0.15s, box-shadow 0.15s;
}
form input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}
.account-info {
  background: var(--accent-soft); border: 1px solid #B9E6F9;
  border-radius: 6px; padding: 14px; margin-top: 16px; font-size: 14px; line-height: 1.9;
}
.message { margin-top: 14px; font-size: 14px; color: var(--muted); white-space: pre-wrap; }
.message.error { color: #DC2626; }
.message.ok { color: var(--ok); }
.hidden { display: none; }

/* ---------- 安装步骤 ---------- */
.steps { max-width: 720px; }
.step {
  display: flex; gap: 24px; padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step-num { font-size: 26px; font-weight: 800; color: var(--accent); opacity: 0.85; line-height: 1.2; }
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.step .btn { margin-top: 4px; }
code { background: #EDECE8; padding: 2px 8px; border-radius: 4px; font-size: 13px; }
.note-line { margin-top: 28px; font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ / 条款 ---------- */
.faq-list { max-width: 720px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  padding: 20px 40px 20px 0; position: relative;
  font-size: 15.5px; font-weight: 600;
  transition: color 0.15s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--muted);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details[open] summary { color: var(--accent); }
.faq-list details p { padding: 0 32px 22px 0; font-size: 14px; color: var(--muted); }
.terms-body { padding: 0 24px 24px 0; }
.terms-body p { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; padding: 0; }

/* ---------- 页脚 ---------- */
.footer { background: var(--dark); color: #EDECE8; padding: 56px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.footer-desc { font-size: 13.5px; color: var(--dark-muted); max-width: 300px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13.5px; color: var(--dark-muted); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 22px; padding-bottom: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; color: var(--dark-muted);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 40px; }
  .hero-visual { order: 2; }
  .product-groups { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .account-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; }
  .section { padding: 60px 0; }
  .section-title { font-size: 24px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 15.5px; }
  .feature-grid { grid-template-columns: 1fr; }
  .step { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
