/* 完整访客主题；默认仍为复古米黄。 */
:root, :root[data-theme="retro"]{--palette-352d26:#352d26;--palette-4d453b:#4d453b;--palette-52705b:#52705b;--palette-527468:#527468;--palette-54717c:#54717c;--palette-593a35:#593a35;--palette-597b7e:#597b7e;--palette-5b7c70:#5b7c70;--palette-607950:#607950;--palette-647650:#647650;--palette-647e55:#647e55;--palette-647e73:#647e73;--palette-694337:#694337;--palette-6e4a29:#6e4a29;--palette-705138:#705138;--palette-746047:#746047;--palette-754042:#754042;--palette-7d463d:#7d463d;--palette-7e513b:#7e513b;--palette-7e7464:#7e7464;--palette-80677c:#80677c;--palette-814447:#814447;--palette-82796b:#82796b;--palette-86755f:#86755f;--palette-877084:#877084;--palette-8a6b43:#8a6b43;--palette-946b37:#946b37;--palette-956052:#956052;--palette-994b49:#994b49;--palette-9b5450:#9b5450;--palette-a35451:#a35451;--palette-a58d58:#a58d58;--palette-a59983:#a59983;--palette-a67c3e:#a67c3e;--palette-a98551:#a98551;--palette-ab8041:#ab8041;--palette-b07849:#b07849;--palette-b18a42:#b18a42;--palette-b48b46:#b48b46;--palette-b7baa7:#b7baa7;--palette-bd8b7f:#bd8b7f;--palette-d6bda4:#d6bda4;--palette-d9c6a6:#d9c6a6;--palette-d9c7aa:#d9c7aa;--palette-dcc6a7:#dcc6a7;--palette-dfd2bb:#dfd2bb;--palette-e3d1ad:#e3d1ad;--palette-e3e9dd:#e3e9dd;--palette-e8d8c0:#e8d8c0;--palette-e9eee3:#e9eee3;--palette-eae0cc:#eae0cc;--palette-ede0c7:#ede0c7;--palette-eee0e7:#eee0e7;--palette-eee4d2:#eee4d2;--palette-f0e2c8:#f0e2c8;--palette-f1ddd2:#f1ddd2;--palette-f1e5d4:#f1e5d4;--palette-f3ead8:#f3ead8;--palette-f5ecdb:#f5ecdb;--palette-f7ebd7:#f7ebd7;--palette-f8efd9:#f8efd9;--palette-faf4e8:#faf4e8;--palette-fffaf0:#fffaf0;--theme-background:#f3ead8;--theme-accent:#814447;--theme-contrast:#ffffff;}
.theme-choice[data-choice="retro"]{--swatch-bg:#f3ead8;--swatch-surface:#fffaf0;--swatch-accent:#814447;--swatch-green:#607950}
:root[data-theme="classic"]{--palette-352d26:#203347;--palette-4d453b:#213c5b;--palette-52705b:#51816b;--palette-527468:#37818b;--palette-54717c:#3976b0;--palette-593a35:#213c5b;--palette-597b7e:#3976b0;--palette-5b7c70:#37818b;--palette-607950:#51816b;--palette-647650:#51816b;--palette-647e55:#51816b;--palette-647e73:#37818b;--palette-694337:#5b7592;--palette-6e4a29:#5b7592;--palette-705138:#5b7592;--palette-746047:#5b7592;--palette-754042:#5b7592;--palette-7d463d:#5b7592;--palette-7e513b:#5b7592;--palette-7e7464:#63788c;--palette-80677c:#84639e;--palette-814447:#2563b8;--palette-82796b:#5b7592;--palette-86755f:#5b7592;--palette-877084:#84639e;--palette-8a6b43:#9c7b32;--palette-946b37:#9c7b32;--palette-956052:#b77945;--palette-994b49:#be5557;--palette-9b5450:#be5557;--palette-a35451:#be5557;--palette-a58d58:#9c7b32;--palette-a59983:#8596a5;--palette-a67c3e:#9c7b32;--palette-a98551:#9c7b32;--palette-ab8041:#9c7b32;--palette-b07849:#b77945;--palette-b18a42:#9c7b32;--palette-b48b46:#9c7b32;--palette-b7baa7:#8596a5;--palette-bd8b7f:#5b7592;--palette-d6bda4:#dae4f3;--palette-d9c6a6:#dae4f3;--palette-d9c7aa:#dae4f3;--palette-dcc6a7:#dae4f3;--palette-dfd2bb:#d5e1ef;--palette-e3d1ad:#dae4f3;--palette-e3e9dd:#ebf1f9;--palette-e8d8c0:#dae4f3;--palette-e9eee3:#ebf1f9;--palette-eae0cc:#e8eff9;--palette-ede0c7:#dae4f3;--palette-eee0e7:#ebf1f9;--palette-eee4d2:#ebf1f9;--palette-f0e2c8:#ebf1f9;--palette-f1ddd2:#ebf1f9;--palette-f1e5d4:#ebf1f9;--palette-f3ead8:#f2f6fc;--palette-f5ecdb:#ebf1f9;--palette-f7ebd7:#ebf1f9;--palette-f8efd9:#ebf1f9;--palette-faf4e8:#f5f8fc;--palette-fffaf0:#ffffff;--theme-background:#f2f6fc;--theme-accent:#2563b8;--theme-contrast:#ffffff;}
.theme-choice[data-choice="classic"]{--swatch-bg:#f2f6fc;--swatch-surface:#ffffff;--swatch-accent:#2563b8;--swatch-green:#51816b}
:root[data-theme="forest"]{--palette-352d26:#293d32;--palette-4d453b:#2d4639;--palette-52705b:#607a43;--palette-527468:#4b7e6f;--palette-54717c:#527e83;--palette-593a35:#2d4639;--palette-597b7e:#527e83;--palette-5b7c70:#4b7e6f;--palette-607950:#607a43;--palette-647650:#607a43;--palette-647e55:#607a43;--palette-647e73:#4b7e6f;--palette-694337:#637b69;--palette-6e4a29:#637b69;--palette-705138:#637b69;--palette-746047:#637b69;--palette-754042:#637b69;--palette-7d463d:#637b69;--palette-7e513b:#637b69;--palette-7e7464:#687d6c;--palette-80677c:#876b80;--palette-814447:#3f7157;--palette-82796b:#637b69;--palette-86755f:#637b69;--palette-877084:#876b80;--palette-8a6b43:#978043;--palette-946b37:#978043;--palette-956052:#a77943;--palette-994b49:#a7544c;--palette-9b5450:#a7544c;--palette-a35451:#a7544c;--palette-a58d58:#978043;--palette-a59983:#88998a;--palette-a67c3e:#978043;--palette-a98551:#978043;--palette-ab8041:#978043;--palette-b07849:#a77943;--palette-b18a42:#978043;--palette-b48b46:#978043;--palette-b7baa7:#88998a;--palette-bd8b7f:#637b69;--palette-d6bda4:#dbe5da;--palette-d9c6a6:#dbe5da;--palette-d9c7aa:#dbe5da;--palette-dcc6a7:#dbe5da;--palette-dfd2bb:#cfdec8;--palette-e3d1ad:#dbe5da;--palette-e3e9dd:#eaf0e7;--palette-e8d8c0:#dbe5da;--palette-e9eee3:#eaf0e7;--palette-eae0cc:#e1ead9;--palette-ede0c7:#dbe5da;--palette-eee0e7:#eaf0e7;--palette-eee4d2:#eaf0e7;--palette-f0e2c8:#eaf0e7;--palette-f1ddd2:#eaf0e7;--palette-f1e5d4:#eaf0e7;--palette-f3ead8:#edf3e9;--palette-f5ecdb:#eaf0e7;--palette-f7ebd7:#eaf0e7;--palette-f8efd9:#eaf0e7;--palette-faf4e8:#f3f7ee;--palette-fffaf0:#fbfdf5;--theme-background:#edf3e9;--theme-accent:#3f7157;--theme-contrast:#ffffff;}
.theme-choice[data-choice="forest"]{--swatch-bg:#edf3e9;--swatch-surface:#fbfdf5;--swatch-accent:#3f7157;--swatch-green:#607a43}
:root[data-theme="rose"]{--palette-352d26:#4f3540;--palette-4d453b:#5e3b49;--palette-52705b:#62816d;--palette-527468:#61878c;--palette-54717c:#637c9d;--palette-593a35:#5e3b49;--palette-597b7e:#637c9d;--palette-5b7c70:#61878c;--palette-607950:#62816d;--palette-647650:#62816d;--palette-647e55:#62816d;--palette-647e73:#61878c;--palette-694337:#8d6a77;--palette-6e4a29:#8d6a77;--palette-705138:#8d6a77;--palette-746047:#8d6a77;--palette-754042:#8d6a77;--palette-7d463d:#8d6a77;--palette-7e513b:#8d6a77;--palette-7e7464:#8a6d78;--palette-80677c:#92708d;--palette-814447:#a05470;--palette-82796b:#8d6a77;--palette-86755f:#8d6a77;--palette-877084:#92708d;--palette-8a6b43:#a38954;--palette-946b37:#a38954;--palette-956052:#ad7b59;--palette-994b49:#b85566;--palette-9b5450:#b85566;--palette-a35451:#b85566;--palette-a58d58:#a38954;--palette-a59983:#a48c95;--palette-a67c3e:#a38954;--palette-a98551:#a38954;--palette-ab8041:#a38954;--palette-b07849:#ad7b59;--palette-b18a42:#a38954;--palette-b48b46:#a38954;--palette-b7baa7:#a48c95;--palette-bd8b7f:#8d6a77;--palette-d6bda4:#efdee3;--palette-d9c6a6:#efdee3;--palette-d9c7aa:#efdee3;--palette-dcc6a7:#efdee3;--palette-dfd2bb:#ead3d9;--palette-e3d1ad:#efdee3;--palette-e3e9dd:#f6ebee;--palette-e8d8c0:#efdee3;--palette-e9eee3:#f6ebee;--palette-eae0cc:#f1e2e7;--palette-ede0c7:#efdee3;--palette-eee0e7:#f6ebee;--palette-eee4d2:#f6ebee;--palette-f0e2c8:#f6ebee;--palette-f1ddd2:#f6ebee;--palette-f1e5d4:#f6ebee;--palette-f3ead8:#fbf0f0;--palette-f5ecdb:#f6ebee;--palette-f7ebd7:#f6ebee;--palette-f8efd9:#f6ebee;--palette-faf4e8:#fbf3f5;--palette-fffaf0:#fffafb;--theme-background:#fbf0f0;--theme-accent:#a05470;--theme-contrast:#ffffff;}
.theme-choice[data-choice="rose"]{--swatch-bg:#fbf0f0;--swatch-surface:#fffafb;--swatch-accent:#a05470;--swatch-green:#62816d}

.header-tools{display:flex;align-items:center;gap:9px;flex-shrink:0}.theme-button{display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 12px;white-space:nowrap;border:1px solid var(--palette-d6bda4);border-radius:9px;background:var(--palette-f1e5d4);color:var(--palette-754042);font-size:12px;font-weight:600;cursor:pointer}.theme-button:hover{background:var(--palette-e8d8c0)}.theme-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65}
.theme-dialog{width:min(480px,calc(100% - 28px));max-height:calc(100dvh - 40px);border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:26px;border-radius:17px;box-shadow:0 24px 80px color-mix(in srgb,var(--ink) 18%,transparent)}.theme-dialog::backdrop{background:color-mix(in srgb,var(--ink) 35%,transparent);backdrop-filter:blur(3px)}.theme-dialog .dialog-heading{align-items:flex-start;margin-bottom:22px}.theme-dialog h2{font-size:18px;margin:0}.theme-dialog .dialog-heading p{margin:8px 0 0;font-size:12px;color:var(--muted)}.theme-dialog .icon-button{width:30px;height:30px;border:0;color:var(--muted);background:var(--soft);border-radius:6px}
.theme-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.theme-choice{position:relative;display:flex;flex-direction:column;gap:12px;padding:9px 9px 12px;border:1px solid var(--line);border-radius:11px;background:var(--surface);text-align:left;color:var(--ink);cursor:pointer}.theme-choice:hover{border-color:var(--theme-accent)}.theme-choice[aria-pressed="true"]{border-color:var(--theme-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-accent) 17%,transparent)}.theme-swatch{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:62px;border-radius:7px;background:var(--swatch-bg);border-top:3px solid var(--swatch-accent)}.theme-swatch i{width:28px;height:27px;background:var(--swatch-surface);border-radius:4px;box-shadow:0 1px 2px #00000012}.theme-swatch i:nth-child(2){background:var(--swatch-accent)}.theme-swatch i:nth-child(3){background:var(--swatch-green)}.theme-choice-copy{display:flex;flex-direction:column;gap:4px;padding:0 3px}.theme-choice-copy strong{font-size:12px;font-weight:700}.theme-choice-copy small{font-size:10px;color:var(--muted)}.theme-check{position:absolute;right:12px;bottom:28px;color:var(--theme-accent);visibility:hidden;font-weight:bold}.theme-choice[aria-pressed="true"] .theme-check{visibility:visible}.theme-preference-note{font-size:11px;line-height:1.8;color:var(--muted);margin:20px 0}.theme-dialog-actions{display:flex;align-items:center;justify-content:space-between}.theme-reset{border:0;background:none;color:var(--muted);font-size:12px;padding:8px 0}.theme-dialog-actions .button{padding:9px 23px}
@media(max-width:700px){.header-tools{gap:6px}.theme-button{padding:8px 9px;font-size:11px}.theme-button svg{width:16px;height:16px}.theme-dialog{padding:21px}.theme-dialog h2{font-size:16px}}@media(max-width:480px){.theme-button{padding:8px;gap:0}.theme-button>span{display:none}.site-header .header-inner{gap:8px}.brand-copy b{max-width:180px}}
