/* 会员中心专用样式（用户端大界面） */
:root {
  --brand: #2563eb; --brand-2: #3b82f6; --purple: #8b5cf6;
  --ink: #0f172a; --ink-2: #475569; --ink-3: #94a3b8;
  --bg: #f1f5f9; --card: #ffffff; --line: #e2e8f0;
}
/* 全局表单控件统一（与 admin.css 同规格，修复选择框/输入框适配） */
input[type=text], input[type=password], input[type=number], input[type=email],
input[type=url], input[type=tel], input[type=search], select, textarea {
  font-family: inherit; font-size: 14px; color: #0f172a;
  line-height: 1.5; height: 38px; padding: 0 12px;
  border: 1px solid #cbd5e1; border-radius: 8px;
  background: #fff; outline: none; width: 100%; max-width: 100%;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
select { padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 13px;
}
textarea { height: auto; min-height: 80px; padding: 9px 12px; resize: vertical; line-height: 1.65; }
input:focus, select:focus, textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
input::placeholder, textarea::placeholder { color: #a8b3c5; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; cursor: pointer; accent-color: #2563eb; vertical-align: -3px; margin-right: 6px; }
input:disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.p-login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0b1c3d 0%, #1e3a8a 50%, #312e81 100%); padding: 20px;
}
.p-login-hero { display: flex; gap: 0; border-radius: 18px; overflow: hidden; max-width: 920px; width: 100%; box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.p-login-left { flex: 1.1; background: rgba(255,255,255,.06); backdrop-filter: blur(10px); padding: 48px 42px; color: #e2e8f0; display: flex; flex-direction: column; justify-content: center; }
.p-login-left h1 { font-size: 26px; color: #fff; margin-bottom: 10px; }
.p-login-left p { font-size: 14px; line-height: 1.9; color: #cbd5e1; margin-bottom: 18px; }
.p-login-left .feats { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.p-login-left .feats li { font-size: 13px; color: #cbd5e1; display: flex; align-items: center; gap: 8px; }
.p-login-left .feats li::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; background: #10b981; color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.p-login-right { flex: 1; background: #fff; padding: 44px 40px; }
.p-login-right h2 { font-size: 20px; margin-bottom: 4px; }
.p-login-right .sub { color: var(--ink-3); font-size: 13px; margin-bottom: 22px; }

/* 会员中心主布局 */
.p-layout { min-height: 100vh; background: var(--bg); }
.p-topbar { background: linear-gradient(120deg, #0b1c3d, #1e3a8a); color: #fff; padding: 0 28px; height: 62px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.p-topbar .brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.p-topbar .brand .mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
.p-topbar .who { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: #cbd5e1; }
.p-topbar .who a { color: #cbd5e1; } .p-topbar .who a:hover { color: #fff; }
.p-tabs { background: #fff; border-bottom: 1px solid var(--line); padding: 0 28px; display: flex; gap: 4px; overflow-x: auto; }
.p-tabs a { padding: 14px 18px; font-size: 14px; color: var(--ink-2); border-bottom: 2.5px solid transparent; white-space: nowrap; text-decoration: none; }
.p-tabs a:hover { color: var(--brand); text-decoration: none; }
.p-tabs a.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.p-body { max-width: 1080px; margin: 0 auto; padding: 26px 20px 60px; }

/* 会员卡片大界面 */
.vip-hero {
  background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #7c3aed 100%);
  border-radius: 18px; color: #fff; padding: 30px 32px; position: relative; overflow: hidden;
  margin-bottom: 22px; box-shadow: 0 12px 40px rgba(37,99,235,.28);
}
.vip-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.09); }
.vip-hero::before { content: ""; position: absolute; right: 60px; bottom: -120px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.06); }
.vip-hero .vh-row { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; flex-wrap: wrap; gap: 18px; }
.vip-hero .vh-name { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.vip-hero .vh-kind { display: inline-block; padding: 3px 14px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 13px; margin-bottom: 12px; }
.vip-hero .vh-grid { display: flex; gap: 36px; flex-wrap: wrap; }
.vip-hero .vh-item .l { font-size: 12px; opacity: .75; margin-bottom: 3px; }
.vip-hero .vh-item .v { font-size: 17px; font-weight: 600; font-family: Consolas, monospace; }
.vip-hero .vh-status { text-align: right; }
.vip-hero .vh-status .s { font-size: 15px; font-weight: 600; padding: 5px 18px; border-radius: 999px; background: rgba(255,255,255,.2); display: inline-block; }
.vip-hero .machine { margin-top: 18px; background: rgba(0,0,0,.22); border-radius: 12px; padding: 13px 16px; display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.vip-hero .machine .l { font-size: 12.5px; opacity: .8; flex-shrink: 0; }
.vip-hero .machine .code { font-family: Consolas, monospace; font-size: 15px; letter-spacing: .5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vip-hero .machine button { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-size: 12.5px; flex-shrink: 0; }
.vip-hero .machine button:hover { background: rgba(255,255,255,.28); }

/* 价格表 */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.price-card { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 20px 16px; text-align: center; position: relative; transition: all .18s; }
.price-card:hover { border-color: var(--brand-2); box-shadow: 0 8px 26px rgba(37,99,235,.14); transform: translateY(-3px); }
.price-card.hot { border-color: var(--brand); }
.price-card .tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg,#f59e0b,#f97316); color: #fff; font-size: 11px; padding: 2px 12px; border-radius: 999px; white-space: nowrap; }
.price-card .nm { font-size: 14.5px; color: var(--ink-2); margin-bottom: 8px; }
.price-card .pr { font-size: 24px; font-weight: 700; color: var(--ink); }
.price-card .pr small { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.price-card .du { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.price-note { text-align: center; color: var(--ink-3); font-size: 12.5px; margin-top: 14px; }

/* 工单 */
.ticket-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.ticket-item .ti-head { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; }
.ticket-item .ti-head:hover { background: #f8fafc; }
.ticket-item .ti-subject { font-size: 15px; font-weight: 600; }
.ticket-item .ti-meta { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.ticket-item .ti-body { padding: 0 20px 18px; display: none; }
.ticket-item.open .ti-body { display: block; }
.t-msg { border-radius: 12px; padding: 13px 16px; margin-top: 10px; font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-all; }
.t-msg.me { background: #eff6ff; border-left: 3px solid var(--brand); }
.t-msg.admin { background: #f0fdf4; border-left: 3px solid #10b981; }
.t-msg .t-from { font-size: 11.5px; color: var(--ink-3); margin-bottom: 6px; }
.t-reply-box { margin-top: 12px; }
.t-reply-box textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; font-family: inherit; min-height: 74px; resize: vertical; outline: none; }
.t-reply-box textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }

/* 表单页 */
.p-form-card { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 28px; max-width: 560px; margin: 0 auto; }
.p-form-card h3 { font-size: 17px; margin-bottom: 6px; }
.p-form-card .desc { color: var(--ink-3); font-size: 13px; margin-bottom: 20px; line-height: 1.7; }

/* 客户端下载卡片 */
.dl-vcard { border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 16px; text-decoration: none; color: #0f172a; display: flex; flex-direction: column; gap: 6px; transition: all .16s; }
.dl-vcard:hover { border-color: #93c5fd; box-shadow: 0 8px 24px rgba(37,99,235,.12); transform: translateY(-3px); text-decoration: none; }
.dl-vcard.rec { border-color: #2563eb; background: linear-gradient(180deg,#eff6ff,#fff); }
.dlv-top { display: flex; align-items: center; gap: 8px; }
.dlv-ver { font-size: 15px; font-weight: 700; }
.dlv-tag { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: #2563eb; color: #fff; }
.dlv-tag.beta { background: #d97706; }
.dlv-note { font-size: 12.5px; color: #475569; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dlv-meta { font-size: 11.5px; color: #94a3b8; }
.dlv-btn { margin-top: 6px; text-align: center; padding: 8px; border-radius: 9px; background: linear-gradient(135deg,#2563eb,#3b82f6); color: #fff; font-size: 13px; font-weight: 600; }
.dl-vcard:hover .dlv-btn { filter: brightness(1.1); }

@media (max-width: 760px) {
  .p-login-hero { flex-direction: column; }
  .p-login-left { padding: 32px 26px; }
  .vip-hero { padding: 22px; }
  .vip-hero .vh-grid { gap: 18px; }
  .p-body { padding: 16px 12px 50px; }
}
