/* ============================================================
 * 未来造物 · 官网主样式
 * 品牌主色：紫蓝渐变 #6a5cff → #9b8cff
 * 字体：Poppins（英文）+ 思源黑体/微软雅黑（中文回退）
 * ============================================================ */

:root {
  --brand: #6a5cff;
  --brand-2: #9b8cff;
  --brand-grad: linear-gradient(135deg, #6a5cff 0%, #9b8cff 100%);
  --dark: #1a1a2e;
  --ink: #2b2b3a;
  --muted: #7a7a8c;
  --line: #eceaf5;
  --bg: #ffffff;
  --bg-soft: #f6f5fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(106, 92, 255, 0.10);
  --shadow-hover: 0 16px 40px rgba(106, 92, 255, 0.20);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ==================== 顶部细条 ==================== */
.topbar {
  background: var(--dark);
  color: #cfcde8;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #cfcde8; margin-left: 14px; }
.topbar a:hover { color: #fff; }
.topbar .btn-link { background: none; border: none; color: #cfcde8; cursor: pointer; font-size: 13px; padding: 0; }
.topbar .btn-link:hover { color: #fff; }
.topbar .login-name { color: #fff; font-weight: 600; }

/* ==================== 主头部 ==================== */
.header { background: #fff; box-shadow: 0 2px 12px rgba(26,26,46,0.06); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: 40px; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 20px;
  flex-shrink: 0; box-shadow: 0 4px 12px rgba(106,92,255,0.3);
}
.brand-text b { font-size: 20px; letter-spacing: 1px; display: block; color: var(--dark); }
.brand-text span { font-size: 11px; letter-spacing: 2px; color: var(--muted); }

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 16px; border-radius: 8px; font-size: 15px; font-weight: 500;
  transition: all .2s; color: var(--ink);
}
.nav a:hover, .nav a.active { color: var(--brand); background: var(--bg-soft); }
.nav a.active { font-weight: 600; }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-right .btn-primary { margin-left: 8px; }

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 26px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: all .2s;
}
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 16px rgba(106,92,255,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(106,92,255,0.4); }
.btn-outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 14px 36px; font-size: 16px; }

/* ==================== 全宽大轮播 ==================== */
.hero {
  position: relative; height: 560px; overflow: hidden; background: var(--dark);
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; display: flex;
  align-items: center; justify-content: center; color: #fff;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide .bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-content { position: relative; z-index: 3; text-align: center; padding: 0 24px; max-width: 780px; }
.hero-kicker {
  display: inline-block; padding: 6px 18px; border-radius: 30px; background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25); font-size: 13px; letter-spacing: 2px; margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.2; margin-bottom: 18px; letter-spacing: 1px; }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: all .3s;
}
.hero-dots button.active { width: 28px; border-radius: 6px; background: #fff; }

/* ==================== 通用区块 ==================== */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .tag { color: var(--brand); font-weight: 600; font-size: 13px; letter-spacing: 2px; margin-bottom: 8px; }
.section-head h2 { font-size: 34px; color: var(--dark); margin-bottom: 12px; letter-spacing: 1px; }
.section-head p { color: var(--muted); }

/* ==================== 服务分类卡片 ==================== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow);
  transition: all .3s; border: 1px solid transparent;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--brand-2); }
.service-ico {
  width: 56px; height: 56px; border-radius: 14px; background: var(--brand-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px;
  box-shadow: 0 6px 14px rgba(106,92,255,0.3);
}
.service-card h3 { font-size: 19px; margin-bottom: 8px; color: var(--dark); }
.service-card p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.service-price { color: var(--brand); font-weight: 700; font-size: 20px; }
.service-card .go { color: var(--brand); font-size: 14px; font-weight: 600; margin-top: 16px; display: inline-block; }

/* ==================== 案例卡片 ==================== */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: all .3s;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.case-cover { height: 220px; overflow: hidden; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover .case-cover img { transform: scale(1.05); }
.case-body { padding: 20px 22px 24px; }
.case-body h3 { font-size: 17px; margin-bottom: 6px; color: var(--dark); }
.case-body p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.case-date { font-size: 12px; color: #a9a9bd; }

/* ==================== 服务优势 ==================== */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-item { text-align: center; padding: 30px 20px; }
.adv-ico { font-size: 36px; margin-bottom: 14px; }
.adv-item h3 { font-size: 17px; margin-bottom: 6px; color: var(--dark); }
.adv-item p { color: var(--muted); font-size: 14px; }

/* ==================== 页脚 ==================== */
.footer { background: var(--dark); color: #b8b6d6; padding: 56px 0 0; }
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { color: #fff; margin-bottom: 18px; font-size: 16px; }
.footer a { display: block; color: #b8b6d6; margin-bottom: 10px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer .about p { font-size: 14px; margin-top: 14px; line-height: 1.8; }
.footer .about .brand { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; text-align: center; font-size: 12px; color: #8a88a8; }
.footer-bottom a { display: inline; margin: 0 6px; color: #8a88a8; }
.footer-bottom a:hover { color: #fff; }

/* ==================== 内部页共用 ==================== */
.page-hero {
  background: var(--brand-grad); color: #fff; text-align: center; padding: 64px 0;
}
.page-hero h1 { font-size: 38px; margin-bottom: 8px; }
.page-hero p { opacity: 0.9; }

/* ==================== 表单 ==================== */
.form-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px; max-width: 520px; margin: 0 auto;
}
.form-card h2 { text-align: center; margin-bottom: 24px; color: var(--dark); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
}
.field textarea { resize: vertical; min-height: 90px; }
.form-tip { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.form-tip a { color: var(--brand); }

/* ==================== 提示条 ==================== */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-80px);
  background: var(--dark); color: #fff; padding: 12px 24px; border-radius: 10px; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2); transition: all .3s; z-index: 999; opacity: 0;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { background: #e5484d; }

/* ==================== 联系区块 ==================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .ci { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci:last-child { border-bottom: none; }
.contact-info .ci i {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--bg-soft);
  color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-info .ci b { display: block; font-size: 15px; color: var(--dark); }
.contact-info .ci span { color: var(--muted); font-size: 14px; }

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { height: 440px; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 560px) {
  .services-grid, .cases-grid, .adv-grid { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; }
  .nav { display: none; }
}
