/* portal 会员区样式：顶栏 / 抽屉用户菜单 / 卡片 / 登录注册 / 表单
   视觉取自原站 portal.generationlab.com 取证截图（浅灰底 + 白卡 + 棕 #975A16 强调） */

:root {
  --p-bg: #ececee;
  --p-card: #f8fafc;
  --p-ink: #1a202c;
  --p-sub: #4a5568;
  --p-mute: #a0aec0;
  --p-line: #cbd5e0;
  --p-brown: #975a16;
  --p-brown-dk: #7b4a12;
  --p-cream: #fbf6ec;
  --p-red: #c53030;
  --p-radius: 16px;
}

body.portal { background: var(--p-bg); color: var(--p-ink); margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; }
body.portal *, body.portal *::before, body.portal *::after { box-sizing: border-box; }

/* ---------- 顶栏 ---------- */
.p-topbar { background: #fafafa; border-bottom: 1px solid #e6e6e6; position: sticky; top: 0; z-index: 40; }
.p-topbar-in { max-width: 1400px; margin: 0 auto; padding: 0 32px; height: 80px; display: flex; align-items: center; justify-content: space-between; }
.p-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.p-logo img { height: 40px; width: auto; display: block; }
.p-nav { display: flex; align-items: center; gap: 8px; height: 100%; }
.p-nav a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 18px; color: var(--p-ink); text-decoration: none; font-size: 16px; }
.p-nav a.on { font-weight: 700; }
.p-nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--p-ink); }
.p-new { position: absolute; top: 18px; right: -6px; background: #f6c244; color: #1a202c; font-size: 10px; font-weight: 800; letter-spacing: .04em; border-radius: 999px; padding: 2px 8px; }
.p-avatar { width: 44px; height: 44px; margin-left: 14px; border-radius: 50%; background: #e2e2e2; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #718096; }
.p-avatar svg { width: 20px; height: 20px; }
.p-signin { margin-left: 14px; color: var(--p-brown); font-weight: 700; text-decoration: none; font-size: 15px; }

/* ---------- 内容区 ---------- */
.p-main { max-width: 1400px; margin: 0 auto; padding: 40px 32px 96px; }
.p-h { font-size: 26px; font-weight: 800; margin: 8px 0 24px; }
.p-card { background: var(--p-card); border-radius: var(--p-radius); padding: 40px; }
.p-card.center { text-align: center; }
.p-card img.empty { max-width: 340px; width: 100%; display: block; margin: 0 auto 18px; }
.p-empty-txt { font-size: 19px; color: var(--p-ink); margin: 6px 0 0; }
.p-note { color: var(--p-sub); font-size: 15px; line-height: 1.7; }
.p-link { color: var(--p-brown); text-decoration: underline; }

/* 按钮 */
.p-btn { display: inline-block; background: var(--p-brown); color: #fff; border: 0; border-radius: 999px; padding: 13px 30px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.p-btn:hover { background: var(--p-brown-dk); }
.p-btn.block { display: block; width: 100%; }
.p-btn.ghost { background: transparent; color: var(--p-brown); border: 1px solid var(--p-brown); }

/* ---------- 右下新功能浮卡 ---------- */
.p-feature { position: fixed; right: 24px; bottom: 24px; width: 440px; max-width: calc(100vw - 48px); background: var(--p-cream); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); padding: 28px; z-index: 60; }
.p-feature h3 { margin: 0 40px 18px 0; font-size: 23px; line-height: 1.3; font-weight: 800; }
.p-feature p { color: var(--p-sub); font-size: 15px; line-height: 1.65; margin: 0 0 12px; }
.p-feature ul { color: var(--p-sub); font-size: 15px; line-height: 1.8; margin: 0 0 12px; padding-left: 22px; }
.p-feature .x { position: absolute; top: 18px; right: 18px; border: 0; background: none; font-size: 20px; color: var(--p-brown); cursor: pointer; line-height: 1; }

/* ---------- 抽屉用户菜单 ---------- */
.p-mask { position: fixed; inset: 0; background: rgba(20, 20, 20, .45); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .25s; }
.p-mask.on { opacity: 1; pointer-events: auto; }
.p-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 330px; max-width: 88vw; background: #fafafa; z-index: 80; box-shadow: -12px 0 40px rgba(0, 0, 0, .18); transform: translateX(102%); transition: transform .28s ease; display: flex; flex-direction: column; padding: 22px 26px; }
.p-drawer.on { transform: none; }
.p-drawer .close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #90cdf4; background: #fff; color: #2b6cb0; font-size: 16px; cursor: pointer; }
.p-dhead { display: flex; gap: 12px; align-items: center; margin: 52px 0 26px; }
.p-dhead .av { width: 46px; height: 46px; border-radius: 50%; background: #e2e2e2; display: flex; align-items: center; justify-content: center; color: #718096; flex: none; }
.p-dhead .nm { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-dhead .plan { font-size: 10px; font-weight: 800; letter-spacing: .06em; background: #edf2f7; border-radius: 4px; padding: 3px 6px; }
.p-dhead .em { color: var(--p-mute); font-size: 13px; margin-top: 4px; word-break: break-all; }
.p-dgroup { border: 0; background: none; width: 100%; text-align: left; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--p-ink); padding: 12px 0; cursor: pointer; }
.p-dgroup .chev { transition: transform .2s; font-size: 12px; color: var(--p-sub); }
.p-dgroup.open .chev { transform: rotate(90deg); }
.p-ditems { display: none; padding: 2px 0 8px 24px; }
.p-ditems.on { display: block; }
.p-ditems a { display: block; color: var(--p-sub); font-size: 14px; text-decoration: none; padding: 9px 0; }
.p-ditems a:hover { color: var(--p-brown); }
.p-dfoot { margin-top: auto; text-align: center; }
.p-dfoot .out { border: 0; background: none; font-size: 15px; font-weight: 800; color: var(--p-ink); cursor: pointer; padding: 10px; }
.p-dfoot .legal { display: flex; justify-content: space-between; margin-top: 14px; }
.p-dfoot .legal a { color: var(--p-mute); font-size: 12px; text-decoration: none; }

/* ---------- 登录 / 注册 ---------- */
.p-auth-wrap { min-height: 100vh; padding: 60px 20px 80px; }
.p-auth-logo { display: block; width: 250px; margin: 40px auto 46px; }
.p-auth { max-width: 640px; margin: 0 auto; background: var(--p-card); border: 1px solid var(--p-line); }
.p-tabs { display: flex; }
.p-tabs button { flex: 1; background: none; border: 0; border-top: 3px solid transparent; padding: 18px 0 16px; font-size: 16px; font-weight: 800; color: var(--p-ink); cursor: pointer; }
.p-tabs button.on { border-top-color: var(--p-brown); color: var(--p-brown); }
.p-auth-in { padding: 26px 44px 44px; }
.p-switch { text-align: center; color: var(--p-ink); font-size: 16px; margin: 6px 0 26px; }
.p-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid var(--p-line); border-radius: 999px; padding: 13px 0; font-size: 16px; font-weight: 700; color: var(--p-ink); cursor: pointer; }
.p-google[disabled] { opacity: .55; cursor: not-allowed; }
.p-google .g { width: 18px; height: 18px; }
.p-disabled-note { text-align: center; color: var(--p-mute); font-size: 12px; margin: 8px 0 0; }
.p-or { display: flex; align-items: center; gap: 14px; color: var(--p-mute); font-size: 14px; margin: 22px 0; }
.p-or::before, .p-or::after { content: ""; flex: 1; height: 1px; background: var(--p-line); }
.p-field { margin-bottom: 20px; }
.p-field label { display: block; font-size: 15px; color: var(--p-ink); margin-bottom: 8px; }
.p-field label .req { color: var(--p-red); }
.p-inwrap { display: flex; border: 1px solid var(--p-line); border-radius: 6px; background: #fff; overflow: hidden; }
.p-inwrap input { flex: 1; border: 0; outline: none; padding: 13px 14px; font-size: 15px; color: var(--p-ink); background: transparent; min-width: 0; }
.p-inwrap input::placeholder { color: var(--p-mute); }
.p-inwrap .eye { width: 46px; border: 0; border-left: 1px solid var(--p-line); background: #fff; color: var(--p-sub); cursor: pointer; font-size: 15px; }
.p-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--p-ink); line-height: 1.5; margin: 4px 0 10px; }
.p-check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--p-red); flex: none; }
.p-err { color: var(--p-red); font-size: 14px; min-height: 20px; margin: 0 0 10px; }
.p-forgot { display: block; text-align: center; margin-top: 18px; color: var(--p-brown); font-size: 15px; }
.p-provider { text-align: center; color: var(--p-sub); font-size: 14px; margin-top: 26px; }

/* ---------- 账户资料 ---------- */
.p-acct-head { display: flex; align-items: center; gap: 22px; margin-bottom: 30px; }
.p-acct-head .av { width: 84px; height: 84px; border-radius: 50%; background: #e2e2e2; color: #718096; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.p-acct-head .av img { width: 100%; height: 100%; object-fit: cover; }
.p-acct-head .up { border: 1px solid var(--p-line); background: #fff; border-radius: 8px; padding: 9px 18px; font-size: 14px; cursor: pointer; color: var(--p-ink); }
.p-sub-h { font-size: 18px; font-weight: 800; margin: 0 0 18px; display: flex; align-items: center; justify-content: space-between; }
.p-sub-h .edit { border: 0; background: none; color: var(--p-brown); font-size: 14px; font-weight: 700; cursor: pointer; }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.p-grid .full { grid-column: 1 / -1; }
.p-form input[disabled], .p-form select[disabled] { background: #edf2f7; color: var(--p-sub); }
.p-form select { width: 100%; border: 1px solid var(--p-line); border-radius: 6px; background: #fff; padding: 13px 12px; font-size: 15px; color: var(--p-ink); outline: none; }
.p-save { margin-top: 24px; display: none; }
.p-save.on { display: block; }
.p-toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); background: var(--p-ink); color: #fff; border-radius: 999px; padding: 11px 26px; font-size: 14px; z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.p-toast.on { opacity: 1; }

/* ---------- 预约三卡 ---------- */
.p-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
.p-cards3 .c { background: var(--p-card); border-radius: var(--p-radius); padding: 30px 26px; text-align: center; }
.p-cards3 img { width: 150px; height: 110px; object-fit: contain; display: block; margin: 0 auto 16px; }
.p-cards3 h4 { margin: 0 0 10px; font-size: 17px; font-weight: 800; }
.p-cards3 p { margin: 0; color: var(--p-sub); font-size: 14px; line-height: 1.65; text-align: left; }
.p-sec-title { text-align: center; color: var(--p-mute); font-size: 21px; font-weight: 800; margin: 60px 0 6px; }

/* ---------- 视频卡（reports） ---------- */
.p-video-card { background: #e8e8e8; border-radius: var(--p-radius); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 34px; align-items: center; }
.p-video-card h3 { margin: 0 0 18px; font-size: 22px; color: var(--p-sub); font-weight: 700; }
.p-video-card p { color: var(--p-sub); font-size: 15px; line-height: 1.75; margin: 0 0 14px; }
.p-video-card video { width: 100%; border-radius: 12px; display: block; background: #000; }

@media (max-width: 900px) {
  .p-topbar-in { padding: 0 18px; }
  .p-nav a { padding: 0 10px; font-size: 14px; }
  .p-main { padding: 26px 18px 90px; }
  .p-grid, .p-video-card, .p-cards3 { grid-template-columns: 1fr; }
  .p-auth-in { padding: 22px 22px 34px; }
}
