/*
Theme Name: Winter6
Theme URI: https://winter6.my
Author: Winter6
Description: 冬月小六多作品小说平台主题。每本小说的主色、强调色、底色、主视觉和标题字体在后台「作品」里设置，不需要改代码。需要同时启用 Winter6 Core 插件。
Version: 0.1.1
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: winter6
*/

/* ---------- 设计变量（每本书可在后台覆盖） ---------- */
:root {
	--w6-bg: #070d1a;
	--w6-text: #e7edf7;
	--w6-muted: #8fa1bd;
	--w6-primary: #c0262d;
	--w6-accent: #e8b64c;
	--w6-surface: color-mix(in srgb, var(--w6-bg) 91%, #9fb4d8 9%);
	--w6-panel: color-mix(in srgb, var(--w6-bg) 92%, #9fb4d8 8%);
	--w6-border: color-mix(in srgb, var(--w6-text) 20%, transparent);
	--w6-font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
	--w6-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--w6-font-display: "Palatino Linotype", "Book Antiqua", Georgia, "Noto Serif SC", serif;
	--w6-title-font: var(--w6-font-serif);
	--w6-radius: 10px;
	--w6-reader-size: 19px;
	--w6-reader-lh: 1.9;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--w6-bg); color: var(--w6-text); font-family: var(--w6-font-sans); line-height: 1.7; }
body.w6-has-novel { background: var(--w6-bg); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.w6-main { min-height: 60vh; }
.w6-muted { color: var(--w6-muted); }
.w6-icon { width: 1.1em; height: 1.1em; flex: none; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }

/* ---------- 按钮 / 徽章 ---------- */
.w6-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 0.7em 1.6em; border: 1px solid var(--w6-primary); border-radius: 6px; background: transparent; color: var(--w6-text); font: inherit; font-weight: 600; cursor: pointer; transition: filter 0.15s, background 0.15s; }
.w6-btn:hover { filter: brightness(1.15); }
.w6-btn--primary { background: var(--w6-primary); border-color: var(--w6-primary); color: #fff; }
.w6-btn--ghost { border-color: var(--w6-border); background: rgba(255, 255, 255, 0.04); }
.w6-btn--accent { border-color: var(--w6-accent); color: var(--w6-accent); background: rgba(232, 182, 76, 0.08); width: 100%; font-size: 1.15em; }
.w6-btn--sm { padding: 0.45em 1.1em; font-size: 0.9em; }
.w6-btn.is-disabled { opacity: 0.35; pointer-events: none; }
.w6-badge { display: inline-block; padding: 0.05em 0.6em; border: 1px solid var(--w6-border); border-radius: 999px; font-size: 0.72em; font-weight: 500; color: var(--w6-muted); vertical-align: middle; }
.w6-badge--free { color: #7ed6a2; border-color: rgba(126, 214, 162, 0.4); }
.w6-badge--paid { color: var(--w6-accent); border-color: rgba(232, 182, 76, 0.45); }

/* ---------- 页头 ---------- */
.w6-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--w6-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--w6-border); }
.w6-header__inner { display: flex; align-items: center; gap: 28px; max-width: 1280px; margin: 0 auto; padding: 0 24px; min-height: 64px; }
.w6-brand { font-family: var(--w6-title-font); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.w6-brand img { display: block; height: 40px; width: auto; }
.w6-nav { flex: 1; }
.w6-nav ul { display: flex; align-items: center; justify-content: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.w6-nav a { display: block; padding: 22px 2px; font-weight: 600; border-bottom: 2px solid transparent; }
.w6-nav .is-current a { border-bottom-color: var(--w6-primary); }
.w6-nav__cta a { padding: 7px 20px; border: 1px solid var(--w6-primary); border-radius: 6px; color: #fff; background: rgba(192, 38, 45, 0.15); }
.w6-header__tools { display: flex; align-items: center; gap: 18px; }
.w6-search { position: relative; }
.w6-search summary { list-style: none; cursor: pointer; display: flex; }
.w6-search summary::-webkit-details-marker { display: none; }
.w6-search form { position: absolute; right: 0; top: 40px; }
.w6-search input { padding: 8px 12px; border-radius: 6px; border: 1px solid var(--w6-border); background: var(--w6-surface); color: var(--w6-text); width: 220px; }
.w6-account { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 0.92rem; }
.w6-langswitch { display: flex; gap: 12px; margin: 0; padding: 0 0 0 14px; list-style: none; border-left: 1px solid var(--w6-border); font-size: 0.9rem; }
.w6-langswitch .is-current a { font-weight: 700; border-bottom: 2px solid var(--w6-primary); }
.w6-langswitch a { color: var(--w6-muted); }
.w6-langswitch .is-current a { color: var(--w6-text); }
.w6-nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.w6-nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--w6-text); }

/* ---------- 作品首页 ---------- */
.w6-hero { position: relative; min-height: 470px; background: var(--w6-bg) var(--w6-hero-bg, none) right center / auto 100% no-repeat; border-bottom: 1px solid var(--w6-border); }
.w6-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--w6-bg) 0%, var(--w6-bg) 42%, color-mix(in srgb, var(--w6-bg) 55%, transparent) 54%, transparent 68%); }
.w6-hero__inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 56px 24px; }
.w6-hero__copy { max-width: 520px; }
.w6-hero__logo { margin: 0 0 12px; }
.w6-hero__logo img { max-height: 170px; width: auto; }
.w6-hero__title { margin: 0 0 10px; font-family: var(--w6-title-font); font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.1; }
.w6-hero__title small { display: block; margin-top: 6px; font-size: 0.32em; letter-spacing: 0.3em; text-transform: uppercase; color: var(--w6-muted); }
.w6-hero__tagline { margin: 0 0 14px; font-size: 1.1rem; color: #cfd9ea; }
.w6-hero__blurb { max-width: 470px; color: #c4cfe2; font-size: 0.95rem; }
.w6-hero__blurb p { margin: 0 0 6px; }
.w6-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

.w6-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; background: color-mix(in srgb, var(--w6-bg) 90%, transparent); border-bottom: 1px solid var(--w6-border); }
.w6-features li { display: flex; align-items: center; gap: 14px; padding: 18px 28px; border-right: 1px solid var(--w6-border); }
.w6-features li:last-child { border-right: 0; }
.w6-features .w6-icon { width: 34px; height: 34px; color: #cfd9ea; }
.w6-features strong { display: block; font-size: 0.98rem; }
.w6-features em { display: block; font-style: normal; font-size: 0.8rem; color: var(--w6-muted); }

.w6-home-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 24px; max-width: 1280px; margin: 0 auto; padding: 32px 24px; }
.w6-panel { background: var(--w6-panel); border: 1px solid var(--w6-border); border-radius: var(--w6-radius); padding: 20px 22px; min-width: 0; }
.w6-panel__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.25rem; }
.w6-panel__title::before { content: ""; width: 3px; height: 1.1em; background: var(--w6-primary); }
.w6-member .w6-panel__title::before { display: none; }
.w6-member .w6-panel__title .w6-icon { color: var(--w6-accent); }
.w6-panel__meta { margin: 10px 0 0; font-size: 0.85rem; color: var(--w6-muted); }
.w6-member { border-color: rgba(232, 182, 76, 0.5); }
.w6-member__list { margin: 0 0 18px; padding: 0; list-style: none; }
.w6-member__list li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.w6-member__list .w6-icon { color: var(--w6-accent); margin-top: 0.25em; }

.w6-latest__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; }
.w6-latest__img { border-radius: 8px; overflow: hidden; background: var(--w6-surface); aspect-ratio: 16 / 10; }
.w6-latest__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w6-latest__body h3 { margin: 0 0 8px; font-size: 1.2rem; }
.w6-latest__body p { margin: 0 0 14px; color: #b9c6dc; font-size: 0.92rem; }

.w6-carousel { position: relative; }
.w6-carousel__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px; }
.w6-carousel__track::-webkit-scrollbar { display: none; }
.w6-carousel__btn { position: absolute; top: 40%; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--w6-border); background: color-mix(in srgb, var(--w6-bg) 90%, transparent); color: var(--w6-text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.w6-carousel__btn--prev { left: -10px; }
.w6-carousel__btn--next { right: -10px; }
.w6-char { flex: 0 0 132px; display: block; scroll-snap-align: start; border: 1px solid var(--w6-border); border-radius: 8px; overflow: hidden; background: var(--w6-surface); text-align: center; }
.w6-char__img { display: block; aspect-ratio: 9 / 16; background: var(--w6-surface); }
.w6-char__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w6-char__noimg { display: grid; place-items: center; height: 100%; font-size: 2.4rem; color: var(--w6-muted); }
.w6-char__name { display: block; padding: 6px 6px 0; font-size: 0.85rem; font-weight: 600; }
.w6-char__role { display: block; padding: 0 6px 8px; font-size: 0.72rem; color: var(--w6-muted); }

.w6-news__list { margin: 0; padding: 0; list-style: none; }
.w6-news__list li { display: flex; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--w6-border); }
.w6-news__list li:last-child { border-bottom: 0; }
.w6-news__list time { color: var(--w6-muted); font-variant-numeric: tabular-nums; }
.w6-news__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; float: right; font-size: 0.88rem; color: var(--w6-muted); }
.w6-about { max-width: 860px; margin: 0 auto; padding: 8px 24px 56px; }

/* ---------- 书库 / 子页面 ---------- */
.w6-library, .w6-subpage, .w6-entry { max-width: 1280px; margin: 0 auto; padding: 40px 24px 64px; }
.w6-library__head h1, .w6-subpage__head h1 { margin: 0 0 4px; font-family: var(--w6-title-font); font-size: clamp(1.7rem, 4vw, 2.4rem); }
.w6-library__head p { margin: 0 0 28px; color: var(--w6-muted); }
.w6-subpage__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.w6-library__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.w6-card { background: var(--w6-panel); border: 1px solid var(--w6-border); border-radius: var(--w6-radius); padding: 18px; }
.w6-novelcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.w6-novelcard__cover { display: block; aspect-ratio: 3 / 4; background: var(--w6-surface); }
.w6-novelcard__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w6-novelcard__noimg { display: grid; place-items: center; height: 100%; padding: 16px; font-size: 1.6rem; font-family: var(--w6-title-font); }
.w6-novelcard__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.w6-novelcard__body h2 { margin: 0; font-size: 1.3rem; font-family: var(--w6-title-font); }
.w6-novelcard__alt { margin: 0; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--w6-muted); }
.w6-novelcard__body p { margin: 0; color: #b9c6dc; font-size: 0.92rem; }
.w6-chargrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.w6-chargrid .w6-char { flex: none; }
.w6-list { display: grid; gap: 16px; }
.w6-list h2 { margin: 0 0 6px; font-size: 1.15rem; }
.w6-list p { margin: 0; color: #b9c6dc; }
.w6-news__list--full { max-width: 760px; }

/* ---------- 章节目录 ---------- */
.w6-toc { display: grid; gap: 20px; }
.w6-toc__act { background: var(--w6-panel); border: 1px solid var(--w6-border); border-radius: var(--w6-radius); padding: 18px 22px; }
.w6-toc__act-title { margin: 0 0 8px; font-size: 1.15rem; }
.w6-toc__list { margin: 0; padding: 0; list-style: none; columns: 2 320px; column-gap: 40px; }
.w6-toc__item { padding: 7px 0; border-bottom: 1px dashed var(--w6-border); break-inside: avoid; }
.w6-toc__no { display: inline-block; min-width: 5.5em; color: var(--w6-muted); }
.w6-toc__item a:hover { color: var(--w6-accent); }

/* ---------- 阅读器 ---------- */
.w6-reader { padding: 28px 20px 72px; }
.w6-crumbs { font-size: 0.85rem; color: var(--w6-muted); }
.w6-crumbs a:hover { color: var(--w6-text); }
.w6-reader__head { text-align: center; padding: 20px 0 10px; }
.w6-reader__no { margin: 18px 0 4px; color: var(--w6-muted); letter-spacing: 0.15em; }
.w6-reader__title { margin: 0; font-family: var(--w6-title-font); font-size: clamp(1.6rem, 4vw, 2.2rem); }
.w6-tools { position: sticky; top: 64px; z-index: 20; display: flex; justify-content: center; gap: 20px; padding: 10px 0; background: var(--w6-bg); border-bottom: 1px solid var(--w6-border); }
.w6-tools__group { display: inline-flex; gap: 6px; }
.w6-tools button { min-width: 40px; height: 34px; padding: 0 10px; border: 1px solid var(--w6-border); border-radius: 6px; background: rgba(255, 255, 255, 0.04); color: var(--w6-text); font: inherit; cursor: pointer; }
.w6-tools__bg button { width: 34px; min-width: 34px; padding: 0; border-radius: 50%; }
.w6-tools__bg .is-dark { background: #070d1a; }
.w6-tools__bg .is-sepia { background: #f1e7d0; }
.w6-tools__bg .is-light { background: #fafafa; }
.w6-progress { position: sticky; top: 63px; z-index: 21; height: 2px; }
.w6-progress span { display: block; height: 2px; width: 0; background: var(--w6-primary); }
.w6-reader__content { padding: 24px 0 8px; font-family: var(--w6-font-serif); font-size: var(--w6-reader-size); line-height: var(--w6-reader-lh); }
.w6-reader__content p { margin: 0 0 1.1em; text-indent: 2em; }
.w6-locked { margin: 32px 0; padding: 36px 24px; text-align: center; border: 1px solid rgba(232, 182, 76, 0.45); border-radius: var(--w6-radius); background: var(--w6-panel); text-indent: 0; font-family: var(--w6-font-sans); }
.w6-locked h3 { margin: 0 0 8px; }
.w6-locked .w6-btn--accent { width: auto; }
.w6-prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; }
.w6-prevnext .w6-btn { flex: 1; max-width: 220px; white-space: nowrap; }
html[data-w6-bg="sepia"] body, html[data-w6-bg="sepia"] .w6-tools { background: #f1e7d0; color: #3b2f1e; }
html[data-w6-bg="light"] body, html[data-w6-bg="light"] .w6-tools { background: #fafafa; color: #1d1d1f; }
html[data-w6-bg="sepia"] .w6-reader .w6-muted, html[data-w6-bg="light"] .w6-reader .w6-muted,
html[data-w6-bg="sepia"] .w6-crumbs, html[data-w6-bg="light"] .w6-crumbs,
html[data-w6-bg="sepia"] .w6-reader__no, html[data-w6-bg="light"] .w6-reader__no { color: #7a6c55; }
html[data-w6-bg="sepia"] .w6-tools button, html[data-w6-bg="light"] .w6-tools button { color: inherit; border-color: rgba(0, 0, 0, 0.2); }
html[data-w6-bg="sepia"] .w6-btn--ghost, html[data-w6-bg="light"] .w6-btn--ghost { color: inherit; border-color: rgba(0, 0, 0, 0.25); }

.w6-prose { font-size: 1rem; }
.w6-entry h1 { font-family: var(--w6-title-font); }

/* ---------- 语言选择页（网站根目录） ---------- */
body.w6-is-root { background: #08183a; }
.w6-langselect { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 56px; padding: 40px 20px; text-align: center; background-color: #0a1c42; background-image: var(--w6-lang-bg, radial-gradient(ellipse at 75% 10%, rgba(80, 220, 190, 0.45), transparent 45%), radial-gradient(ellipse at 90% 20%, rgba(150, 110, 230, 0.35), transparent 40%), linear-gradient(180deg, #0a1a44 0%, #123a66 62%, #1c4f78 100%)); background-position: center; background-size: cover; background-repeat: no-repeat; }
.w6-langselect__logo { margin: 0; font-family: var(--w6-font-display); font-style: italic; font-weight: 400; font-size: clamp(3rem, 9vw, 5.6rem); letter-spacing: 0.02em; text-shadow: 0 2px 20px rgba(150, 200, 255, 0.6); }
.w6-langselect__welcome { margin: 10px 0 0; font-family: var(--w6-font-serif); font-size: 1.25rem; color: #bcd2f0; letter-spacing: 0.08em; }
.w6-langselect__panel { width: min(920px, 100%); padding: 38px 40px 44px; border: 1px solid rgba(170, 215, 255, 0.55); border-radius: 36px; background: linear-gradient(180deg, rgba(120, 170, 230, 0.32), rgba(60, 100, 170, 0.28)); backdrop-filter: blur(10px); box-shadow: 0 0 40px rgba(120, 190, 255, 0.35) inset, 0 10px 40px rgba(0, 0, 0, 0.3); }
.w6-langselect__panel > p { margin: 0 0 26px; font-family: var(--w6-font-serif); font-size: 1.2rem; color: #e6f0ff; }
.w6-langselect__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.w6-langselect__btn { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 20px; border: 1px solid rgba(190, 225, 255, 0.7); border-radius: 18px; background: rgba(110, 170, 240, 0.35); font-size: 1.5rem; font-weight: 600; color: #fff; transition: transform 0.15s, background 0.15s; }
.w6-langselect__btn:hover { transform: translateY(-2px); background: rgba(130, 195, 255, 0.5); }
.w6-langselect__tag { display: inline-grid; place-items: center; min-width: 2em; padding: 0 0.3em; border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 6px; font-size: 0.8em; }

/* ---------- 页脚 ---------- */
.w6-footer { border-top: 1px solid var(--w6-border); background: color-mix(in srgb, var(--w6-bg) 95%, transparent); }
.w6-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 36px; max-width: 1280px; margin: 0 auto; padding: 22px 24px; font-size: 0.85rem; }
.w6-footer__brand { font-family: var(--w6-title-font); font-size: 1.3rem; }
.w6-footer__brand img { height: 34px; width: auto; display: block; }
.w6-footer ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.w6-footer__copy { margin: 0; color: var(--w6-muted); }

/* ---------- 平板 ---------- */
@media (max-width: 1023px) {
	.w6-header__inner { gap: 12px; padding: 0 16px; min-height: 56px; }
	.w6-nav-toggle { display: block; order: 3; margin-left: 0; }
	.w6-header__tools { margin-left: auto; gap: 12px; }
	.w6-account span { display: none; }
	.w6-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; background: color-mix(in srgb, var(--w6-bg) 98%, transparent); border-bottom: 1px solid var(--w6-border); }
	.w6-nav.is-open { display: block; }
	.w6-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; }
	.w6-nav a { padding: 14px 2px; border-bottom: 1px solid var(--w6-border); }
	.w6-nav__cta a { margin-top: 12px; text-align: center; }
	.w6-hero { min-height: 340px; }
	.w6-hero__inner { padding: 40px 20px; }
	.w6-features { grid-template-columns: repeat(2, 1fr); }
	.w6-features li { border-bottom: 1px solid var(--w6-border); padding: 14px 20px; }
	.w6-home-grid { grid-template-columns: 1fr; padding: 24px 16px; }
	.w6-tools { top: 56px; }
	.w6-progress { top: 55px; }
}

/* ---------- 手机 ---------- */
@media (max-width: 599px) {
	.w6-brand { font-size: 1.25rem; }
	.w6-hero { min-height: 0; background-position: 62% top; background-size: auto 420px; padding-top: 340px; }
	.w6-hero::before { background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--w6-bg) 35%, transparent) 220px, color-mix(in srgb, var(--w6-bg) 96%, transparent) 400px); }
	.w6-hero__inner { padding: 0 16px 24px; }
	.w6-hero__copy { max-width: none; text-align: center; }
	.w6-hero__cta { flex-direction: column; }
	.w6-hero__cta .w6-btn { width: 100%; }
	.w6-features { grid-template-columns: repeat(4, 1fr); }
	.w6-features li { flex-direction: column; text-align: center; gap: 6px; padding: 12px 4px; border-bottom: 0; }
	.w6-features .w6-icon { width: 24px; height: 24px; }
	.w6-features em { display: none; }
	.w6-features strong { font-size: 0.7rem; }
	.w6-latest__card { grid-template-columns: 1fr; }
	.w6-char { flex-basis: 112px; }
	.w6-langselect__panel { padding: 26px 18px 30px; border-radius: 26px; }
	.w6-langselect__buttons { grid-template-columns: 1fr; gap: 14px; }
	.w6-langselect { gap: 36px; }
	.w6-footer__inner { flex-direction: column; text-align: center; }
	.w6-footer ul { justify-content: center; }
	.w6-reader { padding-inline: 16px; }
	.w6-tools { gap: 10px; flex-wrap: wrap; }
	.w6-prevnext { flex-wrap: wrap; }
	.w6-prevnext { flex-wrap: nowrap; gap: 8px; }
	.w6-prevnext .w6-btn { max-width: none; padding-inline: 0.4em; }
}


/* 商品页选择卡 */
.w6-choice{background:#0b1226;border:1px solid #1d2a4a;border-radius:18px;padding:24px;max-width:640px;margin:8px 0}
.w6-choice__head{display:flex;gap:16px;align-items:flex-start;padding-bottom:18px;border-bottom:1px solid #1d2a4a}
.w6-choice__icon{width:72px;height:72px;flex:none;border-radius:12px;background:#17233f;display:grid;place-items:center;font-size:1.8rem}
.w6-choice__brand{font-size:.8rem;letter-spacing:.06em;color:#d4b074}
.w6-choice__title{margin:2px 0;font-size:1.4rem;color:#fff}
.w6-choice__sub{font-size:.85rem;color:#8ea0c4}
.w6-choice__desc{margin:6px 0 0;color:#dbe3f5;font-size:.95rem}
.w6-choice__label{margin:18px 0 10px;font-weight:700;color:#fff}
.w6-choice__grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.w6-choice__opt{border:1px solid #1d2a4a;border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:6px}
.w6-choice__opt--main{border-color:#d4b074}
.w6-choice__optname{font-weight:700;color:#d4b074}
.w6-choice__price{font-size:1.7rem;font-weight:800;color:#fff}
.w6-choice__note{color:#8ea0c4;font-size:.85rem}
.w6-choice__feat{color:#dbe3f5;font-size:.9rem;flex:1;margin-bottom:8px}
.w6-choice__btn{display:block;text-align:center;padding:12px;border-radius:10px;background:#2a3b60;color:#fff;font-weight:700;text-decoration:none}
.w6-choice__btn--gold{background:#d4b074;color:#1a1408}
.w6-choice__btn--off{opacity:.55;cursor:default}
.w6-choice__owned{margin:18px 0 6px;color:#d4b074;font-weight:700}
.w6-choice__foot{text-align:center;margin-top:16px;font-size:.8rem;color:#8ea0c4}
@media (max-width:640px){.w6-choice__grid{grid-template-columns:1fr}}

/* 商品页隐藏 PayPal 快捷按钮，统一走选择卡 → 结账页 */
.single-product .ppc-button-wrapper,.single-product #ppc-button-ppcp-gateway,.single-product .ppcp-messages{display:none !important}

/* ===== 小说首页改版 2026-11（只作用于 .w6-novel--banner；旧样式未改动） ===== */
.w6-novel--banner { background: #080E1B; color: #F4F6FA; overflow-x: clip; }
.w6-banner { background: #080E1B; line-height: 0; }
.w6-banner__frame { max-width: 1920px; margin: 0 auto; }
.w6-banner__img { display: block; width: 100%; height: auto; }

.w6-entry { background: #080E1B; padding: 30px 20px 38px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.w6-entry__inner { max-width: 900px; margin: 0 auto; }
.w6-entry__line { margin: 0 0 12px; font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 700; letter-spacing: 0.04em; color: #F4F6FA; }
.w6-entry__tags { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; color: #A7B3C7; font-size: 0.95rem; }
.w6-entry__tags li + li::before { content: "·"; margin: 0 0.8em; color: #D1B58C; }
.w6-entry__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.w6-entry__cta .w6-btn { min-width: 210px; padding: 0.85em 1.8em; font-size: 1.05rem; }
.w6-novel--banner .w6-btn--primary { background: #B91F32; border-color: #B91F32; color: #fff; }
.w6-novel--banner .w6-btn--outline { background: transparent; border: 1px solid rgba(244, 246, 250, 0.4); color: #F4F6FA; }
.w6-novel--banner .w6-btn--outline:hover { border-color: #D1B58C; color: #D1B58C; }

.w6-home-body { max-width: 1200px; margin: 0 auto; padding: 36px 20px 20px; display: flex; flex-direction: column; gap: 28px; }
.w6-novel--banner .w6-panel { background: #151D2D; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 24px 26px; margin: 0; min-width: 0; }
.w6-novel--banner .w6-panel__title { margin: 0 0 16px; }
.w6-home-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; }
.w6-intro__text { color: #A7B3C7; line-height: 1.85; }
.w6-intro__more { display: inline-block; margin-top: 14px; color: #D1B58C; }
.w6-novel--banner .w6-latest__card { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 20px; align-items: start; }
.w6-novel--banner .w6-latest__img { margin: 0; }
.w6-novel--banner .w6-latest__img img { display: block; width: 100%; height: auto; border-radius: 8px; }
.w6-novel--banner .w6-latest__body h3 { margin: 0 0 10px; }
.w6-novel--banner .w6-latest__body p { color: #A7B3C7; }

.w6-eclipse__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.w6-eclipse .w6-char { flex: none; width: auto; min-width: 0; display: block; }
.w6-eclipse .w6-char__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; background: #0d1423; }
.w6-eclipse .w6-char__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.w6-eclipse .w6-char__name { display: block; margin-top: 10px; font-weight: 700; text-align: center; font-size: 0.95rem; color: #F4F6FA; overflow-wrap: anywhere; }
.w6-eclipse .w6-char__role { display: block; margin-top: 2px; text-align: center; font-size: 0.8rem; color: #A7B3C7; }

.w6-unlock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.w6-unlock__stat { color: #A7B3C7; margin: 0 0 18px; }

.w6-novel--banner .w6-about { max-width: 900px; margin: 10px auto 60px; padding: 0 20px; color: #A7B3C7; }

@media (max-width: 1100px) {
	.w6-eclipse__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.w6-home-top, .w6-unlock { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.w6-entry { padding: 22px 16px 28px; }
	.w6-entry__cta .w6-btn { width: 100%; min-width: 0; }
	.w6-home-body { padding: 24px 14px 12px; gap: 20px; }
	.w6-novel--banner .w6-panel { padding: 18px 16px; }
	.w6-novel--banner .w6-latest__card { grid-template-columns: minmax(0, 1fr); }
	.w6-eclipse__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* 隐藏插件自带的 Memberships 菜单（本站只用 VIP 订阅） */
.woocommerce-MyAccount-navigation-link--wps_memberships{display:none !important}
/* w6: My Account subscription tables readable on dark */
.woocommerce-MyAccount-content table.shop_table th,.woocommerce-MyAccount-content table.shop_table td,.wps_sfw_details th,.wps_sfw_details td{background:transparent !important;color:#e7edf7 !important}
.woocommerce-MyAccount-content table.shop_table tr:nth-child(even) th,.woocommerce-MyAccount-content table.shop_table tr:nth-child(even) td{background:rgba(255,255,255,.04) !important}
.woocommerce-MyAccount-content table.shop_table th{color:#9fb0c8 !important}
.wps_sfw_details a.button,a.wps_sfw_cancel_subscription{background:transparent !important;color:#e7edf7 !important;border:1px solid #c9a24b !important;border-radius:6px;padding:.35em 1.1em;text-decoration:none}
.wps_sfw_details a.button:hover,a.wps_sfw_cancel_subscription:hover{background:#c9a24b !important;color:#0a0f1c !important}
.woocommerce-MyAccount-content table.shop_table tr,.woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(odd),.woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(even),.wps_sfw_details tr{background:transparent !important;background-color:transparent !important}
.woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(even) th,.woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(even) td{background:rgba(255,255,255,.04) !important}
/* w6: footer legal links */
.w6-footer__links{display:flex;flex-wrap:wrap;gap:6px 22px;margin:0 0 10px}
.w6-footer__links a{color:#9fb0c8;font-size:.85rem;text-decoration:none}
.w6-footer__links a:hover{color:#e7edf7;text-decoration:underline}
