:root {
    --ink: #142236;
    --muted: #637085;
    --paper: #fffdfa;
    --paper-soft: #f8f3ea;
    --line: #ddd4c5;
    --deep: #162536;
    --deep-2: #23384d;
    --teal: #10877f;
    --gold: #e5b346;
    --gold-2: #f6cf62;
    --red: #ce5a4c;
}

* {
    box-sizing: border-box;
}

html {
    background: #e8ede9;
}

body {
    margin: 0;
    min-width: 1320px;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 50% 0, rgba(255, 243, 204, .7), transparent 340px),
        linear-gradient(180deg, #f3f5ef 0, #e0e7e2 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.site {
    width: 1300px;
    margin: 24px auto 48px;
}

.hero {
    position: relative;
    height: 310px;
    overflow: hidden;
    border: 1px solid rgba(20, 34, 54, .08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 26px 56px rgba(29, 46, 61, .24);
}

.archive-flash,
.hero object,
.hero embed,
.hero ruffle-object,
.hero ruffle-embed,
.hero ruffle-player {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.main-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(20, 34, 54, .13);
    border-radius: 18px;
    background: rgba(255, 253, 250, .86);
    box-shadow: 0 12px 30px rgba(47, 61, 74, .1);
}

.main-nav a {
    min-height: 56px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff7df;
    background: linear-gradient(180deg, #253b52, #152538);
    font-size: 18px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #152438;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
}

.content-panel {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    margin-top: 18px;
    padding: 26px 34px 36px 20px;
    border: 1px solid rgba(20, 34, 54, .07);
    border-radius: 28px;
    background: rgba(255, 253, 250, .95);
    box-shadow: 0 30px 70px rgba(58, 70, 80, .15);
}

.side-column {
    display: grid;
    align-content: start;
    gap: 18px;
}

.account-card {
    position: relative;
    padding: 20px;
    border-radius: 14px;
    color: #fff7df;
    background: linear-gradient(180deg, #253b52, #142236);
    box-shadow: 0 16px 28px rgba(20, 34, 54, .2);
    overflow: hidden;
}

.account-card h2 {
    padding-right: 50px;
    margin: 0 0 18px;
    font-size: 22px;
}

.account-card h2::before {
    margin-right: 10px;
    color: var(--gold);
    content: "◆";
    font-size: 14px;
    vertical-align: 2px;
}

.account-mascot {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 1;
    width: 44px;
    height: auto;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .22));
}

.account-guest[hidden],
.account-member[hidden],
.account-mascot[hidden],
.account-guild-icon[hidden] {
    display: none !important;
}

.account-body {
    position: relative;
    min-height: var(--account-body-h, auto);
}

.account-member {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: var(--account-body-h, auto);
    box-sizing: border-box;
}

.member-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.member-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(122, 104, 188, .72), rgba(78, 62, 138, .88));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .14),
        0 10px 22px rgba(8, 14, 28, .28);
}

.member-hero-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    object-fit: cover;
    background: rgba(20, 34, 54, .45);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .22);
}

.member-hero-text {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 2px;
}

.member-hero-label {
    color: rgba(255, 247, 223, .72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.member-hero-name {
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 1000;
    letter-spacing: .02em;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-hero-dot {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b8c0cc;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .22);
    transition: background .25s ease, box-shadow .25s ease;
}

/* 游戏在线：圆点变绿并带轻微光晕 */
.member-hero-dot.is-online {
    background: #28c76f;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, .22),
        0 0 6px rgba(40, 199, 111, .85);
}

.member-details {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.member-detail-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.member-detail-label {
    color: #f6df9a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.member-detail-label::after {
    content: "：";
}

.member-detail-value {
    overflow: hidden;
    color: #fff7df;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-detail-value--guild {
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-guild-icon {
    flex-shrink: 0;
    width: 12px;
    height: 13px;
    object-fit: contain;
    image-rendering: pixelated;
}

.account-guild-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-logout-btn {
    flex-shrink: 0;
    width: 100%;
    min-height: 40px;
    margin-top: auto;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(180deg, #178f87, #0f736e);
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(15, 115, 110, .28);
}

.member-logout-btn:hover {
    filter: brightness(1.06);
}

.login-message {
    margin: 0 0 8px;
    color: #f5d16d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.login-message:empty {
    display: none;
    margin: 0;
}

.login-message.is-error {
    color: #ffb4a8;
}

.login-message.is-success {
    color: #9ef3c8;
}

.login-form {
    display: grid;
    gap: 12px;
}

.login-form label {
    display: grid;
    gap: 7px;
    color: #f6df9a;
    font-size: 14px;
    font-weight: 900;
}

.login-form input {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    color: var(--ink);
    background: #fffdfa;
    font-size: 15px;
}

.login-form button,
.create-account {
    min-height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}

.login-form button {
    color: #fff;
    background: linear-gradient(180deg, #178f87, #0f736e);
}

.create-account {
    color: #142236;
    background: linear-gradient(180deg, #ffd86b, var(--gold));
}

.support-link {
    color: #f5d16d;
    font-size: 14px;
    font-weight: 900;
}

.download-card {
    min-height: 82px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 0 22px;
    border-radius: 14px;
    color: #152438;
    background: linear-gradient(135deg, #ffe078, #e6b03f);
    box-shadow: 0 14px 28px rgba(196, 139, 31, .2);
}

.download-card span {
    font-size: 22px;
    font-weight: 1000;
}

.download-card strong {
    font-size: 15px;
}

.server-status-card {
    display: grid;
    place-content: center;
    row-gap: 16px;
    padding: 14px 0 0;
    background: transparent;
}

.status-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.server-status-card img {
    display: block;
    width: 260px;
    height: auto;
    image-rendering: auto;
}

.server-status-card a {
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.server-status-card a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.register-form {
    display: grid;
    gap: 22px;
    padding: 28px 32px 34px;
}

.register-intro {
    padding: 18px 22px;
    border: 1px solid rgba(229, 179, 70, .34);
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(246, 207, 98, .2), rgba(255, 253, 250, .9));
}

.register-intro strong {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 1000;
}

.register-intro p {
    margin: 0;
    color: #39485d;
    font-size: 16px;
    line-height: 1.7;
}

.register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.register-field {
    display: grid;
    gap: 8px;
}

.register-field span {
    color: var(--ink);
    font-size: 17px;
    font-weight: 1000;
}

.register-field em {
    color: var(--red);
    font-style: normal;
}

.register-field input,
.register-field select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(20, 34, 54, .18);
    border-radius: 9px;
    color: var(--ink);
    background: #fffdfa;
    font: inherit;
    font-size: 16px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(20, 34, 54, .06);
}

.register-field input:focus,
.register-field select:focus {
    border-color: rgba(16, 135, 127, .62);
    box-shadow: 0 0 0 3px rgba(16, 135, 127, .12);
}

.register-field small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.password-field-wrap {
    position: relative;
    width: 100%;
}

.password-field-wrap input {
    padding-right: 48px;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #657289;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .15s ease, background-color .15s ease;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
    color: var(--ink);
    background: rgba(16, 135, 127, .1);
    outline: none;
}

.password-toggle-icon {
    display: block;
}

.password-toggle-icon--hide {
    display: none;
}

.password-toggle-btn.is-visible .password-toggle-icon--show {
    display: none;
}

.password-toggle-btn.is-visible .password-toggle-icon--hide {
    display: block;
}

.register-actions {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: center;
    padding-top: 4px;
}

.register-actions button {
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    color: #152438;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    font-size: 18px;
    font-weight: 1000;
    cursor: pointer;
}

.register-actions button:hover,
.register-actions button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(196, 139, 31, .24);
}

.register-actions button[disabled] {
    cursor: wait;
    opacity: .68;
    transform: none;
    box-shadow: none;
}

.register-message {
    min-height: 24px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 900;
}

.register-message.is-error {
    color: var(--red);
}

.register-message.is-success {
    color: var(--teal);
}

.register-message a {
    color: var(--teal);
    font-weight: 900;
    text-decoration: underline;
}

/* 注册 · 服务条款 */
.register-tos {
    display: grid;
    gap: 10px;
}
.register-tos-head strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}
.register-tos-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.register-tos-box {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    color: #3a4655;
    font-size: 13.5px;
    line-height: 1.78;
}
.register-tos-box:focus-visible {
    outline: 2px solid rgba(229, 179, 70, .5);
    outline-offset: 2px;
}
.register-tos-title {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 900;
}
.register-tos-box h4 {
    margin: 18px 0 6px;
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 800;
}
.register-tos-box p {
    margin: 0;
}

.register-view .register-form {
    display: grid !important;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
    padding: 34px 0 40px;
}

.register-view .register-intro {
    position: relative;
    overflow: hidden;
    min-height: 134px;
    display: grid;
    align-content: center;
    padding: 26px 34px;
    border: 0;
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% 20%, rgba(246, 207, 98, .22), transparent 150px),
        linear-gradient(135deg, #253b52, #142236 72%);
    color: #fff7df;
    box-shadow: 0 18px 34px rgba(20, 34, 54, .2);
}

.register-view .register-intro::before {
    position: absolute;
    inset: auto -40px -80px auto;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 247, 223, .14);
    border-radius: 50%;
    content: "";
}

.register-view .register-intro::after {
    position: absolute;
    top: 28px;
    right: 22px;
    color: rgba(246, 207, 98, .82);
    content: "SPAEON";
    font-size: 34px;
    font-weight: 1000;
    letter-spacing: 0.06em;
    opacity: .22;
}

.register-view .register-intro strong {
    color: #fff7df;
    font-size: 28px;
    letter-spacing: 0;
}

.register-view .register-intro p {
    max-width: 560px;
    color: rgba(255, 247, 223, .82);
    font-size: 17px;
}

.register-view .register-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 14px;
}

.register-view .register-field {
    display: grid !important;
    gap: 8px;
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid rgba(221, 212, 197, .9);
    border-radius: 14px;
    background: #fffdfa;
    box-shadow: 0 10px 22px rgba(57, 65, 70, .06);
}

.register-view .register-field span {
    display: block;
    color: var(--ink);
    font-size: 19px;
}

.register-view .register-field input,
.register-view .register-field select {
    display: block;
    width: 100%;
    height: 52px;
    border-color: rgba(20, 34, 54, .13);
    border-radius: 10px;
    font-size: 17px;
    background: #fbfaf7;
}

.register-view .password-field-wrap input {
    padding-right: 48px;
}

.register-view .register-field small {
    max-width: 620px;
    color: #657289;
    font-size: 14px;
}

.register-captcha {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 166px;
    gap: 18px;
    align-items: end;
    padding: 18px 22px;
    border: 1px solid rgba(16, 135, 127, .22);
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(16, 135, 127, .1), transparent 58%),
        #fffdfa;
    box-shadow: 0 12px 26px rgba(57, 65, 70, .06);
}

.register-captcha .register-field {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.register-captcha-button {
    display: grid;
    width: 156px;
    height: 56px;
    padding: 2px;
    place-items: center;
    border: 1px solid rgba(229, 179, 70, .48);
    border-radius: 12px;
    background: #fffdfa;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(16, 135, 127, .11);
}

.register-captcha-button img {
    display: block;
    width: 148px;
    height: 52px;
    border-radius: 10px;
}

.register-aliyun {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 18px 22px;
    border: 1px solid rgba(16, 135, 127, .22);
    border-radius: 14px;
    background: #fffdfa;
    box-shadow: 0 10px 22px rgba(57, 65, 70, .06);
}

.register-aliyun-title {
    color: var(--ink);
    font-size: 19px;
    font-weight: 1000;
}

.register-aliyun-title em {
    color: var(--red);
    font-style: normal;
}

.register-aliyun-widget {
    min-height: 46px;
}

.register-aliyun-hint {
    color: #657289;
    font-size: 14px;
    line-height: 1.55;
}

.register-aliyun-trigger {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
}

.register-turnstile {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65px;
}

.register-turnstile .cf-turnstile {
    min-height: 65px;
}

.register-view .register-actions {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
}

.register-view .register-actions button {
    width: 100%;
    max-width: 420px;
    min-height: 54px;
    margin: 0 auto;
    border-radius: 12px;
    font-size: 20px;
}

.register-view .register-message {
    min-height: 22px;
    text-align: center;
}

.download-view-body {
    display: grid;
    gap: 22px;
    padding: 28px;
}

.download-banner-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(20, 34, 54, .18);
    border-radius: 12px;
    background: #171938;
    box-shadow: 0 18px 36px rgba(20, 34, 54, .22);
    cursor: pointer;
}

.download-banner-button::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.download-banner-button:hover,
.download-banner-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(20, 34, 54, .28);
    outline: 3px solid rgba(229, 179, 70, .32);
    outline-offset: 3px;
}

.download-banner-button img {
    display: block;
    width: 100%;
    height: auto;
}

.download-locale-note {
    padding: 22px 24px 24px;
    border: 1px solid rgba(229, 179, 70, .55);
    border-left: 6px solid var(--gold);
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(246, 207, 98, .28), transparent 52%),
        #fffaf0;
}

.download-locale-note h3 {
    margin: 0 0 12px;
    color: #d4232a;
    font-size: 29px;
    letter-spacing: 0;
}

.download-locale-note p {
    margin: 0;
    color: #334156;
    font-size: 21px;
    line-height: 1.75;
}

.download-locale-note strong {
    font-weight: 900;
    color: var(--ink);
}

.download-locale-options {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: locale-step;
}

.download-locale-options li {
    position: relative;
    padding: 16px 18px 16px 56px;
    border: 1px solid rgba(20, 34, 54, .1);
    border-radius: 11px;
    background: rgba(255, 253, 250, .9);
    counter-increment: locale-step;
}

.download-locale-options li::before {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: #8b6421;
    background: rgba(246, 207, 98, .35);
    content: counter(locale-step);
    font-size: 17px;
    font-weight: 900;
}

.download-locale-options li > strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.6;
}

.download-locale-options li span {
    display: block;
    color: #334156;
    font-size: 20px;
    line-height: 1.75;
}

.download-locale-options li span strong {
    display: inline;
    color: var(--ink);
}

.download-requirements {
    padding: 22px 24px 24px;
    border: 1px solid rgba(229, 179, 70, .42);
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(246, 207, 98, .2), transparent 48%),
        #fff8ea;
}

.download-requirements h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 29px;
    letter-spacing: 0;
}

.download-requirements p {
    margin: 10px 0 0;
    color: #334156;
    font-size: 21px;
    line-height: 1.7;
}

.download-requirements ul {
    display: grid;
    gap: 10px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.download-requirements li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(20, 34, 54, .1);
    border-radius: 9px;
    color: var(--ink);
    background: rgba(255, 253, 250, .88);
    font-size: 20px;
}

.download-requirements li::before {
    color: var(--gold);
    content: ">";
    font-size: 21px;
    font-weight: 1000;
}

.download-requirements strong {
    font-weight: 900;
}

.download-requirements li span {
    display: inline-grid;
    min-width: 68px;
    min-height: 34px;
    place-items: center;
    border-radius: 999px;
    color: #8b6421;
    background: rgba(246, 207, 98, .2);
    font-size: 17px;
    font-weight: 900;
}

.download-security-note {
    margin: 0;
    padding: 18px 22px;
    border-left: 6px solid var(--gold);
    border-radius: 12px;
    color: #fff7df;
    background: linear-gradient(135deg, #253b52, #17273c);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.7;
}

.download-mirrors {
    padding: 22px 24px 24px;
    border: 1px solid rgba(229, 179, 70, .42);
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(246, 207, 98, .2), transparent 48%),
        #fff8ea;
}

.download-mirrors h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 29px;
    letter-spacing: 0;
}

.download-mirrors p {
    margin: 10px 0 0;
    color: #334156;
    font-size: 21px;
    line-height: 1.7;
}

.download-mirror-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.download-mirror-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 0 22px;
    border: 1px solid rgba(20, 34, 54, .12);
    border-radius: 12px;
    color: var(--ink);
    background: rgba(255, 253, 250, .92);
    box-shadow: 0 10px 22px rgba(20, 34, 54, .12);
    font-size: 21px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.download-mirror-link:hover,
.download-mirror-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(20, 34, 54, .2);
    outline: 3px solid rgba(229, 179, 70, .32);
    outline-offset: 3px;
}

.download-mirror-link span {
    display: inline-grid;
    min-width: 72px;
    min-height: 34px;
    place-items: center;
    border-radius: 999px;
    color: #8b6421;
    background: rgba(246, 207, 98, .28);
    font-size: 17px;
    font-weight: 900;
}

@media (max-width: 560px) {
    .download-mirror-list {
        grid-template-columns: 1fr;
    }
}

.main-column {
    display: grid;
    gap: 28px;
}

.content-view[hidden],
[hidden] {
    display: none !important;
}

.home-view {
    display: grid;
    gap: 28px;
}

.section-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 14px 32px rgba(57, 65, 70, .08);
}

.section-heading {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff8ea, #f5ecdb);
}

.section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
    letter-spacing: 0;
}

.section-heading h2::before {
    display: inline-block;
    width: 8px;
    height: 30px;
    margin-right: 12px;
    content: "";
    border-radius: 999px;
    background: var(--gold);
    vertical-align: -5px;
}

.section-heading span {
    padding: 7px 14px;
    border: 1px solid rgba(229, 179, 70, .4);
    border-radius: 999px;
    color: #8b6421;
    background: rgba(246, 207, 98, .16);
    font-size: 14px;
    font-weight: 900;
}

.section-link-button {
    padding: 7px 14px;
    border: 1px solid rgba(229, 179, 70, .4);
    border-radius: 999px;
    color: #8b6421;
    background: rgba(246, 207, 98, .16);
    font-size: 14px;
    font-weight: 900;
}

.section-link-button:hover,
.section-link-button:focus-visible {
    color: var(--ink);
    background: rgba(246, 207, 98, .34);
}

.notice-list {
    padding: 22px 28px 28px;
}

.notice-item {
    width: 100%;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    display: grid;
    grid-template-columns: 112px 150px 1fr;
    align-items: center;
    gap: 22px;
    min-height: 68px;
}

.notice-item:last-child {
    border-bottom: 0;
}

.notice-item:hover strong,
.notice-item:focus-visible strong,
.notice-item.is-active strong {
    color: var(--teal);
}

.notice-item.is-active .notice-type {
    background: var(--teal);
}

.notice-item:focus-visible {
    outline: 3px solid rgba(229, 179, 70, .32);
    outline-offset: -3px;
}

.notice-type {
    display: inline-grid;
    min-height: 38px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--red);
    font-size: 18px;
    font-weight: 900;
}

.notice-item time {
    color: var(--muted);
    font-size: 18px;
}

.notice-item strong {
    font-size: 18px;
}

.notice-empty {
    margin: 0;
    padding: 20px 0;
    color: var(--muted);
    font-size: 16px;
}

/* 公告占位行：保留彩色红标签，日期与标题用骨架横条占位（不可点击） */
.notice-item--placeholder {
    cursor: default;
}
.notice-ph-line {
    display: inline-block;
    width: min(280px, 72%);
    height: 10px;
    border-radius: 999px;
    background: #e7e0d2;
}
.notice-ph-line--date {
    width: 64px;
}

.notice-view-body {
    padding: 28px 32px 34px;
}

.notice-detail {
    display: block;
    padding: 22px 24px 24px;
    border: 1px solid rgba(229, 179, 70, .28);
    border-radius: 12px;
    color: var(--ink);
    background: #fffaf0;
}

.notice-detail[hidden] {
    display: none;
}

.notice-view .notice-detail {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.notice-detail header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.notice-detail header span {
    display: inline-grid;
    min-width: 68px;
    min-height: 30px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--red);
    font-size: 15px;
    font-weight: 900;
}

.notice-detail header time {
    color: var(--muted);
    font-size: 16px;
}

.notice-detail h2 {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    font-size: 28px;
    letter-spacing: 0;
}

.notice-detail-content {
    display: grid;
    gap: 14px;
    color: #24384f;
    font-size: 18px;
    line-height: 1.75;
}

.notice-detail-content h2,
.notice-detail-content h3 {
    margin: 0;
    color: var(--ink);
    font-size: 23px;
    letter-spacing: 0;
}

.notice-detail-content p,
.notice-detail-content ul,
.notice-detail-content ol {
    margin: 0;
}

.notice-detail-content ul,
.notice-detail-content ol {
    padding-left: 1.35em;
}

.notice-detail-content code {
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(20, 34, 54, .08);
}

.notice-detail-content hr {
    width: 100%;
    height: 1px;
    margin: 4px 0;
    border: 0;
    background: linear-gradient(90deg, transparent, rgba(229, 179, 70, .55), transparent);
}

.guide-body {
    padding: 20px 24px 26px;
}

.guide-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

.guide-subnav-button {
    min-width: 132px;
    height: 42px;
    border: 1px solid rgba(229, 179, 70, .48);
    border-radius: 999px;
    color: #8b6421;
    background: rgba(246, 207, 98, .14);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.guide-subnav-button:hover,
.guide-subnav-button.is-active {
    color: #152438;
    background: linear-gradient(180deg, #ffd86b, var(--gold));
}

.guide-panel {
    padding-top: 18px;
}

.character-tabs {
    display: flex;
    justify-content: center;
    padding: 0 0 18px;
}

.character-tabs img {
    display: block;
    width: min(100%, 567px);
    height: auto;
}

.character-list {
    display: grid;
    margin-top: 0;
}

.character-row {
    display: grid;
    grid-template-columns: 212px minmax(0, 1fr);
    grid-template-areas: "visual copy";
    align-items: center;
    gap: 22px;
    min-height: 158px;
    padding: 20px 12px;
    border-bottom: 2px dotted #b9b1a4;
    background: transparent;
}

.character-row:first-child {
    border-top: 2px dotted #b9b1a4;
}

.character-row.is-reverse {
    grid-template-columns: minmax(0, 1fr) 212px;
    grid-template-areas: "copy visual";
}

.character-visual {
    grid-area: visual;
    display: grid;
    justify-items: center;
    gap: 9px;
}

.character-portrait {
    width: 128px;
    height: 112px;
    object-fit: cover;
    border: 1px solid #b8b8b8;
    background: #fff;
}

.character-copy {
    grid-area: copy;
}

.character-nameplate {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    letter-spacing: 0;
    text-align: center;
}

.character-nameplate span {
    font-weight: 1000;
}

.character-nameplate small {
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.character-copy p {
    margin: 4px 0;
    color: #334156;
    font-size: 18px;
    line-height: 1.66;
}

.character-detail-button {
    width: 104px;
    height: 22px;
    margin-top: 5px;
    border: 0;
    padding: 0;
    overflow: hidden;
    color: transparent;
    background: url("game-assets/characters/surp/img/View_detail_normal.gif") center / 104px 22px no-repeat;
    cursor: pointer;
    text-indent: -999px;
}

.character-detail-button:hover,
.character-detail-button:focus-visible {
    background-image: url("game-assets/characters/surp/img/View_detail_over.gif");
    outline: 2px solid rgba(16, 135, 127, .28);
    outline-offset: 3px;
}

.character-detail-templates {
    display: none;
}

.modal-open {
    overflow: hidden;
}

.character-modal {
    width: 820px;
    max-width: none;
    max-height: calc(100vh - 64px);
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
}

.character-modal::backdrop {
    background: rgba(9, 18, 31, .66);
}

.character-modal-panel {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 64px);
    margin: 0;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .32);
}

.character-modal-close {
    position: sticky;
    top: 12px;
    float: right;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    margin: 12px 12px 0 0;
    place-items: center;
    border: 1px solid rgba(20, 34, 54, .16);
    border-radius: 50%;
    color: var(--ink);
    background: #fffdfa;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.character-modal-body {
    clear: both;
    padding: 20px 24px 26px;
}

.character-detail-layout {
    display: grid;
    grid-template-columns: 54% minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.character-detail-art {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.character-detail-text {
    padding-top: 12px;
}

.character-detail-text h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 26px;
    letter-spacing: 0;
}

.character-detail-text strong {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #8b6421;
    background: rgba(246, 207, 98, .2);
    font-size: 14px;
}

.character-detail-text p {
    margin: 0 0 10px;
    color: #334156;
    font-size: 15px;
    line-height: 1.7;
}

.character-detail-text a {
    display: inline-flex;
    margin-top: 8px;
    color: var(--teal);
    font-weight: 900;
}

.interface-guide-panel {
    padding-top: 4px;
}

.interface-list {
    display: grid;
}

.interface-row {
    display: grid;
    grid-template-columns: 64px 20px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 82px;
    padding: 15px 0;
    border-bottom: 2px dotted #b9b1a4;
}

.interface-row:first-child {
    border-top: 2px dotted #b9b1a4;
}

.interface-icon {
    display: block;
    justify-self: center;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
}

.interface-bullet {
    display: block;
    width: 10px;
    height: 14px;
}

.interface-row p {
    margin: 0;
    color: #334156;
    font-size: 20px;
    line-height: 1.62;
}

.interface-row strong {
    color: var(--ink);
    font-weight: 900;
}

.key-guide-panel,
.item-guide-panel {
    padding-top: 14px;
}

.key-section {
    padding: 0 0 20px;
    border-bottom: 2px dotted #b9b1a4;
}

.key-section + .key-section {
    padding-top: 18px;
}

.key-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 22px;
    letter-spacing: 0;
}

.key-section h3 img {
    width: 9px;
    height: 9px;
}

.key-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 44px;
    align-items: start;
}

.key-action-grid figure {
    display: grid;
    gap: 10px;
    margin: 0;
    justify-items: center;
}

.key-action-grid img,
.key-map-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.key-action-grid figcaption {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
}

.key-map-image {
    margin: 0 auto;
}

.scroll-table-note {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 18px;
}

.scroll-table-note img {
    width: 130px;
    height: 19px;
}

.scroll-table-wrap {
    overflow-x: auto;
}

.scroll-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    color: #18283a;
    background: #d6d6d6;
    font-size: 18px;
    line-height: 1.45;
}

.scroll-table th,
.scroll-table td {
    border: 2px solid #fff;
    padding: 8px 12px;
    text-align: center;
    vertical-align: middle;
}

.scroll-table th {
    color: #fff;
    background: #565656;
    font-size: 19px;
    font-weight: 900;
}

.scroll-table td:nth-child(1) {
    width: 48px;
}

.scroll-table td:nth-child(2) {
    width: 64px;
}

.scroll-table td:nth-child(3) {
    width: 210px;
}

.scroll-table td:nth-child(4) {
    width: 100px;
}

.scroll-table td:nth-child(5) {
    text-align: left;
}

.scroll-table img {
    display: block;
    width: 42px;
    height: 51px;
    margin: 0 auto;
}

.mode-guide-panel {
    padding-top: 8px;
}

.mode-section-list {
    display: grid;
    gap: 18px;
}

.mode-section h3 {
    display: inline-flex;
    min-width: 124px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    margin: 0 0 8px;
    padding: 0 18px;
    border-radius: 3px;
    color: #6b6127;
    background: #f4ed9c;
    font-size: 20px;
    letter-spacing: 0;
}

.mode-list {
    display: grid;
}

.mode-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 22px;
    padding: 16px 0 20px;
    border-top: 2px dotted #b9b1a4;
}

.mode-row-featured {
    grid-template-columns: 176px minmax(0, 1fr);
}

.mode-visual {
    display: grid;
    justify-items: center;
    align-content: start;
    padding-top: 4px;
}

.mode-visual img {
    display: block;
    width: auto;
    height: auto;
    max-width: 107px;
    border-radius: 8px;
}

.mode-row-featured .mode-visual img {
    width: auto;
    height: auto;
    max-width: 107px;
}

.mode-visual span {
    display: grid;
    width: 108px;
    min-height: 74px;
    place-items: center;
    padding: 10px;
    border: 1px solid rgba(20, 34, 54, .12);
    border-radius: 8px;
    color: #6b6127;
    background: #f8f1cf;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.mode-copy h4 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: #111;
    font-size: 21px;
    letter-spacing: 0;
}

.mode-copy h4 > img {
    width: 11px;
    height: 11px;
}

.mode-copy h4 span {
    color: #111;
    font-weight: 900;
}

.mode-copy p {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 10px;
    margin: 7px 0;
    color: #405061;
    font-size: 18px;
    line-height: 1.66;
}

.mode-copy p img {
    width: 10px;
    height: 14px;
    margin-top: 8px;
}

.map-guide-panel {
    padding-top: 12px;
}

.map-archive-sheet {
    display: grid;
    justify-items: start;
    width: min(100%, 760px);
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
}

.map-archive-sheet img {
    display: block;
    width: 100%;
    height: auto;
}

.map-split-row {
    display: grid;
    grid-template-columns: 235fr 350fr;
    width: 100%;
}

.map-split-row img {
    width: 100%;
}

.monster-image-nav {
    display: flex;
    justify-content: center;
    margin: 0 0 20px;
}

.monster-strip-frame {
    position: relative;
    width: min(100%, 610px);
    aspect-ratio: 362 / 31;
}

.monster-nav-strip {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    image-rendering: auto;
}

.monster-hotspot {
    position: absolute;
    top: 0;
    bottom: 0;
    border: 0;
    padding: 0;
    color: transparent;
    background: transparent;
    cursor: pointer;
}

.monster-hotspot span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.monster-hotspot-dungeon {
    left: 0;
    width: 33.333%;
}

.monster-hotspot-forest {
    left: 33.333%;
    width: 33.333%;
}

.monster-hotspot-volcano {
    left: 66.666%;
    width: 33.334%;
}

.monster-hotspot:hover,
.monster-hotspot:focus,
.monster-hotspot:focus-visible {
    outline: 0;
    box-shadow: none;
}

.monster-panel {
    display: grid;
    gap: 14px;
}

.monster-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.monster-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    min-height: 164px;
    padding: 14px;
    border: 1px solid rgba(20, 34, 54, .1);
    border-radius: 12px;
    background: #fffdfa;
}

.monster-image {
    display: block;
    width: 108px;
    height: 116px;
    object-fit: contain;
    align-self: start;
    border: 1px solid rgba(20, 34, 54, .08);
    border-radius: 10px;
    background: #fff;
}

.monster-copy h5 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    letter-spacing: 0;
}

.monster-copy span {
    display: inline-flex;
    margin: 5px 0 8px;
    color: #8b6421;
    font-size: 14px;
    font-weight: 900;
}

.monster-copy p {
    margin: 0;
    color: #334156;
    font-size: 16px;
    line-height: 1.62;
}

.card-archive-head {
    display: block;
    margin: -2px 0 12px;
    padding: 14px 16px;
    border: 1px solid rgba(20, 34, 54, .1);
    border-radius: 12px;
    background: #fbf7ef;
}

.card-archive-head h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 24px;
    letter-spacing: 0;
}

.card-archive-head p {
    margin: 0;
    color: #334156;
    font-size: 16px;
    line-height: 1.62;
}

.card-archive-head img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    justify-self: end;
    border-radius: 8px;
    background: #fff;
}

.card-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.card-subnav-button {
    min-width: 150px;
    min-height: 48px;
    border: 1px solid rgba(16, 135, 127, .24);
    border-radius: 10px;
    color: #315052;
    background: #fffdfa;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.card-subnav-button:hover,
.card-subnav-button.is-active {
    color: #fff7df;
    background: linear-gradient(180deg, #253b52, #152538);
}

.card-panel {
    margin-top: 8px;
}

.card-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.card-type-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    min-height: 168px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffdfa;
}

.card-type-visual {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 12px;
    background: #fbf1db;
}

.card-type-visual img {
    display: block;
    max-width: 60px;
    height: auto;
}

.card-type-white .card-type-visual img {
    width: 58px;
    max-width: 58px;
}

.card-type-visual span {
    display: grid;
    width: 48px;
    height: 54px;
    place-items: center;
    border: 2px solid #d8d0c1;
    border-radius: 7px;
    color: #7a6a50;
    background: #fff;
    font-size: 14px;
    font-weight: 1000;
}

.card-type-card h4,
.card-copy-block h4,
.utility-card h4,
.white-card h4 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    letter-spacing: 0;
}

.card-type-card p {
    margin: 7px 0 9px;
    color: #334156;
    font-size: 16px;
    line-height: 1.56;
}

.card-type-card ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    list-style: none;
}

.card-type-card li::before {
    margin-right: 6px;
    color: var(--gold);
    content: "◆";
    font-size: 9px;
}

.card-info-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.gold-black-intro {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(20, 34, 54, .1);
    border-radius: 12px;
    background: #fffdfa;
}

.gold-black-intro img {
    display: block;
    width: 126px;
    height: auto;
}

.gold-black-intro h4 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 22px;
    letter-spacing: 0;
}

.gold-black-intro p {
    margin: 0 0 7px;
    color: #26364c;
    font-size: 17px;
    line-height: 1.58;
}

.card-info-strip article {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 10px;
    color: #fff7df;
    background: linear-gradient(135deg, #182b3e, #16847d);
}

.card-info-strip strong {
    font-size: 18px;
}

.card-info-strip span {
    color: rgba(255, 247, 223, .82);
    font-size: 16px;
    line-height: 1.55;
}

.base-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.base-card-tile {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px;
    min-height: 112px;
    padding: 10px;
    border: 1px solid rgba(20, 34, 54, .1);
    border-radius: 10px;
    background: #fffdfa;
}

.base-card-art {
    display: block;
    width: 45px;
    height: 53px;
    object-fit: contain;
}

.base-card-copy {
    min-width: 0;
}

.base-card-number {
    display: inline-flex;
    margin-bottom: 4px;
    color: #8b6421;
    font-size: 13px;
    font-weight: 1000;
}

.base-card-copy h4 {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    letter-spacing: 0;
}

.base-card-copy p {
    margin: 2px 0 6px;
    color: var(--muted);
    font-size: 13px;
}

.base-card-copy em {
    display: grid;
    gap: 4px;
    color: #334156;
    font-size: 14px;
    font-style: normal;
    line-height: 1.38;
}

.card-reference-box {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(20, 34, 54, .1);
    border-radius: 12px;
    background: #fffdfa;
}

.card-reference-sample {
    display: block;
    width: 96px;
    height: auto;
}

.card-reference-copy h4 {
    margin: 0 0 7px;
    color: var(--ink);
    font-size: 18px;
    letter-spacing: 0;
}

.card-reference-copy p {
    margin: 0;
    color: #334156;
    font-size: 14px;
    line-height: 1.65;
}

.card-rule-images {
    display: grid;
    justify-items: start;
    gap: 14px;
    margin-bottom: 18px;
}

.card-rule-images img {
    display: block;
    width: min(100%, 760px);
    max-width: 760px;
    height: auto;
    border: 1px solid rgba(20, 34, 54, .08);
    border-radius: 10px;
    background: #fff;
}

.base-card-copy em img {
    display: block;
    width: 49px;
    height: auto;
}

.card-copy-block {
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(229, 179, 70, .32);
    border-radius: 12px;
    background: rgba(246, 207, 98, .12);
}

.card-copy-block p {
    margin: 8px 0 0;
    color: #334156;
    font-size: 16px;
    line-height: 1.65;
}

.utility-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.utility-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    min-height: 126px;
    padding: 14px;
    border: 1px solid rgba(20, 34, 54, .1);
    border-radius: 10px;
    background: #fffdfa;
}

.utility-card > span {
    display: grid;
    width: 40px;
    height: 52px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(180deg, #c7ccd5, #7a8493);
    font-size: 18px;
    font-weight: 1000;
}

.utility-card p {
    margin: 3px 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.utility-card strong {
    display: block;
    color: #334156;
    font-size: 15px;
    line-height: 1.55;
}

.white-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.white-card-showcase {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(20, 34, 54, .1);
    border-radius: 12px;
    background: #fffdfa;
}

.white-card-showcase img {
    display: block;
    width: 164px;
    height: auto;
    image-rendering: auto;
}

.white-card-showcase h4 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 18px;
    letter-spacing: 0;
}

.white-card-showcase p {
    margin: 0;
    color: #334156;
    font-size: 16px;
    line-height: 1.55;
}

.white-card {
    min-height: 130px;
    padding: 15px;
    border: 1px solid rgba(20, 34, 54, .1);
    border-radius: 10px;
    background: #fffdfa;
}

.white-card > img {
    display: block;
    width: 44px;
    height: auto;
    margin-bottom: 12px;
}

.white-card span {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #8b6421;
    background: rgba(246, 207, 98, .22);
    font-size: 13px;
    font-weight: 900;
}

.white-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.guild-highlight {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin: 24px;
    padding: 20px 24px;
    border-radius: 16px;
    color: #fff7df;
    background: linear-gradient(135deg, #163044, #16847d 58%, #d5a840);
}

.rank-badge {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 50%;
    color: #152438;
    background: var(--gold);
    font-size: 24px;
    font-weight: 1000;
}

.guild-highlight div span {
    display: block;
    color: rgba(255, 247, 223, .78);
    font-size: 14px;
    font-weight: 900;
}

.guild-highlight strong {
    display: block;
    margin-top: 3px;
    font-size: 34px;
}

.guild-highlight em {
    font-style: normal;
    font-size: 22px;
    font-weight: 1000;
}

.guild-highlight-icon {
    width: 26px;
    height: 28px;
    margin-right: 8px;
    vertical-align: -5px;
    image-rendering: pixelated;
    border-radius: 4px;
    background: rgba(255, 255, 255, .14);
    padding: 1px;
}

/* 排行榜：战盟名称（含标志）与盟主（含头像）单元格 */
.guild-rank-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.guild-rank-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 4px;
    background: #fff;
    border: 1px solid var(--line);
}
.guild-rank-icon img {
    width: 12px;
    height: 13px;
    object-fit: contain;
    image-rendering: pixelated;
}
.guild-rank-leader {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.guild-rank-leader-avatar {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
}
.guild-rank-empty {
    padding: 28px 16px !important;
    text-align: center;
    color: var(--muted);
    font-weight: 700;
}

/* 排行榜占位行（刚开服 / 数据不足时补齐到 6 行）*/
.rank-mini--ph {
    background: #cfc8b8;
}
.guild-rank-leader-avatar--ph {
    opacity: .85;
}
.guild-rank-ph-bar {
    display: inline-block;
    height: 10px;
    border-radius: 999px;
    background: #e7e0d2;
    vertical-align: middle;
}
.guild-rank-ph-bar--name { width: 150px; }
.guild-rank-ph-bar--score { width: 96px; }
.guild-rank-ph-bar--leader { width: 72px; }

table {
    width: calc(100% - 48px);
    margin: 0 24px 24px;
    border-collapse: collapse;
    font-size: 16px;
}

th,
td {
    padding: 16px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: var(--ink);
    font-size: 14px;
    font-weight: 1000;
}

.rank-mini {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 7px;
    color: #fff;
    background: var(--teal);
    font-weight: 1000;
}

.site-footer {
    margin-top: 24px;
    padding: 42px 20px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 253, 250, .9);
    box-shadow: 0 18px 40px rgba(58, 70, 80, .1);
}

.footer-animation {
    margin-bottom: 18px;
    text-align: center;
}

.footer-animation img {
    display: inline-block;
    width: 300px;
    max-width: 100%;
    height: auto;
}

.footer-mail-icon {
    display: inline-block;
    margin-right: 2px;
    font-size: 1.35em;
    line-height: 1;
    vertical-align: -0.08em;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
    color: var(--teal);
    font-size: 24px;
}

.site-footer p {
    margin: 0 0 10px;
    font-size: 15px;
}

.site-footer nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    color: var(--teal);
    font-size: 15px;
    font-weight: 900;
}

.footer-copyright {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}
.footer-copyright p { margin: 0; }
.footer-copyright a {
    color: var(--teal);
    font-weight: 700;
    font-size: inherit;
    text-decoration: none;
}
.footer-copyright a:hover { text-decoration: underline; }

/* ============================================================
   战盟面板 #guild —— Apple 风高级重设计
   干净留白 · 超大标题排版 · 克制配色 · 无装饰图标
   配色沿用站点：米白底 + 金色点缀
   ============================================================ */

.guild-view {
    --gld-ink: #111625;
    --gld-sub: #707A8A;
    --gld-gold: #c08a2e;
    --gld-gold-soft: #f6efdd;
    --gld-card: #FAF9F6;
    --gld-hair: #E6E1D5;
    background: #ffffff;
}

.guild-view-body {
    display: block;
    padding: 0;
}

.guild-view-message {
    margin: 0;
    padding: 22px 40px 0;
    color: var(--gld-sub);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.guild-view-message.is-error { color: var(--red); }
.guild-view-message.is-success { color: var(--teal); }
.guild-view-message:empty { display: none; }

/* ---------- 加载状态 ---------- */
.guild-state--loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 120px 22px;
    color: var(--gld-sub);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}
.guild-state--loading p { margin: 0; }

.guild-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(192, 138, 46, 0.1);
    border-top-color: var(--gld-gold);
    border-radius: 50%;
    animation: guild-spin 0.8s cubic-bezier(0.6, 0.2, 0.2, 0.8) infinite;
}

@keyframes guild-spin {
    to { transform: rotate(360deg); }
}

/* ---------- 未登录 / 空状态 ---------- */
.guild-empty-card {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 96px 40px;
    text-align: center;
}
.guild-empty-card strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--gld-ink); }
.guild-empty-card p { margin: 0; max-width: 440px; color: var(--gld-sub); font-size: 15px; line-height: 1.6; }

/* ---------- Minimal Buttons ---------- */
.guild-btn {
    min-height: 48px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.guild-btn:hover:not([disabled]):not(.is-disabled) { transform: translateY(-1px); }
.guild-btn:active:not([disabled]):not(.is-disabled) { transform: translateY(0); }
.guild-btn[disabled],
.guild-btn.is-disabled { cursor: not-allowed; opacity: .45; transform: none !important; box-shadow: none !important; }

.guild-btn--primary {
    color: #2a1d05;
    background: linear-gradient(180deg, #f5d684, #dfad45);
    box-shadow: 0 6px 20px rgba(223, 173, 69, .18);
}
.guild-btn--primary:hover:not([disabled]) { 
    background: linear-gradient(180deg, #f7db93, #e3b34f);
    box-shadow: 0 10px 24px rgba(223, 173, 69, .26); 
}

.guild-btn--ghost {
    color: var(--gld-ink);
    background: #faf8f4;
    border: 1px solid var(--gld-hair);
}
.guild-btn--ghost:hover:not([disabled]) { 
    background: #f3edd9; 
    border-color: #d4ccba;
}

.guild-btn--ghost-danger {
    color: var(--red);
    background: #fff5f5;
    border: 1px solid rgba(206, 90, 76, .15);
}
.guild-btn--ghost-danger:hover:not([disabled]) {
    background: #fee2e2;
    border-color: rgba(206, 90, 76, .3);
}

.guild-btn--hero-danger {
    color: #ffd2cc;
    background: rgba(233, 117, 95, 0.08);
    border: 1px solid rgba(233, 117, 95, 0.2);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    min-height: 38px;
    padding: 0 18px;
}
.guild-btn--hero-danger:hover:not([disabled]) {
    color: #ffffff;
    background: #CE5A4C;
    border-color: #CE5A4C;
}

.guild-btn--danger { 
    color: #fff; 
    background: linear-gradient(180deg, #e9755f, #ce5a4c); 
    box-shadow: 0 6px 18px rgba(206, 90, 76, .18); 
}
.guild-btn--danger:hover:not([disabled]) { 
    box-shadow: 0 10px 22px rgba(206, 90, 76, .26); 
}

.guild-btn--small { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.guild-btn--block { width: 100%; }

/* ---------- Premium Hero Card ---------- */
.guild-hero-card {
    position: relative;
    overflow: hidden;
    margin: 40px;
    min-height: 134px;
    align-content: center;
    padding: 26px 34px;
    border-radius: 16px;
    background: radial-gradient(circle at 88% 20%, rgba(246, 207, 98, .22), transparent 150px), linear-gradient(135deg, #253b52, #142236 72%);
    box-shadow: 0 18px 34px rgba(20, 34, 54, .2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.guild-hero-card::before {
    position: absolute;
    inset: auto -40px -80px auto;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 247, 223, .14);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    z-index: 1;
}

.guild-hero-card::after {
    position: absolute;
    top: 28px;
    right: 22px; /* Restore standard right alignment for perfect match with #register */
    color: rgba(246, 207, 98, .82);
    content: "SPAEON";
    font-size: 34px;
    font-weight: 1000;
    letter-spacing: 0.06em;
    opacity: .22;
    pointer-events: none;
    z-index: 1;
}

.guild-hero-bg-glow {
    display: none;
}

.guild-hero-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
    flex: 1;
    min-width: 280px;
}

.guild-hero-crest {
    position: relative;
    width: 24px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 247, 223, 0.2);
    flex-shrink: 0;
}
.guild-hero-crest[hidden] {
    display: none !important;
}
.guild-hero-icon { 
    width: 12px; 
    height: 13px; 
    object-fit: contain; 
    image-rendering: pixelated; 
}
.guild-hero-icon[hidden] { display: none !important; }

.guild-hero-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guild-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guild-role-tag { 
    font-size: 11px;
    font-weight: 700; 
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: .02em;
    color: #ffdca3;
    background: rgba(255, 220, 163, 0.1);
    border: 1px solid rgba(255, 220, 163, 0.15);
}

.guild-hero-duty { 
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 247, 223, 0.7);
}
.guild-hero-duty em { font-style: normal; color: #ffffff; font-weight: 700; }
.guild-hero-duty[hidden] { display: none !important; }

.guild-hero-name {
    margin: 0;
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.guild-hero-actions-container {
    position: absolute;
    right: 22px;
    bottom: 16px;
    z-index: 2;
}

/* ---------- Stat Cards Vertical Typography (No Icons, No Overflow) ---------- */
.guild-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 40px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--gld-hair);
}

.guild-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 28px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--gld-hair);
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 0; /* Important: lets fluid clamp sizing do its job */
}
.guild-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(192, 138, 46, 0.3);
    box-shadow: 0 8px 24px rgba(192, 138, 46, 0.04);
}

.guild-stat-label { 
    color: var(--gld-sub); 
    font-size: 13px; 
    font-weight: 600; 
    letter-spacing: .03em;
    margin-bottom: 8px;
}

.guild-stat-value {
    color: var(--gld-ink);
    font-size: clamp(20px, 2.5vw, 28px); /* Responsive sizing: large on desktops, gracefully smaller to prevent overflow */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

/* ---------- Solo State Hero ---------- */
.guild-hero--solo {
    position: relative;
    overflow: hidden;
    min-height: 134px;
    align-content: center;
    padding: 26px 34px;
    border-radius: 16px;
    background: radial-gradient(circle at 88% 20%, rgba(246, 207, 98, .22), transparent 150px), linear-gradient(135deg, #253b52, #142236 72%);
    box-shadow: 0 18px 34px rgba(20, 34, 54, .2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 40px 40px 24px;
}

.guild-hero--solo::before {
    position: absolute;
    inset: auto -40px -80px auto;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 247, 223, .14);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    z-index: 1;
}

.guild-hero--solo::after {
    position: absolute;
    top: 28px;
    right: 22px;
    color: rgba(246, 207, 98, .82);
    content: "SPAEON";
    font-size: 34px;
    font-weight: 1000;
    letter-spacing: 0.06em;
    opacity: .22;
    pointer-events: none;
    z-index: 1;
}

.guild-hero--solo .guild-hero-name {
    color: #fff7df !important;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    z-index: 1;
}

.guild-hero--solo .guild-hero-sub {
    color: rgba(255, 247, 223, 0.8) !important;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    max-width: 440px;
    line-height: 1.5;
    z-index: 1;
}

.guild-hero--solo .guild-hero-sub {
    color: var(--gld-sub);
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    max-width: 440px;
    line-height: 1.5;
}

/* ---------- Functional Panels (Premium Minimalist Grid) ---------- */
.guild-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    padding: 34px 40px 50px;
}
.guild-panels--solo {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    padding-top: 12px;
}

.guild-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    border-radius: 20px;
    background: var(--gld-card);
    border: 1px solid var(--gld-hair);
}
.guild-panel[hidden] { display: none !important; }

.guild-panel--info { 
    background: #FAF7F0; 
    border-color: #E2DEC9;
}
.guild-panel.is-disabled { 
    opacity: .6; 
    pointer-events: none;
}

.guild-panel-header { display: flex; flex-direction: column; gap: 4px; }

.guild-panel-header h3 { 
    margin: 0; 
    color: var(--gld-ink); 
    font-size: 18px; 
    font-weight: 700; 
    letter-spacing: -.01em; 
}
.guild-panel-hint { 
    color: var(--gld-sub); 
    font-size: 13px; 
    font-weight: 600; 
}

/* Forms */
.guild-form { display: grid; gap: 16px; }
.guild-field { display: grid; gap: 8px; }
.guild-field > span { color: var(--gld-ink); font-size: 14px; font-weight: 700; }

.guild-field input[type="text"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--gld-hair);
    border-radius: 10px;
    background: #fff;
    color: var(--gld-ink);
    font: inherit;
    font-size: 14.5px;
    outline: none;
    transition: all .2s ease;
}
.guild-field input[type="text"]:focus { 
    border-color: var(--gld-gold); 
    box-shadow: 0 0 0 3px rgba(192, 138, 46, .1); 
    background: #fff;
}
.guild-field input[type="text"]:disabled { 
    background: #edeae2; 
    color: var(--gld-sub); 
    cursor: not-allowed; 
}

.guild-field--file { gap: 8px; }
.guild-field input[type="file"] {
    width: 100%;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--gld-hair);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.guild-field input[type="file"]::file-selector-button {
    min-height: 30px;
    margin-right: 12px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    color: #2a1d05;
    background: linear-gradient(180deg, #f5d684, #dfad45);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.guild-field input[type="file"]:disabled { cursor: not-allowed; opacity: .55; }
.guild-field small,
.guild-help { color: var(--gld-sub); font-size: 12.5px; line-height: 1.5; font-weight: 500; }
.guild-help { margin: 0; }

.guild-form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.guild-form-note {
    margin: 0;
    color: var(--gld-sub);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

/* Tips */
.guild-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guild-tips li {
    position: relative;
    padding-left: 18px;
    color: #6a6353;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}
.guild-tips li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gld-gold);
}

/* 盟主面板：固定两列，实现 宣言|图标 / 申请|成员 的 2x2 布局 */
/* align-items: stretch 让同一行的两个面板高度一致（无论有无内容）*/
.guild-state--member.is-leader .guild-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

/* 战盟宣言 - 编辑（盟主）*/
.guild-field textarea {
    width: 100%;
    min-height: 92px;
    padding: 12px 16px;
    border: 1px solid var(--gld-hair);
    border-radius: 10px;
    background: #fff;
    color: var(--gld-ink);
    font: inherit;
    font-size: 14.5px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: all .2s ease;
}
.guild-field textarea:focus {
    border-color: var(--gld-gold);
    box-shadow: 0 0 0 3px rgba(192, 138, 46, .1);
}
.guild-field textarea:disabled {
    background: #edeae2;
    color: var(--gld-sub);
    cursor: not-allowed;
}
.guild-manifesto-counter {
    float: right;
    color: var(--gld-sub);
    font-weight: 700;
}

/* 战盟宣言 - 展示（成员）*/
.guild-manifesto-display {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #fffaf0;
    border: 1px solid #ecdfc2;
}
.guild-manifesto-display::before {
    content: "\201C";
    color: var(--gld-gold);
    font-size: 40px;
    font-weight: 900;
    line-height: .8;
    flex-shrink: 0;
}
.guild-manifesto-text {
    margin: 0;
    color: #5b4a28;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    word-break: break-word;
}
.guild-manifesto-text.is-empty {
    color: var(--gld-sub);
    font-weight: 600;
    font-style: italic;
}

/* 战盟容量徽章（目录列表）- 固定尺寸，所有徽章大小一致 */
.guild-capacity-badge {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    flex-shrink: 0;
    width: 84px;
    min-height: 50px;
    padding: 8px 6px;
    border-radius: 10px;
    background: #f0f7f0;
    border: 1px solid #cfe6cf;
}
.guild-capacity-badge.is-high {
    background: #fff6e8;
    border-color: #f2dcb0;
}
.guild-capacity-badge.is-full {
    background: #fdecec;
    border-color: #f3c7c7;
}
.guild-capacity-num {
    color: #3f7a44;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.guild-capacity-badge.is-high .guild-capacity-num { color: #b5801f; }
.guild-capacity-badge.is-full .guild-capacity-num { color: #c0504a; }
.guild-capacity-label {
    color: var(--gld-sub);
    font-size: 11.5px;
    font-weight: 600;
}
.guild-capacity-badge.is-full .guild-capacity-label { color: #c0504a; }

/* Logo Management */
.guild-mark-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.guild-mark-preview {
    width: 24px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: #fff;
    border: 1px solid var(--gld-hair);
    flex-shrink: 0;
}
.guild-mark-preview img { width: 12px; height: 13px; object-fit: contain; image-rendering: pixelated; }
.guild-mark-preview span { color: var(--gld-sub); font-size: 11px; font-weight: 600; text-align: center; }
.guild-mark-status { margin: 0; color: var(--gld-ink); font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.guild-form--mark { display: grid; gap: 14px; }
.guild-form--mark .guild-form-actions { display: flex; }

/* Requests Panel */
.guild-request-list { display: grid; gap: 8px; }
.guild-request-empty { display: grid; gap: 6px; padding: 30px 20px; text-align: center; }
.guild-request-empty strong { color: var(--gld-ink); font-size: 15px; font-weight: 700; }
.guild-request-empty p { margin: 0; color: var(--gld-sub); font-size: 13px; line-height: 1.4; }
.guild-request-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--gld-hair);
}
.guild-request-avatar { width: 34px; height: 38px; border-radius: 50%; object-fit: cover; background: transparent; }
.guild-request-info { display: grid; gap: 1px; min-width: 0; }
.guild-request-info strong { color: var(--gld-ink); font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guild-request-info span { color: var(--gld-sub); font-size: 11.5px; font-weight: 500; }
.guild-request-actions { display: flex; gap: 6px; align-items: center; }
.guild-member-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gld-sub);
    background: #faf8f4;
    border: 1px solid var(--gld-hair);
    white-space: nowrap;
}

/* Requests Pagination styling */
.guild-request-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--gld-hair);
}

.guild-request-page-indicator {
    color: var(--gld-sub);
    font-size: 13.5px;
    font-weight: 700;
}
/* Pending Banner */
.guild-pending-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 40px 24px;
    padding: 14px 20px;
    border-radius: 12px;
    background: #FFF9F0;
    border: 1px solid #FFE0C2;
}
.guild-pending-banner[hidden] { display: none !important; }

.guild-pending-content strong { display: block; margin-bottom: 2px; color: #a04000; font-size: 15px; font-weight: 700; }
.guild-pending-content p { margin: 0; color: #b25316; font-size: 13px; line-height: 1.4; font-weight: 600; }
.guild-pending-banner em { font-style: normal; color: #a04000; font-weight: 800; }

/* ---------- Embedded Inline Guild Directory (No More Absolute Dropdown) ---------- */
.guild-directory-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 16px;
    background: #ffffff;
    border: 1px solid var(--gld-hair);
    border-radius: 12px;
    overflow: hidden;
    padding: 16px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.015);
}

.guild-directory-search-wrap {
    position: relative;
    width: 100%;
}

.guild-directory-search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--gld-hair);
    border-radius: 8px;
    background: #FAF9F5;
    color: var(--gld-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}
.guild-directory-search-input:focus {
    border-color: var(--gld-gold);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(192, 138, 46, 0.08);
}

.guild-directory-list-wrapper {
    width: 100%;
    max-height: 240px; /* Golden interaction height limit */
    overflow-y: auto;
    border: 1px solid #f2edd9;
    border-radius: 8px;
    background: #fff;
}

.guild-select-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #f0ebd8; /* Elegant fine-bordered card */
    border-radius: 8px;
    background: #FAF9F6;
    text-align: left;
    cursor: pointer;
    transition: all .15s ease;
}
.guild-select-option.no-icon {
    /* To align perfectly, we should use a spacer instead of changing padding, or make padding-left exactly match */
    padding-left: 52px !important; /* Forces the padding value explicitly to override any hover/selected overrides */
}
.guild-select-option:hover { 
    background: #ffffff; 
    border-color: var(--gld-gold);
    box-shadow: 0 4px 12px rgba(192, 138, 46, 0.05);
}
.guild-select-option.is-selected { 
    background: var(--gld-gold-soft); 
    border-color: var(--gld-gold);
    box-shadow: 0 4px 12px rgba(192, 138, 46, 0.08);
}
.guild-select-option.is-selected .guild-select-option-name {
    color: #926315;
}

.guild-select-option-icon {
    width: 24px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid var(--gld-hair);
    flex-shrink: 0;
}
.guild-select-option-icon img {
    width: 12px;
    height: 13px;
    object-fit: contain;
    image-rendering: pixelated;
}

.guild-select-option-body {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.guild-select-list {
    display: grid;
    gap: 6px; /* Elegant gap between boxed items */
    padding: 8px;
}
.guild-select-option-name { color: var(--gld-ink); font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guild-select-option-meta { color: var(--gld-sub); font-size: 13.5px; font-weight: 500; }

.guild-select-state {
    padding: 36px 18px;
    text-align: center;
    color: var(--gld-sub);
    font-size: 13.5px;
    font-weight: 600;
}

.guild-selected-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #faf8f5;
    border: 1px solid var(--gld-hair);
    border-radius: 10px;
    margin-bottom: 12px;
}
.guild-selected-status-label {
    color: var(--gld-sub);
    font-size: 14px;
    font-weight: 600;
}
.guild-selected-status-value {
    color: #926315;
    font-size: 16px;
    font-weight: 800;
}

.guild-join-actions { margin-top: 4px; }

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.confirm-modal[hidden] {
    display: none !important;
}

.confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 34, 54, .58);
    backdrop-filter: blur(2px);
    cursor: pointer;
    animation: confirm-fade-in .16s ease;
}

.confirm-modal-panel {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    padding: 26px 28px 22px;
    border: 1px solid rgba(229, 179, 70, .5);
    border-radius: 16px;
    background:
        linear-gradient(180deg, #fff8ea, #fffdfa 36%, #fffdfa);
    box-shadow:
        0 26px 60px rgba(20, 34, 54, .34),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    animation: confirm-pop-in .18s ease;
}

@keyframes confirm-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes confirm-pop-in {
    from { opacity: 0; transform: translateY(8px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.confirm-modal-title {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 1000;
    letter-spacing: 0;
}

.confirm-modal-title::before {
    display: inline-block;
    width: 6px;
    height: 22px;
    margin-right: 12px;
    content: "";
    border-radius: 999px;
    background: var(--gold);
    vertical-align: -5px;
}

.confirm-modal-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 18px 16px 14px;
    border: 1px solid rgba(229, 179, 70, .35);
    border-radius: 12px;
    background: rgba(255, 248, 234, .65);
}

.confirm-modal-preview[hidden] {
    display: none !important;
}

.confirm-modal-preview-stage {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 140px;
}

.confirm-modal-preview img {
    width: 120px;
    height: 130px;
    object-fit: contain;
    image-rendering: pixelated;
    border: 1px solid rgba(20, 34, 54, .12);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(20, 34, 54, .1);
}

.confirm-modal-preview-zoom {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(280px, 100%);
}

.confirm-modal-preview-zoom-label {
    color: #6a7a8c;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.confirm-modal-preview-zoom-value {
    min-width: 34px;
    color: var(--ink, #14223a);
    font-size: 13px;
    font-weight: 900;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.confirm-modal-preview-zoom input[type="range"] {
    flex: 1 1 auto;
    width: 100%;
    height: 6px;
    margin: 0;
    border-radius: 999px;
    background: rgba(20, 34, 54, .14);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    accent-color: var(--gold, #e5b346);
}

.confirm-modal-preview-zoom input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold, #e5b346);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(20, 34, 54, .3);
    cursor: pointer;
}

.confirm-modal-preview-zoom input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold, #e5b346);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(20, 34, 54, .3);
    cursor: pointer;
}

.confirm-modal-preview-caption {
    color: #6a7a8c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-align: center;
}

.confirm-modal-body {
    margin: 0 0 22px;
    color: #455567;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.65;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.confirm-modal-actions .guild-btn {
    min-width: 100px;
}

body.modal-open {
    overflow: hidden;
}

/* 战盟图标设计器 */
.mark-designer {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: grid;
    place-items: center;
    padding: 20px;
}

.mark-designer[hidden] {
    display: none !important;
}

.mark-designer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 34, 54, .58);
    backdrop-filter: blur(2px);
    cursor: pointer;
    animation: confirm-fade-in .16s ease;
}

.mark-designer-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 22px 26px 20px;
    border: 1px solid rgba(229, 179, 70, .5);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff8ea, #fffdfa 36%, #fffdfa);
    box-shadow: 0 26px 60px rgba(20, 34, 54, .34), inset 0 1px 0 rgba(255, 255, 255, .8);
    animation: confirm-pop-in .18s ease;
}

.mark-designer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mark-designer-title {
    margin: 0;
    color: var(--ink, #14223a);
    font-size: 20px;
    font-weight: 1000;
}

.mark-designer-close {
    flex: none;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(20, 34, 54, .06);
    color: #455567;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
}

.mark-designer-close:hover {
    background: rgba(20, 34, 54, .12);
}

.mark-designer-tip {
    margin: 8px 0 16px;
    color: #6a7a8c;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.mark-designer-body {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: flex-start;
}

.mark-designer-canvas-col {
    flex: none;
}

.mark-designer-grid {
    display: grid;
    grid-template-columns: repeat(12, 22px);
    grid-template-rows: repeat(13, 22px);
    gap: 1px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(20, 34, 54, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
    touch-action: none;
    user-select: none;
}

.mark-designer-cell {
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: #ffffff;
    cursor: crosshair;
    box-shadow: inset 0 0 0 1px rgba(20, 34, 54, .07);
}

.mark-designer-cell:hover {
    box-shadow: inset 0 0 0 2px rgba(229, 179, 70, .9);
}

.mark-designer-tools {
    flex: 1 1 200px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mark-designer-tool-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mark-designer-tool-label {
    color: #6a7a8c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.mark-designer-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mark-designer-color-row input[type="color"] {
    width: 40px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(20, 34, 54, .2);
    border-radius: 8px;
    background: none;
    cursor: pointer;
}

.mark-designer-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mark-designer-swatch {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(20, 34, 54, .2);
    border-radius: 6px;
    cursor: pointer;
    transition: transform .1s ease;
}

.mark-designer-swatch:hover {
    transform: scale(1.12);
}

.mark-designer-tool-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mark-designer-tool {
    padding: 7px 14px;
    border: 1px solid rgba(20, 34, 54, .16);
    border-radius: 9px;
    background: #fff;
    color: #455567;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all .15s ease;
}

.mark-designer-tool:hover {
    border-color: rgba(229, 179, 70, .8);
}

.mark-designer-tool.is-active {
    background: var(--gold, #e5b346);
    border-color: var(--gold, #e5b346);
    color: #3a2c05;
}

.mark-designer-preview-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mark-designer-preview-1x {
    width: 12px;
    height: 13px;
    image-rendering: pixelated;
    border: 1px solid rgba(20, 34, 54, .12);
    background: #fff;
}

.mark-designer-preview-zoom {
    width: 60px;
    height: 65px;
    image-rendering: pixelated;
    border: 1px solid rgba(20, 34, 54, .12);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(20, 34, 54, .1);
}

.mark-designer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.mark-designer-actions .guild-btn {
    min-width: 110px;
}

/* 充值收款弹窗 */
.store-pay-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 20px;
}

.store-pay-modal[hidden] { display: none !important; }

.store-pay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 34, 54, .58);
    backdrop-filter: blur(2px);
    cursor: pointer;
    animation: confirm-fade-in .16s ease;
}

.store-pay-panel {
    position: relative;
    z-index: 1;
    width: min(380px, 100%);
    padding: 24px 26px 22px;
    border: 1px solid rgba(229, 179, 70, .5);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff8ea, #fffdfa 36%, #fffdfa);
    box-shadow:
        0 26px 60px rgba(20, 34, 54, .34),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    animation: confirm-pop-in .18s ease;
    text-align: center;
}

.store-pay-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 34, 54, .06);
    color: #455567;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .14s ease;
}

.store-pay-close:hover { background: rgba(20, 34, 54, .12); }

.store-pay-title {
    margin: 0 6px 6px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 1000;
}

.store-pay-amount {
    margin: 0 0 14px;
    color: #8b6421;
    font-size: 15px;
    font-weight: 1000;
}

.store-pay-qr {
    display: grid;
    gap: 10px;
    place-items: center;
}

.store-pay-qr[hidden] { display: none; }

.store-pay-qr-frame {
    width: 240px;
    max-width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(20, 34, 54, .1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 8px 22px rgba(57, 65, 70, .08);
}

.store-pay-qr-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.store-pay-qr-tip {
    margin: 0;
    color: #344658;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.store-pay-paypal {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.store-pay-paypal[hidden] { display: none; }

.store-pay-paypal-text {
    margin: 0;
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}

.store-pay-usd {
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: center;
    color: #6b4d12;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.7;
    background: linear-gradient(180deg, #fff5d6, #fffaf0);
    border: 1px solid rgba(229, 179, 70, .55);
}

.store-pay-usd strong {
    color: #c2410c;
    font-size: 17px;
    letter-spacing: .2px;
}

.store-pay-usd-time,
.store-pay-usd-stale {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    font-weight: 700;
}

.store-pay-usd-time { color: #8a7a4d; }
.store-pay-usd-stale { color: #c2410c; }

.store-pay-note {
    margin: 14px 0 16px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
}

.store-pay-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.store-pay-actions .guild-btn { min-width: 110px; }

/* ============================================================
   商城（Store）
   ============================================================ */

.store-view {
    background:
        radial-gradient(circle at 96% -10%, rgba(246, 207, 98, .1), transparent 320px),
        linear-gradient(180deg, #fdfbf4, #faf7ee);
}

.store-view-body {
    display: grid;
    gap: 26px;
    padding: 28px 32px 36px;
}

.store-view-message {
    min-height: 22px;
    margin: -4px 0 -4px;
    padding: 0 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
}

.store-view-message.is-error { color: var(--red); }
.store-view-message.is-success { color: var(--teal); }
.store-view-message:empty { display: none; }

.store-state[hidden] { display: none !important; }

.store-state--member {
    display: grid;
    gap: 24px;
}

.store-state--loading {
    padding: 36px 22px;
    color: var(--muted);
    font-size: 15px;
    text-align: center;
}

.store-state--loading p { margin: 0; }

.store-hero {
    position: relative;
    overflow: hidden;
    padding: 20px 22px;
    border-radius: 18px;
    color: var(--ink);
    border: 1px solid rgba(213, 153, 40, .28);
    background:
        radial-gradient(circle at 96% 0%, rgba(246, 207, 98, .2), transparent 240px),
        linear-gradient(135deg, rgba(255, 253, 247, .98), rgba(250, 244, 232, .92));
    box-shadow:
        0 16px 34px rgba(58, 70, 80, .09),
        inset 0 1px 0 rgba(255, 255, 255, .92);
}

.store-hero::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    content: "";
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
}

.store-hero-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.store-hero-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.store-hero-crest {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 247, 223, .24);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 253, 250, .14), rgba(255, 253, 250, .04)),
        rgba(8, 20, 32, .42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .14),
        0 14px 28px rgba(8, 20, 32, .28);
}

.store-hero-crest-icon {
    color: var(--gold-2);
    font-size: 28px;
    font-weight: 1000;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.store-hero-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.store-hero-eyebrow {
    color: rgba(255, 247, 223, .58);
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.store-hero-name {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 1000;
    line-height: 1.15;
    letter-spacing: -.015em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .2);
    word-break: break-word;
}

.store-hero-tagline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
    color: rgba(255, 247, 223, .78);
    font-size: 13px;
    font-weight: 900;
}

.store-role-tag {
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 247, 223, .14);
    color: #fff7df;
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: .1em;
}

.store-hero-tip {
    color: rgba(255, 247, 223, .68);
    font-weight: 700;
}

.store-hero-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 22px;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.store-hero-stat {
    position: relative;
    display: grid;
    gap: 7px;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    min-width: 0;
    box-shadow: none;
}

.store-hero-stat::before {
    display: none;
}

.store-hero-stat--cash::before {
    background: linear-gradient(180deg, #ffe39a, #d99928);
}

.store-hero-stat--recharge::before {
    background: linear-gradient(180deg, #8cf0e3, #16847d);
}

.store-hero-stat-label {
    color: #806022;
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.store-hero-stat-value {
    color: var(--ink);
    font-size: clamp(32px, 4.2vw, 44px);
    font-weight: 1000;
    line-height: 1.05;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    text-shadow: none;
}

.store-hero-stat--recharge {
    min-width: 180px;
    justify-items: end;
    gap: 8px;
}

.store-hero-stat-action {
    align-self: center;
    min-height: 44px;
    margin-top: 0;
    padding: 0 28px;
    border: 1px solid rgba(196, 139, 31, .22);
    border-radius: 12px;
    color: #1d2430;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    font: inherit;
    font-size: 14px;
    font-weight: 1000;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(196, 139, 31, .2), inset 0 1px 0 rgba(255, 255, 255, .55);
    transition: transform .14s ease, box-shadow .14s ease;
}

.store-hero-stat-action:hover {
    box-shadow: 0 15px 26px rgba(196, 139, 31, .26), inset 0 1px 0 rgba(255, 255, 255, .62);
    transform: translateY(-1px);
}

@media (max-width: 720px) {
    .store-hero-stats {
        grid-template-columns: 1fr;
    }

    .store-hero-stat--recharge {
        min-width: 0;
    }
}

.store-tabs[hidden],
.store-panel[hidden] {
    display: none !important;
}

.store-messages {
    display: grid;
    gap: 12px;
}

.store-messages[hidden] { display: none; }

.store-message {
    position: relative;
    padding: 16px 20px 16px 18px;
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(246, 207, 98, .18), rgba(255, 253, 250, .92));
    box-shadow: 0 6px 18px rgba(20, 34, 54, .06);
}

.store-message--warning { border-left-color: #d99928; background: linear-gradient(90deg, rgba(217, 153, 40, .2), rgba(255, 253, 250, .92)); }
.store-message--error { border-left-color: var(--red); background: linear-gradient(90deg, rgba(206, 90, 76, .18), rgba(255, 253, 250, .92)); }
.store-message--success { border-left-color: var(--teal); background: linear-gradient(90deg, rgba(16, 135, 127, .18), rgba(255, 253, 250, .92)); }

.store-message header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.store-message header strong {
    color: var(--ink);
    font-size: 16px;
    font-weight: 1000;
}

.store-message-close {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    background: rgba(20, 34, 54, .06);
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    transition: background .14s ease;
}

.store-message-close:hover { background: rgba(20, 34, 54, .14); color: var(--ink); }

.store-message p {
    margin: 0 0 8px;
    color: #344658;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.store-message time {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.store-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    width: fit-content;
}

.store-tab {
    min-width: 110px;
    min-height: 42px;
    padding: 0 24px;
    border: 1px solid rgba(213, 153, 40, .28);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 253, 247, .74);
    font: inherit;
    font-size: 14px;
    font-weight: 1000;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.store-tab:hover {
    background: rgba(255, 248, 230, .95);
    transform: translateY(-1px);
}

.store-tab.is-active {
    color: #152438;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    box-shadow: 0 8px 18px rgba(196, 139, 31, .25);
}

.store-panel { display: none; }
.store-panel.is-active {
    display: block;
    margin-top: 0;
}

.store-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.store-grid--packages {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.store-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 38px 18px;
    border: 1px dashed rgba(20, 34, 54, .14);
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

/* 「消息」标签未读角标 */
.store-tab-badge {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    vertical-align: 1px;
}
.store-tab-badge[hidden] { display: none; }
.store-tab.is-active .store-tab-badge { background: #b3401f; }

/* 充值记录列表 */
.store-history-wrap {
    display: flex;
    flex-direction: column;
}
.store-history-wrap:has(.store-history-item) {
    min-height: calc((var(--store-history-row-height) * 10) + (var(--store-history-gap) * 9) + 54px);
}
.store-history {
    --store-history-row-height: 78px;
    --store-history-gap: 12px;
    display: grid;
    gap: var(--store-history-gap);
    align-content: start;
    flex: 1 1 auto;
}
.store-history-wrap:has(.store-history-item) .store-history {
    min-height: calc((var(--store-history-row-height) * 10) + (var(--store-history-gap) * 9));
}
.store-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid rgba(20, 34, 54, .1);
    border-radius: 14px;
    background: #fffdfa;
}
.store-history-main { display: grid; gap: 3px; min-width: 0; flex: 1; }
.store-history-main > strong { color: var(--ink); font-size: 16px; font-weight: 800; }
.store-history-main > span { color: var(--muted); font-size: 12.5px; }
.store-history-note { color: #9a6b1a !important; }
.store-history-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 16px;
}
.store-history-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(20, 34, 54, .12);
    border-radius: 10px;
    background: #fffdfa;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.store-history-page-btn:hover {
    border-color: var(--gold);
    background: #fff8e8;
}
.store-history-page-btn.is-active {
    border-color: var(--gold);
    background: linear-gradient(180deg, #fff3d6, #ffd97a);
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(196, 139, 31, .18);
}
.store-history-status {
    flex-shrink: 0;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.store-history-status--pending { color: #9a6b1a; background: #fff3da; }
.store-history-status--completed { color: #1f7a4d; background: #e4f6ec; }
.store-history-status--rejected { color: #c0504a; background: #fdecec; }

/* 「消息」标签页列表 */
.store-msglist { display: grid; gap: 12px; }
.store-message.is-read {
    opacity: .68;
    border-left-color: var(--line);
    background: #faf8f4;
}
.store-message-read-btn {
    flex-shrink: 0;
    padding: 4px 12px;
    border: 1px solid rgba(213, 153, 40, .4);
    border-radius: 999px;
    background: #fff;
    color: #9a6b1a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.store-message-read-btn:hover { background: #fff3da; }

.store-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--gld-hair); /* 對标 #register 的灰金色描边 */
    box-shadow: 0 8px 24px rgba(29, 36, 46, 0.03); /* 更轻量、干净的浮雕微阴影 */
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-card:hover {
    transform: translateY(-2.5px);
    border-color: var(--gld-gold); /* 悬浮变为黄金边框 */
    box-shadow: 0 12px 30px rgba(192, 138, 46, 0.08); /* 散发极其细腻的黄金微光 */
}

.store-card-media {
    position: relative;
    aspect-ratio: 16 / 13; /* 更紧凑高贵的高宽比 */
    background: radial-gradient(circle at 50% 30%, rgba(246, 207, 98, .08) 0%, transparent 80%), #142236; /* 徹底改成与 #register 一致的 142236 纯净暗夜色，去除多余渐变和杂质 */
    border-bottom: 1px solid rgba(229, 179, 70, .14);
    overflow: hidden;
    isolation: isolate;
}

.store-card-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: store-card-shine 4.5s cubic-bezier(0.16, 1, 0.3, 1) infinite; /* 极具高级感的丝滑慢速扫光 */
    pointer-events: none;
    z-index: 2;
}

.store-card-media img {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: auto;
    height: auto;
    max-width: 62%;
    max-height: 80%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); /* 更轻盈的图片投影 */
}

@keyframes store-card-shine {
    0%   { left: -120%; }
    15%  { left: 150%; }
    100% { left: 150%; }
}

.store-card--package .store-card-media {
    background: radial-gradient(circle at 50% 30%, rgba(246, 207, 98, .12) 0%, transparent 80%), #241A10; /* 礼包使用独特的暗沉熟褐巧克力色，呼应金色礼包 */
    border-bottom: 1px solid rgba(229, 179, 70, .2);
}

.store-card--package .store-card-media::before {
    /* 礼包不走扫光，避免和金黄徽章互相抢视觉焦点 */
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .store-card-media::before {
        animation: none;
        display: none;
    }
}

.store-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #fff;
    background: var(--red);
    font-size: 10px;
    font-weight: 1000;
    letter-spacing: .04em;
    box-shadow: 0 4px 10px rgba(206, 90, 76, .35);
}

.store-card-badge--package {
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    color: #152438;
    box-shadow: 0 4px 10px rgba(196, 139, 31, .3);
}

.store-card-meta {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 253, 250, .94);
    border: 1px solid rgba(229, 179, 70, .35);
    font-size: 10px;
    font-weight: 1000;
}

.store-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px 12px;
}

.store-card-body h4 {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 1000;
    line-height: 1.3;
    letter-spacing: -.01em;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-card-description {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
    min-height: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-card-description:empty { display: none; }

.store-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.store-card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    flex-wrap: wrap;
}

.store-card-currency {
    color: var(--muted);
    font-size: 10px;
    font-weight: 1000;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.store-card--cash .store-card-currency { color: #c4881f; }

.store-card-price strong {
    color: var(--ink);
    font-size: 18px;
    font-weight: 1000;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.store-card-original {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-decoration: line-through;
}

.store-card-buy {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    color: #152438;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    box-shadow: 0 6px 14px rgba(196, 139, 31, .25);
    font: inherit;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .18s ease;
}

.store-card-buy:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(196, 139, 31, .32);
}

.store-card-buy[disabled] {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.store-card-buy svg {
    width: 14px;
    height: 14px;
}

/* —— 详情弹窗 —— */

.store-card { cursor: pointer; }

.store-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.store-detail-modal[hidden] { display: none !important; }

.store-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 34, 54, .58);
    backdrop-filter: blur(2px);
    cursor: pointer;
    animation: confirm-fade-in .16s ease;
}

.store-detail-panel {
    position: relative;
    z-index: 1;
    width: min(480px, calc(100vw - 32px));
    max-height: min(680px, calc(100svh - 32px), calc(100vh - 32px));
    margin: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(229, 179, 70, .4);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff8ea, #fffdfa 28%, #fffdfa);
    box-shadow:
        0 28px 60px rgba(20, 34, 54, .36),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    animation: confirm-pop-in .2s ease;
}

.store-detail-close {
    position: absolute;
    top: 14px;
    right: 14px; /* Perfectly aligned to avoid scrollbar track clashing */
    z-index: 5;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(20, 34, 54, .06);
    border-radius: 10px;
    color: var(--muted);
    background: rgba(255, 255, 255, .92);
    font-size: 20px;
    font-weight: 1000;
    line-height: 1;
    cursor: pointer;
    transition: background .14s ease, color .14s ease, transform .14s ease;
}

.store-detail-close:hover {
    color: var(--ink);
    background: #fff;
    transform: rotate(90deg);
}

.store-detail-image-wrap[hidden] {
    display: none !important;
}

.store-detail-image-wrap {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 8px auto 16px;
    overflow: hidden;
    padding: 6px;
    border-radius: 12px;
    background: #ffffff; /* Use elegant pure white instead of raw gradient */
    border: 1px solid var(--gld-hair);
    box-shadow: 
        0 8px 20px rgba(10, 16, 26, 0.05),
        inset 0 1px 0 #ffffff;
    flex-shrink: 0; /* CRITICAL: Prevents flex layout from compressing the image box on long text */
}

.store-detail-image-wrap img {
    position: relative;
    z-index: 0;
    display: block;
    margin: 0 auto;
    width: auto;
    height: 130px;
    max-width: 240px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.store-detail-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: transparent;
}

.store-detail-scroll {
    flex: 0 1 auto;
    min-height: 0;
    max-height: min(70svh, 500px, calc(100svh - 180px), calc(100vh - 180px)); /* Lifted maximum height limits significantly */
    padding: 18px 20px 10px 20px; /* Restored comfortable padding */
    margin-right: 0; /* Let scrollbar stretch to the very edge gracefully */
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 179, 70, .6) transparent;
    scrollbar-gutter: stable;
}

.store-detail-scroll::-webkit-scrollbar {
    width: 6px;
}

.store-detail-scroll::-webkit-scrollbar-track {
    margin: 4px 4px 4px 0; /* Add top and bottom margins to prevent the track from touching the top/bottom border radiuses */
    background: transparent;
}

.store-detail-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(229, 179, 70, .35); /* Elegant translucent thumb */
}

.store-detail-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 179, 70, .6);
}

.store-detail-footer {
    flex: 0 0 auto;
    padding: 12px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(221, 212, 197, .56);
    background: #fffdfa;
}

@keyframes store-detail-sweep {
    0% {
        transform: translate(-100%, -100%) rotate(45deg);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    65% {
        transform: translate(33.33%, 33.33%) rotate(45deg);
        opacity: .9;
    }
    85% {
        opacity: .5;
    }
    100% {
        transform: translate(100%, 100%) rotate(45deg);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-detail-image-wrap::before {
        animation: none;
        display: none;
    }
}

.store-detail-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    color: #152438;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    box-shadow: 0 4px 10px rgba(196, 139, 31, .28);
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: .04em;
}

.store-detail-badge[hidden] { display: none; }

.store-detail-name {
    align-self: stretch;
    width: 100%;
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 1000;
    line-height: 1.25;
    letter-spacing: -.015em;
    word-break: break-word;
    text-align: left;
}

.store-detail-name::before {
    display: inline-block;
    width: 6px;
    height: 22px;
    margin-right: 12px;
    content: "";
    border-radius: 999px;
    background: var(--gold);
    vertical-align: -5px;
}

.store-detail-meta {
    align-self: flex-start;
    padding: 4px 11px;
    margin-left: 18px;
    border-radius: 999px;
    border: 1px solid rgba(229, 179, 70, .35);
    background: rgba(246, 207, 98, .14);
    color: #8b6421;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .02em;
}

.store-detail-meta[hidden] { display: none; }

.store-detail-section {
    align-self: stretch;
    width: 100%;
}

.store-detail-section h4 {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.store-detail-description {
    margin: 0;
    color: #344658;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.store-detail-description:empty::before {
    content: "—";
    color: var(--muted);
}

.store-detail-price-section {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(246, 207, 98, .18), rgba(255, 253, 250, .8));
    border: 1px solid rgba(229, 179, 70, .3);
}

.store-detail-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.store-detail-currency {
    color: #8b6421;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.store-detail-price strong {
    color: var(--ink);
    font-size: 30px;
    font-weight: 1000;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.store-detail-price s {
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
    text-decoration: line-through;
}

.store-detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    padding: 0 0 2px;
    border-top: 0;
}

.store-detail-actions .guild-btn {
    min-width: 100px;
}

@media (max-width: 560px) {
    .store-detail-modal {
        padding: 10px;
    }
    .store-detail-panel {
        width: min(480px, calc(100vw - 20px));
        max-height: calc(100svh - 20px);
    }
    .store-detail-scroll {
        max-height: min(50svh, calc(100svh - 220px));
        padding: 14px 16px 8px;
    }
    .store-detail-footer {
        padding: 10px 16px 14px;
    }
    .store-detail-image-wrap img {
        height: 118px;
        max-width: 220px;
    }
    .store-detail-name {
        font-size: 18px;
    }
    .store-detail-price strong {
        font-size: 24px;
    }
}

/* —— 充值 —— */

.store-recharge {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: stretch;
}

.store-recharge-card {
    padding: 22px 24px 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(20, 34, 54, .06);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .96) inset,
        0 12px 28px rgba(20, 34, 54, .05);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.store-recharge-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(221, 212, 197, .56);
}

.store-recharge-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 17px;
    font-weight: 1000;
    letter-spacing: -.01em;
}

.store-recharge-header h3::before {
    display: inline-block;
    width: 4px;
    height: 17px;
    margin-right: 10px;
    content: "";
    border-radius: 999px;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    vertical-align: -2px;
}

.store-recharge-header span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.store-recharge-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.store-recharge-tier {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(20, 34, 54, .1);
    background: linear-gradient(180deg, #fffdfa, #fbf6ea);
    text-align: center;
    cursor: pointer;
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.store-recharge-tier:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(20, 34, 54, .06);
}

.store-recharge-tier.is-active {
    border-color: var(--gold);
    background:
        linear-gradient(180deg, #fff3d6, #ffd97a);
    box-shadow: 0 14px 28px rgba(196, 139, 31, .25);
}

.store-recharge-tier-money {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 1000;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.store-recharge-tier-unit {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: .04em;
}

.store-recharge-tier-points {
    color: #8b6421;
    font-size: 13px;
    font-weight: 900;
}

.store-recharge-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.store-recharge-method {
    display: grid;
    gap: 4px;
    padding: 12px 10px;
    border-radius: 14px;
    border: 1px solid rgba(20, 34, 54, .1);
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.store-recharge-method:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
}

.store-recharge-method.is-active {
    border-color: var(--gold);
    background: linear-gradient(180deg, #fff8e4, #ffe3a8);
    box-shadow: 0 10px 22px rgba(196, 139, 31, .2);
}

.store-recharge-method-icon {
    height: 38px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    line-height: 1;
}

.store-recharge-method-icon i {
    font-size: 30px;
    line-height: 1;
    transition: transform .14s ease;
}

.store-recharge-method:hover .store-recharge-method-icon i {
    transform: scale(1.06);
}

.store-recharge-method[data-recharge-method="alipay"] .store-recharge-method-icon {
    color: #1677ff;
}

.store-recharge-method[data-recharge-method="wechat"] .store-recharge-method-icon {
    color: #07c160;
}

.store-recharge-method[data-recharge-method="paypal"] .store-recharge-method-icon {
    color: #003087;
}

.store-recharge-method strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 1000;
}

.store-recharge-method em {
    color: var(--muted);
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
}

.store-recharge-tipline {
    margin: 0;
    padding: 11px 14px;
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.6;
    border: 1px dashed rgba(20, 34, 54, .16);
    border-radius: 12px;
    background: rgba(20, 34, 54, .02);
}

.store-recharge-qr {
    display: grid;
    gap: 10px;
    place-items: center;
    text-align: center;
}

.store-recharge-qr[hidden] { display: none; }

.store-recharge-qr-frame {
    width: 200px;
    height: 200px;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 1px solid rgba(229, 179, 70, .3);
    border-radius: 14px;
    background:
        radial-gradient(circle at 80% 15%, rgba(246, 207, 98, .14), transparent 160px),
        #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 8px 22px rgba(57, 65, 70, .08);
}

.store-recharge-qr-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.store-recharge-qr-frame img[hidden] { display: none; }

.store-recharge-qr-frame span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.store-recharge-qr-tip {
    margin: 0;
    color: #344658;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.store-recharge-qr-tip em {
    color: #8b6421;
    font-style: normal;
    font-weight: 1000;
}

.store-recharge-paypal {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f3f7ff, #e8efff);
    border: 1px solid rgba(37, 99, 235, .2);
}

.store-recharge-paypal[hidden] { display: none; }

.store-recharge-paypal p {
    margin: 0;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.store-recharge-paypal .guild-btn {
    justify-self: start;
}

.store-recharge-form {
    display: grid;
    gap: 14px;
}

.store-recharge-summary {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(246, 207, 98, .16), rgba(255, 253, 250, .8));
    border: 1px solid rgba(229, 179, 70, .26);
}

.store-recharge-summary span {
    color: #8b6421;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.store-recharge-summary strong {
    color: var(--ink);
    font-size: 16px;
    font-weight: 1000;
}

.store-recharge-file {
    display: grid;
    gap: 8px;
}

.store-recharge-file[hidden] { display: none; }

.store-recharge-file > span {
    color: var(--ink);
    font-size: 14px;
    font-weight: 1000;
}

.store-recharge-file input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(20, 34, 54, .12);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.store-recharge-file input[type="file"]::file-selector-button {
    min-height: 32px;
    margin-right: 12px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    color: #152438;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    font: inherit;
    font-weight: 1000;
    cursor: pointer;
}

.store-recharge-file small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .store-recharge {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .guild-state--member.is-leader .guild-panels {
        grid-template-columns: 1fr;
    }
}
