/* member-portal.css */
.member-panel { margin: 0 0 26px; }
.member-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:22px; }
.member-head h2 { margin:0 0 5px; font-size:23px; line-height:1.4; }
.member-head p { margin:0; color:var(--muted); font-size:14px; }
.member-state { flex:none; border:1px solid var(--line); border-radius:999px; padding:5px 12px; font-size:13px; background:var(--gold-soft); }
.member-state.expired { color:#963735; background:#fff0ed; border-color:#e5c7c1; }
.member-stats { margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid var(--line); }
.member-stats div { padding:19px 15px 19px 0; border-bottom:1px solid var(--line); }
.member-stats div:last-child { grid-column:span 2; }
.member-stats dt { font-size:12px; color:var(--muted); margin-bottom:7px; }
.member-stats dd { margin:0; font-size:23px; line-height:1.45; font-weight:650; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.member-stats .member-expiry { font-size:16px; padding-top:6px; }
.member-help { color:var(--muted); font-size:12px; margin:12px 0 0; }
.member-message { padding:17px 0; margin:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); max-width:72ch; }
.member-panel .actions { margin-top:18px; }
.member-panel .actions .hint { flex-basis:100%; }
.member-panel details { margin-top:24px; border-top:1px solid var(--line); padding-top:18px; }
.member-panel summary { cursor:pointer; font-weight:650; list-style-position:outside; margin-left:17px; }
.member-panel summary:focus-visible { outline:2px solid var(--gold-ink); outline-offset:5px; }
.member-panel .manager-form { margin-top:18px; }
.member-rule { margin:12px 0 0; color:var(--muted); font-size:13px; max-width:72ch; }
.member-table-scroll { overflow:auto; margin-top:14px; max-height:360px; }
.member-table { width:100%; border-collapse:collapse; font-size:13px; text-align:left; }
.member-table th { color:var(--muted); font-weight:500; }
.member-table td,.member-table th { padding:12px 12px 12px 0; border-bottom:1px solid var(--line); white-space:nowrap; }
.member-table td:last-child { font-variant-numeric:tabular-nums; }
.member-empty { color:var(--muted); margin:14px 0 0; font-size:14px; }
.member-orders { margin:14px 0 0; padding:0; list-style:none; }
.member-orders li { padding:13px 0; border-bottom:1px solid var(--line); font-size:13px; overflow-wrap:anywhere; }
.member-orders strong { font-weight:650; }
.member-orders .btn { min-height:38px; padding:0 13px; font-size:12px; margin:8px 0 0; }
.member-form-note { margin:0; color:var(--muted); font-size:13px; }
.member-notice { min-height:1.7em; margin:15px 0 0; color:var(--ok); font-size:14px; overflow-wrap:anywhere; }
.member-notice.error { color:#a43238; }
.auth-switch { flex-wrap:wrap; gap:12px 22px; }
.auth-switch button { min-height:44px; }
#manager-new .wide { grid-column:1/-1; }
#member-profile-info { overflow-wrap:anywhere; font-size:13px; color:var(--muted); }
.member-panel input::placeholder { color:var(--muted); }
.member-panel input { caret-color:var(--gold-ink); }
.member-panel ::selection { background:var(--gold-soft); color:var(--ink); }
@media(max-width:760px) {
 .member-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .member-head { flex-wrap:wrap; gap:12px; }
 .member-stats dd { font-size:21px; }
 .member-panel .actions .btn { min-height:46px; }
}
@media(prefers-reduced-motion:reduce) { .member-panel .btn { transition:none; } }

/* cocreate.css */
.cocreate-join { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; width:fit-content; max-width:100%; margin-top:22px; padding:17px 22px; border:1px solid #cfa65b; border-radius:14px; background:#fcf6e7; color:#805615; font-size:20px; line-height:1.5; font-weight:700; text-decoration:none; transition:background .18s ease,border-color .18s ease; }
.cocreate-join:hover { background:#f4e7c7; border-color:#9d7024; }
.cocreate-join:focus-visible { outline:3px solid #89611c; outline-offset:5px; }
.cocreate-join svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.cocreate-separator { color:#b38b45; font-weight:400; }
.cocreate-gold { color:#805615; }
@supports (background-clip:text) { .cocreate-gold { background:linear-gradient(110deg,#735015 0%,#9b6b1b 45%,#735015 80%); background-clip:text; -webkit-background-clip:text; color:transparent; } }
.cocreate-benefits { padding:0 0 28px; margin:0 0 26px; border-bottom:1px solid #e8e1d1; }
.cocreate-benefits h2 { margin:0 0 12px; font-size:22px; line-height:1.45; }
.cocreate-benefits p { max-width:72ch; margin:0 0 14px; color:#5f6779; }
.cocreate-benefits ul { padding-left:21px; margin:18px 0; max-width:72ch; }
.cocreate-benefits li { padding-left:3px; margin:7px 0; }
.cocreate-reward { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px 15px; padding:17px 0; border-block:1px solid #e8e1d1; }
.cocreate-reward strong { color:#805615; font-size:26px; font-weight:700; letter-spacing:-.025em; font-variant-numeric:tabular-nums; }
.cocreate-reward strong b { display:inline-block; font-weight:inherit; white-space:nowrap; }
.cocreate-reward span { width:100%; font-size:13px; }
.cocreate-benefits .cocreate-source { font-size:12px; margin-bottom:0; }
.cocreate-source a { text-underline-offset:3px; color:#805615; }
#portal-intro.is-member { padding:28px 30px; border-radius:16px; background:#14213b; color:#f7e7be; }
#portal-intro.is-member h1 { font-size:34px; margin:0 0 16px; color:#f7e7be; }
@supports (background-clip:text) { #portal-intro.is-member h1 { background:linear-gradient(105deg,#d6ad67,#f8e8bc 50%,#d6ad67); background-clip:text; -webkit-background-clip:text; color:transparent; } }
#portal-validity .member-validity { color:#e3cfaa; margin:0 0 9px; max-width:none; }
.member-validity span { display:block; font-size:13px; margin-bottom:4px; }
.member-validity strong { display:block; color:#fff6df; font-size:24px; font-weight:600; line-height:1.4; font-variant-numeric:tabular-nums; }
#portal-validity #member-account-name { color:#dacbac; margin:0; font-size:13px; overflow-wrap:anywhere; max-width:none; }
.member-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.member-stats div:last-child { grid-column:auto; }
.member-paid { color:#5f6779; font-size:12px; margin:4px 0 0; }
.cocreate-plans { border:0; padding:0; margin:8px 0 0; min-width:0; }
.cocreate-plans legend { padding:0; margin-bottom:12px; font-size:15px; font-weight:650; }
.plan-options { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.cocreate-plans[data-renewal] .plan-options { grid-template-columns:repeat(4,minmax(0,1fr)); }
.plan-choice { position:relative; cursor:pointer; min-width:0; }
.plan-choice input { position:absolute; opacity:0; width:1px; height:1px; }
.plan-choice .plan-body { display:flex; flex-direction:column; height:100%; padding:14px 12px; border:1px solid #cfc4ac; border-radius:12px; background:#fffdf8; font-size:13px; font-weight:400; line-height:1.55; transition:background .16s ease,border-color .16s ease; }
.plan-choice input:checked + .plan-body { background:#f7efdc; border:2px solid #89611c; padding:13px 11px; }
.plan-choice input:focus-visible + .plan-body { outline:2px solid #89611c; outline-offset:4px; }
.plan-choice:hover .plan-body { background:#fcf6e9; }
.plan-name { font-size:14px; font-weight:650; color:#33415c; }
.plan-price { color:#13203a; font-size:25px; font-weight:700; font-variant-numeric:tabular-nums; margin-top:8px; line-height:1.3; }
.plan-price-line { display:flex; align-items:baseline; gap:8px; min-height:34px; margin-top:8px; white-space:nowrap; }
.plan-price-line .plan-price { margin-top:0; }
.plan-before { color:#5f6779; font-size:12px; font-variant-numeric:tabular-nums; }
.price-changing { animation:price-change .65s cubic-bezier(.16,1,.3,1); }
@keyframes price-change { 0% { transform:translateY(-2px); filter:blur(.5px); opacity:.7; } 100% { transform:translateY(0); filter:blur(0); opacity:1; } }
#new-inviter-note.error,#member-edit-inviter-note.error { color:#9e2838; }
.plan-period { color:#5f6779; font-size:12px; margin:3px 0 8px; }
.plan-discount { color:#765019; font-size:12px; font-weight:600; margin-top:auto; }
.plan-summary { margin:11px 0 0; color:#5f6779; font-size:13px; }
.cocreate-plans:disabled { opacity:.65; }
#new-inviter[readonly],#member-edit-inviter[readonly] { background:#f5f0e4; border-color:#c8b586; }
@media(max-width:760px) {
 .plan-options,.cocreate-plans[data-renewal] .plan-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .member-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #portal-intro.is-member { padding:23px 20px; }
 #portal-intro.is-member h1 { font-size:29px; }
 .member-validity strong { font-size:21px; }
 .cocreate-benefits h2 { font-size:21px; }
 .cocreate-join { font-size:18px; padding:15px 17px; gap:8px; }
}
@media(prefers-reduced-motion:reduce) { .cocreate-join,.plan-body { transition:none; } .price-changing { animation:none; } }

/* cocreate-cases.css */
.registration-cases { margin:46px 0 24px; padding-top:32px; border-top:1px solid var(--line); }
.registration-cases h2 { margin:0 0 9px; font-size:28px; line-height:1.4; letter-spacing:-.02em; }
.registration-cases > p { margin:0; color:var(--muted); max-width:68ch; }
.case-tabs { display:flex; gap:28px; margin:24px 0; border-bottom:1px solid var(--line); }
.case-tabs button { min-height:44px; padding:8px 0 12px; color:var(--muted); background:transparent; border:0; border-bottom:2px solid transparent; cursor:pointer; font-weight:600; }
.case-tabs button[aria-selected="true"] { color:var(--ink); border-bottom-color:var(--gold-ink); }
.case-tabs button:hover { color:var(--gold-ink); }
.case-tabs small { margin-left:5px; font-size:12px; font-weight:400; font-variant-numeric:tabular-nums; }
.case-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px 18px; align-items:start; }
.case-gallery figure { margin:0; min-width:0; }
.case-open { display:block; position:relative; width:100%; padding:0; border:0; border-radius:12px; background:var(--paper); cursor:zoom-in; }
.case-open img { display:block; width:100%; height:auto; border-radius:12px; }
.case-zoom { display:grid; place-items:center; position:absolute; right:0; bottom:-40px; width:32px; height:32px; border-radius:8px; color:var(--ink); background:#fffdf8; box-shadow:0 2px 8px #13203a20; }
.case-zoom svg,.case-dialog button svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.case-open:hover .case-zoom { color:var(--gold-ink); }
.case-open.image-error::after { content:'图片暂未加载，点开重试'; position:absolute; inset:0; display:grid; place-items:center; padding:14px; color:var(--muted); background:var(--paper); font-size:13px; }
.case-gallery figcaption { display:flex; flex-direction:column; gap:3px; margin-top:10px; padding-right:40px; overflow-wrap:anywhere; }
.case-gallery figcaption span { color:var(--muted); font-size:12px; }
.case-gallery figcaption strong { font-size:15px; line-height:1.5; font-weight:600; font-variant-numeric:tabular-nums; }
.registration-cases .case-help { margin-top:22px; font-size:12px; }
.case-dialog { width:min(1040px,calc(100% - 32px)); max-height:92dvh; padding:0; border:0; border-radius:14px; background:var(--paper); color:var(--ink); box-shadow:0 18px 64px #13203a40; }
.case-dialog::backdrop { background:#13203ab8; }
.case-dialog[open] { display:flex; flex-direction:column; }
.case-dialog header { display:flex; flex:none; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid var(--line); }
.case-dialog h3 { flex:1; min-width:0; margin:0; font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
.case-dialog .case-controls { display:flex; flex:none; gap:5px; }
.case-dialog button { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid var(--line); border-radius:8px; background:transparent; cursor:pointer; }
.case-dialog button:hover { border-color:var(--gold-ink); color:var(--gold-ink); }
.case-preview { min-height:0; overflow:auto; overscroll-behavior:contain; }
.case-preview img { display:block; width:100%; height:auto; }
.case-preview-status { padding:0 18px; font-size:13px; color:var(--muted); }
.case-dialog .case-retry { width:auto; padding:0 16px; margin:0 18px 18px; align-self:flex-start; }
body.case-viewing { overflow:hidden; }
@media(max-width:760px) { .case-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 14px; } .registration-cases h2 { font-size:24px; } }
@media(max-width:480px) { .case-dialog header { align-items:flex-start; flex-wrap:wrap; padding:12px; gap:6px; } .case-dialog h3 { flex-basis:100%; padding:2px 3px 6px; } .case-dialog .case-controls { margin-left:auto; } .case-gallery figcaption strong { font-size:14px; } }
