/* 安存数字官网样式（客户版 Web 网站） */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: #FAF6F0;
  color: #3A322B;
  font-size: 15px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
.muted { color: #8A8178; font-size: 13px; }

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #EDE5D9;
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 14px 24px; gap: 26px;
}
.nav-logo { font-size: 19px; font-weight: 700; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 8px; }
.nav-logo-img { width: 34px; height: 34px; object-fit: contain; }
.footer-logo-img { width: 26px; height: 26px; object-fit: contain; vertical-align: -5px; margin-right: 6px; }
.nav-logo span { color: #8C6A4F; }
.nav-links { display: flex; gap: 22px; flex: 1; flex-wrap: wrap; }
.nav-link { font-size: 14px; color: #5C554E; }
.nav-link:hover { color: #8C6A4F; }
.nav-console { margin-left: 6px; padding: 3px 10px; border: 1px solid #D8CDBE; border-radius: 999px; font-size: 12px; color: #A89C8E; }
.nav-console:hover { color: #8C6A4F; border-color: #8C6A4F; }
.nav-user { font-size: 13px; color: #8C6A4F; }
#nav-auth { display: flex; align-items: center; gap: 14px; }

/* ===== 导航搜索（常驻 PC 小搜索框 + 移动端外露搜索按钮） ===== */
/* - 需求2（Web PC端）：常驻小搜索框，不是单纯放大镜图标
   - 需求3（Web移动端网页）：搜索外露胶囊按钮，不藏进 nav-links / 折叠菜单
   结构（插入位置：.nav-links 同级、#nav-auth 之前/独立同级）：
     <div class="nav-search">
       <form class="nav-search-form" action="search.html" method="get">
         <input class="nav-search-input" name="q" type="search" placeholder="...">
         <button class="nav-search-btn">🔍 搜索</button>
       </form>
       <a class="nav-search-btn-mobile" href="search.html">🔍 搜索</a>
     </div> */
.nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.nav-search-form {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border: 1px solid #D8CDBE;
  border-radius: 999px;
  background: #fff;
  transition: border-color .15s;
}
.nav-search-form:focus-within {
  border-color: #8C6A4F;
}
.nav-search-input {
  border: none;
  outline: none;
  background: transparent;
  padding: 4px 2px 4px 10px;
  width: 160px;
  font-size: 13px;
  color: #3A322B;
  font-family: inherit;
}
.nav-search-input::placeholder {
  color: #A89C8E;
}
.nav-search-btn {
  border: none;
  background: #8C6A4F;
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity .15s;
}
.nav-search-btn:hover { opacity: .88; }
.nav-search-btn-mobile {
  display: none; /* PC 默认隐藏 */
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff;
  color: #5C554E;
  border: 1px solid #D8CDBE;
  font-size: 13px;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}
.nav-search-btn-mobile:hover {
  color: #8C6A4F;
  border-color: #8C6A4F;
}
/* 移动端：小搜索框隐藏，显示外露的胶囊搜索按钮
   注意：因 nav-search 与 nav-links 同级，不会跟着 nav-links 被隐藏 */
@media (max-width: 720px) {
  .nav-search-form { display: none !important; }
  .nav-search-btn-mobile { display: inline-flex !important; }
}
/* PC 端：胶囊按钮隐藏（已通过默认 display:none 生效），此处留空便于扩展 */

/* ===== 通用 ===== */
.section { max-width: 1120px; margin: 0 auto; padding: 64px 24px 8px; }
.section-title { font-size: 28px; font-weight: 700; text-align: center; }
.section-sub { text-align: center; color: #8A8178; margin-top: 10px; font-size: 14px; }

/* -190 首页数字遗产科普精选卡片 */
.sci-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1060px; margin: 26px auto 0; }
.sci-card { display: block; background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: 0 2px 12px rgba(58, 50, 43, .05); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.sci-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(58, 50, 43, .10); }
.sci-card .sci-q { font-weight: 600; font-size: 15px; color: #2B241E; line-height: 1.5; }
.sci-card .sci-a { margin-top: 8px; font-size: 13px; color: #8A8177; line-height: 1.7; }
.sci-card .sci-more { margin-top: 10px; font-size: 13px; color: #1F6F54; font-weight: 600; }
@media (max-width: 860px) { .sci-grid { grid-template-columns: 1fr; } }

/* -190 站内搜索页（search.html 辅助样式） */
.search-hot { padding: 5px 12px; background: #F4F1EA; border-radius: 16px; font-size: 13px; color: #5C554E; text-decoration: none; cursor: pointer; }
.search-hot:hover { background: #EDE7DC; }
.btn {
  display: inline-block; padding: 12px 28px;
  border-radius: 10px; border: none; cursor: pointer;
  background: #8C6A4F; color: #fff; font-size: 14px;
  transition: opacity .15s;
}
.btn:hover { opacity: .88; }
.btn.ghost { background: #fff; color: #8C6A4F; border: 1px solid #C9BBA8; }
.btn.sm { padding: 7px 16px; font-size: 13px; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.tag { display: inline-block; padding: 2px 12px; border-radius: 20px; font-size: 12px; }
.tag-green { background: rgba(110, 158, 120, .15); color: #6E9E78; }
.tag-orange { background: rgba(201, 128, 62, .15); color: #C9803E; }
.tag-red { background: rgba(182, 90, 78, .12); color: #B65A4E; }
.tag-gold { background: rgba(201, 169, 110, .18); color: #A8843F; }
.tag-gray { background: #F0EDE8; color: #9A9188; }
.tk-badge { display: inline-block; margin-top: 6px; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; text-decoration: none; }
a.tk-badge:hover { filter: brightness(.96); }

/* ===== 首页登录态感知区（20260827） ===== */
.emg-bar { max-width: 1080px; margin: 18px auto 0; padding: 12px 22px; background: #FBF6EE; border: 1px solid #EBDFC8; border-radius: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.emg-text { font-size: 14px; color: #7A6A58; }
.emg-link { font-size: 14px; font-weight: 700; color: #B65A4E; text-decoration: none; white-space: nowrap; }
.emg-link:hover { text-decoration: underline; }
.home-progress { background: #fff; border: 1px solid #EDE5D9; border-radius: 14px; padding: 18px 22px; box-shadow: 0 2px 12px rgba(58, 50, 43, .05); }
.hp-title { font-size: 15px; font-weight: 700; color: #3A322B; margin-bottom: 10px; }
.hp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; text-decoration: none; border-top: 1px solid #F5F0E8; }
.hp-row:first-of-type { border-top: none; }
.hp-row:hover { background: #FBF9F5; }
.hp-name { font-size: 14px; font-weight: 600; color: #3A322B; }
.unread-badge { display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 6px; background: #B65A4E; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; text-align: center; vertical-align: middle; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #6E5F4F 0%, #8C6A4F 55%, #A8843F 100%);
  color: #fff;
  padding: 90px 24px 80px;
  text-align: center;
}
.hero h1 { font-size: 40px; letter-spacing: 3px; }
.hero .slogan { margin-top: 16px; font-size: 17px; opacity: .92; }
.hero .desc { max-width: 720px; margin: 20px auto 0; font-size: 14px; opacity: .85; line-height: 1.9; }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; justify-content: center; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero-stats { margin-top: 46px; display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.hero-stat .num { font-size: 30px; font-weight: 700; }
.hero-stat .lbl { font-size: 12px; opacity: .8; margin-top: 4px; }

/* ===== 服务内容 ===== */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 36px; }
.svc-card {
  display: block; text-decoration: none; color: inherit; cursor: pointer;
  background: #fff; border-radius: 14px; padding: 26px 22px;
  box-shadow: 0 2px 12px rgba(58, 50, 43, .05);
  border-top: 3px solid #C9A96E;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.svc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(58, 50, 43, .1); }
.svc-card .icon { font-size: 34px; }
.svc-card h3 { font-size: 17px; margin: 12px 0 8px; }
.svc-card p { font-size: 13px; color: #6E655C; line-height: 1.8; }
.svc-more { margin-top: 12px; font-size: 12px; color: #A8843F; }

/* ===== 套餐 ===== */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 20px; margin-top: 36px; }
.pkg-card {
  background: #fff; border-radius: 16px; padding: 28px 24px;
  box-shadow: 0 2px 14px rgba(58, 50, 43, .06);
  display: flex; flex-direction: column;
  border: 1px solid #F0E9DE;
  transition: transform .15s, box-shadow .15s;
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(58, 50, 43, .1); }
.pkg-card.featured { border-color: #C9A96E; position: relative; }
.pkg-card .flag {
  position: absolute; top: -12px; right: 18px;
  background: #C9A96E; color: #fff;
  font-size: 11px; padding: 3px 12px; border-radius: 20px;
}
.pkg-name { font-size: 18px; font-weight: 700; }
.pkg-tagline { color: #A8843F; font-size: 12px; margin-top: 6px; }
.pkg-price { margin: 16px 0 4px; color: #8C6A4F; }
.pkg-price .num { font-size: 32px; font-weight: 800; }
.pkg-price .unit { font-size: 13px; }
.pkg-target { font-size: 12px; color: #9A9188; min-height: 36px; }
.pkg-feats { margin: 14px 0 18px; flex: 1; }
.pkg-cta { display: flex; gap: 10px; }
.pkg-cta .btn { flex: 1; text-align: center; padding-left: 6px; padding-right: 6px; white-space: nowrap; }
.pkg-feats li { list-style: none; font-size: 13px; color: #5C554E; padding: 5px 0 5px 20px; position: relative; }
.pkg-feats li::before { content: '✓'; position: absolute; left: 0; color: #6E9E78; }

/* ===== 增值服务 ===== */
.vs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 36px; }
.vs-card {
  background: #fff; border-radius: 14px; padding: 24px;
  box-shadow: 0 2px 12px rgba(58, 50, 43, .05);
  display: flex; flex-direction: column;
}
.vs-card h3 { font-size: 16px; }
.vs-price { color: #B65A4E; font-weight: 700; margin: 8px 0; }
.vs-brief { font-size: 13px; color: #6E655C; flex: 1; }
.vs-actions { margin-top: 16px; display: flex; gap: 10px; }
.vs-actions .btn { flex: 1; text-align: center; padding-left: 6px; padding-right: 6px; white-space: nowrap; }

/* ===== 案例 ===== */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 36px; }
.case-card {
  background: #fff; border-radius: 14px; padding: 24px;
  box-shadow: 0 2px 12px rgba(58, 50, 43, .05);
  cursor: pointer; transition: transform .15s;
}
.case-card:hover { transform: translateY(-3px); }
.case-card .icon { font-size: 32px; }
.case-card h3 { font-size: 15px; margin: 10px 0 8px; line-height: 1.5; }
.case-card p { font-size: 12px; color: #8A8178; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* ===== 流程 ===== */
.flow-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 36px; }
.flow-step { text-align: center; padding: 28px 18px; background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(58, 50, 43, .05); }
.flow-step .no { font-size: 26px; font-weight: 800; color: #C9A96E; }
.flow-step h3 { font-size: 16px; margin: 10px 0 6px; }
.flow-step p { font-size: 12px; color: #8A8178; }

/* ===== 法律/红线/FAQ ===== */
.law-card, .redline-card { background: #fff; border-radius: 14px; padding: 26px 28px; margin-top: 28px; box-shadow: 0 2px 12px rgba(58, 50, 43, .05); }
.law-item { padding: 10px 0; border-bottom: 1px dashed #EDE5D9; }
.law-item:last-child { border-bottom: none; }
.law-no { font-weight: 700; font-size: 14px; color: #6E5F4F; }
.law-text { font-size: 13px; color: #8A8178; margin-top: 4px; }
.law-sub { font-weight: 700; font-size: 15px; color: #5C554E; margin-bottom: 8px; }
.law-tip-box { background: rgba(201, 169, 110, .10); border-radius: 10px; padding: 14px 16px; }
.law-tip-box p { font-size: 13px; color: #7A6C58; line-height: 1.8; margin: 4px 0; }
.law-table { width: 100%; border-collapse: collapse; font-size: 13px; color: #5C554E; }
.law-table td { border: 1px solid #EDE5D9; padding: 8px 12px; }
.law-td-k { width: 96px; font-weight: 600; color: #6E5F4F; background: #FBF7F0; }
.law-no-list p { font-size: 13px; color: #8A8178; margin: 4px 0; }
.redline-card li { list-style: none; padding: 6px 0; font-size: 14px; color: #5C554E; }
.faq-item { background: #fff; border-radius: 12px; margin-top: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(58, 50, 43, .04); }
.faq-q { padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; }
.faq-a { padding: 0 20px 16px; font-size: 13px; color: #6E655C; display: none; }
.faq-item.open .faq-a { display: block; }

/* ===== 页脚 ===== */
.footer { margin-top: 70px; background: #3A322B; color: #A89C8E; padding: 44px 24px 30px; }
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer h4 { color: #EDE5D9; font-size: 16px; margin-bottom: 10px; }
.footer p { font-size: 12px; line-height: 2; }
.footer .copy { text-align: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; }

/* ===== 表单/弹窗/下单页 ===== */
.form-item { margin-bottom: 16px; }
.form-label { font-size: 13px; color: #8A8178; margin-bottom: 6px; }
.form-input, .form-textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid #E3D9CB; border-radius: 10px;
  font-size: 14px; font-family: inherit; background: #fff;
}
.form-textarea { min-height: 90px; resize: vertical; }
.mask { position: fixed; inset: 0; background: rgba(43, 36, 30, .45); z-index: 90; }
.modal {
  position: fixed; top: 6vh; left: 50%; transform: translateX(-50%);
  width: 620px; max-width: 94vw; max-height: 86vh; overflow-y: auto;
  background: #fff; border-radius: 14px; padding: 26px 28px; z-index: 91;
  box-shadow: 0 14px 50px rgba(0, 0, 0, .18);
}
.modal h3 { font-size: 17px; margin-bottom: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; }
.login-box { width: 380px; }
.login-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; color: #A89F96; font-size: 12px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: #ECE6DE; }
.login-qr { text-align: center; }
.login-qr-img { width: 148px; height: 148px; border-radius: 10px; border: 1px solid #ECE6DE; }
.login-qr-tip { font-size: 12px; line-height: 1.7; margin-top: 8px; }
.nav-link.nav-on { color: #B65A4E; font-weight: 600; } /* -105 当前页导航高亮 */

/* -104 小程序下单弹窗 */
.mpgo-box { max-width: 460px; }
.mpgo-body { display: flex; gap: 20px; align-items: center; }
.mpgo-info { flex: 1; min-width: 0; }
.mpgo-name { font-size: 16px; font-weight: 600; color: #2E2A26; line-height: 1.5; }
.mpgo-price { font-size: 22px; font-weight: 700; color: #C9803E; margin-top: 6px; }
.mpgo-foot { font-size: 12px; line-height: 1.7; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #ECE6DE; }
@media (max-width: 520px) { .mpgo-body { flex-direction: column; text-align: center; } }
#site-toast {
  position: fixed; top: 26px; left: 50%;
  transform: translateX(-50%) translateY(-16px);
  padding: 11px 24px; border-radius: 10px; color: #fff; font-size: 13px;
  opacity: 0; pointer-events: none; transition: all .2s; z-index: 300;
}
#site-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#site-toast.ok { background: #6E9E78; }
#site-toast.err { background: #B65A4E; }

.page-wrap { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; }
.panel { background: #fff; border-radius: 14px; padding: 26px 28px; box-shadow: 0 2px 12px rgba(58, 50, 43, .05); margin-bottom: 18px; }
.panel h2 { font-size: 18px; margin-bottom: 14px; }
.tier-item {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid #E3D9CB; border-radius: 10px;
  padding: 13px 16px; margin-bottom: 10px; cursor: pointer; font-size: 14px;
}
.tier-item.active { border-color: #8C6A4F; background: #F9F3EA; }
.legal-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed #EDE5D9; font-size: 14px;
}
.legal-item:last-child { border-bottom: none; }
.legal-doc-body {
  white-space: pre-wrap; font-size: 13px; line-height: 1.9;
  background: #FAF6F0; border-radius: 10px; padding: 18px;
  max-height: 46vh; overflow-y: auto;
}
.agree-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 13px; color: #5C554E; }
.agree-row input { margin-top: 3px; }
.order-row {
  background: #fff; border-radius: 12px; padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(58, 50, 43, .05); margin-bottom: 14px;
}
.order-row .head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.order-no { font-size: 12px; color: #9A9188; }
.order-name { font-size: 16px; font-weight: 700; margin-top: 6px; }
.order-meta { font-size: 13px; color: #8A8178; margin-top: 8px; }
.order-actions { margin-top: 12px; display: flex; gap: 10px; }
.empty { text-align: center; color: #9A9188; padding: 60px 0; }
.api-warn {
  max-width: 1120px; margin: 18px auto 0; padding: 12px 20px;
  background: #FDF0E7; color: #C9803E; border-radius: 10px;
  font-size: 13px; display: none;
}
@media (max-width: 720px) {
  .hero h1 { font-size: 28px; }
  .nav-links { display: none; }
}

/* ===== 下单页 / 订单页补充 ===== */
.logo { font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.logo span { color: #8C6A4F; font-size: 12px; font-weight: 400; margin-left: 8px; }
.panel h3 { font-size: 16px; margin-bottom: 14px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row .form-input { flex: 1; min-width: 200px; }
.tier-item.on { border-color: #8C6A4F; background: #F9F3EA; }
.tier-item input[type="radio"] { display: none; }
.tier-item .tier-label { font-weight: 600; flex: 0 0 auto; }
.tier-item .tier-price { color: #B65A4E; font-weight: 700; margin: 0 12px; flex: 0 0 auto; }
.tier-item .muted { flex: 1; text-align: right; font-size: 12px; }
.legal-item { gap: 12px; }
.legal-item .legal-name { flex: 1; }
.legal-item .legal-name i { font-style: normal; font-size: 12px; }
.legal-state { font-size: 12px; color: #C9803E; flex: 0 0 auto; }
.legal-state.read { color: #6E9E78; }
.agree-line { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: 13px; color: #5C554E; cursor: pointer; }
.agree-line input { margin-top: 3px; }
.agree-line i { font-style: normal; font-size: 12px; }
.submit-bar { display: flex; justify-content: space-between; align-items: center; }
.tag-blue { background: rgba(110, 138, 158, .15); color: #6E8A9E; }
.order-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.order-main { flex: 1; min-width: 240px; }
.order-title { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.order-price { font-size: 18px; font-weight: 700; color: #8C6A4F; }

/* 注册页 / 导航补充 */
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ===== 服务流程详情页 ===== */
.flow-step { display: block; color: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.flow-step:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(58, 50, 43, .1); }
.flow-more { margin-top: 10px; font-size: 12px; color: #A8843F; }
.flow-tabs {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 18px 20px 0; max-width: 860px; margin: 0 auto;
}
.flow-tab {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #EDE5D9; border-radius: 30px;
  padding: 8px 18px; font-size: 14px; color: #5C554E;
  transition: all .15s;
}
.flow-tab .ft-no { color: #C9A96E; font-weight: 700; }
.flow-tab.on { background: #8C6A4F; color: #fff; border-color: #8C6A4F; }
.flow-tab.on .ft-no { color: #F0DDBB; }
.flow-hero { display: flex; align-items: center; gap: 18px; }
.flow-hero-no {
  font-size: 34px; font-weight: 800; color: #C9A96E;
  width: 72px; height: 72px; border-radius: 50%;
  background: #F9F3EA; display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.flow-detail-item { display: flex; gap: 12px; padding: 8px 0; font-size: 14px; color: #5C554E; }
.flow-detail-item .fd-no {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: #F9F3EA; color: #A8843F; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.flow-deliver { padding: 6px 0; font-size: 14px; color: #5C554E; }
.flow-tip { background: #FDF6EA; font-size: 13px; color: #8A6B3F; }
.flow-nav-btns { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

/* ===== 案例推荐引导 ===== */
.pkg-card.rec-top, .vs-card.rec-top { border: 2px solid #C9A96E; }
.rec-flag { background: #B98F4E !important; }

/* 未上架：置灰展示「即将上线」，禁用下单按钮 */
.pkg-off, .vs-off { opacity: .55; filter: grayscale(.9); }
.off-flag { background: #B8AFA2 !important; }
.btn-off {
  background: #D8D2C8 !important; color: #8A8073 !important;
  cursor: not-allowed; opacity: 1; filter: none;
}
.case-rec-box {
  margin-top: 18px; padding: 18px 20px;
  background: linear-gradient(135deg, #FDF8EE 0%, #F7ECD6 100%);
  border: 1px solid #E8D9BE; border-radius: 12px;
}
.case-rec-tag { font-size: 13px; color: #A8843F; font-weight: 600; margin-bottom: 6px; }
.case-rec-name { font-size: 17px; font-weight: 700; }

.pkg-card { position: relative; }

/* ===== 需求智能匹配 ===== */
.need-panel {
  background: linear-gradient(135deg, #FDF8EE 0%, #F9F1E0 100%);
  border: 1px solid #E8D9BE; border-radius: 16px;
  padding: 30px 32px;
}
.need-title { font-size: 20px; font-weight: 700; color: #6E5F4F; margin-bottom: 16px; }
.need-row { display: flex; gap: 12px; }
.need-chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.need-chip {
  display: inline-block; background: #fff; border: 1px solid #EDE5D9;
  border-radius: 20px; padding: 6px 16px;
  font-size: 12px; color: #8A8178; cursor: pointer;
  white-space: nowrap; transition: border-color .15s, color .15s, box-shadow .15s;
}
.need-chip:hover { border-color: #C9A96E; color: #A8843F; box-shadow: 0 2px 8px rgba(201, 169, 110, .18); }

/* 支付成功落地页 */
.paid-card { background: #fff; border-radius: 16px; padding: 26px 28px; box-shadow: 0 2px 14px rgba(58, 50, 43, .06); border: 1px solid #F0E9DE; margin-bottom: 16px; }
.paid-sec-title { font-size: 15px; font-weight: 700; color: #6E5F4F; margin-bottom: 14px; }
.paid-step { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.paid-step > b { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #F5EDDF; color: #A8843F; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.paid-step > div { flex: 1; font-size: 14px; line-height: 1.6; }
.paid-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.paid-actions .btn { text-decoration: none; }
@media (max-width: 640px) { .paid-actions .btn { flex: 1; text-align: center; } }
#need-result { margin-top: 18px; background: #fff; border-radius: 12px; padding: 20px 22px; }
.need-result-reason { font-size: 13px; color: #A8843F; margin-bottom: 10px; }
.need-result-main { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.need-result-name { font-size: 18px; font-weight: 700; }
.need-alts { margin-top: 12px; font-size: 13px; color: #9A9188; }
.need-alts a { color: #8C6A4F; text-decoration: underline; margin-right: 14px; }
.pkg-card.flash { animation: pkgFlash 1.2s ease 2; border-color: #B98F4E; }
@keyframes pkgFlash {
  0%, 100% { box-shadow: 0 2px 14px rgba(58, 50, 43, .06); }
  50% { box-shadow: 0 0 0 6px rgba(201, 169, 110, .35); transform: translateY(-4px); }
}

/* ===== 建档台账（archive.html） ===== */
.paid-banner {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(110, 158, 120, .1); border: 1px solid rgba(110, 158, 120, .35);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; font-size: 14px;
}
.arc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.arc-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.arc-tab {
  padding: 6px 16px; border-radius: 999px; font-size: 13px; cursor: pointer;
  background: #fff; color: #6E655C; border: 1px solid #E4DCCC;
}
.arc-tab.on { background: #8C6A4F; color: #fff; border-color: #8C6A4F; }
.arc-row {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(58, 50, 43, .05);
}
.arc-icon { font-size: 26px; line-height: 1.4; }
.arc-main { flex: 1; min-width: 0; }
.arc-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.arc-side { display: flex; gap: 8px; flex-shrink: 0; }
.arc-cat-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.arc-pick {
  padding: 7px 14px; border-radius: 10px; font-size: 13px; cursor: pointer;
  background: #F7F3EC; color: #6E655C; border: 1px solid #E4DCCC;
}
.arc-pick.on { background: #8C6A4F; color: #fff; border-color: #8C6A4F; }
@media (max-width: 640px) {
  .arc-row { flex-direction: column; }
  .arc-side { width: 100%; }
}

/* 下单页协议确认：可点击条款链接 + 半屏文书弹层 */
.agree-doc-link { color: #1F6F54; cursor: pointer; text-decoration: none; font-weight: 500; }
.agree-doc-link:hover { text-decoration: underline; }
.agree-more { margin-top: 8px; padding-left: 26px; font-size: 12px; line-height: 2; }
.agree-more .agree-doc-link { font-weight: 400; }
#doc-modal .doc-sheet {
  top: auto; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 760px; max-width: 100vw; max-height: 74vh;
  border-radius: 16px 16px 0 0; overflow: hidden;
  display: flex; flex-direction: column;
  animation: sheetUp .22s ease;
}
@keyframes sheetUp { from { transform: translateX(-50%) translateY(30px); opacity: .4; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
#doc-modal .legal-doc-body { flex: 1; overflow-y: auto; font-size: 13px; line-height: 1.9; color: #5C554E; white-space: pre-wrap; }
#doc-modal .doc-sheet .modal-actions { margin-top: 14px; }

/* 套餐对比页 compare.html */
.compare-hero { text-align: center; padding: 10px 0 26px; }
.compare-hero h1 { font-size: 26px; }
.compare-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.diff-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #2B2622; cursor: pointer; }
.cmp-wrap { -webkit-overflow-scrolling: touch; }
.cmp-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 880px; font-size: 13px; }
.cmp-table th, .cmp-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #EFEAE2; }
.cmp-table thead th {
  position: sticky; top: 0; z-index: 3; background: #fff;
  border-bottom: 2px solid #1F6F54; padding: 16px;
}
.cmp-name { font-size: 14px; font-weight: 700; color: #2B2622; line-height: 1.5; }
.cmp-price { font-size: 18px; font-weight: 700; color: #C9803E; margin-top: 4px; }
.cmp-badge { font-style: normal; font-size: 11px; font-weight: 600; color: #1F6F54; background: #E7F2EC; border-radius: 20px; padding: 2px 8px; white-space: nowrap; }
.cmp-badge-rec { color: #B03A2E; background: #FBEAE7; }
.cmp-first {
  position: sticky; left: 0; z-index: 2; background: #fff;
  font-weight: 600; color: #2B2622; min-width: 110px;
  box-shadow: 1px 0 0 #EFEAE2;
}
.cmp-table thead .cmp-first { z-index: 4; }
.cmp-group td {
  background: #F7F4EF; font-weight: 700; color: #1F6F54; font-size: 13px;
  position: sticky; left: 0; padding: 10px 16px;
}
tr.cmp-diff td { background: #FBF6EC; }
tr.cmp-diff td.cmp-first { background: #FBF6EC; }
tr.cmp-diff .cmp-pro, td.cmp-pro { background: rgba(31, 111, 84, .05); }
tr.cmp-diff td.cmp-pro { background: #EAF3EE; }
.cmp-table tfoot td { padding: 16px; border-bottom: none; background: #fff; }
.cmp-table tfoot td.cmp-first { position: sticky; left: 0; }
.cmp-cta { white-space: nowrap; }
@media (max-width: 640px) {
  .compare-hero h1 { font-size: 21px; }
  .cmp-table th, .cmp-table td { padding: 10px 12px; }
  .cmp-first { min-width: 88px; }
}

/* ===== 处置意愿登记页 wishes.html ===== */
.wish-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 6px;
}
.wish-stat {
  background: #fff; border: 1px solid #EFEAE2; border-radius: 14px; padding: 16px;
  text-align: center;
}
.wish-num { font-size: 26px; font-weight: 700; color: #2B2622; margin: 8px 0 4px; }
@media (max-width: 640px) {
  .wish-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 套餐升级页 upgrade.html ===== */
.upg-opt {
  display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap;
  background: #fff; border: 1.5px solid #EFEAE2; border-radius: 14px;
  padding: 16px 18px; margin-bottom: 12px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.upg-opt:hover { border-color: #D8C9B6; }
.upg-opt.on { border-color: #1F6F54; box-shadow: 0 2px 10px rgba(31, 111, 84, .10); }

/* ===== 在线咨询页 chat.html ===== */
.chat-panel {
  background: #fff; border: 1px solid #EFEAE2; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; height: min(72vh, 680px);
}
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid #F4EFE7; background: #FDFBF7;
}
.chat-head > span { font-size: 26px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: #FAF7F2; }
.chat-row { display: flex; gap: 8px; margin-bottom: 14px; align-items: flex-start; }
.chat-row.mine { flex-direction: row-reverse; }
.chat-ava { font-size: 20px; flex: 0 0 auto; margin-top: 2px; }
.chat-bubble {
  max-width: 420px; padding: 10px 14px; border-radius: 12px;
  background: #fff; border: 1px solid #EFEAE2; font-size: 14px; line-height: 1.7;
  word-break: break-word; white-space: pre-wrap;
}
.chat-row.mine .chat-bubble { background: #1F6F54; border-color: #1F6F54; color: #fff; }
.chat-bubble.bot { background: #F3EEE6; }
.chat-bot-tag { font-size: 11px; color: #B9B2A8; margin: 0 0 2px 4px; }
.chat-time { font-size: 11px; color: #C6BFB4; margin-top: 3px; }
.chat-row.mine .chat-time { text-align: right; }
.chat-img { max-width: 220px; max-height: 220px; border-radius: 8px; display: block; }
.chat-file { color: inherit; text-decoration: none; }
.chat-row.mine .chat-file { color: #fff; }

/* 会话内服务卡片（客户点击气泡内按钮直接下单，无需退出对话） */
.chat-svc-card { min-width: 200px; white-space: normal; }
.csc-head { font-size: 14px; }
.csc-price { color: #B65A4E; font-weight: 600; font-size: 14px; margin-top: 4px; }
.csc-brief { color: #6B5F52; font-size: 12px; margin-top: 4px; line-height: 1.5; }
.csc-btn { display: block; text-align: center; text-decoration: none; margin-top: 10px; }

/* 服务工单页 */
.tk-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tk-step {
  font-size: 12px; padding: 4px 12px; border-radius: 999px;
  background: #F0EDE8; color: #9A9188; white-space: nowrap;
}
.tk-step.on { background: rgba(31, 111, 84, .12); color: #1F6F54; font-weight: 600; }
.tk-label { font-size: 13px; font-weight: 600; color: #4A3F35; margin: 14px 0 8px; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-chip {
  border: 1px solid #E3D9CB; background: #fff; border-radius: 999px;
  padding: 6px 16px; font-size: 13px; cursor: pointer; color: #4A3F35;
}
.tk-chip.on { border-color: #1F6F54; background: rgba(31, 111, 84, .08); color: #1F6F54; font-weight: 600; }
.tk-kv { display: flex; gap: 12px; padding: 6px 0; font-size: 14px; }
.tk-kv span { color: #9A9188; flex-shrink: 0; width: 96px; }
.tk-kv b { font-weight: 500; color: #2B241E; word-break: break-all; }
.chat-input {
  display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #F4EFE7; background: #fff;
}
.chat-input .form-input { flex: 1; }
@media (max-width: 640px) {
  .chat-panel { height: calc(100vh - 210px); }
  .chat-bubble { max-width: 72vw; }
}

/* ===== 全局悬浮在线咨询按钮 ===== */
#chat-fab {
  position: fixed; right: 22px; bottom: 26px; z-index: 90;
  display: flex; align-items: center; gap: 6px;
  background: #1F6F54; color: #fff; text-decoration: none;
  padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(31, 111, 84, .35);
  transition: transform .15s, box-shadow .15s;
}
#chat-fab:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(31, 111, 84, .45); }
#chat-fab span { line-height: 1; }
/* -170 官网全局悬浮「扫码进小程序」按钮：与 chat-fab 并排（左侧），金色配色 */
#mp-fab {
  position: fixed; right: 168px; bottom: 26px; z-index: 90;
  display: flex; align-items: center; gap: 6px;
  background: #8C6A4F; color: #fff; text-decoration: none;
  padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(140, 106, 79, .35);
  transition: transform .15s, box-shadow .15s;
}
#mp-fab:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(140, 106, 79, .48); }
#mp-fab .mp-fab-icon { font-size: 16px; line-height: 1; }
#mp-fab .mp-fab-label { line-height: 1; }
@media (max-width: 640px) {
  #chat-fab { right: 14px; bottom: 18px; padding: 11px 15px; font-size: 13px; }
  #mp-fab { right: 128px; bottom: 18px; padding: 11px 14px; font-size: 12px; }
  #mp-fab .mp-fab-icon { font-size: 14px; }
}
