/* 益小家家庭维修 官网样式 */
:root {
  --brand: #1f6a51;       /* 主色：稳重绿，非AI紫蓝 */
  --brand-dark: #144a38;
  --brand-light: #e8f1ec;
  --accent: #d97757;      /* 点缀橙 */
  --ink: #1a1a1a;
  --sub: #555;
  --line: #e6e6e6;
  --bg: #faf9f5;
  --white: #ffffff;
}

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

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

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.main-nav { display: flex; gap: 22px; font-size: 15px; }
.main-nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a.active, .main-nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.nav-cta { flex-shrink: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 4px 14px rgba(31,106,81,0.25); }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-light); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ===== Hero ===== */
.hero { padding: 64px 0; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  background: var(--brand-light); color: var(--brand);
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: 40px; line-height: 1.25; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 18px; }
.hero-sub { font-size: 17px; color: var(--sub); max-width: 52ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; font-size: 14px; color: var(--sub); }
.hero-trust li::before { content: ""; }
.hero-media img {
  width: 100%; border-radius: 16px; display: block;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: 30px; font-weight: 800; text-align: center; margin-bottom: 10px; letter-spacing: -0.5px; }
.section-sub { text-align: center; color: var(--sub); margin-bottom: 40px; }

/* ===== Service grid ===== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.service-card.highlight { border-color: var(--brand); background: var(--brand-light); }
.service-card h3 { font-size: 19px; margin-bottom: 10px; font-weight: 700; }
.service-card p { font-size: 15px; color: var(--sub); margin-bottom: 14px; }
.card-link { font-weight: 600; font-size: 14px; color: var(--brand); }

/* ===== Why ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { padding: 8px; }
.why-num { font-size: 26px; font-weight: 800; color: var(--accent); display: block; margin-bottom: 8px; }
.why-item h3 { font-size: 18px; margin-bottom: 8px; }
.why-item p { font-size: 14px; color: var(--sub); }

/* ===== Pricing ===== */
.pricing-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pricing-col {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px;
}
.pricing-col h3 { font-size: 20px; margin-bottom: 16px; color: var(--brand); }
.pricing-col ul { list-style: none; }
.pricing-col li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.pricing-col li:last-child { border-bottom: none; }
.pricing-note { margin-top: 14px; font-size: 13px; color: #999; }

/* ===== Process ===== */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: center; }
.step { padding: 20px 12px; }
.step-num {
  display: inline-flex; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--sub); }

/* ===== Contact ===== */
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 48px; text-align: center; max-width: 720px; margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}
.contact-card h2 { font-size: 28px; margin-bottom: 10px; }
.contact-card > p { color: var(--sub); margin-bottom: 28px; }
.contact-form { text-align: left; display: grid; gap: 16px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--brand); border-color: var(--brand);
}
.contact-form .btn { justify-self: center; }
.contact-note { margin-top: 16px; font-size: 13px; color: #999; text-align: center; }

/* ===== Footer ===== */
.site-footer { background: #102b20; color: #cfdcd5; padding: 48px 0 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 8px; }
.footer-company { font-size: 14px; margin-bottom: 8px; }
.footer-desc { font-size: 14px; opacity: 0.8; max-width: 60ch; margin-bottom: 24px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-nav a { font-size: 14px; color: #cfdcd5; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 13px; opacity: 0.6; }

/* ===== Hero phone / badge extras ===== */
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-phone { margin-top: 18px; font-size: 15px; color: var(--sub); }

/* ===== Brand grid ===== */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brand-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.brand-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.brand-card h3 { font-size: 19px; margin-bottom: 10px; font-weight: 700; color: var(--brand); }
.brand-card p { font-size: 14px; color: var(--sub); margin-bottom: 12px; }

/* ===== Sub-group title ===== */
.sub-group-title {
  font-size: 20px; font-weight: 700; color: var(--brand);
  margin: 32px 0 18px; padding-left: 14px; border-left: 4px solid var(--brand);
}

/* ===== Service card with image ===== */
.service-card.has-img { padding: 0; overflow: hidden; }
.service-card.has-img img {
  width: 100%; height: 200px; object-fit: cover; display: block;
}
.service-card .card-body { padding: 20px; }
.service-card .card-body h4 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.service-card .card-body p { font-size: 14px; color: var(--sub); margin-bottom: 0; }

/* ===== Price table (editable placeholder) ===== */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  padding: 10px 12px; text-align: left; border-bottom: 1px dashed var(--line); font-size: 15px;
}
.price-table th { color: var(--brand); font-weight: 700; }
.price-editable {
  display: inline-block; min-width: 110px; text-align: center;
  padding: 4px 12px; border: 1px dashed var(--accent); border-radius: 6px;
  color: var(--accent); background: #fdf3ee; font-weight: 600;
}

/* ===== Prepay note ===== */
.prepay-note {
  margin-top: 12px; padding: 12px 16px;
  background: #fff8e6; border: 1px solid #f0d5a0; border-radius: 10px;
  color: #8a6d1a; font-size: 14px; font-weight: 600;
}

/* ===== Shop link (店铺入口) ===== */
.shop-link {
  display: inline-block; margin-top: 12px; padding: 8px 16px;
  background: var(--accent); color: #fff; border-radius: 8px;
  font-size: 14px; font-weight: 600;
}
.shop-link:hover { background: #c45a3a; color: #fff; }
.shop-link-hero {
  display: inline-block; margin-top: 10px; padding: 8px 16px;
  background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.5);
  border-radius: 8px; font-size: 14px; font-weight: 600;
}
.shop-link-hero:hover { background: rgba(255,255,255,0.28); color: #fff; }

/* ===== Inner pages ===== */
.page-hero { background: var(--brand); color: #fff; padding: 56px 0; }
.page-hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { opacity: 0.9; max-width: 60ch; }
.article-body { padding: 48px 0; }
.article-body h2 { font-size: 24px; margin: 36px 0 14px; font-weight: 700; }
.article-body h3 { font-size: 19px; margin: 24px 0 10px; }
.article-body p { margin-bottom: 14px; color: var(--sub); font-size: 15px; }
.article-body ul { margin: 0 0 16px 22px; color: var(--sub); font-size: 15px; }
.article-body li { margin-bottom: 8px; }

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; }
details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; padding: 18px 22px;
}
details summary { font-weight: 700; cursor: pointer; font-size: 16px; list-style: none; }
details summary::before { content: "Q "; color: var(--accent); font-weight: 800; }
details[open] summary { margin-bottom: 10px; }
details p { color: var(--sub); font-size: 15px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .pricing-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .contact-card { padding: 28px 20px; }
}

.footer-beian{font-size:12px;color:#8a93a0;margin-top:6px;line-height:1.9}
.footer-beian a{color:#8a93a0;text-decoration:none;margin-right:10px}
.footer-beian a:hover{color:#2f6fed;text-decoration:underline}

