/* ==========================================================================
   webube 门面站点（website）样式
   手机优先；断点 768px / 1024px
   ========================================================================== */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #14213d;
  --muted: #5b6475;
  --border: #e3e8ef;
  --accent: #1f5eff;
  --accent-dark: #1747c4;
  --accent-soft: #e8efff;
  --teal: #14b8a6;
  --ink: #0b1530;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(20, 33, 61, 0.08);
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; font-weight: 700; }
h1 { font-size: 30px; letter-spacing: -0.5px; }
h2 { font-size: 24px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
}

.lead { color: var(--muted); font-size: 16px; }

.section { padding: 56px 0; }
.section h2 { margin-bottom: 28px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(31, 94, 255, 0.28); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-block { width: 100%; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }

.logo { display: inline-flex; align-items: baseline; gap: 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.logo span { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 1px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  padding: 8px 20px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav.open { display: flex; }
.nav a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
.nav a.active { color: var(--accent); font-weight: 600; }
.nav .nav-cta { margin-top: 12px; border-bottom: 0; color: var(--accent); font-weight: 600; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(31, 94, 255, 0.28), transparent 60%),
    radial-gradient(700px 360px at 100% 60%, rgba(20, 184, 166, 0.22), transparent 60%),
    var(--ink);
  color: #fff;
}
.hero-inner { display: block; padding-top: 56px; padding-bottom: 56px; }
.hero .eyebrow { color: #8fb0ff; }
.hero h1 { font-size: 32px; margin-bottom: 16px; }
.hero .lead { color: rgba(255, 255, 255, 0.78); font-size: 16px; max-width: 560px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.hero-points li::before { content: "✓"; margin-right: 6px; color: var(--teal); font-weight: 700; }

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 36px;
}
.visual-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 110px;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.visual-card small { font-size: 12px; font-weight: 400; opacity: 0.85; }
.vc-1 { background: linear-gradient(135deg, #1f5eff, #1747c4); }
.vc-2 { background: linear-gradient(135deg, #0f9d8a, #0b6e62); }
.vc-3 { background: linear-gradient(135deg, #6d4aff, #3b1fb8); }
.vc-4 { background: linear-gradient(135deg, #f08a3c, #c95d12); }

/* ---------- 卡片 ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card {
  display: block;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-2px); border-color: #c9d4e6; }

.card-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
}
.service-card p { color: var(--muted); font-size: 15px; }
.card-link { color: var(--accent); font-weight: 600; font-size: 14px; }

.services { background: var(--surface); }

/* ---------- 案例 ---------- */
.case-thumb {
  display: block;
  width: calc(100% + 28px);
  max-width: none;
  height: 110px;
  margin: -14px -14px 12px;
  border-radius: var(--radius) var(--radius) 0 0;
  object-fit: cover;
  background: #e9edf4;
}
.cases-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.case-card { padding: 14px; }
.case-card p { color: var(--muted); font-size: 14px; margin: 0; }
.case-card h3 { font-size: 16px; }
.case-card .card-tag { margin-bottom: 8px; }

/* ---------- 工作方式 ---------- */
.how { background: var(--surface); }
.how-grid .card p { color: var(--muted); margin: 0; }

/* ---------- 流程 ---------- */
.process-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.process-grid li { position: relative; padding: 18px 18px 18px 62px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.process-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.step-no { position: absolute; left: 18px; top: 20px; font-size: 18px; font-weight: 800; color: var(--accent); }

/* ---------- 联系 ---------- */
.contact { background: var(--ink); color: #fff; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: #8fb0ff; }
.contact .lead { color: rgba(255, 255, 255, 0.72); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.contact-list { margin: 8px 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 15px; }
.contact-list span { flex: 0 0 44px; color: rgba(255, 255, 255, 0.6); }
.contact-list a:hover { color: #fff; text-decoration: underline; }
.qrcode-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); }
.qrcode-card p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.qrcode { width: 160px; height: 160px; padding: 8px; background: #fff; border-radius: 10px; }

/* ---------- 业务页 ---------- */
/* 页头：整幅背景图 + 深色渐变遮罩，文字压在左侧，避免左右两栏一大一小 */
.page-hero { position: relative; overflow: hidden; padding: 64px 0 72px; background: var(--ink); color: #fff; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: 72% center; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 21, 48, 0.94) 0%, rgba(11, 21, 48, 0.84) 38%, rgba(11, 21, 48, 0.38) 100%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-text { max-width: 580px; }
.page-hero h1 { margin-bottom: 10px; color: #fff; }
.page-hero .eyebrow { color: #8fb0ff; }
.page-hero .lead { max-width: 560px; color: rgba(255, 255, 255, 0.8); }

.key-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.key-points li { padding: 7px 12px; font-size: 14px; color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 8px; }
.key-points li::before { content: "✓"; margin-right: 6px; color: var(--teal); font-weight: 700; }
.page-hero .hero-actions { margin-top: 22px; }
.page-hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.page-hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

@media (max-width: 767px) {
  .page-hero::after { background: rgba(11, 21, 48, 0.8); }
}

.two-col { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }

.feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feature-list li { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature-list h3 { margin-bottom: 4px; }
.feature-list p { margin: 0; color: var(--muted); font-size: 14px; }

.side-card { position: sticky; top: 80px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.side-card p { color: var(--muted); font-size: 14px; }
.side-list { margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.side-list li { padding: 6px 0 6px 20px; position: relative; }
.side-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

.faq { background: var(--surface); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 16px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-list summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { padding: 40px 0 28px; background: var(--surface); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.footer-brand p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.footer-col h4 { margin: 0 0 4px; font-size: 14px; color: var(--text); }
.footer-col a:hover { color: var(--accent); }
.copyright { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.beian:hover { color: var(--accent); }

/* ---------- 平板 ---------- */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .section { padding: 80px 0; }

  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav a { padding: 6px 0; font-size: 15px; border-bottom: 0; }
  .nav .nav-cta { margin: 0 0 0 8px; padding: 8px 16px; border: 1px solid var(--accent); border-radius: 999px; }

  .hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
  .hero h1 { font-size: 48px; }
  .hero-visual { margin-top: 0; }
  .visual-card { min-height: 150px; }

  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .case-card { padding: 22px; }
  .case-thumb { width: calc(100% + 44px); margin: -22px -22px 16px; height: 190px; }
  .cases-grid { gap: 20px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .contact-grid { grid-template-columns: 1.4fr 0.6fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .two-col { grid-template-columns: 1.6fr 0.8fr; gap: 32px; }
  .page-hero { padding: 88px 0 96px; }
}

/* ---------- 桌面 ---------- */
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid.how-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .process-grid li { padding: 22px; }
  .step-no { position: static; display: block; margin-bottom: 8px; }
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .cases-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .cases-grid-2 .case-thumb { height: 230px; }
  .cases-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .cases-grid-4 .case-card { padding: 18px; }
  .cases-grid-4 .case-thumb { width: calc(100% + 36px); margin: -18px -18px 14px; height: 160px; }
}
