/* 科鸿特电脑配置报价系统 - 响应式样式（品牌蓝 #0054A2） */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --brand: #0054A2; --brand-lt: #4A90D9; --brand-dk: #003A75;
  --ok: #16a34a; --warn: #d97706; --err: #dc2626;
  --txt: #1f2937; --txt-dim: #6b7280; --bg: #f3f5f9; --card: #fff;
  --radius: 14px; --border: #e5e7eb;
}
body { background: var(--bg); color: var(--txt); font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.6; }
.q-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* 头部 */
.q-header { background: linear-gradient(135deg, var(--brand-dk), var(--brand)); color: #fff; }
.q-header-in { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px; flex-wrap: wrap; gap: 8px; }
.q-logo { font-size: 22px; font-weight: 800; }
.q-logo span { color: #9fc6ee; font-weight: 600; font-size: 16px; margin-left: 4px; }
.q-tag { font-size: 13px; opacity: .9; }

/* 标题区 */
.q-hero { text-align: center; padding: 28px 0 18px; }
.q-hero h1 { font-size: 30px; font-weight: 800; color: var(--brand-dk); }
.q-hero p { color: var(--txt-dim); margin-top: 6px; font-size: 15px; }

/* 预算推荐 */
.q-budget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,84,162,.05); }
.q-budget-row { display: flex; gap: 12px; flex-wrap: wrap; }
.q-budget-row input, .q-budget-row select { flex: 1; min-width: 130px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; font-family: inherit; }
.q-budget-row input:focus, .q-budget-row select:focus { outline: none; border-color: var(--brand); }
.q-budget-tip { margin-top: 10px; font-size: 14px; color: var(--brand); min-height: 20px; }

/* 按钮 */
.q-btn { display: inline-block; background: var(--brand); color: #fff; border: none; padding: 12px 22px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; transition: background .2s, transform .15s; font-family: inherit; }
.q-btn:hover { background: var(--brand-dk); transform: translateY(-1px); }
.q-btn:disabled { background: #cbd5e1; cursor: not-allowed; transform: none; }
.q-btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand-lt); }
.q-btn-ghost:hover { background: rgba(0,84,162,.08); }
.q-btn-block { display: block; width: 100%; margin-top: 12px; }
.q-btn-call { background: var(--ok); }
.q-btn-call:hover { background: #15803d; }

/* 主布局 */
.q-main { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }

/* 配件选择 */
.q-picker { display: grid; gap: 14px; }
.q-loading { background: var(--card); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--txt-dim); }
.q-cat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.q-cat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.q-cat-title { font-size: 16px; font-weight: 700; color: var(--brand-dk); display: flex; align-items: center; gap: 8px; }
.q-cat-title .q-num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.q-cat-price { font-size: 15px; font-weight: 700; color: var(--err); }
.q-cat select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; background: #fff; font-family: inherit; }
.q-cat select:focus { outline: none; border-color: var(--brand); }
.q-part-spec { margin-top: 8px; font-size: 13px; color: var(--txt-dim); display: flex; flex-wrap: wrap; gap: 6px; }
.q-part-spec span { background: rgba(0,84,162,.07); padding: 3px 10px; border-radius: 99px; }

/* 汇总面板 */
.q-summary { position: sticky; top: 16px; }
.q-sum-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: 0 2px 12px rgba(0,84,162,.06); }
.q-sum-card h3 { font-size: 17px; color: var(--brand-dk); margin-bottom: 14px; }
.q-sum-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.q-sum-row span { color: var(--txt-dim); }
.q-sum-row b { font-size: 16px; }
.q-price { color: var(--err); font-size: 20px !important; }

/* 兼容性 */
.q-compat { margin: 14px 0 4px; font-size: 13px; }
.q-compat-none { color: var(--txt-dim); }
.q-compat-item { display: flex; gap: 6px; padding: 7px 0; align-items: flex-start; }
.q-compat-item.ok { color: var(--ok); }
.q-compat-item.warn { color: var(--warn); }
.q-compat-item.err { color: var(--err); }
.q-compat-item .q-ico { flex-shrink: 0; font-weight: 700; }

/* 联系 */
.q-contact { margin-top: 16px; background: linear-gradient(135deg, var(--brand-dk), var(--brand)); border-radius: var(--radius); padding: 18px; text-align: center; color: #fff; }
.q-contact p { font-size: 14px; margin-bottom: 12px; opacity: .95; }
.q-contact .q-btn { margin-bottom: 8px; width: 100%; }
.q-contact .q-btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }

/* 弹窗 */
.q-modal { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.q-modal.show { display: flex; }
.q-modal-card { background: #fff; border-radius: 16px; padding: 22px; max-width: 460px; width: 100%; max-height: 90vh; overflow: auto; }
.q-modal-card h3 { color: var(--brand-dk); margin-bottom: 14px; }
.q-share-list { font-size: 14px; margin-bottom: 14px; }
.q-share-list .q-share-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.q-share-list .q-share-item b { color: var(--err); }
.q-share-link { display: flex; gap: 8px; margin-bottom: 12px; }
.q-share-link input { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.q-share-note { font-size: 13px; color: var(--txt-dim); margin-bottom: 12px; }
.q-modal-card .q-btn { width: 100%; margin-bottom: 8px; }

/* 页脚 */
.q-footer { margin-top: 40px; padding: 20px 0; text-align: center; color: var(--txt-dim); font-size: 13px; border-top: 1px solid var(--border); }

/* 响应式：手机端 */
@media (max-width: 900px) {
  .q-main { grid-template-columns: 1fr; }
  .q-summary { position: static; order: 2; }
  .q-picker { order: 1; }
  .q-hero h1 { font-size: 24px; }
  .q-budget-row { flex-direction: column; }
  .q-budget-row .q-btn { width: 100%; }
  .q-header-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .q-hero h1 { font-size: 22px; }
  .q-logo { font-size: 20px; }
}
