/* ============================================================
   东方心语 — 合规页面补充样式（关于我们 / 协议 / 下单 / 保障）
   ============================================================ */

/* 讲师字母徽标（不使用虚构人像） */
.mentor-monogram {
  aspect-ratio: 4/5;
  border-radius: 24px 4px 24px 24px;
  background:
    radial-gradient(120% 90% at 20% 10%, #FFFFFF 0%, rgba(255,255,255,0) 55%),
    linear-gradient(150deg, #23554B 0%, #1F4B43 55%, #2E6B5E 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 34px 30px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.mentor-monogram::before {
  content: "陈"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%);
  font-family: var(--serif); font-size: 190px; line-height: 1; color: rgba(255,255,255,.10);
}
.mentor-monogram .m-name { font-family: var(--serif); font-size: 30px; letter-spacing: 3px; position: relative; }
.mentor-monogram .m-role { font-size: 13px; opacity: .78; letter-spacing: 1.5px; margin-top: 6px; position: relative; }
.mentor-monogram .m-line { width: 46px; height: 2px; background: var(--gold); margin-bottom: 18px; position: relative; }

.mentor-inline .monogram-sm {
  width: 132px; height: 160px; flex: none; border-radius: 18px;
  background: linear-gradient(150deg, #23554B, #1F4B43);
  color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-size: 56px; letter-spacing: 2px; box-shadow: var(--shadow);
}

/* 服务保障条 */
.guard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.guard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .3s, box-shadow .3s;
}
.guard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.guard .g-ico { font-size: 22px; margin-bottom: 12px; }
.guard h3 { font-size: 17px; margin-bottom: 6px; }
.guard p { font-size: 13.8px; color: var(--muted); line-height: 1.7; }

/* 主体信息表 */
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 12px 34px; }
.info-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.info-row:last-child { border-bottom: none; }
.info-row dt { color: var(--muted); }
.info-row dd { color: var(--ink); word-break: break-all; }
.info-row dd a { color: var(--accent-deep); }

/* 页内标题（左侧竖条） */
.block-title { font-size: 22px; margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.block-title::before { content: ""; width: 5px; height: 22px; border-radius: 3px; background: var(--accent); }

/* 协议类长文档 */
.legal-wrap { max-width: 900px; margin: 0 auto; }
.legal-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 52px 56px; }
.legal-card h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.legal-meta { color: var(--muted); font-size: 13.5px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.legal-card h2 { font-size: 18px; margin: 34px 0 12px; }
.legal-card h3 { font-size: 15.5px; margin: 22px 0 8px; color: var(--brand); }
.legal-card p, .legal-card li { font-size: 14.8px; color: #3B4A45; line-height: 1.95; }
.legal-card p { margin-bottom: 12px; }
.legal-card ul, .legal-card ol { padding-left: 22px; margin-bottom: 14px; }
.legal-card li { list-style: disc; margin-bottom: 6px; }
.legal-card ol li { list-style: decimal; }
.legal-card strong { color: var(--ink); }
.legal-note { background: var(--bg); border-left: 3px solid var(--gold); border-radius: 8px; padding: 16px 20px; font-size: 14px; color: var(--muted); margin: 22px 0; }
.legal-toc { background: var(--bg); border-radius: 14px; padding: 20px 24px; margin-bottom: 30px; }
.legal-toc a { font-size: 14px; color: var(--brand); display: block; padding: 4px 0; }
.legal-toc a:hover { color: var(--accent-deep); }

/* 下单页 */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 34px 36px; }
.panel + .panel { margin-top: 24px; }
.panel h2 { font-size: 19px; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.panel h2::before { content: ""; width: 4px; height: 19px; background: var(--accent); border-radius: 3px; }

.order-item { display: flex; gap: 18px; align-items: center; padding-bottom: 20px; border-bottom: 1px dashed var(--line); }
.order-item img { width: 132px; height: 92px; object-fit: cover; border-radius: 12px; flex: none; }
.order-item h3 { font-size: 16.5px; line-height: 1.55; }
.order-item .o-meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.order-item .o-price { margin-left: auto; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--accent-deep); white-space: nowrap; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--ink); font-weight: 600; }
.field label .req { color: var(--accent); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  border: 1px solid var(--line); background: var(--bg); border-radius: 10px;
  padding: 12px 14px; outline: none; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,75,67,.08); background: #fff; }
.field .hint { font-size: 12.5px; color: var(--muted); }

.pay-option {
  display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--brand);
  background: var(--brand-soft); border-radius: 12px; padding: 16px 18px;
}
.pay-option .wechat { width: 34px; height: 34px; border-radius: 9px; background: #09BB07; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.pay-option b { font-size: 15px; display: block; }
.pay-option span { font-size: 12.5px; color: var(--muted); }

.agree-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin-top: 22px; }
.agree-row input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.agree-row a { color: var(--brand); text-decoration: underline; }

.sum-row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--muted); padding: 7px 0; }
.sum-row.total { font-size: 16px; color: var(--ink); font-weight: 600; padding-top: 16px; margin-top: 10px; border-top: 1px solid var(--line); }
.sum-row.total b { font-family: var(--serif); font-size: 28px; color: var(--accent-deep); }
.panel .btn { width: 100%; margin-top: 18px; }
.pay-tip { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.7; }
.safe-row { display: flex; justify-content: space-around; font-size: 12.5px; color: var(--muted); margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }

/* 支付结果 */
.result-card { max-width: 720px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 52px 48px; text-align: center; }
.result-ico {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 22px;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 34px;
}
.result-card h1 { font-size: 26px; margin-bottom: 10px; }
.result-card > p { color: var(--muted); font-size: 15px; }
.result-detail { text-align: left; background: var(--bg); border-radius: 14px; padding: 8px 22px; margin: 28px 0; }
.rd-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.rd-row:last-child { border-bottom: none; }
.rd-row span { color: var(--muted); }
.rd-row b { text-align: right; }
.result-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 客诉渠道 */
.complaint-box {
  background: var(--accent-soft); border-radius: 16px; padding: 26px 30px; margin-top: 28px;
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.complaint-box h4 { font-size: 16px; margin-bottom: 4px; }
.complaint-box p { font-size: 13.8px; color: var(--muted); }
.complaint-box .btn { flex: none; }

/* 联系卡片 */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.contact-card .c-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 20px; margin-bottom: 16px; }
.contact-card h3 { font-size: 16px; margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: 14.5px; color: var(--muted); line-height: 1.8; word-break: break-all; }
.contact-card a:hover { color: var(--accent-deep); }

/* 页脚补充 */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.footer-legal a:hover { color: var(--gold); }
.footer-entity { font-size: 12.8px; opacity: .6; line-height: 1.9; }

@media (max-width: 960px) {
  .guard-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-grid { grid-template-columns: 1fr; }
  .legal-card { padding: 34px 26px; }
  .info-row { grid-template-columns: 1fr; gap: 6px; }
  .info-card { padding: 8px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .order-item { flex-wrap: wrap; }
  .order-item .o-price { margin-left: 0; }
  .result-card { padding: 36px 24px; }
}
@media (max-width: 640px) {
  .guard-grid, .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   会员中心 / 学习 / 订单 / 收银台
   ============================================================ */

/* 登录页 */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 42px 38px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 24px; margin-bottom: 8px; }
.auth-card .auth-sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.auth-tab {
  flex: 1; padding: 10px 0; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--muted); font-size: 14.5px; font-weight: 600;
  cursor: pointer; font-family: var(--sans); transition: all .25s;
}
.auth-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
#loginError { display: none; font-size: 13.5px; color: #B0452B; margin-top: 14px; }
.auth-card .field { margin-bottom: 18px; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12.5px; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card .btn { width: 100%; }
.auth-foot { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 20px; }
.auth-foot a { color: var(--accent-deep); }

/* 会员中心 */
.member-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.member-head h1 { font-size: clamp(22px, 2.8vw, 30px); }
.member-head .hi { font-size: 14px; color: var(--muted); }
.member-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.member-grid .course-card { flex-direction: row; }
.member-grid .course-cover { width: 200px; flex: none; }
.member-grid .course-cover img { height: 100%; aspect-ratio: auto; }
.empty-box { background: var(--paper); border: 1px dashed var(--line); border-radius: 18px; padding: 56px 24px; text-align: center; color: var(--muted); }
.empty-box .big { font-size: 40px; margin-bottom: 12px; }
.empty-box .btn { margin-top: 18px; }

/* 订单列表 */
.order-row {
  display: flex; align-items: center; gap: 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; margin-bottom: 14px; flex-wrap: wrap;
}
.order-row img { width: 96px; height: 66px; object-fit: cover; border-radius: 10px; flex: none; }
.o-info { flex: 1; min-width: 200px; }
.o-info b { display: block; font-size: 15.5px; line-height: 1.5; }
.o-info span { font-size: 12.5px; color: var(--muted); }
.o-amount { text-align: right; font-family: var(--serif); font-weight: 700; font-size: 19px; }
.o-amount em { display: block; font-style: normal; font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.o-actions { display: flex; gap: 10px; align-items: center; }

/* 学习页 */
.learn-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.learn-main { background: #141C1A; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.learn-main video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.learn-now { color: #E8EFEA; font-size: 15px; padding: 16px 22px; border-top: 1px solid rgba(255,255,255,.08); }
.learn-now small { display: block; color: #8FA39C; font-size: 12px; margin-top: 3px; }
.learn-side { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.learn-side .side-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.learn-side .side-head b { font-size: 15px; }
.learn-side .side-head span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.ch-scroll { max-height: 520px; overflow-y: auto; }
.ch-title { font-size: 13px; color: var(--accent-deep); background: var(--accent-soft); padding: 9px 20px; font-weight: 600; }
.ch-item {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  background: none; border: none; border-bottom: 1px solid var(--line);
  padding: 13px 20px; cursor: pointer; font-family: var(--sans); font-size: 14px; color: var(--ink);
  transition: background .2s;
}
.ch-item:hover { background: var(--bg); }
.ch-item.active { background: var(--brand-soft); }
.ch-no { font-family: var(--serif); color: var(--brand); font-weight: 700; flex: none; font-size: 13px; }
.ch-name { flex: 1; line-height: 1.5; }
.ch-dur { font-size: 12px; color: var(--muted); flex: none; }
.ch-item.trial .ch-dur { color: var(--accent-deep); }
.learn-desc { margin-top: 24px; }
.material-row { display: flex; justify-content: space-between; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; font-size: 14.5px; }
.material-row a { color: var(--brand); font-weight: 600; font-size: 13.5px; }
.buy-bar {
  display: none; position: sticky; bottom: 16px; z-index: 50;
  align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 16px 22px; margin-top: 22px;
}
.buy-bar .b-price { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--accent-deep); }
.buy-bar .b-title { flex: 1; font-size: 14px; color: var(--muted); }

/* 收银台 */
.pay-wrap { max-width: 560px; margin: 0 auto; }
.pay-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 36px 34px; text-align: center; box-shadow: var(--shadow); }
.pay-card .p-label { font-size: 13px; color: var(--muted); }
.pay-card .p-amount { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--accent-deep); margin: 8px 0 4px; }
.pay-card .p-course { font-size: 14.5px; margin-bottom: 4px; }
.pay-card .p-no { font-size: 12.5px; color: var(--muted); }
.pay-area { margin-top: 26px; padding-top: 24px; border-top: 1px dashed var(--line); }
.pay-area .wx-mark { width: 52px; height: 52px; border-radius: 14px; background: #09BB07; color: #fff; font-size: 24px; display: grid; place-items: center; margin: 0 auto 12px; }
.pay-area .btn { width: 100%; }
.pay-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.8; }
#notWxArea { display: none; }
.qr-tip { background: var(--bg); border-radius: 12px; padding: 16px 18px; font-size: 13.5px; color: var(--muted); text-align: left; margin-bottom: 16px; line-height: 1.9; }
.qr-tip .link { display: block; font-size: 12px; color: var(--brand); word-break: break-all; margin-top: 6px; }
#payMsg { font-size: 13.5px; color: #B0452B; margin-top: 14px; }

/* 欢迎横幅 */
.welcome-band { display: none; background: var(--brand-soft); border: 1px solid #CBDDD4; border-radius: 14px; padding: 14px 20px; font-size: 14.5px; color: var(--brand); margin-bottom: 22px; }

@media (max-width: 960px) {
  .member-grid { grid-template-columns: 1fr; }
  .member-grid .course-card { flex-direction: column; }
  .member-grid .course-cover { width: 100%; }
  .member-grid .course-cover img { aspect-ratio: 16/9; }
  .learn-grid { grid-template-columns: 1fr; }
  .ch-scroll { max-height: 340px; }
}

