:root {
    --wb-ink: #171717;
    --wb-ink-soft: #292929;
    --wb-paper: #f1eee8;
    --wb-paper-deep: #e9e3da;
    --wb-surface: #fffefa;
    --wb-surface-muted: #f8f5ef;
    --wb-line: #ddd5ca;
    --wb-line-dark: #554f48;
    --wb-text: #272523;
    --wb-muted: #756e67;
    --wb-red: #a71920;
    --wb-red-dark: #7e1117;
    --wb-red-wash: #f8e9e6;
    --wb-focus: rgba(167, 25, 32, .28);
    --wb-radius: 14px;
    --wb-shadow: 0 20px 50px rgba(35, 27, 21, .09);
    --wb-motion: 260ms;
    --wb-ease: cubic-bezier(.22, .8, .2, 1);
    --wb-font: "Cabinet Grotesk", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

.account-page {
    min-height: calc(100vh - 150px);
    padding: clamp(34px, 5vw, 76px) 20px 108px;
    overflow-x: hidden;
    color: var(--wb-text);
    background-color: var(--wb-paper);
    background-image: radial-gradient(circle at 10% 12%, rgba(255,255,255,.62), transparent 32%),
        linear-gradient(90deg, rgba(255,255,255,.16), transparent 24%, rgba(92,72,50,.035) 75%, transparent);
}

.account-shell { width: 100%; max-width: 1240px; margin: 0 auto; }

.account-hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-bottom: 30px;
}

.account-hero__copy {
    display: flex;
    min-height: 176px;
    grid-column: span 8;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
}

.account-hero__copy h1 {
    max-width: 840px;
    margin: 0;
    color: var(--wb-ink);
    font-family: var(--wb-font);
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.08;
}

.account-hero__copy p {
    max-width: 660px;
    margin: 16px 0 0;
    color: var(--wb-muted);
    font-size: 15px;
    line-height: 1.75;
}

.account-hero__rail {
    display: flex;
    min-height: 176px;
    grid-column: span 4;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px 24px;
    border-radius: var(--wb-radius);
    color: #fff;
    background: var(--wb-ink);
    box-shadow: var(--wb-shadow);
}

.account-hero__rail-label {
    color: #bbb5ae;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.account-hero__rail strong {
    max-width: 280px;
    color: #fff;
    font-family: var(--wb-font);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.3;
}

.account-hero__rail-note { margin: 0; color: #aaa39c; font-size: 12px; line-height: 1.55; }

.account-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #fff;
    background: var(--wb-ink);
    cursor: pointer;
    font-family: var(--wb-font);
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    transition: transform var(--wb-motion) var(--wb-ease), box-shadow var(--wb-motion) var(--wb-ease), background-color var(--wb-motion) var(--wb-ease), color var(--wb-motion) var(--wb-ease);
    touch-action: manipulation;
}

.account-button:hover { color: #fff; background: var(--wb-red); box-shadow: 0 10px 22px rgba(167,25,32,.22); transform: translateY(-2px); }
.account-button:active { transform: translateY(0); }
.account-button--red { background: var(--wb-red); }
.account-button--red:hover { background: var(--wb-red-dark); }
.account-button--ghost { border-color: var(--wb-line); color: var(--wb-text); background: transparent; }
.account-button--ghost:hover { color: var(--wb-red); border-color: var(--wb-red); background: var(--wb-red-wash); box-shadow: none; }
.account-button[disabled] { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }

.account-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.account-sidebar { grid-column: span 3; }
.account-main { min-width: 0; grid-column: span 9; }

.account-sidebar {
    position: sticky;
    top: 24px;
    overflow: hidden;
    padding: 22px 16px 16px;
    border-radius: var(--wb-radius);
    color: #fff;
    background: var(--wb-ink);
    box-shadow: var(--wb-shadow);
}

.account-sidebar__head { display: flex; align-items: center; gap: 12px; padding: 0 8px 23px; }
.account-sidebar__identity { min-width: 0; }
.account-sidebar__label { margin-bottom: 7px; color: #aaa39b; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }

.account-avatar {
    display: block;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border: 3px solid rgba(255,255,255,.18);
    border-radius: 50%;
    object-fit: cover;
    background: #363636;
}

.account-name { overflow: hidden; margin: 0; color: #fff; font-family: var(--wb-font); font-size: 17px; font-weight: 650; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.account-username { overflow: hidden; margin: 5px 0 0; color: #a49d96; font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }

.account-nav { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.13); }
.account-nav a { display: flex; min-height: 44px; align-items: center; padding: 0 12px; border-radius: 9px; color: #bdb6af; font-size: 13px; text-decoration: none; transition: transform var(--wb-motion) var(--wb-ease), color var(--wb-motion) var(--wb-ease), background-color var(--wb-motion) var(--wb-ease), box-shadow var(--wb-motion) var(--wb-ease); }
.account-nav a:hover, .account-nav a.is-active { color: #fff; background: var(--wb-red); box-shadow: 0 8px 16px rgba(0,0,0,.16); transform: translateX(2px); }

.account-sidebar__note { margin: 21px 8px 0; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.13); color: #8f8881; font-size: 11px; line-height: 1.65; }

.account-surface {
    min-width: 0;
    border: 1px solid rgba(176,163,148,.55);
    border-radius: var(--wb-radius);
    background: var(--wb-surface);
    box-shadow: var(--wb-shadow);
}

.account-surface + .account-surface { margin-top: 18px; }
.account-surface__body { padding: clamp(22px, 3vw, 34px); }
.account-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.account-section-head h2 { margin: 0; color: var(--wb-ink); font-family: var(--wb-font); font-size: 23px; font-weight: 700; letter-spacing: -.035em; line-height: 1.25; }
.account-section-head p { margin: 7px 0 0; color: var(--wb-muted); font-size: 13px; line-height: 1.65; }
.account-section-count { flex: 0 0 auto; color: var(--wb-muted); font-size: 12px; white-space: nowrap; }
.account-section-count strong { color: var(--wb-red); font-family: var(--wb-font); font-size: 25px; font-weight: 700; letter-spacing: -.04em; vertical-align: -2px; }

.account-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-bottom: 29px; border-top: 1px solid var(--wb-line); border-bottom: 1px solid var(--wb-line); }
.account-metric { min-height: 85px; padding: 17px 20px; border-right: 1px solid var(--wb-line); }
.account-metric:first-child { padding-left: 0; }
.account-metric:last-child { border-right: 0; }
.account-metric__number { display: block; color: var(--wb-ink); font-family: var(--wb-font); font-size: 28px; font-weight: 700; letter-spacing: -.055em; line-height: 1; }
.account-metric__number.is-red { color: var(--wb-red); }
.account-metric__label { display: block; margin-top: 8px; color: var(--wb-muted); font-size: 12px; }

.account-list { display: grid; gap: 9px; }
.account-article { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 17px; min-height: 98px; align-items: center; padding: 13px 14px 13px 0; border-bottom: 1px solid var(--wb-line); transition: transform var(--wb-motion) var(--wb-ease), box-shadow var(--wb-motion) var(--wb-ease), background-color var(--wb-motion) var(--wb-ease); animation: account-rise 300ms var(--wb-ease) both; }
.account-article:first-child { padding-top: 0; }
.account-article:last-child { padding-bottom: 0; border-bottom: 0; }
.account-article:hover { border-radius: 10px; background: var(--wb-surface-muted); box-shadow: 0 7px 18px rgba(44,31,21,.07); transform: translateX(4px); }
.account-article:nth-child(2) { animation-delay: 45ms; }
.account-article:nth-child(3) { animation-delay: 90ms; }
.account-article:nth-child(4) { animation-delay: 135ms; }
.account-article:nth-child(5) { animation-delay: 180ms; }
.account-article__visual { display: flex; width: 96px; height: 72px; align-items: center; justify-content: center; overflow: hidden; border-radius: 9px; color: #9d948a; background: var(--wb-paper-deep); font-size: 10px; letter-spacing: .13em; }
.account-article__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.account-article__body { min-width: 0; }
.account-article__title { display: block; overflow: hidden; color: var(--wb-ink); font-family: var(--wb-font); font-size: 16px; font-weight: 650; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; transition: color var(--wb-motion) var(--wb-ease); }
.account-article__title:hover { color: var(--wb-red); }
.account-article__meta { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center; margin-top: 8px; color: var(--wb-muted); font-size: 12px; line-height: 1.55; }
.account-status { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; border: 1px solid #cfc5b9; border-radius: 999px; color: var(--wb-ink); background: #f5f1eb; font-size: 11px; white-space: nowrap; }
.account-status.is-published { border-color: #aaa198; background: #ede9e2; }
.account-status.is-loading { border-style: dashed; color: var(--wb-muted); }
.account-article__actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.account-text-button { display: inline-flex; min-height: 44px; align-items: center; padding: 0; border: 0; color: var(--wb-red); background: transparent; cursor: pointer; font: inherit; font-size: 12px; text-decoration: none; touch-action: manipulation; }
.account-text-button:hover { color: var(--wb-red-dark); text-decoration: underline; text-underline-offset: 3px; }
.account-text-button.is-danger { color: #735b59; }

.account-empty { display: flex; min-height: 258px; align-items: center; justify-content: center; padding: 28px; text-align: center; }
.account-empty__inner { max-width: 330px; }
.account-empty__mark { width: 52px; height: 52px; margin: 0 auto 16px; border: 1px solid #c4b8aa; border-radius: 14px; background: var(--wb-surface-muted); }
.account-empty strong { display: block; color: var(--wb-ink); font-family: var(--wb-font); font-size: 16px; font-weight: 650; }
.account-empty p { margin: 8px 0 18px; color: var(--wb-muted); font-size: 13px; line-height: 1.7; }
.account-loading-copy { color: var(--wb-muted); font-size: 13px; }

.account-profile-banner { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 16px; align-items: center; margin-bottom: 26px; padding: 19px; border-radius: 11px; color: #fff; background: var(--wb-ink); }
.account-profile-banner .account-avatar { width: 72px; height: 72px; flex-basis: 72px; border-color: rgba(255,255,255,.23); }
.account-profile-banner strong { display: block; font-family: var(--wb-font); font-size: 18px; font-weight: 650; }
.account-profile-banner p { margin: 5px 0 0; color: #aaa39c; font-size: 12px; }

.account-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.account-form-grid .account-field-group:first-child { grid-column: 1 / -1; }
.account-field-group { min-width: 0; }
.account-field-group label, .account-field-label { display: block; min-height: 18px; margin-bottom: 8px; color: var(--wb-text); font-size: 13px; font-weight: 650; line-height: 1.35; }
.account-required::after { content: " *"; color: var(--wb-red); }
.account-field-hint { margin: 8px 0 0; color: var(--wb-muted); font-size: 12px; line-height: 1.55; }
.account-field, .account-select, .account-textarea { display: block; width: 100%; border: 1px solid #cfc5b9; border-radius: 9px; color: var(--wb-text); background: #fff; font: inherit; font-size: 14px; line-height: 1.5; transition: border-color var(--wb-motion) var(--wb-ease), box-shadow var(--wb-motion) var(--wb-ease), background-color var(--wb-motion) var(--wb-ease); }
.account-field, .account-select { min-height: 44px; padding: 0 13px; }
.account-textarea { min-height: 116px; padding: 11px 13px; resize: vertical; }
.account-field::placeholder, .account-textarea::placeholder { color: #9b9289; }
.account-field:focus, .account-select:focus, .account-textarea:focus { border-color: var(--wb-red); outline: 0; box-shadow: 0 0 0 3px var(--wb-focus); }
.account-field[readonly] { color: var(--wb-muted); background: var(--wb-surface-muted); }
.account-form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 25px; }
.account-section-divider { display: flex; align-items: center; gap: 14px; margin: 3px 0 9px; color: var(--wb-ink); font-family: var(--wb-font); font-size: 19px; font-weight: 700; }
.account-section-divider::after { content: ""; height: 1px; flex: 1; background: var(--wb-line); }
.account-section-lead { margin: 0 0 23px; color: var(--wb-muted); font-size: 13px; line-height: 1.65; }

.account-editor-layout { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 24px; align-items: start; }
.account-editor-panel { grid-column: span 8; min-width: 0; }
.account-editor-sidebar { display: grid; grid-column: span 4; gap: 18px; min-width: 0; }
.account-editor-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 20px; border-bottom: 1px solid var(--wb-line); }
.account-editor-panel__head h2 { margin: 0; color: var(--wb-ink); font-family: var(--wb-font); font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.account-editor-panel__head p { margin: 6px 0 0; color: var(--wb-muted); font-size: 12px; line-height: 1.6; }
.account-editor-panel__body { padding: 22px 28px 28px; }
.account-editor-status { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border: 1px solid #cfc5b9; border-radius: 999px; color: var(--wb-ink); background: #f5f1eb; font-size: 11px; white-space: nowrap; }
.account-editor-status.is-editing { color: var(--wb-red); border-color: #d2aaa5; background: var(--wb-red-wash); }
.account-editor__notice { display: flex; gap: 10px; margin: 0 0 23px; padding: 13px 15px; border: 1px solid #e1d4c1; border-radius: 9px; color: #6d573d; background: #fff8e8; font-size: 12px; line-height: 1.6; }
.account-editor__notice::before { content: "提示"; display: block; flex: 0 0 auto; color: #6d573d; font-size: 11px; font-weight: 700; }
.account-editor-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; margin-bottom: 22px; }
.account-editor-fields__wide { grid-column: 1 / -1; }
.account-editor-source-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.account-editor-source-label span:last-child { color: var(--wb-muted); font-size: 11px; }
.account-editor-source { min-height: 0; resize: none; }
.account-editor__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--wb-line); }
.account-editor__actions a { display: inline-flex; min-height: 44px; align-items: center; color: var(--wb-muted); font-size: 12px; text-decoration: none; }
.account-editor__actions a:hover { color: var(--wb-red); }

.account-editor-sidebar .account-surface__body { padding: 22px; }
.account-editor-sidebar h2, .account-editor-sidebar h3 { margin: 0 0 18px; color: var(--wb-ink); font-family: var(--wb-font); font-size: 17px; font-weight: 700; }
.account-editor-sidebar .account-field-group + .account-field-group { margin-top: 16px; }
.account-sidebar-note, .account-cover-note { margin: 12px 0 0; color: var(--wb-muted); font-size: 11px; line-height: 1.65; }

.account-cover-upload { overflow: hidden; border: 1px dashed #cfc5b9; border-radius: 11px; background: var(--wb-surface-muted); }
.account-cover-preview { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--wb-paper-deep); }
.account-cover-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.account-cover-preview__remove { position: absolute; right: 9px; bottom: 9px; min-height: 44px; padding: 0 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; color: #fff; background: rgba(23,23,23,.84); cursor: pointer; font-size: 11px; }
.account-cover-preview__remove:hover { background: var(--wb-red); }
.account-file-label { display: flex; min-height: 112px; align-items: center; justify-content: center; padding: 16px; color: var(--wb-muted); cursor: pointer; font-size: 12px; line-height: 1.55; text-align: center; }
.account-file-label strong { display: block; margin-bottom: 5px; color: var(--wb-ink); font-size: 13px; }
.account-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.account-uploading { margin: 10px 0 0; color: var(--wb-muted); font-size: 12px; }
.account-upload-error { margin: 10px 0 0; color: var(--wb-red-dark); font-size: 12px; line-height: 1.55; }
.account-upload-error::before { content: "错误："; font-weight: 700; }

/* TinyMCE menus and dialogs append to body, so they must clear site and Element UI overlays. */
.tox-tinymce-aux, .tox.tox-tinymce-aux, .tox .tox-menu, .tox .tox-dialog-wrap, .tox .tox-dialog, .tox .tox-pop, .tox .tox-collection { z-index: 10050 !important; }
.tox .tox-dialog-wrap { z-index: 10051 !important; }
.tox-tinymce { width: 100% !important; border: 1px solid #cfc5b9 !important; border-radius: 10px !important; overflow: hidden; }
.tox .tox-editor-header { box-shadow: none !important; }
.tox .tox-edit-area::before { border-color: var(--wb-red) !important; }

@keyframes account-rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

@media screen and (max-width: 1080px) {
    .account-editor-panel { grid-column: span 7; }
    .account-editor-sidebar { grid-column: span 5; }
    .account-article { grid-template-columns: 82px minmax(0,1fr) auto; }
    .account-article__visual { width: 82px; height: 66px; }
}

@media screen and (max-width: 767px) {
    .account-page { padding: 28px 14px 76px; }
    .account-hero { display: block; margin-bottom: 22px; }
    .account-hero__copy { min-height: 0; padding: 0 0 22px; }
    .account-hero__copy h1 { max-width: 100%; }
    .account-hero__copy p { margin-top: 12px; font-size: 14px; }
    .account-hero__rail { min-height: 140px; padding: 18px 19px; }
    .account-hero__rail strong { font-size: 18px; }
    .account-layout, .account-editor-layout { display: block; }
    .account-sidebar { position: static; margin-bottom: 16px; }
    .account-main { min-width: 0; }
    .account-sidebar__head { padding-bottom: 17px; }
    .account-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .account-nav a { font-size: 12px; }
    .account-surface__body { padding: 22px 18px; }
    .account-section-head { margin-bottom: 21px; }
    .account-section-head h2 { font-size: 20px; }
    .account-metric { min-height: 78px; padding: 14px 10px; }
    .account-metric:first-child { padding-left: 0; }
    .account-metric__number { font-size: 23px; }
    .account-article { grid-template-columns: 68px minmax(0,1fr); gap: 12px; align-items: start; padding: 14px 0; }
    .account-article:first-child { padding-top: 0; }
    .account-article__visual { width: 68px; height: 56px; }
    .account-article__title { font-size: 14px; white-space: normal; }
    .account-article__actions { grid-column: 2; gap: 16px; margin-top: -5px; }
    .account-form-grid, .account-editor-fields { grid-template-columns: minmax(0,1fr); gap: 17px; }
    .account-form-grid .account-field-group:first-child, .account-editor-fields__wide { grid-column: auto; }
    .account-editor-panel { margin-bottom: 18px; }
    .account-editor-panel__head { display: block; padding: 21px 18px 17px; }
    .account-editor-status { margin-top: 12px; }
    .account-editor-panel__body { padding: 19px 18px 22px; }
    .account-editor__actions { justify-content: stretch; }
    .account-editor__actions .account-button { flex: 1 1 190px; }
    .account-editor__actions a { flex: 1 1 100%; justify-content: center; }
    .account-editor-sidebar .account-surface__body { padding: 20px 18px; }
}

@media screen and (max-width: 420px) {
    .account-hero__copy h1 { font-size: 30px; }
    .account-section-head { display: block; }
    .account-section-count { display: block; margin-top: 9px; }
    .account-profile-banner { grid-template-columns: 1fr; }
    .account-profile-banner .account-avatar { width: 62px; height: 62px; flex-basis: 62px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Scope reset: base.min.css and m.min.css style bare header/article elements
 * for the public site. Account pages deliberately opt out without touching
 * those shared files. */
.account-page,
.account-page .account-shell,
.account-page .account-layout,
.account-page .account-main,
.account-page .account-surface,
.account-page .account-editor-layout,
.account-page .account-editor-sidebar {
    width: auto;
    overflow: visible;
}

.account-page header.account-hero {
    position: static;
    z-index: auto;
    width: auto;
    height: auto;
    margin: 0 0 30px;
    padding: 0;
    overflow: visible;
    background: transparent;
}

.account-page section.account-surface,
.account-page section.account-editor-panel,
.account-page section.account-sidebar {
    height: auto;
}

.account-page nav.account-nav {
    float: none;
    width: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    line-height: normal;
    text-align: left;
}

.account-page article.account-article {
    width: auto;
    margin: 0;
    overflow: visible;
    padding: 13px 14px 13px 0;
}

@media screen and (max-width: 767px) {
    .account-page header.account-hero {
        width: auto;
        height: auto;
        margin-bottom: 22px;
        padding: 0;
    }

    .account-page article.account-article {
        width: auto;
        margin: 0;
        overflow: visible;
        padding: 14px 0;
    }

    .account-page article.account-article:first-child { padding-top: 0; }
}
