/* ==========================================================================
   子页面通用：页头 banner + 面包屑 + 商品列表 + 详情 + 文章等
   ========================================================================== */

/* 页头 */
.page-hero {
  background: #e1251b;
  color: #fff; padding: 42px 0 38px;
}
.page-hero h1 { color: #fff; font-size: 30px; letter-spacing: -.6px; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 14.5px; max-width: 640px; }

/* 面包屑 */
.crumbs {
  padding: 16px 0; font-size: 13px; color: var(--text-3);
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { color: var(--line); }
.crumbs .cur { color: var(--text); font-weight: 500; }

/* ===================== 商品列表页 ===================== */

.list-layout { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }

/* 筛选侧栏 */
.filter-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; position: sticky; top: 122px;
}
.filter-group + .filter-group { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.filter-group h4 { font-size: 13.5px; margin-bottom: 12px; color: var(--text); }
.filter-opts { display: flex; flex-direction: column; gap: 2px; }
.filter-opts a {
  padding: 7px 10px; border-radius: var(--radius-sm); font-size: 13.5px;
  color: var(--text-2); display: flex; justify-content: space-between; align-items: center;
}
.filter-opts a:hover { background: var(--bg-2); color: var(--text); }
.filter-opts a.active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.filter-opts a .cnt { font-size: 12px; color: var(--text-3); font-weight: 400; }

/* 工具条 */
.list-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.list-toolbar .found { font-size: 14px; color: var(--text-2); }
.list-toolbar .found b { color: var(--brand); font-size: 17px; }
.sort-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sort-group .chip { padding: 6px 13px; }

.list-search { display: flex; gap: 8px; }
.list-search .input { width: 220px; }

.list-main {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px;
}
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* 分页 */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 28px; flex-wrap: wrap;
}
.pagination button {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; font-size: 13.5px; color: var(--text-2);
  transition: all .15s;
}
.pagination button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pagination button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination .pg-info { font-size: 13px; color: var(--text-3); margin: 0 8px; }

/* ===================== 商品详情页 ===================== */

/* 显式三栏：图集 / 购买信息 / 边栏（两列会让第三块掉行叠到图下） */
.detail-layout { display: grid; grid-template-columns: 440px minmax(0, 1fr) 296px; gap: 32px; align-items: start; }

.d-gallery { position: sticky; top: 122px; }
.d-main-img {
  height: 332px; /* 固定高替代 aspect-ratio（旧内核兼容） */
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.d-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
/* 无主图占位：品牌浅底 + 图标 + 品牌名 */
.d-main-img .ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; width: 100%; height: 100%;
  background: linear-gradient(160deg, #fff5f4 0%, #fdeceb 55%, #fbdeda 100%);
  user-select: none;
}
.d-main-img .ph svg { width: 84px; height: 84px; color: #e69a93; }
.d-main-img .ph .pb-brand { font-size: 15px; font-weight: 600; color: #c96f68; letter-spacing: 2px; }
.d-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.d-thumbs .th {
  width: 72px; height: 58px; border-radius: 8px; border: 1.5px solid var(--line);
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; opacity: .75; cursor: pointer; transition: all .15s; overflow: hidden;
}
.d-thumbs .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-thumbs .th.on { border-color: var(--brand); opacity: 1; box-shadow: 0 0 0 2px rgba(225, 37, 27, .12); }
.d-thumbs .th:hover { opacity: 1; border-color: var(--brand-light); }

/* 主图可点击放大 */
.d-main-img { cursor: zoom-in; position: relative; }
.d-zoom-tip {
  position: absolute; right: 10px; bottom: 10px; font-size: 12px; color: #fff;
  background: rgba(15, 23, 42, .55); padding: 3px 9px; border-radius: 20px;
  opacity: 0; transition: opacity .18s; pointer-events: none;
}
.d-main-img:hover .d-zoom-tip { opacity: 1; }

.d-info h1 { font-size: 24px; line-height: 1.4; letter-spacing: -.4px; margin: 8px 0 10px; }
.d-sub { color: var(--text-2); font-size: 14px; }
.d-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.d-price-box {
  margin-top: 18px; background: linear-gradient(135deg, #fff1f0, #ffe0dd);
  border: 1px solid #fed7aa; border-radius: var(--radius); padding: 18px 20px;
}
.d-price-box .lbl { font-size: 13px; color: #9a3412; margin-bottom: 6px; }
.d-price-box .price { font-size: 36px; }
.d-price-box .dep { margin-left: 18px; font-size: 13px; color: var(--text-2); }
.d-price-box .dep b { color: var(--text); }

.d-spec-quick {
  margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px; font-size: 13.5px;
}
.d-spec-quick .kv { display: flex; gap: 8px; }
.d-spec-quick .kv .k { color: var(--text-3); flex-shrink: 0; }
.d-spec-quick .kv .v { color: var(--text); }

/* 期数选择 */
.d-periods { margin-top: 18px; }
.d-periods .lbl { font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.period-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.period-opt {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 8px; text-align: center; cursor: pointer; transition: all .15s;
  background: #fff;
}
.period-opt:hover { border-color: var(--brand-light); }
.period-opt.on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand); }
.period-opt .nm { font-size: 12.5px; color: var(--text-2); }
.period-opt.on .nm { color: var(--brand); font-weight: 600; }
.period-opt .pr { font-size: 16px; font-weight: 800; color: var(--accent-dark); margin-top: 3px; }
.period-opt .pr small { font-size: 11px; font-weight: 500; color: var(--text-3); }

/* 数量与按钮 */
.d-actions { margin-top: 20px; display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.qty-ctrl {
  display: flex; align-items: center; border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; height: 46px;
}
.qty-ctrl button { width: 40px; height: 100%; font-size: 17px; color: var(--text-2); background: var(--bg-2); }
.qty-ctrl button:hover { background: var(--bg-3); color: var(--brand); }
.qty-ctrl input {
  width: 58px; height: 100%; border: none; text-align: center; font-size: 15px; font-weight: 600;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.qty-ctrl input:focus { outline: none; }
.d-actions .btn { height: 46px; }
.d-actions .btn-lg { padding: 0 34px; }

.d-svc {
  margin-top: 20px; padding: 14px 16px; background: var(--bg-2);
  border-radius: var(--radius); font-size: 13px; color: var(--text-2);
  display: flex; flex-direction: column; gap: 8px;
}
.d-svc .item { display: flex; gap: 8px; align-items: flex-start; }
.d-svc .item .ico { color: var(--success); flex-shrink: 0; }

/* 详情选项卡 */
.d-tabs {
  margin-top: 44px; border-bottom: 2px solid var(--line);
  display: flex; gap: 4px;
}
.d-tab {
  padding: 12px 22px; font-size: 15px; font-weight: 600; color: var(--text-2);
  border-radius: 8px 8px 0 0; position: relative; margin-bottom: -2px;
  border: 2px solid transparent; border-bottom: none;
}
.d-tab.on { color: var(--brand); background: #fff; border-color: var(--line); border-bottom: 2px solid #fff; }
.d-panel { padding: 26px 4px; display: none; }
.d-panel.on { display: block; }

.spec-table { max-width: 760px; }
.spec-table th, .spec-table td {
  padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--line-2);
  text-align: left;
}
.spec-table th { width: 160px; color: var(--text-3); font-weight: 500; background: var(--bg-2); }

/* 侧边卡（服务/相关推荐） */
.d-side { display: flex; flex-direction: column; gap: 20px; }
.side-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px;
}
.side-card h4 { font-size: 15px; margin-bottom: 14px; }
.side-list { display: flex; flex-direction: column; gap: 10px; }
.side-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font-size: 13px; transition: all .15s;
}
.side-list a:hover { border-color: var(--brand-100); background: var(--brand-50); }
.side-list .nm { flex: 1; }
.side-list .pr { color: var(--accent-dark); font-weight: 700; white-space: nowrap; }

/* 下单成功弹层 */
.order-ok { text-align: center; padding: 10px 0 4px; }
.order-ok .icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: #ecfdf5; color: var(--success); font-size: 30px;
  display: flex; align-items: center; justify-content: center;
}
.order-ok h3 { font-size: 19px; margin-bottom: 8px; }
.order-ok .no { font-size: 15px; font-weight: 700; color: var(--brand); letter-spacing: .5px; }
.order-ok .rows { margin: 18px 0; text-align: left; background: var(--bg-2); border-radius: var(--radius); padding: 14px 18px; }
.order-ok .rows .r { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; }
.order-ok .rows .r .k { color: var(--text-3); }
.order-ok .rows .r b { font-weight: 600; }

/* ===================== 文章页 ===================== */

.article-wrap { max-width: 800px; margin: 0 auto; }
.article-head { padding: 34px 0 22px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: 27px; line-height: 1.45; letter-spacing: -.4px; margin-bottom: 14px; }
.article-meta-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-3);
}
/* 文章主图：详情页首图，圆角横幅 */
.article-cover {
  margin: 26px 0 6px; border-radius: 14px; overflow: hidden;
  background: var(--bg-2); box-shadow: 0 10px 30px rgba(15, 23, 42, .10);
}
.article-cover img { width: 100%; height: auto; max-height: 420px; object-fit: cover; display: block; }
.article-body { padding: 26px 0 40px; font-size: 15.5px; line-height: 1.9; color: #1f2937; }
.article-body h2, .article-body h3 {
  font-size: 19px; margin: 30px 0 14px; padding-left: 12px;
  border-left: 4px solid var(--brand); line-height: 1.5;
}
.article-body h3 { font-size: 16.5px; }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 7px; }
.article-body table {
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  margin: 16px 0 22px; font-size: 14px;
}
.article-body th { background: var(--bg-2); font-weight: 600; }
.article-body th, .article-body td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); text-align: left; }
.article-body blockquote {
  margin: 16px 0; padding: 13px 18px; background: var(--brand-50);
  border-left: 4px solid var(--brand); border-radius: 0 8px 8px 0; color: var(--brand-dark);
}
.article-body strong { color: var(--text); }
.article-toc {
  background: var(--bg-2); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0;
}
.article-toc h3 { font-size: 14px; margin-bottom: 10px; border: none; padding: 0; margin-top: 0; }
.article-toc ul { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.article-toc li { font-size: 13.5px; color: var(--text-2); }
.article-meta-box {
  background: var(--bg-2); border-radius: var(--radius); padding: 12px 18px;
  font-size: 13px; color: var(--text-3); display: flex; gap: 18px; flex-wrap: wrap;
}

/* 新闻列表 */
.news-list { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.news-row {
  display: flex; gap: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px; transition: all .2s;
}
.news-row:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.news-row .cover {
  width: 170px; height: 110px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: linear-gradient(140deg, var(--brand-50), #ffe0dd);
  display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--brand); opacity: .8;
  overflow: hidden;
}
.news-row .cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.news-row h3 { font-size: 16.5px; margin-bottom: 8px; }
.news-row p { font-size: 13.5px; color: var(--text-2); line-height: 1.75; }
.news-row .meta { margin-top: 10px; font-size: 12px; color: var(--text-3); display: flex; gap: 14px; align-items: center; }

/* ===================== 表单页（登录/注册/关于/帮助） ===================== */

.auth-wrap {
  min-height: calc(100vh - 300px); display: flex; align-items: center;
  justify-content: center; padding: 46px 20px;
  background:
    radial-gradient(circle at 18% 22%, rgba(59, 111, 212, .08) 0%, transparent 42%),
    radial-gradient(circle at 84% 78%, rgba(90, 8, 12, .1) 0%, transparent 40%),
    var(--bg-2);
}
.auth-card {
  width: 100%; max-width: 420px; background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 36px 34px;
}
.auth-card h1 { font-size: 23px; margin-bottom: 6px; }
.auth-card .sub { font-size: 13.5px; color: var(--text-3); margin-bottom: 24px; }
.auth-card .field + .field { margin-top: 15px; }
.auth-card .btn { margin-top: 22px; }
.auth-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--text-2); text-align: center; }
.auth-foot a { color: var(--brand); font-weight: 600; }
.auth-tip { margin-top: 14px; }

/* 关于页 */
.prose { max-width: 800px; }
.prose p { white-space: pre-line; }
.prose h2 { font-size: 21px; margin: 34px 0 14px; padding-left: 12px; border-left: 4px solid var(--brand); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 13px; color: var(--text-2); line-height: 1.9; }
.prose ul { margin: 0 0 16px 4px; display: flex; flex-direction: column; gap: 9px; }
.prose li { display: flex; gap: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.8; }
.prose li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.about-stat {
  background: var(--bg-2); border-radius: var(--radius); padding: 22px; text-align: center;
}
.about-stat b { display: block; font-size: 27px; color: var(--brand); letter-spacing: -.5px; }
.about-stat span { font-size: 13px; color: var(--text-3); }

.company-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.company-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.company-card .mark {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.company-card .mark.brand-mark { background: #fff; border: 1px solid var(--line); padding: 4px; }
.company-card .mark.brand-mark img { max-width: 100%; max-height: 100%; object-fit: contain; }
.company-card b { display: block; font-size: 15px; }
.company-card .full { font-size: 12.5px; color: var(--text-3); margin: 3px 0 8px; }
.company-card .tel { font-size: 13px; color: var(--text-2); }

/* 帮助中心 */
.help-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.help-nav {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px; position: sticky; top: 122px;
}
.help-nav a {
  display: block; padding: 9px 13px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-2);
}
.help-nav a:hover { background: var(--bg-2); color: var(--text); }
.help-nav a.on { background: var(--brand-50); color: var(--brand); font-weight: 600; }

.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; padding: 16px 20px;
  font-size: 15px; font-weight: 600; display: flex; justify-content: space-between;
  align-items: center; gap: 14px;
}
.faq-q .arr { color: var(--text-3); transition: transform .2s; flex-shrink: 0; font-size: 13px; }
.faq-item.open .arr { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a .inner { padding: 0 20px 18px; font-size: 14px; color: var(--text-2); line-height: 1.85; }
.faq-item.open .faq-a { max-height: 400px; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
}
.contact-card h3 { font-size: 17px; margin-bottom: 18px; }
.contact-rows { display: flex; flex-direction: column; gap: 16px; }
.contact-rows .r { display: flex; gap: 12px; align-items: flex-start; }
.contact-rows .ico {
  width: 40px; height: 40px; border-radius: 11px; background: var(--brand-50);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.contact-rows b { display: block; font-size: 14.5px; }
.contact-rows span { font-size: 13.5px; color: var(--text-2); }

/* 404 */
.nf {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 40px 20px;
}
.nf .code { font-size: 88px; font-weight: 800; color: var(--brand); letter-spacing: -3px; line-height: 1; }
.nf h1 { font-size: 22px; margin: 18px 0 10px; }
.nf p { color: var(--text-3); margin-bottom: 26px; }

/* ===================== 响应式 ===================== */

@media (max-width: 1360px) {
  .detail-layout { grid-template-columns: 400px minmax(0, 1fr); gap: 28px; }
  /* 中屏：边栏横铺到底部，避免挤压购买区 */
  .d-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .d-side .side-card { margin: 0; }
}

@media (max-width: 1080px) {
  .list-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .filter-opts { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .list-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .d-gallery { position: static; }
  .d-side { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .page-hero h1 { font-size: 22px; }
  .page-hero { padding: 30px 0 28px; }
  .list-grid { grid-template-columns: 1fr; }
  .period-opts { grid-template-columns: repeat(2, 1fr); }
  .d-price-box .price { font-size: 30px; }
  .d-actions .btn-lg { flex: 1; padding: 0 18px; }
  .d-spec-quick { grid-template-columns: 1fr; }
  .about-grid, .company-cards, .contact-grid { grid-template-columns: 1fr; }
  .news-row { flex-direction: column; }
  .news-row .cover { width: 100%; height: 130px; }
  .help-layout { grid-template-columns: 1fr; }
  .help-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .article-head h1 { font-size: 21px; }
  .auth-card { padding: 28px 22px; }
}

/* ==========================================================================
 *  商品图文详情（后台富文本编辑器产出，服务端已白名单过滤）
 * ========================================================================== */

.rich-content { max-width: 900px; }
.rich-content p { white-space: normal; }
.rich-content img {
  max-width: 100%; height: auto; border-radius: 10px; display: block;
  margin: 14px auto; box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
}
.rich-content h2 { font-size: 20px; margin: 26px 0 12px; }
.rich-content h3 { font-size: 17px; margin: 22px 0 10px; color: var(--text-1); }
.rich-content h4 { font-size: 15.5px; margin: 18px 0 8px; color: var(--text-1); }
.rich-content h3, .rich-content h4 { padding-left: 0; border-left: 0; }
.rich-content ul, .rich-content ol { margin: 10px 0 16px 22px; display: block; }
.rich-content li {
  display: list-item; list-style: disc; color: var(--text-2);
  font-size: 14.5px; line-height: 1.85; margin: 4px 0;
}
.rich-content ol > li { list-style: decimal; }
.rich-content li::before { content: none; }
.rich-content blockquote {
  margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--brand);
  background: var(--bg-2); border-radius: 0 8px 8px 0; color: var(--text-2);
}
.rich-content table {
  border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px;
  border-radius: 8px; overflow: hidden;
}
.rich-content th, .rich-content td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.rich-content th { background: var(--bg-2); font-weight: 600; color: var(--text-1); }
.rich-content hr { border: 0; border-top: 1px dashed var(--line); margin: 20px 0; }
.rich-content a { color: var(--brand); text-decoration: underline; }

/* ==========================================================================
 *  会员中心 · 我的订单（前台）
 * ========================================================================== */

.acct-shell { display: grid; grid-template-columns: 208px 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .acct-shell { grid-template-columns: 1fr; } }

.acct-side { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; position: sticky; top: 92px; }
.acct-side a {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 9px;
  color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none;
}
.acct-side a:hover { background: var(--brand-50); color: var(--brand); }
.acct-side a.on { background: var(--brand); color: #fff; font-weight: 600; }
.acct-side a .ico { font-size: 16px; }

.acct-hero {
  background: var(--brand);
  border-radius: 16px; padding: 22px 24px; color: #fff; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.acct-hero h2 { font-size: 21px; margin: 0 0 6px; color: #fff; }
.acct-hero p { margin: 0; opacity: .88; font-size: 13.5px; }
.acct-hero .stats { display: flex; gap: 26px; }
.acct-hero .stats .n { font-size: 24px; font-weight: 800; line-height: 1.1; }
.acct-hero .stats .l { font-size: 12px; opacity: .85; }

/* 订单卡片 */
.ord-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; transition: .16s; }
.ord-card:hover { box-shadow: var(--shadow); }
.ord-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 13px 18px; background: #fafbfc; border-bottom: 1px solid var(--line-2); font-size: 13px;
}
.ord-head .no { font-weight: 700; font-variant-numeric: tabular-nums; }
.ord-head .time { color: var(--text-3); font-size: 12.5px; }
.ord-body { padding: 16px 18px; display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.ord-items { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 10px; }
.ord-item { display: flex; gap: 12px; align-items: center; }
.ord-item img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; background: #fff; border: 1px solid var(--line); flex-shrink: 0; }
.ord-item .ph { width: 56px; height: 56px; border-radius: 9px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ord-item .nm { font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.ord-item .sp { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.ord-amt { text-align: right; min-width: 130px; }
.ord-amt .tot { font-size: 20px; font-weight: 800; color: #c2410c; }
.ord-amt .sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.ord-foot { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

/* 进度条 */
.pflow { display: flex; align-items: center; flex-wrap: wrap; gap: 0; padding: 14px 18px 6px; }
.pflow .stp { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #94a3b8; }
.pflow .stp .d2 {
  width: 19px; height: 19px; border-radius: 50%; background: #e2e8f0; color: #94a3b8;
  display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700;
}
.pflow .stp.on .d2 { background: var(--brand); color: #fff; box-shadow: 0 0 0 3px var(--brand-50); }
.pflow .stp.on { color: var(--brand); font-weight: 700; }
.pflow .stp.done .d2 { background: #10b981; color: #fff; }
.pflow .ln { flex: 1; min-width: 12px; height: 2px; background: #e2e8f0; margin: 0 7px; }
.pflow .ln.done { background: #10b981; }

/* 账单行 */
.bill-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; }
.bill-row:last-child { border-bottom: 0; }
.bill-row .bt { flex: 1; }
.bill-row .bt .t2 { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.bill-row .ba { font-weight: 700; color: #c2410c; font-variant-numeric: tabular-nums; }

/* 物流节点 */
.trace { border-left: 2px solid #e2e8f0; margin-left: 7px; padding-left: 15px; }
.trace .t { position: relative; padding-bottom: 12px; font-size: 13px; }
.trace .t::before { content: ''; position: absolute; left: -21px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; border: 2px solid #fff; }
.trace .t:first-child::before { background: var(--brand); }
.trace .t .tm { color: var(--text-3); font-size: 11.5px; }

/* 收银台 */
.cashier { text-align: center; }
.cashier .amt { font-size: 30px; font-weight: 800; color: #c2410c; margin-bottom: 4px; }
.cashier .qr { display: inline-block; margin: 12px 0; }
.cashier .qr svg { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 12px; padding: 7px; background: #fff; }
.cashier .no { font-size: 12px; color: var(--text-3); word-break: break-all; }
.cashier .chans { display: flex; gap: 10px; justify-content: center; margin: 12px 0 4px; flex-wrap: wrap; }
.cashier .chan {
  padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
  font-size: 13.5px; display: flex; align-items: center; gap: 7px; background: #fff;
}
.cashier .chan.on { border-color: var(--brand); color: var(--brand); font-weight: 700; background: var(--brand-50); }

.empty-block { text-align: center; padding: 54px 18px; color: var(--text-3); }
.empty-block .ic { font-size: 40px; opacity: .4; margin-bottom: 10px; }

/* ==========================================================================
   收款计划（会员中心 · 订单分期在线支付）
   ========================================================================== */

.pay-plan { margin-bottom: 6px; }

.pp-head {
  padding: 15px 16px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff 0%, var(--brand-50) 100%);
  border: 1px solid var(--brand-100);
}
.pp-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.pp-mode {
  font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px;
  background: var(--brand-100); color: var(--brand-dark); border: 1px solid #ffccc7;
}
.pp-mode.warni { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.pp-bartxt { font-size: 12.5px; color: var(--text-3); margin: 10px 0 7px; }
.pp-bartxt b { color: var(--text-2); font-variant-numeric: tabular-nums; }
.hbar { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.hbar.hbar-lg { height: 9px; }
.hbar i { display: block; height: 100%; border-radius: 999px; transition: width .35s; }

.pp-batch {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-lg);
  background: var(--bg-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2);
}
.pp-batch b { font-size: 17px; color: #c2410c; font-variant-numeric: tabular-nums; }
.pp-batch.done {
  justify-content: center; background: #f0fdf4; border-color: #bbf7d0; color: #047857; font-weight: 600;
}

.pp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px; margin-top: 12px;
}

.pcard {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 12px 13px 13px; background: #fff; transition: box-shadow .18s, transform .18s;
}
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard .pc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pcard .pc-name { font-size: 12.5px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .pc-badge { flex: none; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px;
  background: var(--line-2); color: var(--text-2); }
.pcard .pc-amt { font-size: 20px; font-weight: 700; margin-top: 8px; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.pcard .pc-due { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.pcard .pc-range { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.pcard .pc-part { font-size: 11.5px; margin-top: 7px; color: #b45309; }
.pcard .pc-part.ok { color: #047857; }
.pcard .pc-btn { margin-top: 10px; width: 100%; }

.pcard.unpaid { border-left: 3px solid #cbd5e1; }
.pcard.partial { border-left: 3px solid #f59e0b; background: #fffdf5; }
.pcard.partial .pc-badge { background: #fef3c7; color: #b45309; }
.pcard.overdue { border-left: 3px solid var(--brand); background: #fff7f6; }
.pcard.overdue .pc-badge { background: #fee2e2; color: #b91c1c; }
.pcard.overdue .pc-amt { color: var(--brand-dark); }
.pcard.paid { border-left: 3px solid #10b981; background: #f7fdfa; }
.pcard.paid .pc-badge { background: #d1fae5; color: #047857; }
.pcard.paid .pc-amt { color: #047857; }
.pcard.void { opacity: .5; }

/* ==========================================================================
   客户资料档案（前台 · 会员中心 + 下单引导）
   ========================================================================== */

/* 上传拖拽区 */
.doc-drop {
  border: 1.5px dashed var(--line); border-radius: var(--radius-lg);
  padding: 22px 16px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.doc-drop:hover { border-color: var(--brand); background: var(--brand-50); }
.doc-drop.on { border-color: var(--brand); background: var(--brand-50); }
.doc-drop .di { font-size: 26px; }
.doc-drop p { margin: 6px 0 0; font-size: 13px; color: var(--text-2); }

/* 待上传文件列表 */
.doc-flist { margin-top: 8px; }
.doc-frow, .doc-frow2 {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px;
  margin-top: 6px; background: #fff; font-size: 13px;
}
.doc-frow .fn { flex: 1; min-width: 0; }
.doc-fdel {
  border: 0; background: var(--line-2); color: var(--text-3);
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; flex: none;
}
.doc-fdel:hover { background: #fee2e2; color: #b91c1c; }

/* 订单详情 · 资料页签 */
.doc-sec-banner {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 16px; background: #f8fafc;
}
.doc-alert-warn, .doc-alert-danger {
  border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-top: 10px;
}
.doc-alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.doc-alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

.doc-sec-group { margin-top: 16px; }
.doc-sec-group .dg-t {
  font-weight: 700; font-size: 13.5px; color: var(--text);
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline;
}
.doc-sec-item {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; margin-top: 10px; background: #fff;
}
.doc-frow2 .fic { flex: none; font-size: 15px; }
.doc-frow2 .fn { flex: 1; min-width: 0; font-size: 12.5px; }
.doc-frow2 .acts { display: flex; gap: 5px; flex: none; flex-wrap: wrap; }
.doc-rejnote {
  font-size: 12px; color: #b91c1c; background: #fef2f2;
  border-radius: 8px; padding: 6px 10px; margin-top: 7px;
}
.doc-vmeta {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px;
  font-size: 12.5px; color: var(--text-3);
}

/* 我的资料 · KPI 与订单卡 */
.doc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.doc-kpis .dk {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 16px; background: #fff; display: flex; flex-direction: column; gap: 2px;
}
.doc-kpis .dk b { font-size: 24px; letter-spacing: -.5px; }
.doc-kpis .dk span { font-size: 12.5px; color: var(--text-3); }
.doc-kpis .dk.warn b { color: #c2410c; }
.doc-kpis .dk.ok b { color: #047857; }

.doc-ocard {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 15px 17px; background: #fff; margin-bottom: 12px;
  transition: box-shadow .18s;
}
.doc-ocard:hover { box-shadow: var(--shadow); }

/* 下单成功 · 资料提醒 */
.order-ok .doc-notice {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  font-size: 13px; color: var(--text-2); text-align: left;
}
.order-ok .doc-notice b { color: var(--brand-dark); }
.order-ok .doc-notice a { color: var(--brand); font-weight: 600; }

/* 迷你按钮 */
.btn-xs { padding: 2px 9px; font-size: 12px; border-radius: 7px; }
