/* ==========================================================================
   时代计算机 - 建站业务官网样式
   原生 CSS，无框架依赖，适配桌面/平板/移动端
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --navy-900: #0a2540;
  --navy-800: #0d2c4f;
  --blue-600: #1565d8;
  --blue-500: #1e6bd6;
  --cyan-500: #06b6d4;
  --teal-500: #14b8a6;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --bg-soft: #f6f9fc;
  --white: #ffffff;
  --text: #1a2332;
  --muted: #5b6b80;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, .08), 0 1px 2px rgba(10, 37, 64, .06);
  --shadow-md: 0 10px 30px -12px rgba(10, 37, 64, .18);
  --shadow-lg: 0 24px 60px -20px rgba(10, 37, 64, .28);
  --container: 1180px;
  --gradient: linear-gradient(135deg, #0a2540 0%, #0d2c4f 40%, #1565d8 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cyan-500); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: var(--navy-900); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

/* ---------- 布局容器 ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section-sm { padding: 52px 0; }
.section-title { text-align: center; margin-bottom: 14px; }
.section-sub { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 48px; font-size: 1.02rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan-500); margin-bottom: 12px;
}
.center { text-align: center; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--gradient); display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.08rem; color: var(--navy-900); }
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  position: relative; color: var(--slate-700); font-size: .95rem; font-weight: 500;
  padding: 8px 13px; border-radius: 8px;
}
.main-nav a:hover { color: var(--blue-600); background: var(--slate-100); }
.main-nav a.active { color: var(--blue-600); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  background: var(--gradient-accent); border-radius: 2px;
}
.nav-cta {
  background: var(--gradient); color: #fff !important; padding: 9px 18px !important;
  border-radius: 9px; font-weight: 600; margin-left: 6px;
}
.nav-cta:hover { filter: brightness(1.08); }
.nav-toggle { display: none; }

/* 服务下拉菜单（纯 CSS hover） */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: "▾"; font-size: .72em; margin-left: 5px; opacity: .7; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .2s ease; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.dropdown a { padding: 10px 12px !important; border-radius: 8px; font-size: .9rem; }
.dropdown a:hover { background: var(--slate-100); }
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px; font-weight: 600; font-size: .98rem;
  cursor: pointer; border: none; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.06); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .55); }
.btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; transform: translateY(-2px); }
.btn-soft { background: var(--slate-100); color: var(--navy-900); }
.btn-soft:hover { background: var(--slate-300); color: var(--navy-900); transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* ---------- 通用页面 Hero ---------- */
.page-hero {
  position: relative; color: #fff; padding: 70px 0 64px; overflow: hidden;
  background: var(--gradient);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .9;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(6, 182, 212, .35), transparent 42%),
    radial-gradient(circle at 82% 8%, rgba(20, 184, 166, .28), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; opacity: .6; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 16px; }
.page-hero p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; max-width: 660px; }

/* ---------- 首页 Hero ---------- */
.home-hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--gradient);
  padding: 96px 0 92px;
}
.home-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(6, 182, 212, .4), transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(20, 184, 166, .32), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
}
.home-hero .container { position: relative; z-index: 1; }
.home-hero .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  padding: 7px 16px; border-radius: 999px; font-size: .82rem; margin-bottom: 22px;
}
.home-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.5rem); margin-bottom: 20px; letter-spacing: -.01em; }
.home-hero h1 .accent { background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.home-hero p.lead { color: rgba(255, 255, 255, .88); font-size: 1.18rem; max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: #fff; }
.hero-stat .label { font-size: .85rem; color: rgba(255, 255, 255, .72); }

/* ---------- 服务卡片网格 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(21, 101, 216, .12), rgba(6, 182, 212, .12));
  color: var(--blue-600);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .92rem; flex-grow: 1; }
.service-card .more { margin-top: 16px; font-weight: 600; font-size: .9rem; color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; }
.service-card .more::after { content: "→"; transition: transform .2s ease; }
.service-card:hover .more::after { transform: translateX(4px); }

/* ---------- 通用内容组件 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.feature-list { display: grid; gap: 18px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-check {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; margin-top: 2px;
  background: linear-gradient(135deg, #06b6d4, #14b8a6); color: #fff; display: grid; place-items: center;
}
.feature-check svg { width: 16px; height: 16px; }
.feature-item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.feature-item p { color: var(--muted); font-size: .93rem; }

.media-card {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--gradient); min-height: 360px;
  display: flex; align-items: center; justify-content: center;
}
.media-card::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 22% 24%, rgba(6,182,212,.42), transparent 42%),
    radial-gradient(circle at 80% 78%, rgba(20,184,166,.3), transparent 44%),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
}
.media-card .media-badge {
  position: relative; z-index: 1; width: 130px; height: 130px; border-radius: 30px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  display: grid; place-items: center; color: #fff; box-shadow: 0 22px 50px -16px rgba(0,0,0,.45);
}
.media-card .media-badge svg { width: 64px; height: 64px; }
.media-card .media-dot { position: absolute; z-index: 1; border-radius: 14px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); }
.media-card .media-dot.d1 { width: 54px; height: 54px; top: 16%; left: 11%; }
.media-card .media-dot.d2 { width: 38px; height: 38px; bottom: 15%; right: 13%; }
.media-card .media-dot.d3 { width: 26px; height: 26px; top: 20%; right: 17%; }

/* ---------- 特性区（三列/四列） ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-grid.four { grid-template-columns: repeat(4, 1fr); }
.feature-box {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; height: 100%;
}
.feature-box .num { font-size: 2.2rem; font-weight: 800; background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.feature-box h4 { margin: 10px 0 8px; }
.feature-box p { color: var(--muted); font-size: .92rem; }

/* ---------- 流程步骤 ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding: 30px 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 1.6rem; font-weight: 800; color: var(--cyan-500); margin-bottom: 10px;
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: .92rem; }

/* ---------- FAQ 折叠（原生 details/summary，无 JS） ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; font-weight: 600; color: var(--navy-900); font-size: 1.02rem;
}
.faq-q:hover { background: var(--bg-soft); }
.faq-q .icon { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.faq-q .icon::before, .faq-q .icon::after {
  content: ""; position: absolute; background: var(--blue-600); border-radius: 2px; transition: transform .25s ease;
}
.faq-q .icon::before { top: 50%; left: 0; right: 0; height: 3px; transform: translateY(-50%); }
.faq-q .icon::after { left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); }
.faq-a { padding: 0 24px 22px; color: var(--muted); }
.faq-item[open] .faq-q { color: var(--blue-600); }
.faq-item[open] .faq-q .icon::after { transform: translateX(-50%) scaleY(0); }

/* ---------- CTA 横幅 ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; background: var(--gradient); text-align: center; padding: 70px 0; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(6, 182, 212, .4), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(20, 184, 166, .32), transparent 42%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, .88); font-size: 1.08rem; margin-bottom: 30px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- 价格 / 套餐 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--white);
  padding: 34px 30px; display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border-color: var(--blue-600); box-shadow: var(--shadow-md); }
.price-card.featured::before {
  content: "推荐"; position: absolute; top: -13px; right: 24px;
  background: var(--gradient-accent); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 5px 14px; border-radius: 999px;
}
.price-card h4 { font-size: 1.25rem; margin-bottom: 8px; }
.price-card .price { font-size: 2.1rem; font-weight: 800; color: var(--navy-900); margin: 10px 0; }
.price-card .price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price-card .desc { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.price-card ul { display: grid; gap: 12px; margin-bottom: 26px; flex-grow: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--slate-700); }
.price-card li::before { content: "✓"; color: var(--teal-500); font-weight: 700; }

/* ---------- 联系信息 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row .ci-icon {
  width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(21, 101, 216, .12), rgba(6, 182, 212, .12)); color: var(--blue-600);
}
.contact-row .ci-icon svg { width: 22px; height: 22px; }
.contact-row h4 { font-size: 1rem; margin-bottom: 2px; }
.contact-row p, .contact-row a { color: var(--muted); font-size: .98rem; word-break: break-all; }
.contact-row a:hover { color: var(--blue-600); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); min-height: 360px; }
.map-embed iframe { width: 100%; height: 460px; border: 0; display: block; }

/* ---------- 关于我们 ---------- */
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about-stat { text-align: center; padding: 30px 18px; background: var(--bg-soft); border-radius: var(--radius); border: 1px solid var(--border); }
.about-stat .num { font-size: 2.4rem; font-weight: 800; background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about-stat .label { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { padding: 30px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.value-card h4 { margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: .93rem; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 18px; }
.footer-col p, .footer-col li { font-size: .9rem; color: rgba(255, 255, 255, .66); margin-bottom: 10px; }
.footer-col a { color: rgba(255, 255, 255, .66); }
.footer-col a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; line-height: 1.8; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; text-align: center; font-size: .85rem; color: rgba(255, 255, 255, .5); }
.footer-bottom a { color: rgba(255, 255, 255, .6); }

/* ---------- 浮动联系条 ---------- */
.float-contact { position: fixed; right: 20px; bottom: 24px; z-index: 900; display: flex; flex-direction: column; gap: 12px; }
.float-contact a {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); box-shadow: var(--shadow-md); color: var(--blue-600); transition: transform .2s ease;
}
.float-contact a:hover { transform: translateY(-3px); color: var(--cyan-500); }
.float-contact svg { width: 24px; height: 24px; }
.float-contact .badge { position: absolute; top: -4px; right: -4px; background: #ef4444; color: #fff; font-size: .68rem; border-radius: 999px; padding: 1px 6px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid.four { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: space-between; width: 28px; height: 20px;
    background: none; border: none; cursor: pointer; padding: 0;
  }
  .nav-toggle span { display: block; height: 3px; width: 100%; background: var(--navy-900); border-radius: 2px; transition: .3s; }
  .main-nav {
    position: fixed; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 14px 18px; gap: 2px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 560px; overflow-y: auto; }
  .main-nav a { padding: 13px 14px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .split, .split.reverse .split-media { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .feature-grid, .price-grid, .value-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .section { padding: 54px 0; }
  .home-hero { padding: 64px 0 60px; }
}
@media (max-width: 540px) {
  .service-grid, .feature-grid.four, .process, .about-stats, .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
