:root {
  --ink: #1b1a18;
  --muted: #6f675f;
  --paper: #f4f0e8;
  --porcelain: #fcfaf6;
  --copper: #7a4f35;
  --gold: #ad8c6f;
  --line: rgba(27, 26, 24, 0.12);
  --shadow: 0 24px 70px rgba(28, 22, 18, 0.08);
  --font-display: "Songti SC", STSong, "Iowan Old Style", Baskerville, Georgia, serif;
  --font-body: Inter, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.account-topbar { position: sticky; z-index: 20; top: 0; display: flex; min-height: 74px; padding: 0 clamp(22px, 4vw, 62px); align-items: center; justify-content: space-between; background: rgba(244,240,232,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); }
.account-brand { display: inline-flex; align-items: center; gap: 13px; }
.account-brand > span { display: grid; width: 40px; height: 40px; place-items: center; color: #fff; background: var(--copper); font-family: var(--font-display); }
.account-brand strong { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: .1em; }
.account-topbar__actions { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: .75rem; }
.account-language { display: inline-flex; gap: 2px; padding: 3px; background: rgba(255,255,255,.52); border: 1px solid var(--line); border-radius: 999px; }
.account-language button { min-width: 44px; height: 44px; padding: 0 9px; color: var(--muted); background: transparent; border: 0; border-radius: 999px; cursor: pointer; font-size: .7rem; }
.account-language button.is-active { color: #fff; background: var(--copper); box-shadow: 0 6px 18px rgba(86,53,34,.14); }
.account-topbar__actions button { min-height: 44px; padding: 9px 15px; color: var(--copper); background: transparent; border: 1px solid rgba(122,79,53,.25); border-radius: 999px; cursor: pointer; }
.account-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: calc(100vh - 74px); }
.account-sidebar { position: sticky; top: 74px; display: flex; height: calc(100vh - 74px); padding: 40px 24px 26px clamp(24px, 4vw, 58px); flex-direction: column; background: #ebe5da; border-right: 1px solid var(--line); }
.member-mini { display: flex; margin-bottom: 34px; align-items: center; gap: 13px; }
.member-avatar, .profile-avatar { display: grid; overflow: hidden; place-items: center; color: #fff; background: linear-gradient(145deg, var(--copper), #b08b6b); background-position: center; background-size: cover; border-radius: 50%; font-family: var(--font-display); }
.member-avatar { width: 46px; height: 46px; flex: 0 0 auto; }
.member-mini > div:last-child { display: grid; line-height: 1.4; }
.member-mini strong { font-family: var(--font-display); }
.member-mini span { color: var(--muted); font-size: .68rem; }
.account-nav { display: grid; gap: 5px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.account-nav::-webkit-scrollbar { display: none; }
.account-nav a { display: grid; grid-template-columns: 30px 1fr; min-height: 48px; padding: 10px 13px; align-items: center; color: #514a44; border-radius: 12px; font-size: .78rem; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.account-nav a b { font: inherit; font-weight: 500; }
.account-nav a span { color: #a39385; font-size: .57rem; letter-spacing: .08em; }
.account-nav a:hover { color: var(--copper); transform: translateX(3px); }
.account-nav a[aria-current="page"] { color: #fff; background: var(--copper); box-shadow: 0 12px 28px rgba(86,53,34,.16); }
.account-nav a[aria-current="page"] span { color: rgba(255,255,255,.62); }
.sidebar-note { margin-top: auto; padding: 18px; background: rgba(255,255,255,.4); border: 1px solid rgba(27,26,24,.08); border-radius: 15px; }
.sidebar-note span { color: var(--gold); font-size: .56rem; font-weight: 750; letter-spacing: .18em; }
.sidebar-note p { margin: 7px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.65; }
.account-content { position: relative; min-width: 0; padding: clamp(38px, 6vw, 86px) clamp(25px, 7vw, 100px) 90px; background: radial-gradient(circle at 100% 0, rgba(173,140,111,.12), transparent 28%), var(--paper); }
.account-page { width: min(100%, 1120px); margin: 0 auto; }
.page-heading { display: flex; margin-bottom: 38px; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-heading p { margin: 0 0 10px; color: var(--gold); font-size: .62rem; font-weight: 800; letter-spacing: .2em; }
.page-heading h1 { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.4rem); font-weight: 400; line-height: 1; }
.page-heading span { color: var(--muted); font-size: .82rem; }
.page-heading small { padding: 8px 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; }
.page-heading small[data-verified="true"] { color: #397056; background: rgba(57,112,86,.08); border-color: rgba(57,112,86,.2); }
.page-action { padding: 11px 18px; color: var(--copper); border: 1px solid rgba(122,79,53,.24); border-radius: 999px; font-size: .72rem; font-weight: 700; }
.profile-overview { display: grid; grid-template-columns: auto 1fr minmax(380px, .9fr); padding: clamp(24px, 4vw, 42px); align-items: center; gap: 24px; color: #fff; background: linear-gradient(125deg, #29241f, #5d4434); border-radius: 24px; box-shadow: var(--shadow); }
.profile-avatar { width: 84px; height: 84px; font-size: 1.7rem; border: 1px solid rgba(255,255,255,.3); }
.profile-overview p { margin: 0; color: rgba(255,255,255,.55); font-size: .66rem; letter-spacing: .12em; }
.profile-overview h2 { margin: 3px 0; font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; }
.profile-overview > div:nth-child(2) > span { color: rgba(255,255,255,.65); font-size: .72rem; }
.profile-overview dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; padding-left: 26px; border-left: 1px solid rgba(255,255,255,.15); }
.profile-overview dl div { display: grid; gap: 4px; }
.profile-overview dt { color: rgba(255,255,255,.5); font-size: .62rem; }
.profile-overview dd { margin: 0; font-size: .76rem; }
.account-form, .settings-card, .record-card { display: grid; margin-top: 24px; padding: clamp(24px, 4vw, 40px); background: rgba(252,250,246,.76); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 15px 50px rgba(28,22,18,.04); }
.account-form { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.form-heading { grid-column: 1/-1; margin-bottom: 5px; }
.form-heading h2, .record-heading h2 { margin: 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; }
.form-heading p { margin: 4px 0 0; color: var(--muted); font-size: .72rem; }
.account-form label, .security-card label { display: grid; gap: 8px; color: #504943; font-size: .7rem; font-weight: 700; }
.account-form input, .account-form textarea, .security-card input, .settings-card select { width: 100%; min-height: 50px; padding: 11px 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 11px; outline: none; }
.account-form textarea { resize: vertical; line-height: 1.7; }
.account-form input:focus, .account-form textarea:focus, .security-card input:focus, .settings-card select:focus { border-color: rgba(122,79,53,.5); box-shadow: 0 0 0 4px rgba(122,79,53,.07); }
.wide { grid-column: 1/-1; }
.form-actions { display: flex; align-items: center; gap: 16px; }
.form-actions button { min-height: 46px; padding: 11px 22px; color: #fff; background: var(--copper); border: 0; border-radius: 999px; cursor: pointer; font-weight: 700; }
.form-status { margin: 0; color: var(--muted); font-size: .7rem; }
.form-status[data-state="error"] { color: #a13f2f; }
.form-status[data-state="success"] { color: #397056; }
.membership-hero { position: relative; display: grid; grid-template-columns: 1fr auto; min-height: 315px; padding: clamp(28px,5vw,58px); color: #fff; background: radial-gradient(circle at 84% 20%, rgba(216,193,173,.22), transparent 28%), linear-gradient(135deg,#2b241f,#71513c); border-radius: 26px; box-shadow: var(--shadow); }
.membership-hero p { margin: 0 0 8px; color: rgba(255,255,255,.55); font-size: .68rem; letter-spacing: .12em; }
.membership-hero h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem,5vw,4.6rem); font-weight: 400; }
.membership-hero > div:first-child > span { color: #d8c1ad; font-size: .65rem; letter-spacing: .22em; }
.membership-seal { display: grid; width: 105px; height: 105px; place-items: center; align-content: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; font-family: var(--font-display); font-size: 2rem; }
.membership-seal small { display: block; font-family: var(--font-body); font-size: .46rem; letter-spacing: .2em; }
.progress-block { grid-column: 1/-1; align-self: end; }
.progress-block > div:first-child { display: flex; margin-bottom: 10px; justify-content: space-between; color: rgba(255,255,255,.68); font-size: .67rem; }
.progress-track { height: 4px; overflow: hidden; background: rgba(255,255,255,.16); border-radius: 99px; }
.progress-track span { display: block; width: 0; height: 100%; background: #d8c1ad; border-radius: inherit; transition: width 650ms ease; }
.level-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 24px; }
.level-card { padding: 26px; background: rgba(252,250,246,.7); border: 1px solid var(--line); border-radius: 19px; }
.level-card[data-current="true"] { background: #fff; border-color: rgba(122,79,53,.35); box-shadow: var(--shadow); }
.level-card > span { color: var(--gold); font-size: .58rem; letter-spacing: .15em; }
.level-card h3 { margin: 8px 0 2px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; }
.level-card > p { margin: 0 0 16px; color: var(--muted); font-size: .7rem; }
.level-card ul { margin: 0; padding: 0; list-style: none; color: #5d554e; font-size: .7rem; line-height: 2; }
.level-card li::before { margin-right: 8px; color: var(--gold); content: "·"; }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.metric-grid article { display: grid; min-height: 175px; padding: 28px; align-content: space-between; background: rgba(252,250,246,.78); border: 1px solid var(--line); border-radius: 20px; }
.metric-grid article:first-child { color: #fff; background: linear-gradient(145deg,#5f402d,#9a7457); }
.metric-grid span { color: inherit; font-size: .72rem; opacity: .7; }
.metric-grid strong { font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3.6rem); font-weight: 400; }
.metric-grid small { font-size: .52rem; letter-spacing: .18em; opacity: .58; }
.record-heading { display: flex; padding-bottom: 20px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.record-heading span { color: var(--gold); font-size: .55rem; letter-spacing: .17em; }
.record-list { display: grid; }
.record-row { display: grid; grid-template-columns: 1fr auto; padding: 17px 0; border-bottom: 1px solid var(--line); }
.record-row:last-child { border-bottom: 0; }
.record-row strong { font-size: .78rem; }
.record-row span { color: var(--muted); font-size: .68rem; }
.order-list { display: grid; gap: 16px; }
.order-card { padding: 24px; background: rgba(252,250,246,.78); border: 1px solid var(--line); border-radius: 19px; }
.order-card__head, .order-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.order-card__head strong { font-family: var(--font-display); }
.order-card__head span, .order-card__foot { color: var(--muted); font-size: .68rem; }
.order-card ul { margin: 18px 0; padding: 18px 0; border-block: 1px solid var(--line); list-style: none; }
.order-card li { display: flex; justify-content: space-between; font-size: .72rem; }
.favorite-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.favorite-card { overflow: hidden; background: var(--porcelain); border: 1px solid var(--line); border-radius: 20px; }
.favorite-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.favorite-card > div { padding: 18px; }
.favorite-card h2 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; }
.favorite-card p { margin: 3px 0 14px; color: var(--muted); font-size: .68rem; }
.favorite-card a { color: var(--copper); font-size: .7rem; font-weight: 700; }
.settings-card { gap: 0; }
.setting-row { display: flex; min-height: 82px; padding: 16px 0; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.setting-row strong, .security-card > div strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; }
.setting-row p, .security-card > div p { margin: 3px 0 0; color: var(--muted); font-size: .68rem; }
.setting-row select { width: 150px; }
.setting-row input[type="checkbox"] { width: 42px; height: 22px; accent-color: var(--copper); }
.settings-card .form-actions { margin-top: 22px; }
.security-card { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.security-card > div:first-child, .security-card .form-actions { grid-column: 1/-1; }
.account-loading { display: grid; min-height: 55vh; place-items: center; align-content: center; gap: 16px; color: var(--muted); }
.account-loading span { width: 32px; height: 32px; border: 2px solid rgba(122,79,53,.17); border-top-color: var(--copper); border-radius: 50%; animation: spin .8s linear infinite; }
.account-loading p { font-size: .72rem; letter-spacing: .08em; }
.account-alert, .empty-state { padding: 28px; color: var(--muted); background: rgba(252,250,246,.7); border: 1px solid var(--line); border-radius: 18px; font-size: .76rem; text-align: center; }
.account-alert { width: min(100%,800px); margin: 80px auto; color: #a13f2f; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1050px) {
  .account-shell { grid-template-columns: 220px minmax(0,1fr); }
  .account-sidebar { padding-left: 20px; }
  .profile-overview { grid-template-columns: auto 1fr; }
  .profile-overview dl { grid-column: 1/-1; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.15); border-left: 0; }
  .favorite-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .account-topbar { min-height: 72px; }
  .account-brand strong { display: none; }
  .account-shell { display: block; }
  .account-sidebar { position: sticky; z-index: 15; top: 72px; display: block; width: 100%; height: auto; padding: 10px 14px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .account-sidebar::-webkit-scrollbar { display: none; }
  .member-mini, .sidebar-note { display: none; }
  .account-nav { display: flex; width: max-content; gap: 5px; }
  .account-nav a { grid-template-columns: auto; min-height: 44px; padding: 9px 14px; white-space: nowrap; }
  .account-nav a span { display: none; }
  .account-nav a b { white-space: nowrap; }
  .account-content { padding: 38px 16px 70px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: clamp(2.25rem, 11vw, 2.7rem); line-height: 1.08; }
  .profile-overview { grid-template-columns: auto 1fr; border-radius: 20px; }
  .profile-avatar { width: 66px; height: 66px; }
  .profile-overview dl { grid-template-columns: 1fr; gap: 13px; }
  .account-form, .security-card { grid-template-columns: 1fr; }
  .account-form > *, .security-card > * { grid-column: 1; }
  .level-grid, .metric-grid { grid-template-columns: 1fr; }
  .membership-hero { grid-template-columns: 1fr; }
  .membership-seal { position: absolute; top: 28px; right: 28px; opacity: .28; }
  .favorite-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .account-topbar__actions > a { display: none; }
  .account-topbar { padding-inline: 12px; }
  .account-topbar__actions { gap: 7px; }
  .account-language button { min-width: 44px; padding-inline: 6px; }
  .account-topbar__actions > #signOut { min-width: 44px; padding-inline: 10px; }
  .page-heading { display: grid; }
  .page-heading span { font-size: .92rem; line-height: 1.65; }
  .page-action { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; }
  .profile-overview { grid-template-columns: 1fr; }
  .setting-row { align-items: stretch; flex-direction: column; }
  .setting-row select { width: 100%; min-height: 48px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions button { width: 100%; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none !important; animation: none !important; } }
