/* War Storm Cookie 同意横幅、页脚 Cookie 链接与 Cookie 政策页样式（石墨色 + 暖纸色 + 信号红，与主站一致） */

.wsc-banner{
  --wsc-bg:#1b1e20;--wsc-line:#44494b;--wsc-text:#d8dcde;--wsc-muted:#9aa3a6;--wsc-cream:#f1eee5;--wsc-red:#b8322c;--wsc-red-hover:#cf482f;
  position:fixed;right:24px;bottom:24px;z-index:900;width:min(460px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;
  background:var(--wsc-bg);color:var(--wsc-text);border:1px solid var(--wsc-line);border-top:3px solid var(--wsc-red);
  box-shadow:0 18px 48px #0009;padding:22px 22px 18px;font-family:"Noto Sans CJK SC","Microsoft YaHei","PingFang SC",Arial,sans-serif;font-size:13px;line-height:1.7;
  animation:wsc-in .28s ease-out
}
@keyframes wsc-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.wsc-banner{animation:none}}
.wsc-eyebrow{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-family:"Arial Narrow","Bahnschrift SemiCondensed",Impact,sans-serif;font-size:11px;letter-spacing:.22em;color:var(--wsc-muted)}
.wsc-mark{width:8px;height:8px;background:var(--wsc-red);display:inline-block}
.wsc-banner h2{margin:0 0 8px;font-size:18px;font-weight:600;color:var(--wsc-cream);letter-spacing:.02em}
.wsc-banner p{margin:0}
.wsc-banner a{color:var(--wsc-cream);text-decoration:underline;text-underline-offset:3px}
.wsc-banner a:hover{color:#fff}
.wsc-prefs{margin-top:16px;border-top:1px solid var(--wsc-line)}
.wsc-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--wsc-line);cursor:default}
label.wsc-row{cursor:pointer}
.wsc-row-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.wsc-row-copy strong{color:var(--wsc-cream);font-weight:600;font-size:13px}
.wsc-row-copy small{color:var(--wsc-muted);font-size:12px;line-height:1.6}
.wsc-always{flex-shrink:0;font-size:11px;letter-spacing:.06em;color:#9cc39c;border:1px solid #3f5a41;padding:2px 8px;white-space:nowrap}
.wsc-switch{appearance:none;-webkit-appearance:none;flex-shrink:0;width:42px;height:22px;margin:0;border:1px solid #626a6e;background:#2a2e30;position:relative;cursor:pointer;transition:background .2s,border-color .2s}
.wsc-switch:before{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;background:#aeb6b9;transition:transform .2s,background .2s}
.wsc-switch:checked{background:var(--wsc-red);border-color:var(--wsc-red)}
.wsc-switch:checked:before{transform:translateX(20px);background:#fff}
.wsc-switch:focus-visible,.wsc-btn:focus-visible,.wsc-banner a:focus-visible{outline:3px solid #a2552a;outline-offset:3px}
.wsc-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.wsc-btn{flex:1 1 auto;min-height:38px;padding:8px 14px;border:1px solid #626a6e;background:#26292b;color:#e1e5e6;font:inherit;font-size:13px;letter-spacing:.04em;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.wsc-btn:hover{background:#303537;border-color:#79868b}
.wsc-btn-quiet{background:transparent}
.wsc-btn-primary{background:var(--wsc-red);border-color:var(--wsc-red);color:#fff}
.wsc-btn-primary:hover{background:var(--wsc-red-hover);border-color:var(--wsc-red-hover)}
.wsc-flash{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:910;background:#26362b;color:#e3eee6;border:1px solid #4e7057;padding:10px 18px;font-size:13px}
@media (max-width:560px){
  .wsc-banner{right:0;left:0;bottom:0;width:100%;max-height:85vh;border-left:0;border-right:0;padding:18px 16px 16px}
  .wsc-btn{flex-basis:100%}
}

/* 页脚中的 Cookie 设置按钮（与 footer 链接同风格） */
.footer-cookie-btn{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}
.shop-footer .footer-cookie-btn,.shop-footer .footer-cookie-link{opacity:.8}
.shop-footer .footer-cookie-btn:hover,.shop-footer .footer-cookie-link:hover{opacity:1;text-decoration:underline}

/* ---------------- Cookie 政策页 ---------------- */
.policy-body{background:#0f1214;color:#d0d5d7;min-height:100vh;display:flex;flex-direction:column}
.policy-main{width:calc(100% - 48px);max-width:920px;margin:0 auto;padding:56px 0 80px;flex:1}
.policy-main .eyebrow{display:flex;align-items:center;gap:10px;font-family:"Arial Narrow","Bahnschrift SemiCondensed",Impact,sans-serif;font-size:12px;letter-spacing:.22em;color:#8f999c;margin-bottom:12px}
.policy-main .red-block{width:10px;height:10px;background:#b8322c;display:inline-block}
.policy-main h1{font-size:clamp(28px,4vw,40px);color:#f1eee5;margin:0 0 10px;font-weight:600}
.policy-updated{color:#8f999c;font-size:13px;margin-bottom:28px}
.policy-intro{font-size:15px;color:#c3c9cb;margin-bottom:12px}
.policy-section{border-top:1px solid #2d3234;padding:28px 0 6px}
.policy-section h2{font-size:20px;color:#ece9e1;margin:0 0 12px;font-weight:600}
.policy-section p{color:#b5bcbf;margin:0 0 12px;line-height:1.85}
.policy-table-wrap{overflow-x:auto;border:1px solid #33393b;margin:8px 0 14px}
.policy-table{width:100%;border-collapse:collapse;font-size:13px;min-width:640px}
.policy-table th,.policy-table td{text-align:left;vertical-align:top;padding:11px 14px;border-bottom:1px solid #2d3234}
.policy-table th{background:#1d2123;color:#c5cbcd;font-weight:600;letter-spacing:.04em;white-space:nowrap}
.policy-table td{background:#16191b;color:#c3c9cb}
.policy-table tr:last-child td{border-bottom:0}
.policy-table code{font-family:Consolas,"Courier New",monospace;color:#f1eee5;background:#24292b;padding:1px 6px;white-space:nowrap}
.policy-tag{display:inline-block;font-size:11px;padding:1px 8px;border:1px solid #4b5052;color:#c4c9cb;white-space:nowrap}
.policy-tag.necessary{border-color:#3f5a41;color:#9cc39c}
.policy-tag.preferences{border-color:#624533;color:#e4c4a9}
.policy-note{font-size:12px;color:#8f999c}
.policy-status{display:flex;flex-wrap:wrap;align-items:center;gap:14px;background:#1b1e20;border:1px solid #44494b;border-left:3px solid #b8322c;padding:16px 18px;margin:6px 0 14px}
.policy-status p{margin:0;color:#d8dcde;flex:1 1 260px}
.policy-btn{min-height:38px;padding:8px 18px;border:1px solid #b8322c;background:#b8322c;color:#fff;font:inherit;font-size:13px;cursor:pointer}
.policy-btn:hover{background:#cf482f;border-color:#cf482f}
.policy-btn:focus-visible{outline:3px solid #a2552a;outline-offset:3px}
.policy-main a{color:#f1eee5;text-decoration:underline;text-underline-offset:3px}
.policy-footer{border-top:1px solid #22272a;padding:20px 24px;display:flex;flex-wrap:wrap;gap:18px;justify-content:center;font-size:12px;color:#7d878a}
.policy-footer a,.policy-footer button{color:#aab2b5}
.policy-footer a:hover,.policy-footer button:hover{color:#f1eee5}

/* ---------------- Light Theme Overrides ---------------- */
html[data-theme="light"] .wsc-banner{
  --wsc-bg:#ffffff;--wsc-line:#c5ccd0;--wsc-text:#202326;--wsc-muted:#5a6268;--wsc-cream:#14171a;
  box-shadow:0 16px 40px rgba(15,20,25,.14)
}
html[data-theme="light"] .wsc-banner a:hover{color:#b8322c}
html[data-theme="light"] .wsc-always{color:#256b3b;border-color:#a3d1b0;background:#e3f2e7}
html[data-theme="light"] .wsc-switch{background:#eceeef;border-color:#9aa3a9}
html[data-theme="light"] .wsc-switch:before{background:#626a70}
html[data-theme="light"] .wsc-switch:checked{background:var(--wsc-red);border-color:var(--wsc-red)}
html[data-theme="light"] .wsc-switch:checked:before{background:#ffffff}
html[data-theme="light"] .wsc-btn{background:#f5f6f6;border-color:#c5ccd0;color:#202326}
html[data-theme="light"] .wsc-btn:hover{background:#e4e8ea;border-color:#899198}
html[data-theme="light"] .wsc-btn-quiet{background:transparent}
html[data-theme="light"] .wsc-btn-primary{background:var(--wsc-red);border-color:var(--wsc-red);color:#fff}
html[data-theme="light"] .wsc-btn-primary:hover{background:var(--wsc-red-hover);border-color:var(--wsc-red-hover)}
html[data-theme="light"] .wsc-flash{background:#ffffff;color:#1f5733;border-color:#8ec4a0;box-shadow:0 8px 24px rgba(15,20,25,.12)}

html[data-theme="light"] .policy-body{background:#f5f6f6;color:#202326}
html[data-theme="light"] .policy-main .eyebrow,
html[data-theme="light"] .policy-updated,
html[data-theme="light"] .policy-note{color:#626a70}
html[data-theme="light"] .policy-main h1,
html[data-theme="light"] .policy-section h2{color:#14171a}
html[data-theme="light"] .policy-intro,
html[data-theme="light"] .policy-section p{color:#5a6268}
html[data-theme="light"] .policy-section{border-top-color:#d9dee1}
html[data-theme="light"] .policy-table-wrap{border-color:#d9dee1}
html[data-theme="light"] .policy-table th{background:#eceeef;color:#202326;border-bottom-color:#d9dee1}
html[data-theme="light"] .policy-table td{background:#ffffff;color:#384046;border-bottom-color:#eceeef}
html[data-theme="light"] .policy-table code{background:#eceeef;color:#14171a}
html[data-theme="light"] .policy-tag{border-color:#c5ccd0;color:#5a6268}
html[data-theme="light"] .policy-tag.necessary{border-color:#a3d1b0;color:#256b3b;background:#e3f2e7}
html[data-theme="light"] .policy-tag.preferences{border-color:#dfc8a8;color:#7a4e1d;background:#f7efe6}
html[data-theme="light"] .policy-status{background:#ffffff;border-color:#d9dee1;border-left:3px solid #b8322c}
html[data-theme="light"] .policy-status p{color:#202326}
html[data-theme="light"] .policy-main a{color:#0f5bb5}
html[data-theme="light"] .policy-footer{border-top-color:#d9dee1;color:#626a70;background:#eceeef}
html[data-theme="light"] .policy-footer a,
html[data-theme="light"] .policy-footer button{color:#5a6268}
html[data-theme="light"] .policy-footer a:hover,
html[data-theme="light"] .policy-footer button:hover{color:#14171a}
