/* ==========================================================================
   叩门师 PC 官网 — koumenshi.cn
   品牌色：橙粉 #F5A05F -> #EF7398（用户端同源），辅助金 #DBA878，墨茶 #59504C
   ========================================================================== */
:root {
  --grad: linear-gradient(135deg, #F5A05F 0%, #EF7398 100%);
  --c-primary: #EF7398;
  --c-primary-deep: #E05B84;
  --c-gold: #DBA878;
  --c-ink: #59504C;
  --c-text: #4a4441;
  --c-muted: #8c8480;
  --c-bg: #fffdfa;
  --c-bg-alt: #faf5f0;
  --c-card: #ffffff;
  --c-border: #f0e6dd;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(180, 120, 90, .10);
  --shadow-hover: 0 12px 32px rgba(180, 120, 90, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 250, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  overflow: hidden; flex: 0 0 38px;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--c-ink); letter-spacing: 1px; }
.logo-text small { font-size: 12px; color: var(--c-muted); font-weight: 400; margin-left: 6px; letter-spacing: 2px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { font-size: 15px; color: var(--c-ink); transition: color .2s; }
.main-nav a:hover { color: var(--c-primary-deep); }

.btn {
  display: inline-block; padding: 12px 32px; border-radius: 999px;
  background: var(--grad); color: #fff !important;
  font-size: 16px; font-weight: 600; border: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(239, 115, 152, .35);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(239, 115, 152, .45); }
.btn-ghost {
  background: transparent; color: var(--c-primary-deep) !important;
  border: 1.5px solid var(--c-primary); box-shadow: none;
}
.btn-ghost:hover { background: #fdf0f4; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 60% 80% at 85% 10%, rgba(245, 160, 95, .14), transparent),
    radial-gradient(ellipse 50% 70% at 10% 90%, rgba(239, 115, 152, .12), transparent),
    var(--c-bg);
  padding: 96px 0 84px;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 999px;
  background: #fdf0f4; color: var(--c-primary-deep);
  font-size: 14px; margin-bottom: 26px; border: 1px solid #f8dbe4;
}
.hero h1 {
  font-size: 46px; line-height: 1.3; color: var(--c-ink);
  font-weight: 800; letter-spacing: 1px;
}
.hero h1 .hl {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub {
  font-size: 19px; color: var(--c-muted); margin: 22px 0 40px;
}
.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  margin-top: 52px; color: var(--c-muted); font-size: 14px;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust b { color: var(--c-ink); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--c-bg-alt); }
.section-head { text-align: center; margin-bottom: 54px; }
.section-head .kicker {
  font-size: 14px; color: var(--c-primary-deep); letter-spacing: 4px; font-weight: 600;
}
.section-head h2 {
  font-size: 34px; color: var(--c-ink); margin-top: 10px; font-weight: 800; letter-spacing: 1px;
}
.section-head p { color: var(--c-muted); margin-top: 12px; font-size: 16px; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  background: var(--c-card); border-radius: var(--radius);
  padding: 34px 28px; border: 1px solid var(--c-border);
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-icon {
  width: 64px; height: 64px; border-radius: 20px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; margin-bottom: 20px;
}
.service-card h3 { font-size: 20px; color: var(--c-ink); margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: var(--c-muted); }
.service-meta {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--c-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--c-muted);
}
.service-meta .dur { display: inline-flex; align-items: center; gap: 6px; }
.card-link { color: var(--c-primary-deep); font-weight: 600; font-size: 14px; }
.card-link:hover { text-decoration: underline; }

/* ---------- Advantage cards ---------- */
.adv-card {
  background: var(--c-card); border-radius: var(--radius);
  padding: 34px 26px; text-align: center; border: 1px solid var(--c-border);
  transition: transform .25s;
}
.adv-card:hover { transform: translateY(-4px); }
.adv-card .num {
  font-size: 15px; font-weight: 800; color: var(--c-gold); letter-spacing: 2px;
}
.adv-card h3 { font-size: 19px; color: var(--c-ink); margin: 12px 0 10px; }
.adv-card p { font-size: 14.5px; color: var(--c-muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step {
  position: relative; background: var(--c-card);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 34px 26px 28px;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -18px; left: 24px;
  font-size: 34px; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 18px; color: var(--c-ink); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--c-muted); }

/* ---------- Scenario cards ---------- */
.scene-card {
  background: var(--c-card); border-radius: var(--radius);
  padding: 28px 26px; border: 1px solid var(--c-border);
  display: flex; gap: 18px; align-items: flex-start;
  transition: transform .25s;
}
.scene-card:hover { transform: translateY(-4px); }
.scene-emoji {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
  background: #fdf0f4; color: var(--c-primary-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.scene-card h3 { font-size: 17px; color: var(--c-ink); margin-bottom: 6px; }
.scene-card p { font-size: 14px; color: var(--c-muted); }

/* ---------- Join band ---------- */
.join-band {
  background: var(--grad); border-radius: 24px;
  padding: 64px 48px; color: #fff; text-align: center;
  box-shadow: 0 16px 40px rgba(239, 115, 152, .30);
}
.join-band h2 { font-size: 32px; font-weight: 800; letter-spacing: 1px; }
.join-band p { margin: 14px 0 34px; opacity: .95; font-size: 16.5px; }
.join-band .btn-white {
  display: inline-block; padding: 13px 38px; border-radius: 999px;
  background: #fff; color: var(--c-primary-deep); font-weight: 700; margin: 0 10px 12px;
  transition: transform .2s; font-size: 15.5px;
}
.join-band .btn-white:hover { transform: translateY(-2px); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px;
}
.faq-item h3 {
  font-size: 16.5px; color: var(--c-ink); font-weight: 700;
  display: flex; align-items: center; gap: 12px;
}
.faq-item h3::before {
  content: "Q"; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px;
  background: var(--grad); color: #fff; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.faq-item p { margin: 12px 0 0 38px; font-size: 14.5px; color: var(--c-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: #2e2a28; color: #c9c2bd; padding: 64px 0 0; margin-top: 40px;
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.footer-brand p { opacity: .75; margin-top: 12px; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0; text-align: center; font-size: 13px; opacity: .6;
}

/* ---------- Breadcrumb / article pages ---------- */
.page-hero {
  background: var(--c-bg-alt); padding: 56px 0 44px; text-align: center;
  border-bottom: 1px solid var(--c-border);
}
.page-hero h1 { font-size: 34px; color: var(--c-ink); font-weight: 800; }
.page-hero .crumb { font-size: 13.5px; color: var(--c-muted); margin-top: 12px; }
.page-hero .crumb a:hover { color: var(--c-primary-deep); }
.article { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.article h2 {
  font-size: 23px; color: var(--c-ink); margin: 40px 0 16px;
  padding-left: 14px; border-left: 4px solid var(--c-primary);
}
.article h2:first-child { margin-top: 0; }
.article p, .article li { color: var(--c-text); font-size: 15.5px; margin-bottom: 12px; }
.article ul { padding-left: 22px; list-style: disc; }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.article th, .article td { border: 1px solid var(--c-border); padding: 10px 14px; text-align: left; }
.article th { background: var(--c-bg-alt); color: var(--c-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }
  .site-header .container { flex-wrap: wrap; height: auto; padding: 10px 16px; row-gap: 8px; }
  .main-nav { display: flex; width: 100%; gap: 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .main-nav a { white-space: nowrap; font-size: 14px; }
  .section { padding: 60px 0; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .hero { padding: 64px 0 56px; }
  .join-band { padding: 44px 24px; }
}

/* ---------- 移动端吸底预约条（仅 ≤600px 显示） ---------- */
.mobile-cta-bar { display: none; }

@media (max-width: 600px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .mobile-cta-bar {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--grad); color: #fff !important;
    font-size: 16.5px; font-weight: 700; letter-spacing: 1px;
    box-shadow: 0 -6px 20px rgba(239, 115, 152, .35);
  }
  .mobile-cta-bar:active { opacity: .9; }
  /* 文章页表格小屏防溢出：可横向滑动 */
  .article table, .post-body table {
    display: block; width: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .article td, .post-body td { word-break: break-word; }
}

/* ---------- 文章（资讯栏目） ---------- */
.post-meta { font-size: 13px; color: var(--c-muted); margin-top: 10px; }

.tldr {
  background: #fdf6f2; border: 1px solid #f7e2d6;
  border-left: 4px solid var(--c-gold);
  border-radius: 12px; padding: 20px 24px; margin-bottom: 32px;
}
.tldr-label {
  font-size: 12.5px; font-weight: 700; color: var(--c-gold);
  letter-spacing: 2px; margin-bottom: 8px;
}
.tldr p { margin: 0; font-size: 15.5px; color: var(--c-ink); }

.post-body h3 { font-size: 19px; color: var(--c-ink); margin: 28px 0 12px; }
.post-body h4 { font-size: 16.5px; color: var(--c-ink); margin: 22px 0 10px; }
.post-body blockquote {
  margin: 18px 0; padding: 14px 20px;
  background: var(--c-bg-alt); border-left: 3px solid var(--c-primary);
  border-radius: 8px; color: var(--c-ink); font-size: 15px;
}
.post-body blockquote p { margin: 0; }
.post-body code {
  background: var(--c-bg-alt); padding: 2px 6px; border-radius: 4px;
  font-size: 14px; color: var(--c-primary-deep);
}
.post-body ol { padding-left: 22px; margin-bottom: 12px; }
.post-body ol li { list-style: decimal; }
.post-body strong { color: var(--c-ink); }

.post-nav {
  display: flex; flex-direction: column; gap: 10px;
  margin: 40px 0 8px; padding-top: 24px; border-top: 1px solid var(--c-border);
  font-size: 14.5px;
}
.post-nav a { color: var(--c-primary-deep); }
.post-nav a:hover { text-decoration: underline; }

.related { margin-top: 44px; }
.related h2 {
  font-size: 20px; color: var(--c-ink); margin-bottom: 16px;
  padding-left: 12px; border-left: 4px solid var(--c-primary);
}
.related ul { list-style: none; padding: 0; }
.related li { padding: 10px 0; border-bottom: 1px dashed var(--c-border); }
.related a { color: var(--c-text); font-size: 15px; }
.related a:hover { color: var(--c-primary-deep); }

/* 文章列表页 */
.post-list { list-style: none; padding: 0; margin: 28px 0 0; }
.post-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); margin-bottom: 18px;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card a { display: block; padding: 26px 28px; }
.post-card h3 { font-size: 19px; color: var(--c-ink); margin-bottom: 8px; }
.post-card p { font-size: 14.5px; color: var(--c-muted); margin: 0; }

/* ICP 备案号链接（页脚） */
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
