@charset "UTF-8";

/* ============================================
   福州玥米智能 · 官网样式表
   移动端优先（Mobile First），断点：640 / 768 / 1024
   ============================================ */

:root {
  --primary: #1462b8;
  --primary-dark: #0d3f7a;
  --primary-soft: #e8f1fb;
  --accent: #00a693;
  --accent-soft: #e0f5f2;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-deep: #0f2740;
  --text: #16202e;
  --muted: #5b6779;
  --border: #dfe5ee;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(15, 39, 64, 0.07);
  --maxw: 1160px;
  --nav-h: 60px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  /* 顶部固定导航占位，避免锚点被遮挡 */
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

img,
svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--primary-dark); }

/* 键盘焦点可见性（无障碍要求，不可删除） */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

/* ---------- 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 44px 0; }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: #fff; }
.section--deep h2,
.section--deep h3 { color: #fff; }
.section--deep .lead { color: rgba(255, 255, 255, 0.78); }

.lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 62ch;
}

.section-head { margin-bottom: 28px; }
.section-head h2 { margin-bottom: 0.4em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(8px);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text);
  white-space: nowrap;
}
.nav__logo:hover { color: var(--primary); }
.nav__logo .mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  flex-shrink: 0;
}
.nav__logo small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.2;
}

/* 移动端：默认隐藏菜单，点击展开 */
.nav__toggle {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  padding: 0;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav__menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 8px 20px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.nav__menu.is-open { display: block; }
.nav__menu li { margin: 0; }
.nav__menu a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.nav__menu li:last-child a { border-bottom: none; }
.nav__menu a:hover,
.nav__menu a[aria-current="page"] { color: var(--primary); }
.nav__menu a[aria-current="page"] { font-weight: 600; }

.nav__cta {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 40px;
  background: linear-gradient(180deg, var(--primary-soft) 0%, #fff 100%);
}
.hero h1 { margin-bottom: 0.5em; }
.hero .lead { font-size: 1.0625rem; }
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--muted);
  list-style: none;
  padding: 0;
}
.hero__meta li { margin: 0; }
.hero__meta strong {
  color: var(--text);
  font-size: 1.125rem;
  display: block;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--ghost:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn--whatsapp {
  background: var(--accent);
  color: #fff;
}
.btn--whatsapp:hover { background: #00897b; color: #fff; }

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.25rem;
}
.card--accent .card__icon { background: var(--accent-soft); }

/* 服务清单 */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.service-list li {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}
.service-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 报价卡 ---------- */
.price-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.price-card--featured {
  border: 2px solid var(--primary);
  position: relative;
}
.price-card__tag {
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 12px;
  border-radius: 20px;
}
.price-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.price-card__price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 2px;
}
.price-card__price span {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--muted);
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  font-size: 0.9375rem;
  flex: 1;
}
.price-card li {
  padding: 7px 0 7px 24px;
  position: relative;
  border-bottom: 1px dashed var(--border);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- 表格 ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 560px;
}
caption {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  background: var(--bg-soft);
  font-weight: 600;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }

/* ---------- 案例 ---------- */
.case-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  color: var(--text);
  transition: box-shadow 0.18s ease;
}
.case-card:hover { box-shadow: var(--shadow); color: var(--text); }
.case-card__img {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border);
}
.case-card__body { padding: 18px 20px 22px; }
.case-card__body h3 { margin-bottom: 0.3em; font-size: 1.0625rem; }
.case-card__meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

.case-hero {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

/* 案例结构化信息块 */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.facts li {
  margin: 0;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.facts dt,
.facts .k {
  font-size: 0.8125rem;
  color: var(--muted);
  display: block;
}
.facts .v { font-size: 1rem; font-weight: 500; }

/* ---------- FAQ 折叠 ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 46px 16px 18px;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.faq-item .faq-body > :last-child { margin-bottom: 0; }
.faq-item .faq-body strong { color: var(--text); }

/* ---------- 流程步骤 ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.steps li {
  counter-increment: step;
  margin: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 10px;
}
.steps h3 { margin-bottom: 0.3em; font-size: 1.0625rem; }
.steps p { margin: 0; font-size: 0.9375rem; color: var(--muted); }

/* ---------- 表单 ---------- */
.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(20, 98, 184, 0.25);
  outline-offset: 0;
}
.field textarea { min-height: 96px; resize: vertical; }
.form__note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 12px;
}
.form__msg {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  display: none;
}
.form__msg.is-ok { display: block; background: var(--accent-soft); color: #00695c; }
.form__msg.is-err { display: block; background: #fdeaea; color: #a32d2d; }

/* ---------- 联系条 ---------- */
.contact-bar {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.contact-item {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-item .k {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-item .v { font-size: 1.0625rem; font-weight: 500; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 40px 0 28px;
  font-size: 0.875rem;
}
.footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.8em;
}
.footer a { color: rgba(255, 255, 255, 0.82); }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8125rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__bottom a { color: rgba(255, 255, 255, 0.7); text-decoration: underline; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 14px 0 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--border);
}

/* ---------- 提示条 ---------- */
.notice {
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

/* ============================================
   断点：≥640px 小平板
   ============================================ */
@media (min-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { flex-direction: row; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .contact-bar { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ============================================
   断点：≥768px 平板横屏 —— 导航转为横排
   ============================================ */
@media (min-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .nav__toggle { display: none; }
  .nav__inner { gap: 24px; }
  .nav__menu {
    display: flex !important;
    align-items: center;
    gap: 4px;
    padding: 0;
    border-top: none;
    margin-left: auto;
  }
  .nav__menu a {
    padding: 8px 14px;
    border-bottom: none;
    font-size: 0.9375rem;
  }
  .nav__menu a[aria-current="page"] {
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
  }
  .nav__cta { display: block; }
  .nav__cta .btn { padding: 9px 18px; font-size: 0.9375rem; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  table { min-width: 0; }
}

/* ============================================
   断点：≥1024px 桌面
   ============================================ */
@media (min-width: 1024px) {
  h1 { font-size: 2.375rem; }
  .section { padding: 76px 0; }
  .hero { padding: 84px 0 72px; }
  .wrap { padding: 0 32px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .hero__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
}

/* ---------- 打印 ---------- */
@media print {
  .nav, .footer, .hero__actions { display: none; }
  body { color: #000; }
}

/* ---------- 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
