:root {
    color-scheme: light;
    --gd-bg: #f5ecda;
    --gd-paper: #fffaf0;
    --gd-surface: #fffdf8;
    --gd-line: #e5d2aa;
    --gd-ink: #352611;
    --gd-muted: #735f40;
    --gd-accent: #874e0c;
    --gd-gold: #ce902b;
    --gd-dark: #36220d;
    --gd-shadow: 0 10px 30px #7a551515;
    --gd-radius: 16px;
    --gd-width: 1180px;
}
body.gold-page, body.gold-home {
    color: var(--gd-ink);
    background: radial-gradient(ellipse at 50% 0%, #fff7e7, transparent 42rem), var(--gd-bg);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
}
.gold-page * { box-sizing: border-box; }
.gold-page button, .gold-page input, .gold-page select, .gold-page textarea {
    color: inherit;
    font: inherit;
}
.gold-page a { color: inherit; }
.gold-page a:focus-visible, .gold-page button:focus-visible, .gold-header a:focus-visible,
.gold-nav a:focus-visible, .gold-support summary:focus-visible { outline: 2px solid #994e00; outline-offset: 4px; }
.gold-shell, .gold-home .home4-shell { max-width: var(--gd-width); margin: 0 auto; width: calc(100% - 32px); }
.gold-header {
    max-width: var(--gd-width);
    width: 100%;
    min-height: 54px;
    margin: 12px auto 22px;
    padding: 5px 10px;
    border: 1px solid #62533a;
    border-radius: 16px;
    background: linear-gradient(145deg,#393224,#272319 55%,#443b29);
    box-shadow: inset 0 0 0 4px #ffffff0a, 0 6px 15px #0004;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.gold-brand, .gold-member, .gold-nav a { text-decoration: none; }
.gold-brand { display: flex; align-items: center; gap: 8px; color: #fff5df; font-size: 19px; font-weight: 850; min-width: 0; }
.gold-brand > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gold-brand img { width: 39px; height: 39px; object-fit: contain; flex: none; }
.gold-member {
    flex: none;
    max-width: min(48%, 250px);
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 9px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #74603d;
    border-radius: 15px;
    color: #fff5df;
    background: #2b241a;
    font-size: 13px;
    font-weight: 650;
    box-sizing: border-box;
    line-height: 1.4;
    box-shadow: inset 0 0 12px #aa814328;
}
.gold-member i { color: #f1c078; font-size: 15px; }
.gold-nav {
    position: fixed;
    z-index: 800;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 32px), var(--gd-width));
    min-height: 55px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    border: 1px solid var(--gd-line);
    border-radius: 20px;
    background: #fffbf3f5;
    box-shadow: 0 8px 35px #57370032;
    font: 700 12px/1.1 Inter, "Microsoft YaHei", sans-serif;
}
.gold-nav a { display: grid; place-content: center; justify-items: center; gap: 4px; margin: 4px; border-radius: 13px; color: var(--gd-muted); }
.gold-nav a i { font-size: 21px; color: #a87120; text-shadow: 0 1px #ffe8a1; }
.gold-nav a[aria-current] { background: #f7e4b9; color: #6c3b06; }
.gold-nav a:hover { background: #f6e4bd; }
.gold-member:hover { background: #50422d; }
.gold-support { position: fixed; right: max(16px, calc((100vw - var(--gd-width)) / 2)); bottom: max(84px, calc(env(safe-area-inset-bottom) + 72px)); z-index: 801; color: var(--gd-dark); }
.gold-support summary {
    display: block; cursor: pointer; list-style: none; font-size: 13px; font-weight: 750;
    border: 1px solid var(--gd-line); box-shadow: var(--gd-shadow);
    border-radius: 999px; padding: 11px 14px; background: var(--gd-paper);
}
.gold-support summary::-webkit-details-marker { display: none; }
.gold-support i { color: #975d0b; }
.gold-support section { position: absolute; right: 0; bottom: 48px; width: min(290px, 90vw); max-height: min(50vh, 420px); overflow: auto; padding: 16px; border: 1px solid var(--gd-line); border-radius: 15px; box-shadow: var(--gd-shadow); background: var(--gd-surface); }
.gold-support h2 { font-size: 17px; margin: 0 0 12px; }
.gold-support p { font-size: 14px; margin: 5px 0; color: var(--gd-muted); }
.gold-support a { color: var(--gd-accent); display: inline-block; margin: 3px 12px 8px 0; }
.gold-support article + article { border-top: 1px solid var(--gd-line); margin-top: 10px; padding-top: 10px; }
.gold-skip { position: absolute; top: -50px; left: 12px; background: var(--gd-surface); padding: 7px 10px; z-index: 999; }
.gold-skip:focus { top: 10px; }
.gold-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 22px 0 16px; }
.gold-heading h1, .gold-heading h2 { margin: 0; color: var(--gd-dark); font-size: clamp(23px, 3.5vw, 32px); }
.gold-heading p { margin: 5px 0 0; color: var(--gd-muted); font-size: 14px; }
.gold-heading .discovery-back { flex: none; }
.comment-like {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 5px; border: 0;
    background: transparent; color: var(--gd-muted); font: inherit; white-space: nowrap; cursor: pointer;
}
.comment-like:hover, .comment-like[aria-pressed="true"] { color: #a34133; }
.comment-like-feedback { font-size: 13px; }
.gold-official-page .wx-comment-row { display: flex; align-items: baseline; gap: 8px; }
.gold-official-page .wx-comment-row .wx-comment-entry { flex: 1; min-width: 0; }
.gold-panel { background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-radius); box-shadow: var(--gd-shadow); padding: 19px; min-width: 0; }
.gold-panel h2, .gold-panel h3 { margin: 0 0 12px; }
.gold-actions, .gold-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.gold-tabs { margin: 0 0 12px; }
.gold-button, .gold-tabs a, .gold-tabs button {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 37px; padding: 7px 13px; cursor: pointer; background: var(--gd-paper); color: var(--gd-dark);
    border: 1px solid var(--gd-line); border-radius: 11px; text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 650;
}
.member-return-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 0 0; }
.gold-button:hover, .gold-tabs a:hover, .gold-tabs button:hover { background: #f7e8c4; }
.gold-button.primary, .gold-tabs [aria-selected="true"], .gold-tabs [aria-current="page"], .gold-button[aria-pressed="true"] {
    background: linear-gradient(160deg,#9c641e,#70400e); border-color: #a77127; color: #fff9e8;
}
.gold-button:disabled { opacity: .5; cursor: default; }
.gold-muted { color: var(--gd-muted); }
.gold-empty { color: var(--gd-muted); padding: 20px 8px; text-align: center; }
.gold-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.gold-field { display: grid; align-content: start; gap: 6px; color: var(--gd-muted); font-size: 13px; font-weight: 650; }
.gold-field input, .gold-field select, .gold-field textarea { width: 100%; border-radius: 8px; border: 1px solid var(--gd-line); background: var(--gd-paper); min-height: 38px; padding: 7px 10px; color: var(--gd-ink); }
.gold-field textarea { min-height: 76px; }
.gold-table-wrap { overflow-x: auto; margin: 10px 0; }
.gold-table { border-collapse: collapse; width: 100%; white-space: nowrap; text-align: left; font-size: 14px; }
.gold-table th, .gold-table td { padding: 10px 11px; border-bottom: 1px solid #eee2cb; }
.gold-table th { background: #fbf1dc; color: var(--gd-muted); }
.gold-table tr:last-child td { border-bottom: 0; }
.gold-pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.gold-pill { display: inline-block; padding: 3px 8px; border-radius: 20px; color: #72470e; background: #f7e6be; font-size: 12px; white-space: nowrap; }
.gold-dialog { color: var(--gd-ink); padding: 20px; max-width: min(720px, calc(100% - 28px)); max-height: 85vh; border: 1px solid var(--gd-line); border-radius: 16px; box-shadow: 0 14px 45px #25190655; background: var(--gd-surface); }
.gold-dialog::backdrop { background: #24180ebe; }
.gold-home .gold-header { margin-bottom: 16px; }
.gold-home .home4-hero { border: 1px solid #b28134; }
.gold-home .home4-platform-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.gold-home .home4-main { max-width: none; padding-left: 0; padding-right: 0; }
.gold-home .home4-platform-card { color: var(--gd-ink); }
.gold-home .home4-notice { border-color: var(--gd-line); }
body:not(.gold-page) > .gold-header { width: min(calc(100% - 32px), var(--gd-width)); }
@media (max-width: 800px) {
    .gold-home .home4-platform-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
    .gold-shell, .gold-home .home4-shell { width: calc(100% - 22px); }
    .gold-header { min-height: 54px; margin: 8px auto 16px; padding: 5px 10px; border-radius: 16px; }
    .gold-brand { font-size: 19px; }
    .gold-brand img { width: 39px; height: 39px; }
    .gold-member { font-size: 12px; padding: 6px 9px; }
    .gold-nav { width: calc(100% - 20px); bottom: max(8px, env(safe-area-inset-bottom)); }
    .gold-nav a { margin: 4px 2px; font-size: 11px; }
    .gold-panel { padding: 13px; }
    .gold-heading { margin: 16px 0 12px; }
    .gold-heading p { font-size: 12px; }
    .gold-support { right: 12px; bottom: max(73px, calc(env(safe-area-inset-bottom) + 65px)); }
    .gold-home .home4-platform-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .gold-home .home4-ticker-track, .gold-home .home4-notice-marquee { animation: none; }
    .gold-home .home4-ticker { overflow: auto; }
}
.gold-home-notice { width: min(440px,calc(100% - 28px)); }
.gold-home-notice p { overflow-wrap: anywhere; }
.gold-home-notice form { display: grid; margin-top: 14px; }
.gold-header .gold-brand img { filter: sepia(.7) saturate(.8); }

.gold-member .gold-identity-badge{width:24px;height:24px;min-width:24px;max-width:24px;flex:0 0 24px;object-fit:contain}.gold-member>span{min-width:0;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gold-member>i{flex:none}


.gold-header .gold-member img{display:block;object-fit:contain;width:24px!important;height:24px!important;min-width:24px;max-width:24px;flex:0 0 24px;}
.stage-compose-header{border:1px solid #62533a;border-radius:16px;background:linear-gradient(145deg,#393224,#272319 55%,#443b29);box-shadow:inset 0 0 0 4px #ffffff0a,0 6px 15px #0004;color:#fff;}
.stage-compose-header h1,.stage-compose-header a{color:#fff;}.stage-compose-header button{background:#745123;border:1px solid #9c7943;color:#fff5df;}
@media(max-width:390px){.gold-header{min-height:48px;padding:4px 6px;gap:6px;}.gold-header .gold-brand img{width:31px;height:31px;}.gold-header .gold-member{font-size:11px;padding:5px;gap:5px;}}

/* Clear cream-and-gold identity; scoped above inherited legacy anchor colors. */
body.gold-home .gold-header,body.gold-page .gold-header{background:linear-gradient(110deg,#fff4d9,#fffdf6 55%,#f3dfb1);border:1px solid #caa360;box-shadow:0 5px 18px #79551d14,inset 0 0 0 1px #fff9e8;}
body.gold-home .gold-header .gold-brand,body.gold-page .gold-header .gold-brand,body.gold-home .gold-header .gold-brand>span,body.gold-page .gold-header .gold-brand>span{color:#4a3010!important;text-shadow:none;font-weight:800;opacity:1;}
body.gold-home .gold-header .gold-member,body.gold-page .gold-header .gold-member{background:#fff9e9;border-color:#bb8a38;color:#593b11!important;box-shadow:0 2px 7px #8d652315;}
body.gold-home .gold-header .gold-member>span,body.gold-page .gold-header .gold-member>span{color:#593b11!important;opacity:1;}
.gold-header .gold-member .gold-member-avatar{width:28px!important;height:28px!important;min-width:28px;max-width:28px;flex:0 0 28px;object-fit:cover;border:1px solid #cba461;border-radius:50%;background:#fff4dc;}
.gold-header .gold-member:has(.gold-member-avatar)>i{display:none;}

.gold-dialog:not([open]){display:none}
.gold-dialog.gold-dialog-fallback[open]{position:fixed;z-index:120;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;box-shadow:0 0 0 100vmax #080b167d}
