* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  background: #fff8ea;
  line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: #c9891f; text-decoration: none; }

/* 顶部公告栏 */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 32px;
  background: linear-gradient(90deg, #d4a857 0%, #c9891f 100%);
  color: #fff;
  font-size: 14px;
  overflow: hidden;
}
.notice-icon { font-size: 16px; }
.notice-track { flex: 1; overflow: hidden; white-space: nowrap; }
.notice-text { display: inline-block; animation: scroll 25s linear infinite; padding-left: 100%; }
@keyframes scroll { to { transform: translateX(-100%); } }

/* 主视觉 */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #fff8ea 0%, #ffe9bf 40%, #fff8ea 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(201,137,31,0.15), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(212,168,87,0.2), transparent 55%);
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  right: 5%;
  top: 20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(201,137,31,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.title {
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  color: #5a3a0a;
  letter-spacing: 4px;
  text-shadow: 0 2px 8px rgba(201,137,31,0.2);
  position: relative;
  z-index: 1;
}
.subtitle {
  text-align: center;
  font-size: 26px;
  color: #8a5d15;
  margin-top: 8px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

/* 表单卡片 */
.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 253, 245, 0.95);
  border: 1px solid rgba(201,137,31,0.2);
  border-radius: 16px;
  padding: 40px 48px 32px;
  box-shadow: 0 10px 40px rgba(201,137,31,0.15);
  position: relative;
  z-index: 1;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 15px;
  color: #5a3a0a;
  margin-bottom: 8px;
  font-weight: 600;
}
.required { color: #e74c3c; }
.form-group input[type="text"], .form-group input[type="tel"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e5c98a;
  border-radius: 8px;
  font-size: 15px;
  background: #fffdf6;
  outline: none;
  transition: all .2s;
}
.form-group input:focus {
  border-color: #c9891f;
  box-shadow: 0 0 0 3px rgba(201,137,31,0.1);
}
.input-with-btn { position: relative; display: flex; gap: 8px; }
.input-with-btn input { flex: 1; }
.btn-query {
  width: 88px;
  height: 48px;
  border: none;
  background: linear-gradient(135deg, #d4a857 0%, #c9891f 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s;
}
.btn-query:hover { opacity: 0.9; transform: translateY(-1px); }

.search-result {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e5c98a;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 10;
  display: none;
}
.search-result.show { display: block; }
.search-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f5ecd6;
  font-size: 14px;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: #fff8ea; }

.btn-submit {
  width: 100%;
  height: 52px;
  border: none;
  background: linear-gradient(135deg, #d4a857 0%, #c9891f 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  letter-spacing: 2px;
  box-shadow: 0 6px 16px rgba(201,137,31,0.3);
  transition: all .2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,137,31,0.4); }
.btn-submit:active { transform: translateY(0); }

.agreement {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #888;
}
.agreement input { margin-right: 6px; vertical-align: middle; }
.fee-tip {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #b26a00;
  background: #fff7e6;
  border: 1px solid #ffd591;
  border-radius: 6px;
  text-align: left;
}
.fee-tip b { color: #d4380d; }

/* 通用区块标题 */
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #5a3a0a;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.cloud-left, .cloud-right { font-size: 24px; opacity: 0.7; }

/* 不申报后果 */
.consequence { padding: 80px 0; background: #fff8ea; }
.consequence-card {
  background: linear-gradient(180deg, #fffdf6, #fff5dd);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid rgba(201,137,31,0.15);
}
.consequence-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.cons-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(201,137,31,0.08);
}
.cons-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.cons-icon-1 { background: #e3eaf5; }
.cons-icon-2 { background: #fde9d3; }
.cons-icon-3 { background: #fcdede; }
.cons-title { font-size: 17px; font-weight: 700; color: #c9891f; margin-bottom: 4px; }
.cons-desc { font-size: 13px; color: #888; }
.consequence-text { font-size: 14px; color: #666; line-height: 1.9; text-align: justify; }
.hl { color: #e74c3c; font-weight: 600; }

/* 办理流程 */
.process { padding: 80px 0; background: linear-gradient(180deg, #fff8ea 0%, #fff 100%); }
.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.step {
  background: #fff;
  border: 2px solid #f0d99b;
  border-radius: 16px;
  padding: 32px 40px;
  text-align: center;
  min-width: 200px;
  box-shadow: 0 6px 20px rgba(201,137,31,0.1);
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a857, #c9891f);
  color: #fff;
  font-size: 22px; font-weight: 700;
  line-height: 48px;
  margin: 0 auto 16px;
}
.step-title { font-size: 18px; font-weight: 700; color: #5a3a0a; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: #888; line-height: 1.7; }
.step-arrow { font-size: 28px; color: #c9891f; }

/* 套餐 */
.packages { padding: 80px 0; background: #fff; }
.package-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pkg {
  background: linear-gradient(180deg, #fffdf6, #fff);
  border: 2px solid #f0d99b;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all .3s;
  position: relative;
}
.pkg:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(201,137,31,0.2); border-color: #c9891f; }
.pkg-name { font-size: 20px; font-weight: 700; color: #5a3a0a; margin-bottom: 12px; }
.pkg-price { font-size: 18px; color: #e74c3c; font-weight: 700; margin-bottom: 6px; }
.pkg-price b { font-size: 36px; }
.pkg-origin { font-size: 13px; color: #aaa; text-decoration: line-through; margin-bottom: 12px; }
.pkg-desc { font-size: 14px; color: #666; line-height: 1.8; }

/* 二维码区 */
.qrcode-section { padding: 60px 0; background: #fff8ea; }
.qr-card {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 48px;
  background: linear-gradient(135deg, #c9891f, #d4a857);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(201,137,31,0.3);
}
.qr-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.qr-desc { font-size: 14px; opacity: 0.9; }
.qr-placeholder {
  width: 120px; height: 120px;
  background: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #c9891f;
  font-size: 14px;
  text-align: center;
}

/* 页脚 */
.footer { background: #4a300a; color: #d4a857; text-align: center; padding: 32px 0; font-size: 13px; line-height: 2; }

/* 弹窗 */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal.show { display: flex; }
.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
  min-width: 360px;
  max-width: 440px;
  animation: popIn .25s ease;
}
@keyframes popIn { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  font-size: 36px;
  line-height: 64px;
  margin: 0 auto 16px;
}
.modal-icon.error { background: #e74c3c; }
.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: #333; }
.modal-text { font-size: 14px; color: #666; margin-bottom: 24px; }

/* ===== 支付确认摘要 ===== */
.pay-summary {
  text-align: left;
  background: #f7f9fc;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #333;
}
.ps-row { display: flex; padding: 4px 0; line-height: 1.6; }
.ps-l { width: 80px; color: #888; flex-shrink: 0; }
.ps-r { flex: 1; color: #333; word-break: break-all; }
.ps-remark {
  margin-top: 10px; padding: 8px 10px;
  background: #fff7e6; border: 1px solid #ffd591; border-radius: 6px;
  color: #b26a00; font-size: 12px; line-height: 1.6;
}
.ps-amount {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed #e0e0e0;
  text-align: right; font-size: 14px; color: #555;
}
.ps-amount b { color: #e74c3c; font-size: 20px; margin-left: 6px; }
.pay-qr { width: 220px; margin: 0 auto 8px; display: block; }
.pay-tip { color: #999; font-size: 13px; text-align: center; }
.pay-link-btn {
  display: block; max-width: 260px; margin: 8px auto;
  padding: 12px 0; text-align: center;
  background: linear-gradient(135deg, #d4a857, #c9891f);
  color: #fff; border-radius: 8px; text-decoration: none;
  font-size: 15px; font-weight: 600;
}

/* ===== 预支付弹窗 ===== */
.prepay-content {
  position: relative;
  max-width: 460px;
  text-align: left;
  padding: 28px 28px;
}
.prepay-title {
  font-size: 18px; font-weight: 700; text-align: center;
  margin-bottom: 18px; color: #333;
}
.prepay-close {
  position: absolute; top: 12px; right: 16px;
  width: 28px; height: 28px; line-height: 24px; text-align: center;
  font-size: 22px; color: #999; cursor: pointer;
}
.prepay-close:hover { color: #333; }

.pkg-select-title { font-size: 14px; color: #666; margin: 8px 0; }
.pkg-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pkg-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e5e5; border-radius: 8px;
  cursor: pointer; transition: all .15s;
}
.pkg-opt:hover { border-color: #c9891f; }
.pkg-opt.active { border-color: #c9891f; background: #fff9ed; }
.pkg-opt-radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #ccc; flex-shrink: 0;
  position: relative;
}
.pkg-opt.active .pkg-opt-radio { border-color: #c9891f; }
.pkg-opt.active .pkg-opt-radio::after {
  content: ''; position: absolute;
  inset: 2px; border-radius: 50%; background: #c9891f;
}
.pkg-opt-info { flex: 1; min-width: 0; }
.pkg-opt-name { font-weight: 600; font-size: 14px; color: #333; }
.pkg-opt-desc { font-size: 12px; color: #888; margin-top: 2px; }
.pkg-opt-price { font-size: 18px; color: #e74c3c; font-weight: 700; }

.btn-pay {
  display: block; width: 100%;
  padding: 12px 0; margin-top: 8px;
  border: none; border-radius: 8px;
  background: linear-gradient(135deg, #d4a857, #c9891f);
  color: #fff; font-size: 16px; font-weight: 600;
  cursor: pointer;
}
.btn-pay:hover { filter: brightness(1.05); }
.btn-pay:disabled { opacity: .6; cursor: not-allowed; }
.modal-btn {
  min-width: 120px; height: 40px;
  border: none;
  background: linear-gradient(135deg, #d4a857, #c9891f);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}

/* 响应式 */
@media (max-width: 768px) {
  .title { font-size: 32px; }
  .subtitle { font-size: 18px; }
  .form-card { padding: 24px 20px; }
  .consequence-items { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .package-list { grid-template-columns: 1fr; }
  .qr-card { flex-direction: column; gap: 24px; text-align: center; }
}

/* 业务类型 tabs */
.biz-tabs {
  display: flex; gap: 12px; margin: 20px auto; max-width: 720px; flex-wrap: wrap; justify-content: center;
}
.biz-tab {
  flex: 1 1 120px; min-width: 120px; padding: 12px 16px; background: rgba(255,255,255,0.92);
  border: 2px solid transparent; border-radius: 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 600; color: #444; transition: all .2s;
}
.biz-tab:hover { transform: translateY(-2px); }
.biz-tab.active { border-color: #2979ff; color: #2979ff; box-shadow: 0 4px 12px rgba(41,121,255,0.2); }
.biz-tab-icon { font-size: 22px; }

/* 营业执照上传 OCR */
.ocr-box {
  margin-bottom: 20px; padding: 16px; border: 2px dashed #c9891f; border-radius: 10px;
  background: #fffaf0; text-align: center; cursor: pointer; transition: all .2s;
}
.ocr-box:hover { background: #fff3dc; border-color: #a8721a; }
.ocr-box.loading { opacity: .6; pointer-events: none; }
.ocr-box-icon { font-size: 28px; margin-bottom: 6px; }
.ocr-box-title { font-size: 15px; font-weight: 600; color: #5a3a0a; }
.ocr-box-tip { font-size: 12px; color: #8a5d15; margin-top: 4px; }
.ocr-box input[type="file"] { display: none; }

/* ===== 协议 / 隐私政策 内嵌弹窗 ===== */
.doc-modal .doc-modal-content {
  max-width: 780px; max-height: 80vh; text-align: left;
  padding: 28px 32px; display: flex; flex-direction: column;
}
.doc-title {
  font-size: 20px; font-weight: 700; text-align: center;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eee;
}
.doc-body {
  flex: 1; overflow-y: auto; font-size: 14px; line-height: 1.8;
  color: #333; padding-right: 8px; max-height: 58vh;
}
.doc-body h2 { font-size: 16px; color: #2979ff; margin: 16px 0 8px; }
.doc-body p { margin: 6px 0; }
.doc-body .sec { background: #f7f9fc; padding: 12px 16px; border-radius: 6px; margin-bottom: 12px; }
.doc-modal .modal-btn { margin: 16px auto 0; }

/* ===== 添加客服二维码弹窗 ===== */
.cs-modal-content { max-width: 380px; }
.cs-qr {
  margin: 16px auto 8px;
  width: 220px; height: 220px;
  border: 1px solid #eee; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #fafafa;
}
.cs-qr img { max-width: 100%; max-height: 100%; }
.cs-qr-fallback {
  width: 100%; height: 100%;
  color: #999; font-size: 13px; text-align: center; line-height: 1.6;
  align-items: center; justify-content: center;
}
