:root {
  --primary: #10375C; --primary-dark: #0A2540; --primary-mid: #164B7A; --primary-light: #E9F0F7;
  --accent: #F57C00; --accent-dark: #E06A00;
  --text: #1E2B3A; --text-sub: #5A6B7D; --text-light: #8A9AA9;
  --bg: #fff; --bg-gray: #F5F8FA; --border: #E2E9F0;
  --radius: 8px; --max: 1100px; --gutter: 32px;
  --shadow: 0 6px 22px rgba(10,37,64,.08);
  --shadow-md: 0 16px 44px rgba(10,37,64,.12);
  --ease: cubic-bezier(.2,.65,.25,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-dark); }
.container { width: min(var(--max), calc(100% - var(--gutter))); margin-inline: auto; }
h1,h2,h3 { margin: 0 0 14px; color: var(--primary); letter-spacing: -.03em; }
p { margin: 0 0 12px; }

/* 顶栏与导航 */
.topbar { color: rgba(255,255,255,.82); background: var(--primary-dark); font-size: 11px; }
.topbar-inner { min-height: 32px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 4px 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(10,37,64,.05); }
.header-inner { display:flex; align-items:center; gap: 22px; min-height: 70px; }
.logo { font-size: 22px; font-weight: 850; letter-spacing: -.06em; color: var(--primary); }
.logo span { color: var(--accent); }
.main-nav ul { display:flex; gap:4px; list-style:none; margin:0; padding:0; }
.main-nav a { padding: 9px 14px; border-radius: 6px; font-size: 13px; font-weight: 680; color: var(--text); }
.main-nav a:hover { background: var(--primary-light); }
.header-action { margin-left:auto; }

/* 按钮 */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding: 0 21px;
  border: 1px solid transparent; border-radius: 6px; cursor:pointer; font-size: 13px; font-weight:700; }
.btn-primary { color:#fff; background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { color:#fff; background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { color: var(--primary); background:#fff; border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 12px; }
.btn-block { width:100%; }

/* 卡片 / 区块 */
.card { background:#fff; border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.section { padding: 60px 0; }
.section-gray { background: var(--bg-gray); }
.section-heading { text-align:center; max-width: 760px; margin: 0 auto 36px; }
.section-heading .eyebrow { color: var(--text-light); font-size:11px; font-weight:750; letter-spacing:3px; text-transform:uppercase; }
.section-heading h2 { display:inline-block; position:relative; padding-bottom:12px; font-size: clamp(26px,3vw,34px); font-weight:760; }
.section-heading h2::after { content:""; position:absolute; left:50%; bottom:0; width:47px; height:3px; background:var(--accent); transform:translateX(-50%); border-radius:2px; }

/* 表单 */
.field { margin-bottom: 16px; }
.field label { display:block; margin-bottom: 6px; font-size:13px; font-weight:680; color: var(--text); }
.field input, .field select, .field textarea {
  width:100%; padding: 11px 13px; border:1px solid var(--border); border-radius:6px; font:inherit; color:var(--text);
  background:#fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16,55,92,.12); }
.field .hint { margin-top:5px; font-size:11px; color: var(--text-light); }
.form-note { font-size:12px; color: var(--text-sub); }
.msg { padding: 10px 13px; border-radius:6px; font-size:13px; margin-bottom:14px; display:none; }
.msg-err { background:#fdecec; color:#b42318; border:1px solid #f5c2c0; }
.msg-ok { background:#e9f7ef; color:#127a4b; border:1px solid #b6e3c9; }

/* 表格 */
.table { width:100%; border-collapse: collapse; font-size:13px; }
.table th, .table td { padding: 11px 12px; border-top:1px solid var(--border); text-align:left; vertical-align:top; }
.table thead th { background: var(--bg-gray); color: var(--primary); font-weight:750; }
.table tr:hover td { background:#fafcfe; }
.badge { display:inline-block; padding:3px 9px; border-radius: 20px; font-size:11px; font-weight:700; }
.badge-wait { background:#fff4e5; color:#b76e00; }
.badge-done { background:#e9f7ef; color:#127a4b; }
.badge-progress { background:#e9f0f7; color:#164B7A; }

/* 登录/注册/后台 布局 */
.auth-wrap { min-height: calc(100vh - 140px); display:flex; align-items:center; justify-content:center; padding: 40px 0; }
.auth-box { width: min(420px, 100%); }
.auth-box .card { padding: 32px; }
.auth-alt { text-align:center; margin-top:16px; font-size:13px; color: var(--text-sub); }
.auth-alt a { font-weight:700; }

/* 微信一键登录（公众号网页授权，免备案） */
.btn-wechat { color:#fff; background:#07C160; border:none; }
.btn-wechat:hover { background:#06AD56; }
.btn-wechat svg { width:18px; height:18px; vertical-align:-3px; margin-right:6px; fill:#fff; }
.auth-divider { display:flex; align-items:center; margin:18px 0 14px; color:var(--text-sub); font-size:12px; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.auth-divider span { padding:0 12px; }
.wechat-hint { font-size:12px; color:var(--text-sub); text-align:center; margin-top:10px; }

/* 后台布局 */
.dash { display:grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 140px); }
.dash-nav { background: var(--primary-dark); color:#fff; padding: 24px 16px; }
.dash-nav .logo { color:#fff; display:block; margin-bottom: 22px; }
.dash-nav .logo span { color:#ff9b3c; }
.dash-nav a { display:block; padding: 10px 12px; border-radius:6px; color: rgba(255,255,255,.78); font-size:13px; font-weight:600; margin-bottom:4px; }
.dash-nav a:hover, .dash-nav a.active { background: rgba(255,255,255,.12); color:#fff; }
.dash-main { padding: 28px 32px; background: var(--bg-gray); }
.dash-top { display:flex; align-items:center; justify-content:space-between; margin-bottom: 22px; }
.dash-top h2 { margin:0; }
.stat-row { display:grid; grid-template-columns: repeat(4,1fr); gap:14px; margin-bottom: 24px; }
.stat-box { background:#fff; border:1px solid var(--border); border-top:3px solid var(--primary); border-radius:6px; padding:18px; text-align:center; }
.stat-box strong { display:block; font-size:26px; color:var(--primary); font-weight:800; letter-spacing:-.03em; }
.stat-box span { font-size:12px; color:var(--text-sub); }
.panel { background:#fff; border:1px solid var(--border); border-radius:8px; padding: 22px; box-shadow: var(--shadow); }

/* 验证码行 / 开发模式提示 */
.code-row { display:flex; gap:10px; align-items:stretch; }
.code-row input { flex:1; }
.dev-code { margin-top:6px; font-size:12px; background:#fff4e5; color:#b76e00; border:1px solid #f3d3a0; padding:8px 10px; border-radius:6px; }
.field-input { width:100%; padding:9px 12px; border:1px solid var(--border); border-radius:6px; font:inherit; color:var(--text); background:#fff; }
.field-input:focus { outline:none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16,55,92,.12); }

/* 状态徽章扩展 */
.badge-info { background:#eaf3ff; color:#0A6CFF; }
.badge-refund { background:#fdecec; color:#b42318; }
.badge-cancel { background:#eef1f4; color:#6b7785; }

/* 机构选择 / 标签 */
.inst-list { max-height:190px; overflow:auto; border:1px solid var(--border); border-radius:6px; padding:10px 12px; }
.inst-item { display:flex; align-items:center; gap:8px; font-size:13px; padding:4px 0; }
.inst-tags { display:flex; flex-wrap:wrap; gap:8px; }
.inst-tag { background:var(--primary-light); color:var(--primary); padding:4px 11px; border-radius:20px; font-size:12px; font-weight:600; }

/* 后台退款行 */
.refund-row { margin-top:6px; font-size:12px; color:var(--text-sub); display:flex; align-items:center; gap:6px; }
.refund-row input { padding:5px 8px; border:1px solid var(--border); border-radius:6px; font:inherit; }
.refund-tag { margin-top:5px; font-size:12px; color:#b42318; font-weight:700; }

@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; }
  .dash-nav { display:flex; flex-wrap:wrap; gap:6px; padding:14px; }
  .dash-nav .logo { width:100%; margin-bottom:10px; }
  .dash-nav a { margin:0; }
  .stat-row { grid-template-columns: repeat(2,1fr); }
}

/* 用户新建订单：服务套餐选择卡片（与首页 price-card 完全一致） */
.pkg-group-title { margin: 4px 0 10px; font-size: 13px; font-weight: 720; color: var(--primary); }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 13px; align-items: stretch; margin-bottom: 6px; }

.price-card { position: relative; display: flex; min-height: 360px; flex-direction: column; padding: 23px 19px 20px;
  background: #fff; border: 1px solid var(--border); border-radius: 3px; box-shadow: 0 2px 8px rgba(10,37,64,.035);
  cursor: pointer; transition: transform .24s var(--ease), box-shadow .24s ease, border-color .24s ease; }
.price-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.price-card h3 { margin: 0 0 15px; color: var(--primary); font-size: 15px; font-weight: 750; }
.price-value { margin-bottom: 7px; color: var(--primary); font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.12; white-space: nowrap; }
.price-value small { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.price-volume { min-height: 26px; margin: 0 0 15px; color: var(--text-light); font-size: 11px; font-weight: 650; }
.price-rule { height: 1px; margin-bottom: 15px; background: var(--border); }
.price-features { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.price-features li { position: relative; padding-left: 15px; color: var(--text-sub); font-size: 11px; line-height: 1.65; }
.price-features li::before { position: absolute; top: .66em; left: 1px; width: 6px; height: 6px; background: var(--accent); border-radius: 1px; content: ""; }
.price-card.featured { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 10px 27px rgba(10,37,64,.15); }
.price-card.featured:hover { box-shadow: 0 16px 37px rgba(10,37,64,.23); }
.price-card.featured h3, .price-card.featured .price-value { color: #fff; }
.price-card.featured .price-volume { color: rgba(255,255,255,.7); }
.price-card.featured .price-rule { background: rgba(255,255,255,.2); }
.price-card.featured .price-features li { color: rgba(255,255,255,.84); }
.price-card.featured .price-features li::before { background: #ffad59; }
.featured-badge { position: absolute; top: -12px; right: 14px; padding: 4px 9px; color: #fff; background: var(--accent); border-radius: 2px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.pkg-grid .price-value { white-space: normal; }
.price-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(245,124,0,.28); transform: translateY(-4px); }
.price-card.selected::after { content: "已选"; position: absolute; top: -12px; left: 14px; padding: 4px 9px; color: #fff; background: var(--accent-dark); border-radius: 2px; font-size: 9px; font-weight: 750; white-space: nowrap; }
@media (max-width: 640px) { .price-card { min-height: 0; } }

/* 选中卡片下方的流程与退款说明 */
.pkg-detail { margin-top: 18px; padding: 16px; background: var(--bg-gray); border: 1px solid var(--border); border-radius: 8px; }
.pkg-detail h4 { margin: 0 0 12px; color: var(--primary); font-size: 14px; }
.pkg-flows { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.pkg-flow { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; }
.pkg-flow h5 { margin: 0 0 8px; font-size: 12px; color: var(--accent-dark); }
.pkg-flow ol { margin: 0; padding-left: 18px; color: var(--text-sub); font-size: 12px; line-height: 1.9; }
.pkg-amount-row { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.pkg-amount { font-size: 14px; color: var(--text-sub); }
.pkg-amount b { font-size: 22px; color: var(--accent-dark); letter-spacing: -.02em; }

@media (max-width: 980px) {
  .pkg-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pkg-flows { grid-template-columns: 1fr; }
}
