/* ===== kd · 配色主题：温暖米黄 + 电信蓝 + 暖橙 ===== */
/* 主色：电信蓝 #1a5fbf  深蓝 #0d3b80 */
/* 辅色：暖橙 #ff7a3d / 金黄 #ffc857 */
/* 背景：米白 → 淡蓝灰渐变 + 细斜纹 */

/* ===== 重置 ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #1a2238;
  line-height: 1.6; font-size: 15px;
  /* 米白→淡蓝灰斜向渐变 + 极细斜纹 */
  background-color: #fff8f3;
  background-image:
    linear-gradient(135deg, rgba(255,248,243,1) 0%, rgba(240,244,248,1) 100%),
    repeating-linear-gradient(135deg, rgba(26,95,191,0.025) 0 1px, transparent 1px 14px);
  background-blend-mode: normal;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Hero · 暖橙→电信蓝双光斑 ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 20px 64px; text-align: center;
  background: linear-gradient(135deg, #fff8f3 0%, #f0f4f8 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px);
  pointer-events: none; opacity: 0.45;
}
.hero::before {
  width: 320px; height: 320px; top: -100px; left: -80px;
  background: radial-gradient(circle, #ff7a3d 0%, transparent 70%);
}
.hero::after {
  width: 360px; height: 360px; bottom: -120px; right: -100px;
  background: radial-gradient(circle, #1a5fbf 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.hero h1 { font-size: 32px; font-weight: 800; letter-spacing: 1px; line-height: 1.3; color: #1a2238; }
.hero h1 .hl {
  display: inline-block; margin: 0 6px; padding: 0 12px;
  background: linear-gradient(135deg, #ffc857, #ffb13d); color: #5b2c00; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(255,180,80,0.3);
}
.hero .sub { margin-top: 16px; font-size: 16px; color: #2a3142; opacity: .92; }
.hero .area { margin-top: 10px; font-size: 13px; color: #5b6478; opacity: .9; }
.hero .cta {
  display: inline-block; margin-top: 24px; padding: 14px 32px;
  background: linear-gradient(135deg, #1a5fbf 0%, #0d3b80 100%);
  color: #fff; font-weight: 800; font-size: 15px;
  border-radius: 999px; box-shadow: 0 8px 24px rgba(26,95,191,0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hero .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26,95,191,0.45);
}

/* ===== Section 通用 ===== */
.sec-title {
  text-align: center; font-size: 22px; font-weight: 800;
  margin: 40px 0 24px; color: #1a2238;
  position: relative;
}
.sec-title::after {
  content: ""; display: block; width: 36px; height: 3px;
  background: linear-gradient(90deg, #1a5fbf, #ff7a3d);
  margin: 10px auto 0; border-radius: 2px;
}

/* ===== 三卖点 ===== */
.selling {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.card.sell {
  background: #fff; border-radius: 12px; padding: 22px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05); text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card.sell:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,95,191,0.12);
}
.card.sell .ico {
  width: 44px; height: 44px; line-height: 44px; margin: 0 auto 12px;
  background: linear-gradient(135deg, #eaf1ff, #fff4ec); color: #1a5fbf;
  border-radius: 50%; font-size: 18px; font-weight: 800;
}
.card.sell h3 { font-size: 17px; margin-bottom: 6px; color: #1a2238; }
.card.sell p { font-size: 13.5px; color: #5b6478; }

/* ===== 套餐区 ===== */
.plans { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.op-block {
  background: #fff; border-radius: 14px; margin-bottom: 22px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}
.op-head {
  padding: 16px 20px; color: #fff; font-size: 17px; font-weight: 800;
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.op-head::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 10px);
  pointer-events: none;
}
.op-head .head-logo {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; padding: 2px; flex-shrink: 0;
  position: relative; z-index: 1;
}
.op-head > * { position: relative; z-index: 1; }
.op-head.dx { background: linear-gradient(90deg, #005bac 0%, #1a5fbf 100%); }
.op-head.yd { background: linear-gradient(90deg, #0086d6 0%, #00a878 100%); }
.op-head.lt { background: linear-gradient(90deg, #c40020 0%, #e60012 100%); }
.op-meta { padding: 10px 20px; font-size: 13px; color: #5b6478; background: #fafbfc; border-bottom: 1px solid #f0f2f5; }
.op-meta.coming { color: #b45309; background: #fff7ed; }

/* ===== 套餐表格 ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plan-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.plan-table thead th {
  background: #f7f8fa; color: #5b6478; font-weight: 700; font-size: 13px;
  text-align: center; padding: 12px 10px;
  border-bottom: 2px solid #e5e7eb;
}
.plan-table tbody td {
  padding: 16px 10px; text-align: center;
  border-bottom: 1px solid #f0f2f5; color: #1a2238;
  vertical-align: middle;
}
.plan-table tbody tr:last-child td { border-bottom: none; }
.plan-table tbody tr:hover { background: #fafbfc; }
.plan-table tbody td:first-child { font-weight: 600; color: #1a2238; white-space: nowrap; }
.speed-cell {
  display: inline-block; font-size: 14px; font-weight: 600;
  color: #1a5fbf; line-height: 1;
}
.best-tag {
  display: inline-block;
  background: linear-gradient(135deg, #ff7a3d, #ff5a3c);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 999px;
  margin-left: 4px;
  white-space: nowrap;
}
.price-cell {
  display: inline-block; padding: 4px 10px;
  background: linear-gradient(135deg, #fff4d6, #ffe7a3);
  color: #c2410c; font-weight: 800; font-size: 15px;
  border-radius: 6px;
}
.price-cell .yr { font-size: 11px; color: #5b6478; font-weight: 500; margin-left: 2px; }
.best-row { background: linear-gradient(90deg, rgba(255,200,87,0.06), rgba(255,122,61,0.06)); }
.best-row:hover { background: linear-gradient(90deg, rgba(255,200,87,0.1), rgba(255,122,61,0.1)); }

/* 联通占位用回原 coming-box */
.coming-box {
  margin: 20px; padding: 22px; background: #fff7ed; border-radius: 10px;
  display: flex; align-items: center; gap: 16px;
}
.coming-ico { font-size: 38px; }
.coming-title { font-size: 16px; font-weight: 800; color: #9a3412; margin-bottom: 4px; }
.coming-sub { font-size: 13px; color: #5b6478; }

/* ===== 办理流程 ===== */
.flow { max-width: 1100px; margin: 0 auto 30px; padding: 0 20px; }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step {
  background: #fff; border-radius: 12px; padding: 20px 16px;
  text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform .15s ease;
}
.step:hover { transform: translateY(-3px); }
.step .num {
  width: 38px; height: 38px; line-height: 38px; margin: 0 auto 10px;
  background: linear-gradient(135deg, #1a5fbf, #0d3b80); color: #fff;
  border-radius: 50%; font-weight: 800; font-size: 17px;
  box-shadow: 0 4px 12px rgba(26,95,191,0.3);
}
.step h4 { font-size: 16px; margin-bottom: 6px; color: #1a2238; }
.step p { font-size: 13px; color: #5b6478; }

/* ===== Q&A ===== */
.qa { max-width: 1100px; margin: 0 auto 30px; padding: 0 20px; }
.qa details {
  background: #fff; border-radius: 10px; margin-bottom: 10px;
  padding: 14px 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.qa summary {
  cursor: pointer; font-weight: 700; color: #1a2238; font-size: 15px;
  list-style: none; position: relative; padding-right: 26px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: #1a5fbf; font-size: 20px; font-weight: 700;
}
.qa details[open] summary::after { content: "−"; }
.qa details p { margin-top: 10px; color: #4b5563; font-size: 14px; }

/* ===== 增值可选 ===== */
.plus { max-width: 1100px; margin: 0 auto 30px; padding: 0 20px; }
.plus-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.plu {
  background: #fff; border-radius: 12px; padding: 18px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform .15s ease;
  border-left: 4px solid #1a5fbf;
}
.plu:hover { transform: translateY(-3px); }
.plu h4 { font-size: 16px; color: #1a5fbf; margin-bottom: 6px; }
.plu p { font-size: 13px; color: #5b6478; line-height: 1.5; }
@media (max-width: 900px) { .plus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plus-grid { grid-template-columns: 1fr; } }

/* ===== 报名表单 ===== */
.order { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.order-form { background: #fff; padding: 24px; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.order-form .row { margin-bottom: 14px; }
.order-form .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-form label {
  display: block; font-size: 13px; color: #4b5563; font-weight: 600;
}
.order-form input, .order-form select, .order-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 12px;
  border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fff; color: #1a2238;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus {
  outline: none; border-color: #1a5fbf;
  box-shadow: 0 0 0 3px rgba(26,95,191,0.1);
}
.order-form textarea { resize: vertical; }
.submit-btn {
  display: block; width: 100%; padding: 14px; margin-top: 16px;
  background: linear-gradient(135deg, #ff7a3d, #ff5a3c);
  color: #fff; border: none; border-radius: 8px;
  font-size: 16px; font-weight: 800; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px rgba(255,122,61,0.35);
}
.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255,122,61,0.45);
}
.submit-btn:disabled { opacity: .55; cursor: not-allowed; }
.form-tip {
  margin-top: 12px; padding: 10px 14px; border-radius: 6px;
  font-size: 14px; display: none;
}
.form-tip.show { display: block; }
.form-tip.ok { background: #ecfdf5; color: #065f46; }
.form-tip.err { background: #fef2f2; color: #991b1b; }

/* ===== TAB 选项卡已取消 ===== */

/* ===== Footer ===== */
.foot { max-width: 1100px; margin: 30px auto 0; padding: 0 20px 30px; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.foot-grid > div {
  background: linear-gradient(135deg, #1a2238 0%, #0d3b80 100%);
  color: #e5e7eb; border-radius: 10px;
  padding: 18px; text-align: center;
  position: relative; overflow: hidden;
}
.foot-grid > div::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #ffc857, #ff7a3d);
}
.foot-grid h4 { color: #ffc857; margin-bottom: 6px; font-size: 15px; }
.foot-grid p { font-size: 12.5px; line-height: 1.7; }
.copyright { text-align: center; padding: 24px 0; color: #9aa1ad; font-size: 12px; }
.foot-phone { color: #ff5a3c; font-weight: 700; text-decoration: none; }
.foot-phone:hover { text-decoration: underline; }

/* ===== AI 气泡 ===== */
.ai-fab {
  position: fixed; right: 20px; bottom: 24px; z-index: 998;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1a5fbf 0%, #6b3fa0 100%);
  color: #fff; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 22px rgba(26,95,191,0.4);
  transition: transform .15s ease;
}
.ai-fab:hover { transform: scale(1.05); }
.ai-fab .ai-dot {
  background: linear-gradient(135deg, #ffc857, #ff7a3d); color: #fff; font-weight: 800;
  padding: 3px 7px; border-radius: 6px; font-size: 12px;
}
.ai-fab .ai-text { font-size: 14px; font-weight: 700; }

.ai-panel {
  position: fixed; right: 20px; bottom: 90px; z-index: 999;
  width: 360px; max-width: calc(100vw - 40px); height: 500px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  display: flex; flex-direction: column; overflow: hidden;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.ai-panel[hidden] { display: none; }
.ai-head {
  padding: 12px 16px;
  background: linear-gradient(135deg, #1a5fbf 0%, #6b3fa0 100%);
  color: #fff; display: flex; justify-content: space-between; align-items: center;
}
.ai-title { font-weight: 700; font-size: 15px; }
.ai-close {
  background: transparent; border: none; color: #fff; font-size: 22px;
  width: 28px; height: 28px; cursor: pointer; line-height: 1;
}
.ai-body {
  flex: 1; padding: 14px 14px; overflow-y: auto; background: #f7f8fa;
  display: flex; flex-direction: column; gap: 8px;
}
.ai-msg {
  max-width: 80%; padding: 10px 13px; border-radius: 12px;
  font-size: 13.5px; line-height: 1.5; word-wrap: break-word;
}
.ai-msg.ai-bot { background: #fff; color: #1a2238; align-self: flex-start; border: 1px solid #e5e7eb; }
.ai-msg.ai-user { background: linear-gradient(135deg, #1a5fbf, #0d3b80); color: #fff; align-self: flex-end; }
.ai-msg.ai-err { background: #fef2f2; color: #991b1b; align-self: flex-start; }
.ai-input {
  display: flex; gap: 8px; padding: 10px; background: #fff;
  border-top: 1px solid #e5e7eb;
}
.ai-input input {
  flex: 1; padding: 9px 12px; border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: 14px; font-family: inherit;
}
.ai-input input:focus { outline: none; border-color: #1a5fbf; }
.ai-input button {
  padding: 9px 16px;
  background: linear-gradient(135deg, #ff7a3d, #ff5a3c);
  color: #fff; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 13px;
}
.ai-input button:disabled { opacity: .5; cursor: not-allowed; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .hero { padding: 40px 16px 48px; }
  .hero h1 { font-size: 24px; }
  .hero .sub { font-size: 14px; }
  .selling, .flow-grid, .foot-grid { grid-template-columns: 1fr; }
  .order-form .row.two { grid-template-columns: 1fr; }
  .ai-panel { right: 10px; left: 10px; width: auto; height: 70vh; }
  .banner { font-size: 12px; padding: 9px 10px; }

  /* 套餐表格 → 卡片堆叠 */
  .table-wrap { overflow-x: visible; }
  .plan-table, .plan-table thead, .plan-table tbody, .plan-table tr, .plan-table td, .plan-table th {
    display: block; width: 100%;
  }
  .plan-table thead { display: none; }
  .plan-table tbody tr {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .plan-table tbody td {
    padding: 6px 0; text-align: left;
    border: none;
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px;
    font-size: 13.5px;
  }
  .plan-table tbody td::before {
    content: attr(data-label);
    color: #9aa1ad; font-size: 12px; font-weight: 500;
    flex-shrink: 0;
  }
  .plan-table tbody td:first-child {
    font-size: 15px; padding-bottom: 8px;
    border-bottom: 1px dashed #e5e7eb;
    margin-bottom: 6px;
  }
  .plan-table tbody td:first-child::before { content: ""; }
  .speed-cell { font-size: 13px; }
  .best-row { background: #fff; }
}