/* ============ 订单查询中心 全局样式 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --text: #f4f1ff;
  --text-dim: rgba(244, 241, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.2);
  --stroke: rgba(255, 255, 255, 0.34);
  --radius: 20px;
  --shadow: 0 8px 32px rgba(8, 4, 28, 0.35);
}

html { height: 100%; }
body {
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(14, 7, 38, 0.42), rgba(12, 6, 34, 0.6)),
    url("../images/bg.png") center / cover no-repeat fixed;
}

/* 磨砂玻璃卡片 */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 页面骨架 */
.page {
  min-height: 100vh;
  padding: 26px 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.back-link {
  align-self: flex-start;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--stroke);
  transition: background 0.2s;
}
.back-link:hover { background: var(--glass-strong); }

.container { width: min(760px, 100%); margin-top: 26px; }
.center-wrap { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; }

/* 首页 */
.hero { width: min(660px, 100%); padding: 52px 34px; text-align: center; }
.hero .brand { font-size: 15px; letter-spacing: 6px; opacity: 0.85; }
.hero h1 { font-size: 36px; font-weight: 700; margin: 14px 0 8px; letter-spacing: 2px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero .sub { font-size: 15px; color: var(--text-dim); margin-bottom: 40px; }
.actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 30px 44px; color: var(--text); text-decoration: none;
  border-radius: 24px; border: 1px solid var(--stroke);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: var(--shadow);
  transition: transform 0.2s, background 0.2s;
}
.action-btn:hover { transform: translateY(-4px); background: linear-gradient(150deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12)); }
.action-btn svg { width: 34px; height: 34px; }
.action-btn .t { font-size: 18px; font-weight: 600; letter-spacing: 2px; }
.action-btn .d { font-size: 12.5px; color: var(--text-dim); }

/* 卡片头 */
.card-title { font-size: 22px; font-weight: 600; letter-spacing: 1px; }
.card-sub { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

/* 表单控件 */
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  outline: none;
  font-family: inherit;
  transition: border 0.2s, background 0.2s;
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
input:focus, textarea:focus, select:focus { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.16); }
select option { color: #222; background: #fff; }
textarea { resize: vertical; min-height: 64px; }

.btn {
  border: 1px solid var(--stroke);
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
}
.btn:hover { background: rgba(255, 255, 255, 0.24); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, #7c5cff, #4da3ff); border: none; font-weight: 600; }
.btn-primary:hover { background: linear-gradient(135deg, #8d71ff, #5fb0ff); }
.btn-danger { background: rgba(255, 90, 90, 0.22); }
.btn-danger:hover { background: rgba(255, 90, 90, 0.36); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }

/* 状态徽章 */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}

/* 平台标签 */
.pf-chip {
  display: inline-block; padding: 2px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600;
}

/* 提示条 */
.tip { font-size: 13px; color: var(--text-dim); }
.empty {
  text-align: center; color: var(--text-dim); font-size: 14px;
  padding: 30px 10px;
}

/* 查询结果 */
.order-card {
  padding: 16px 18px; margin-top: 12px; display: flex;
  align-items: center; gap: 16px; flex-wrap: wrap;
}
.order-card .no { font-weight: 700; font-size: 16px; letter-spacing: 0.5px; }
.order-card .meta { font-size: 13.5px; color: var(--text-dim); min-width: 0; flex: 1; }
.order-card .meta .item { color: var(--text); }
.remark { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; word-break: break-all; }

/* 进度 */
.stage-card { padding: 18px 20px; margin-top: 14px; }
.stage-card .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stage-card .name { font-size: 16px; font-weight: 600; }
.stage-card .note { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.progress-bar {
  height: 8px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.16); margin-top: 14px;
}
.progress-bar > i { display: block; height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.stage-status { font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.ss-未开始 { background: rgba(255, 255, 255, 0.16); color: var(--text-dim); }
.ss-进行中 { background: rgba(84, 160, 255, 0.28); color: #a5d0ff; }
.ss-已完成 { background: rgba(47, 214, 168, 0.26); color: #8affdc; }

/* 后台通用小工具 */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-center { justify-content: center; }
.mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; } .mt20 { margin-top: 20px; }
.muted { color: var(--text-dim); }
.mono { font-family: Consolas, Monaco, monospace; font-size: 12.5px; word-break: break-all; }

/* 文章目录 */
.art-list { margin-top: 8px; }
.art-item {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; margin-top: 12px; cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}
.art-item:hover { transform: translateY(-2px); background: var(--glass-strong); }
.art-item .idx { min-width: 30px; font-size: 14px; color: var(--text-dim); font-weight: 600; }
.art-item .nm { font-size: 16.5px; font-weight: 600; flex: 1; min-width: 0; }
.art-item .nm .open { color: #cfe2ff; font-size: 12px; font-weight: 400; margin-left: 10px; opacity: 0; transition: opacity 0.2s; }
.art-item:hover .open { opacity: 1; }
@media (max-width: 560px) { .art-item .open { opacity: 1; } }
.art-item .st, .art-item .wd {
  font-size: 12.5px; white-space: nowrap;
  padding: 4px 12px; border-radius: 999px; border: 1px solid;
}
.art-item .wd {
  color: #ffd9a0;
  border-color: rgba(255, 200, 120, 0.35); background: rgba(255, 200, 120, 0.12);
}

/* 状态筛选栏 */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.st-chip {
  cursor: pointer; font-family: inherit; font-size: 13px; color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 15px; border-radius: 999px; transition: all 0.2s;
}
.st-chip b { font-weight: 700; margin-left: 3px; }
.st-chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.st-chip.on { color: var(--cc); border-color: var(--cc); background: var(--cc)1f; }

/* 首页企划概览 */
.hero-stats {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
}
.hero-stats .lbl { font-size: 12.5px; letter-spacing: 1px; color: var(--text-dim); opacity: 0.75; }
.hero-stats .hs { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 13px; text-decoration: none; }
.hero-stats .hs i { width: 8px; height: 8px; border-radius: 50%; }
.hero-stats .hs b { font-size: 14px; color: #fff; font-weight: 600; }
.hero-stats .hs:hover b { text-decoration: underline; }

/* 弹窗（试阅内容） */
.modal-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(6, 3, 20, 0.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal { width: min(680px, 100%); max-height: 86vh; display: flex; flex-direction: column; padding: 26px 28px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-title { font-size: 19px; font-weight: 700; line-height: 1.5; letter-spacing: 1px; }
.modal-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }
.modal-x {
  border: none; cursor: pointer; background: rgba(255, 255, 255, 0.15); color: var(--text);
  width: 34px; height: 34px; border-radius: 50%; font-size: 15px; flex-shrink: 0; font-family: inherit;
}
.modal-x:hover { background: rgba(255, 255, 255, 0.3); }
.modal-body {
  overflow-y: auto; margin-top: 16px; padding-right: 8px;
  font-size: 15px; line-height: 2; color: rgba(255, 252, 244, 0.94);
  white-space: pre-wrap; word-break: break-word;
}
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 999px; }
.modal-foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px; color: var(--text-dim);
}

@media (max-width: 520px) {
  .hero { padding: 36px 20px; }
  .hero h1 { font-size: 27px; }
  .action-btn { padding: 24px 30px; }
}

/* ============ 移动端竖版背景图（手机与电脑不同图） ============ */
@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, rgba(14, 7, 38, 0.42), rgba(12, 6, 34, 0.6)),
      url("../images/bg-mobile.png") center / cover no-repeat scroll;
  }
}

/* ============ 首页加载页 ============ */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(94, 66, 200, 0.35), transparent 60%),
    linear-gradient(180deg, #140b33, #0b0622);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-box { text-align: center; }
.splash-ring {
  width: 52px; height: 52px; margin: 0 auto 22px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: #7c5cff;
  border-radius: 50%;
  animation: splash-spin 0.9s linear infinite;
}
@keyframes splash-spin { to { transform: rotate(360deg); } }
.splash-brand {
  font-size: 14px; letter-spacing: 8px; font-weight: 600;
  color: rgba(255, 255, 255, 0.92); text-indent: 8px; margin-bottom: 10px;
}
.splash-line {
  width: 46px; height: 2px; margin: 0 auto 12px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #8d71ff, transparent);
}
.splash-tip { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); letter-spacing: 2px; }
