/* ============================================
   123师傅到家 - 品牌官网样式
   大气商务蓝橙风，明亮清爽
   ============================================ */

:root {
  --primary: #1E6BB8;
  --primary-dark: #15508d;
  --primary-light: #e8f1fb;
  --accent: #FF7A00;
  --accent-dark: #e66d00;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #16233a;
  --text-muted: #5b6b84;
  --border: #e6ebf2;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(22,35,58,.06), 0 1px 2px rgba(22,35,58,.04);
  --shadow-md: 0 8px 24px rgba(22,35,58,.08);
  --shadow-lg: 0 16px 48px rgba(22,35,58,.12);
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 700;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,122,0,.32);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,122,0,.4); }
.btn-secondary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(30,107,184,.3);
}
.btn-secondary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 18px; border-radius: 14px; }

/* ===== 顶部导航 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo .logo-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #3b8fe0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 18px;
  box-shadow: 0 4px 12px rgba(30,107,184,.3);
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-city {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  background: var(--bg); color: var(--text-muted);
  font-size: 14px; cursor: pointer; border: none;
  transition: all .2s;
}
.nav-city:hover { background: var(--primary-light); color: var(--primary); }

/* 移动端菜单 */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 150px 0 90px;
  background: linear-gradient(160deg, #f0f6fd 0%, #e8f1fb 40%, #f7f9fc 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(30,107,184,.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -160px; left: -100px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255,122,0,.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: #fff; color: var(--primary);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  white-space: nowrap;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  color: var(--primary);
  position: relative;
}
.hero h1 .highlight-orange { color: var(--accent); }
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.hero-tag {
  padding: 6px 14px; border-radius: 8px;
  background: #fff; color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stat .num {
  font-size: 32px; font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.stat .num.orange { color: var(--accent); }
.stat .label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* Hero 视觉图 */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}
.hero-card .card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.hero-card .card-title { font-size: 18px; font-weight: 700; }
.hero-card .card-badge {
  background: #fef3e8; color: var(--accent);
  padding: 4px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
}
.service-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: 14px;
  transition: all .2s;
}
.service-item:hover { background: var(--primary-light); }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.service-item .s-name { font-weight: 600; font-size: 15px; }
.service-item .s-desc { font-size: 13px; color: var(--text-muted); }
.service-item .s-price { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 15px; }

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600;
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}
.floating-card.fc1 { top: -16px; right: 8px; }
.floating-card.fc2 { bottom: -16px; left: 8px; animation-delay: 1.5s; }
@media (max-width: 768px) {
  .floating-card.fc1 { right: 4px; }
  .floating-card.fc2 { left: 4px; }
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== 通用 Section ===== */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--accent); font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 40px; letter-spacing: -0.03em; margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

/* ===== 四大场景 ===== */
.scenes { background: #fff; }
.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.scene-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.scene-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: #fff; }
.scene-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity .3s;
}
.scene-card:hover::before { opacity: 1; }
.scene-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 20px;
}
.scene-card h3 { font-size: 20px; margin-bottom: 10px; }
.scene-card p { color: var(--text-muted); font-size: 15px; }
.scene-tag {
  display: inline-block; margin-top: 16px;
  color: var(--primary); font-weight: 600; font-size: 14px;
}

/* ===== 服务矩阵 ===== */
.services { background: var(--bg); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all .25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.service-card .sc-icon {
  width: 60px; height: 60px; border-radius: 16px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.service-card h3 { font-size: 17px; margin-bottom: 6px; }
.service-card p { font-size: 13px; color: var(--text-muted); }

/* ===== 服务流程 ===== */
.process { background: #fff; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-step { text-align: center; position: relative; }
.process-num {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: #fff; font-size: 26px; font-weight: 800;
  position: relative; z-index: 1;
  box-shadow: 0 8px 20px rgba(30,107,184,.3);
}
.process-step h3 { font-size: 18px; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-muted); }
.process-grid::before {
  content: ""; position: absolute; top: 32px; left: 12%; right: 12%;
  height: 2px; border-top: 2px dashed var(--border);
  z-index: 0;
}

/* ===== 金牌师傅 ===== */
.masters { background: var(--bg); }
.master-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.master-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
}
.master-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.master-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.master-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.master-name { font-size: 18px; font-weight: 700; }
.master-verify { display: flex; align-items: center; gap: 4px; color: #22c55e; font-size: 13px; font-weight: 600; margin-top: 2px; }
.master-skill { color: var(--text-muted); font-size: 14px; }
.master-stats { display: flex; gap: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.master-stats .ms-item { text-align: center; }
.master-stats .ms-num { font-size: 20px; font-weight: 800; color: var(--primary); }
.master-stats .ms-label { font-size: 12px; color: var(--text-muted); }
.master-stars { color: #f59e0b; letter-spacing: 2px; }

/* ===== App 下载 ===== */
.download {
  background: linear-gradient(160deg, var(--primary), #15508d);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.download::before {
  content: ""; position: absolute; top: -100px; right: -60px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.download-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative; z-index: 1;
}
.download h2 { font-size: 40px; letter-spacing: -0.03em; margin-bottom: 16px; }
.download p { color: rgba(255,255,255,.8); font-size: 17px; margin-bottom: 32px; max-width: 480px; }
.download-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.download-features .df-item { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.download-features .df-item .check {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.download-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.store-btn {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px; padding: 14px 24px;
  color: #fff; font-weight: 600;
  transition: all .25s;
  cursor: pointer;
}
.store-btn:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.store-btn .store-icon { font-size: 28px; }
.store-btn .store-label { font-size: 12px; opacity: .8; }
.store-btn .store-name { font-size: 16px; font-weight: 700; }

.qr-wrap { display: flex; justify-content: center; }
.qr-card {
  background: #fff; border-radius: 24px; padding: 32px;
  text-align: center; box-shadow: var(--shadow-lg);
  max-width: 280px;
}
.qr-box {
  width: 180px; height: 180px; margin: 0 auto 16px;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
  gap: 3px;
  overflow: hidden;
}
.qr-cell { border-radius: 1px; min-width: 0; min-height: 0; }
.qr-cell.dark { background: #16233a; }
.qr-cell.accent { background: var(--primary); }
.qr-card h3 { color: var(--text); font-size: 18px; margin-bottom: 6px; }
.qr-card p { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ===== 企业/事业单位 ===== */
.business { background: #fff; }
.business-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.business-card {
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f6fd, #fff);
  border: 1px solid var(--border);
  transition: all .3s;
}
.business-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.business-card.orange { background: linear-gradient(135deg, #fef3e8, #fff); }
.business-card h3 { font-size: 26px; margin-bottom: 12px; }
.business-card p { color: var(--text-muted); margin-bottom: 20px; font-size: 15px; }
.business-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.business-list .bl-item {
  padding: 6px 14px; border-radius: 8px;
  background: #fff; box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 500;
}

/* ===== CTA 横幅 ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--accent), #ff9522);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { font-size: 34px; margin-bottom: 12px; }
.cta-banner p { font-size: 17px; opacity: .9; margin-bottom: 28px; }
.cta-banner .btn { background: #fff; color: var(--accent); }
.cta-banner .btn:hover { transform: translateY(-2px); }

/* ===== Footer ===== */
.footer {
  background: #16233a;
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand h3 { color: #fff; font-size: 20px; margin-bottom: 16px; white-space: nowrap; }
.footer-brand p { font-size: 14px; margin-bottom: 20px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 48px; padding: 20px 24px;
  text-align: center; font-size: 13px;
  color: rgba(255,255,255,.5);
}
.hotline {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: #fff;
  margin-top: 12px;
}

/* ===== 入场动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .scene-grid, .service-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .master-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-actions .nav-city { display: none; }
  .hero { padding: 120px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-visual { order: -1; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 30px; }
  .scene-grid, .service-grid, .process-grid, .master-grid, .business-grid { grid-template-columns: 1fr; }
  .download-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 40px 24px; }
}

/* 移动端抽屉菜单 */
.mobile-menu {
  position: fixed; top: 72px; left: 0; right: 0;
  background: #fff; padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-120%);
  transition: transform .3s ease;
  z-index: 99;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  display: block; padding: 14px 0;
  font-size: 16px; font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
