:root {
    --paper: #f4f0e7;
    --paper-light: #fbf9f4;
    --ink: #172b26;
    --ink-soft: #5b6964;
    --line: #d8d2c5;
    --pine: #1d5b4f;
    --pine-dark: #123d35;
    --vermilion: #c84c32;
    --white: #fffefb;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: "LXGW WenKai", "Microsoft YaHei UI", sans-serif;
    background:
        linear-gradient(rgba(29, 91, 79, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 91, 79, .045) 1px, transparent 1px),
        var(--paper);
    background-size: 34px 34px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(200, 76, 50, .08), transparent 26%),
        radial-gradient(circle at 88% 72%, rgba(29, 91, 79, .11), transparent 30%);
}

a { color: inherit; }
button, input { font: inherit; }

.account-shell {
    position: relative;
    width: min(1060px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 54px;
}

.account-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(23, 43, 38, .16);
}

.account-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .08em;
}

.account-mark {
    display: grid;
    width: 38px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50% 50% 50% 12px;
    color: var(--white);
    background: var(--pine);
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    box-shadow: 4px 4px 0 rgba(200, 76, 50, .22);
}

.back-link {
    color: var(--ink-soft);
    font-size: 14px;
    text-decoration: none;
}

.back-link:hover { color: var(--pine); }

.account-layout {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(360px, .64fr);
    min-height: 630px;
    margin-top: 36px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px 30px 4px 4px;
    background: rgba(255, 254, 251, .88);
    box-shadow: 0 28px 80px rgba(24, 48, 40, .13);
    backdrop-filter: blur(14px);
}

.account-intro {
    position: relative;
    display: flex;
    padding: clamp(38px, 6vw, 72px);
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
    background: var(--pine-dark);
}

.account-intro::after {
    content: "PROMPT";
    position: absolute;
    right: -30px;
    bottom: 35px;
    color: rgba(255,255,255,.045);
    font-family: Georgia, serif;
    font-size: 110px;
    font-weight: 700;
    transform: rotate(-90deg);
}

.account-kicker {
    margin: 0 0 20px;
    color: #f0a88e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.account-intro h1,
.form-panel h1 {
    margin: 0;
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
    line-height: 1.16;
}

.account-intro h1 { font-size: clamp(38px, 5vw, 62px); }

.account-intro p {
    max-width: 500px;
    margin: 22px 0 0;
    color: rgba(255,255,255,.68);
    line-height: 1.9;
}

.intro-foot {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 18px;
    color: rgba(255,255,255,.6);
    font-size: 12px;
    letter-spacing: .08em;
}

.form-panel {
    display: flex;
    padding: clamp(32px, 5vw, 58px);
    flex-direction: column;
    justify-content: center;
}

.form-panel h1 { font-size: 34px; }

.form-lead {
    margin: 10px 0 30px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.75;
}

.field { margin-bottom: 17px; }

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
}

.field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--ink);
    outline: none;
    background: rgba(255,255,255,.72);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input:focus {
    border-color: var(--pine);
    box-shadow: 0 0 0 3px rgba(29, 91, 79, .12);
}

.field-action { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.field-action button {
    min-width: 112px;
    padding: 0 13px;
    border: 1px solid var(--pine);
    border-radius: 3px;
    color: var(--pine);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}
.field-action button:hover { color: var(--white); background: var(--pine); }

.field-hint {
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.form-error,
.form-success {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-left: 3px solid var(--vermilion);
    color: #8a2e1e;
    background: rgba(200, 76, 50, .08);
    font-size: 13px;
    line-height: 1.6;
}

.form-success {
    color: var(--pine-dark);
    border-color: var(--pine);
    background: rgba(29, 91, 79, .08);
}

.submit-button,
.secondary-button {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pine);
    border-radius: 3px;
    color: var(--white);
    background: var(--pine);
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
}

.submit-button:hover { background: var(--pine-dark); }

.secondary-button {
    color: var(--pine);
    background: transparent;
}

.secondary-button:hover { background: rgba(29, 91, 79, .07); }

.form-switch {
    margin: 22px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    text-align: center;
}

.form-switch a {
    color: var(--pine);
    font-weight: 800;
    text-decoration: none;
}

.profile-card {
    padding: clamp(34px, 6vw, 70px);
    background: rgba(255, 254, 251, .9);
}

.profile-card h1 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    font-size: clamp(38px, 6vw, 64px);
}

.profile-subtitle { color: var(--ink-soft); }

.plan-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 34px 0;
    padding: 24px;
    border-radius: 3px 18px 3px 3px;
    color: var(--white);
    background: var(--pine-dark);
}

.plan-banner small {
    display: block;
    margin-bottom: 6px;
    color: rgba(255,255,255,.6);
    letter-spacing: .14em;
}

.plan-banner strong {
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    font-size: 27px;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.status-dot::before {
    content: "";
    width: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #80d8b6;
    box-shadow: 0 0 0 5px rgba(128, 216, 182, .12);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-bottom: 26px;
    border: 1px solid var(--line);
    background: var(--line);
}

.profile-item {
    padding: 18px;
    background: var(--paper-light);
}

.profile-item small {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-soft);
}

.profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.profile-actions form { margin: 0; }

@media (max-width: 760px) {
    .account-shell { width: min(calc(100% - 24px), 620px); padding-top: 18px; }
    .account-layout { grid-template-columns: 1fr; margin-top: 22px; }
    .account-intro { min-height: 300px; padding: 34px 26px; }
    .account-intro h1 { font-size: 38px; }
    .form-panel { padding: 34px 24px; }
    .profile-card { padding: 34px 24px; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-actions { grid-template-columns: 1fr; }
    .field-action { grid-template-columns: 1fr; }
    .field-action button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}
