/* ============================================================
   多套静态风格，随机切换。无光晕、无粒子、无入场动画。
   URL 加 ?style=editorial|terminal|swiss|poster|noir 可固定。
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC',
               'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--fg, #111);
  background: var(--bg, #fff);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.content {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: var(--max, 980px);
  margin: 0 auto;
  padding: var(--pad-top, 100px) var(--pad-x, 32px) var(--pad-bottom, 76px);
  display: flex;
  flex-direction: column;
  align-items: var(--align-items, center);
  justify-content: center;
  text-align: var(--text-align, center);
}

.badge {
  font-size: var(--badge-size, 11px);
  letter-spacing: var(--badge-tracking, 0.16em);
  color: var(--badge-color, var(--muted, #666));
  margin-bottom: var(--badge-gap, 40px);
  text-transform: var(--badge-case, uppercase);
  font-weight: var(--badge-weight, 500);
}

.domain {
  font-family: var(--display, inherit);
  font-size: var(--domain-size, clamp(2.5rem, 7vw, 5.4rem));
  font-weight: var(--domain-weight, 600);
  line-height: 1.12;
  letter-spacing: var(--domain-tracking, -0.035em);
  color: var(--domain-color, var(--fg, #111));
  word-break: break-word;
}

.rule {
  width: var(--rule-w, 48px);
  height: var(--rule-h, 1px);
  margin: var(--rule-gap, 38px) 0;
  background: var(--rule-color, currentColor);
  opacity: var(--rule-opacity, 0.28);
}

.headline {
  font-family: var(--body-font, inherit);
  font-size: var(--headline-size, clamp(1.3rem, 3vw, 1.85rem));
  font-weight: var(--headline-weight, 500);
  line-height: 1.6;
  white-space: pre-line;
  max-width: var(--headline-max, 34em);
  color: var(--fg, #111);
}

.rotating-line {
  margin-top: 22px;
  font-family: var(--body-font, inherit);
  font-size: var(--rot-size, 0.98rem);
  color: var(--muted, #666);
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: var(--align-items, center);
}

.rotating-word-wrap { display: inline-grid; min-width: 6.4em; text-align: left; }

.rotating-word {
  grid-area: 1 / 1;
  font-weight: var(--word-weight, 500);
  color: var(--word-color, var(--accent, #333));
  background: var(--word-bg, transparent);
  padding: var(--word-pad, 0);
  border: var(--word-border, 0);
  border-radius: var(--word-radius, 0);
  text-decoration: var(--word-deco, none);
  text-decoration-color: var(--accent, currentColor);
  text-underline-offset: 4px;
}

.subheadline {
  margin-top: 20px;
  font-family: var(--body-font, inherit);
  font-size: 0.9rem;
  color: var(--muted, #666);
}

.footer {
  font-family: var(--body-font, inherit);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--footer-color, var(--muted, #666));
  text-align: var(--text-align, center);
  padding: 0 var(--pad-x, 32px) 30px;
}

/* ============================================================
   1. Editorial — 报纸编辑部
   ============================================================ */
[data-style="editorial"] {
  --bg: #f2efe6;
  --fg: #171714;
  --muted: #6d6a62;
  --accent: #a33728;
  --display: 'Playfair Display', Georgia, 'Songti SC', serif;
  --body-font: 'Playfair Display', Georgia, 'Songti SC', serif;
  --align-items: flex-start;
  --text-align: left;
  --max: 900px;
  --badge-color: #a33728;
  --badge-tracking: 0.24em;
  --badge-gap: 34px;
  --domain-size: clamp(2.7rem, 7.4vw, 5.4rem);
  --domain-weight: 400;
  --domain-tracking: -0.035em;
  --rule-w: 100%;
  --rule-h: 1px;
  --rule-color: #171714;
  --rule-opacity: 0.85;
  --rule-gap: 28px;
  --headline-size: clamp(1.3rem, 2.9vw, 1.8rem);
  --headline-weight: 400;
  --word-color: #a33728;
  --word-deco: underline;
}

[data-style="editorial"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.012) 0 1px, transparent 1px 4px);
}

[data-style="editorial"] .badge::before { content: '— '; }
[data-style="editorial"] .badge::after  { content: ' —'; }
[data-style="editorial"] .domain { border-bottom: 3px double #171714; padding-bottom: 10px; }
[data-style="editorial"] .headline { font-style: italic; }
[data-style="editorial"] .footer {
  margin: 0 var(--pad-x, 32px);
  padding: 16px 0 30px;
  border-top: 1px solid rgba(23,23,20,0.2);
}

/* ============================================================
   2. Terminal — 黑绿终端
   ============================================================ */
[data-style="terminal"] {
  --bg: #090d09;
  --fg: #93e6a5;
  --muted: #557f5f;
  --accent: #c4ff8a;
  --display: 'DM Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --body-font: 'DM Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --align-items: flex-start;
  --text-align: left;
  --max: 820px;
  --badge-size: 12px;
  --badge-tracking: 0.02em;
  --badge-case: none;
  --badge-color: #557f5f;
  --badge-gap: 30px;
  --domain-size: clamp(1.8rem, 5vw, 3.3rem);
  --domain-weight: 400;
  --domain-tracking: 0;
  --rule-w: 100%;
  --rule-h: 1px;
  --rule-color: #557f5f;
  --rule-opacity: 0.5;
  --rule-gap: 26px;
  --headline-size: clamp(0.95rem, 2.2vw, 1.25rem);
  --headline-weight: 400;
  --rot-size: 0.9rem;
  --word-color: #c4ff8a;
  --word-weight: 400;
}

[data-style="terminal"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.24) 0 1px, transparent 1px 4px);
}

[data-style="terminal"] .badge::before { content: '> '; color: #c4ff8a; }
[data-style="terminal"] .domain::before { content: '$ '; color: #c4ff8a; }
[data-style="terminal"] .headline { line-height: 1.9; }
[data-style="terminal"] .rotating-word::after {
  content: '_';
  animation: blink 1.05s steps(1) infinite;
}
[data-style="terminal"] .subheadline::after {
  content: ' ▮';
  color: #c4ff8a;
  animation: blink 1.3s steps(1) infinite;
}
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

/* ============================================================
   3. Swiss — 瑞士国际主义网格
   ============================================================ */
[data-style="swiss"] {
  --bg: #e9e8e2;
  --fg: #111111;
  --muted: #55534e;
  --accent: #1b3fd8;
  --display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --align-items: flex-start;
  --text-align: left;
  --max: 960px;
  --badge-size: 11px;
  --badge-color: #ffffff;
  --badge-weight: 700;
  --badge-tracking: 0.08em;
  --badge-gap: 38px;
  --domain-size: clamp(2.9rem, 8.6vw, 6.4rem);
  --domain-weight: 700;
  --domain-tracking: -0.065em;
  --rule-w: 96px;
  --rule-h: 5px;
  --rule-color: #1b3fd8;
  --rule-opacity: 1;
  --rule-gap: 40px;
  --headline-size: clamp(1.4rem, 3.3vw, 2.1rem);
  --headline-weight: 700;
  --headline-max: 24em;
  --word-color: #ffffff;
  --word-bg: #1b3fd8;
  --word-pad: 2px 9px;
  --word-weight: 600;
}

[data-style="swiss"] body::before {
  content: '';
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: 16px;
  background: #1b3fd8;
  z-index: 3;
}

[data-style="swiss"] .badge { background: #111; padding: 7px 12px; }
[data-style="swiss"] .domain { line-height: 0.98; }
[data-style="swiss"] .headline { line-height: 1.32; letter-spacing: -0.02em; }

/* ============================================================
   4. Poster — 复古印刷海报
   ============================================================ */
[data-style="poster"] {
  --bg: #e5d7ba;
  --fg: #2b2118;
  --muted: #6d5b45;
  --accent: #bd3529;
  --display: 'Playfair Display', Georgia, 'Songti SC', serif;
  --body-font: 'Playfair Display', Georgia, 'Songti SC', serif;
  --align-items: center;
  --text-align: center;
  --max: 880px;
  --badge-size: 12px;
  --badge-weight: 700;
  --badge-tracking: 0.14em;
  --badge-color: #f6ead2;
  --badge-gap: 42px;
  --domain-size: clamp(2.5rem, 7.2vw, 5.2rem);
  --domain-weight: 700;
  --domain-tracking: -0.03em;
  --domain-color: #2b2118;
  --rule-w: 116px;
  --rule-h: 5px;
  --rule-color: #2b2118;
  --rule-opacity: 1;
  --rule-gap: 36px;
  --headline-size: clamp(1.35rem, 3.2vw, 1.95rem);
  --headline-weight: 700;
  --word-color: #2b2118;
  --word-weight: 700;
  --word-deco: underline;
}

[data-style="poster"] body::after {
  content: '';
  position: fixed;
  inset: 18px;
  border: 3px solid #2b2118;
  pointer-events: none;
  z-index: 3;
}

[data-style="poster"] .badge {
  background: #bd3529;
  border: 2px solid #2b2118;
  box-shadow: 4px 4px 0 #2b2118;
  padding: 8px 17px;
  transform: rotate(-1.5deg);
}
[data-style="poster"] .domain { text-shadow: 4px 4px 0 #bd3529; transform: rotate(-0.8deg); }
[data-style="poster"] .rule { transform: rotate(-1deg); }
[data-style="poster"] .headline { transform: rotate(0.4deg); }
[data-style="poster"] .rotating-word { text-decoration-color: #bd3529; text-decoration-thickness: 3px; }
[data-style="poster"] .footer { font-weight: 700; }

/* ============================================================
   5. Noir — 暗色极简，一线暖橙
   ============================================================ */
[data-style="noir"] {
  --bg: #111113;
  --fg: #ece9e3;
  --muted: #827f79;
  --accent: #d99a63;
  --display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --align-items: flex-start;
  --text-align: left;
  --max: 860px;
  --badge-size: 11px;
  --badge-tracking: 0.18em;
  --badge-color: #827f79;
  --badge-gap: 38px;
  --domain-size: clamp(2.8rem, 7.6vw, 5.4rem);
  --domain-weight: 500;
  --domain-tracking: -0.05em;
  --domain-color: #ece9e3;
  --rule-w: 44px;
  --rule-h: 1px;
  --rule-color: #d99a63;
  --rule-opacity: 1;
  --rule-gap: 40px;
  --headline-size: clamp(1.3rem, 2.9vw, 1.8rem);
  --headline-weight: 400;
  --headline-max: 30em;
  --word-color: #d99a63;
  --word-weight: 500;
}

[data-style="noir"] body::before {
  content: '';
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: #d99a63;
}

[data-style="noir"] .badge { padding-left: 12px; border-left: 2px solid #d99a63; }

/* ============================================================
   6. NodeLoc 风格 — 浅灰底、绿橙点缀、左侧双色条 + 主题式排版
   ============================================================ */
[data-style="nodeloc"] {
  --bg: #f5f6f8;
  --fg: #1f2329;
  --muted: #78828f;
  --accent: #0f9d6f;
  --display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  --align-items: flex-start;
  --text-align: left;
  --max: 860px;
  --badge-size: 11px;
  --badge-weight: 600;
  --badge-case: none;
  --badge-color: #0f9d6f;
  --badge-gap: 26px;
  --domain-size: clamp(2rem, 5.2vw, 3.2rem);
  --domain-weight: 700;
  --domain-tracking: -0.02em;
  --rule-w: 100%;
  --rule-h: 1px;
  --rule-color: #e6e8eb;
  --rule-opacity: 1;
  --rule-gap: 26px;
  --headline-size: clamp(1rem, 2.4vw, 1.2rem);
  --headline-weight: 500;
  --rot-size: 0.95rem;
  --word-color: #0f9d6f;
  --word-weight: 600;
}
[data-style="nodeloc"] body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #0f9d6f 0 42%, #ff6a00 42%);
}
[data-style="nodeloc"] .badge { background: #eaf7f1; padding: 5px 10px; border-radius: 4px; }
[data-style="nodeloc"] .domain::before {
  content: '[ 主题 ] ';
  font-size: 12px;
  font-weight: 500;
  color: #ff6a00;
  vertical-align: middle;
}

/* ============================================================
   7. Linux DO 风格 — 淡蓝提示条 + 粗体大标题 + 灰底蓝线引用块
   ============================================================ */
[data-style="linuxdo"] {
  --bg: #ffffff;
  --fg: #22292f;
  --muted: #77828c;
  --accent: #006be3;
  --display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  --align-items: flex-start;
  --text-align: left;
  --max: 880px;
  --pad-top: 64px;
  --pad-bottom: 56px;
  --badge-size: 12px;
  --badge-weight: 500;
  --badge-case: none;
  --badge-color: #006be3;
  --badge-gap: 24px;
  --domain-size: clamp(1.8rem, 5vw, 2.7rem);
  --domain-weight: 700;
  --domain-tracking: -0.02em;
  --rule-w: 100%;
  --rule-h: 1px;
  --rule-color: #e9ecef;
  --rule-opacity: 1;
  --rule-gap: 26px;
  --headline-size: clamp(1rem, 2.4vw, 1.08rem);
  --headline-weight: 400;
  --headline-max: 44em;
  --rot-size: 0.95rem;
  --word-color: #006be3;
  --word-weight: 500;
}
[data-style="linuxdo"] body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 7px;
  background: #f2f3f5;
  border-right: 1px solid #e9ecef;
}
[data-style="linuxdo"] .content { justify-content: flex-start; }
[data-style="linuxdo"] .badge {
  align-self: stretch;
  background: #e9f4ff;
  color: #006be3;
  padding: 9px 14px;
  border-radius: 2px;
}
[data-style="linuxdo"] .domain { line-height: 1.35; }
[data-style="linuxdo"] .domain::before {
  content: '话题';
  display: inline-block;
  margin-right: 10px;
  padding: 2px 7px;
  background: #f1f2f4;
  color: #77828c;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  vertical-align: middle;
}
[data-style="linuxdo"] .headline { line-height: 1.85; color: #3a4149; }
[data-style="linuxdo"] .rotating-line {
  width: 100%;
  background: #f7f8fa;
  border: 1px solid #e9ecef;
  border-left: 3px solid #006be3;
  border-radius: 3px;
  padding: 14px 16px;
  margin-top: 24px;
}
[data-style="linuxdo"] .rotating-word { text-decoration: underline; text-underline-offset: 3px; }
[data-style="linuxdo"] .subheadline { line-height: 1.7; }
[data-style="linuxdo"] .footer { border-top: 1px solid #e9ecef; padding-top: 18px; }

/* ============================================================
   8. NodeSeek 风格 — 浅灰底、绿色线索、干净的论坛正文页
   ============================================================ */
[data-style="nodeseek"] {
  --bg: #f6f7f9;
  --fg: #1f2328;
  --muted: #7d8590;
  --accent: #2da44e;
  --display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  --align-items: stretch;
  --text-align: left;
  --badge-size: 11px;
  --badge-weight: 600;
  --badge-case: none;
  --badge-color: #57606a;
  --badge-gap: 24px;
  --domain-size: clamp(1.9rem, 4.8vw, 2.5rem);
  --domain-weight: 700;
  --domain-tracking: -0.02em;
  --rule-w: 100%;
  --rule-h: 2px;
  --rule-color: #edf0f2;
  --rule-opacity: 1;
  --rule-gap: 28px;
  --headline-size: clamp(1rem, 2.4vw, 1.18rem);
  --headline-weight: 500;
  --headline-max: none;
  --rot-size: 0.95rem;
  --word-color: #2da44e;
  --word-weight: 600;
}
[data-style="nodeseek"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31,35,40,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,35,40,0.055) 1px, transparent 1px);
  background-size: 20px 20px;
}
[data-style="nodeseek"] .content {
  flex: 0 0 auto;
  width: min(860px, calc(100% - 48px));
  margin: 76px auto 0;
  padding: 44px 48px 40px;
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  justify-content: flex-start;
  align-items: stretch;
  box-shadow: 0 4px 18px rgba(31, 35, 40, 0.05);
}
[data-style="nodeseek"] .badge {
  align-self: flex-start;
  background: #f1f2f4;
  color: #57606a;
  padding: 5px 10px;
  border-radius: 4px;
}
[data-style="nodeseek"] .domain { line-height: 1.35; }
[data-style="nodeseek"] .rule {
  background: linear-gradient(90deg, #2da44e 0 64px, #edf0f2 64px);
}
[data-style="nodeseek"] .headline { line-height: 1.8; }
[data-style="nodeseek"] .rotating-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  line-height: 1.7;
}
[data-style="nodeseek"] .rotating-word {
  background: #2da44e;
  color: #fff;
  padding: 4px 9px;
  border-radius: 4px;
}
[data-style="nodeseek"] .subheadline { line-height: 1.8; }
[data-style="nodeseek"] .footer {
  margin-top: auto;
  text-align: center;
  color: #98a0a8;
}

/* ============================================================
   9. 烧饼论坛风格 — 暖白纸面、黄色标签、克制的主题页
   ============================================================ */
[data-style="sbforum"] {
  --bg: #fffdf7;
  --fg: #2b2f36;
  --muted: #8a8171;
  --accent: #f5b800;
  --display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  --align-items: stretch;
  --text-align: left;
  --badge-size: 11px;
  --badge-weight: 600;
  --badge-case: none;
  --badge-color: #8a6100;
  --badge-gap: 24px;
  --domain-size: clamp(1.9rem, 4.8vw, 2.5rem);
  --domain-weight: 700;
  --domain-tracking: -0.02em;
  --rule-w: 100%;
  --rule-h: 2px;
  --rule-color: #efe6cd;
  --rule-opacity: 1;
  --rule-gap: 28px;
  --headline-size: clamp(1rem, 2.4vw, 1.18rem);
  --headline-weight: 400;
  --headline-max: none;
  --rot-size: 0.95rem;
  --word-color: #8a6100;
  --word-weight: 600;
}
[data-style="sbforum"] body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: #1f2126;
  pointer-events: none;
  z-index: 2;
}
[data-style="sbforum"] .content {
  flex: 0 0 auto;
  width: min(840px, calc(100% - 48px));
  margin: 76px auto 0;
  padding: 44px 48px 40px;
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 4px;
  justify-content: flex-start;
  align-items: stretch;
  box-shadow: 0 4px 16px rgba(31, 33, 38, 0.04);
}
[data-style="sbforum"] .badge {
  align-self: flex-start;
  color: #8a6100;
  background: transparent;
  padding: 0;
}
[data-style="sbforum"] .badge::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  background: #f5b800;
  vertical-align: middle;
}
[data-style="sbforum"] .domain { line-height: 1.35; }
[data-style="sbforum"] .rule {
  background: linear-gradient(90deg, #f5b800 0 64px, #efe6cd 64px);
}
[data-style="sbforum"] .headline {
  display: block;
  width: 100%;
  padding: 18px 20px;
  background: #f7f8fa;
  border-radius: 2px;
  line-height: 1.8;
}
[data-style="sbforum"] .rotating-line {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 12px 16px;
  background: #fffaf0;
  border-left: 3px solid #f5b800;
  line-height: 1.7;
}
[data-style="sbforum"] .subheadline { line-height: 1.8; }
[data-style="sbforum"] .footer {
  margin-top: auto;
  text-align: center;
  color: #a09783;
}

/* ============================================================
   10. Apple 风格 — 纯白大留白、巨大黑字、一抹蓝
   ============================================================ */
[data-style="apple"] {
  --bg: #fbfbfd;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  --align-items: center;
  --text-align: center;
  --max: 1000px;
  --badge-size: 13px;
  --badge-weight: 400;
  --badge-case: none;
  --badge-color: #6e6e73;
  --badge-gap: 30px;
  --domain-size: clamp(3rem, 9vw, 7rem);
  --domain-weight: 700;
  --domain-tracking: -0.065em;
  --headline-size: clamp(1.25rem, 3.4vw, 2rem);
  --headline-weight: 400;
  --headline-max: 30em;
  --rot-size: 1.05rem;
  --word-color: #0071e3;
  --word-weight: 400;
}
[data-style="apple"] .rule { display: none; }

/* ============================================================
   11. Google 风格 — 多彩柔渐变文字 + 一条细线
   ============================================================ */
[data-style="google"] {
  --bg: #fff;
  --fg: #202124;
  --muted: #5f6368;
  --accent: #1a73e8;
  --display: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --body-font: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --align-items: center;
  --text-align: center;
  --max: 900px;
  --badge-size: 12px;
  --badge-case: none;
  --badge-color: #5f6368;
  --badge-gap: 22px;
  --domain-size: clamp(3rem, 10vw, 6.6rem);
  --domain-weight: 500;
  --domain-tracking: -0.045em;
  --domain-color: transparent;
  --headline-size: clamp(1rem, 2.6vw, 1.25rem);
  --headline-weight: 400;
  --headline-max: 34em;
  --rot-size: 0.95rem;
  --word-color: #1a73e8;
  --word-weight: 500;
}
[data-style="google"] .domain {
  background: linear-gradient(100deg, #4285f4 0%, #ea4335 34%, #fbbc05 67%, #34a853 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-style="google"] .rule {
  width: 120px;
  height: 2px;
  margin: 34px auto;
  background: #e0e0e0;
}
[data-style="google"] .footer { border-top: 1px solid #eeeeee; padding-top: 18px; }

/* ============================================================
   12. OpenAI 风格 — 纯黑底白字，极简发布感
   ============================================================ */
[data-style="openai"] {
  --bg: #0a0a0a;
  --fg: #ffffff;
  --muted: #a1a1aa;
  --accent: #ffffff;
  --display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --align-items: center;
  --text-align: center;
  --max: 960px;
  --badge-size: 11px;
  --badge-weight: 500;
  --badge-tracking: 0.16em;
  --badge-color: #d4d4d8;
  --badge-gap: 34px;
  --domain-size: clamp(2.4rem, 7.4vw, 5.4rem);
  --domain-weight: 600;
  --domain-tracking: -0.05em;
  --domain-color: #ffffff;
  --rule-w: 36px;
  --rule-h: 1px;
  --rule-color: #ffffff;
  --rule-opacity: 0.5;
  --rule-gap: 38px;
  --headline-size: clamp(1.15rem, 3vw, 1.6rem);
  --headline-weight: 400;
  --headline-max: 32em;
  --rot-size: 0.95rem;
  --word-color: #ffffff;
  --word-weight: 500;
}
[data-style="openai"] .badge {
  border: 1px solid #3f3f46;
  border-radius: 999px;
  padding: 6px 14px;
}
[data-style="openai"] .rotating-word { text-decoration: underline; text-underline-offset: 5px; }
[data-style="openai"] .footer { border-top: 1px solid #262626; padding-top: 18px; }

/* ============================================================
   统一收敛层 — 以 nodeloc 为标杆：左对齐、中等字号、小徽章、
   细分隔线、紧凑留白。保留各套配色与字体，去掉过重的装饰。
   ============================================================ */
[data-style="editorial"],
[data-style="terminal"],
[data-style="swiss"],
[data-style="poster"],
[data-style="noir"],
[data-style="linuxdo"],
[data-style="apple"],
[data-style="google"],
[data-style="openai"] {
  --max: 860px;
  --align-items: flex-start;
  --text-align: left;
  --domain-size: clamp(2rem, 5.2vw, 3.1rem);
  --domain-weight: 600;
  --domain-tracking: -0.02em;
  --badge-size: 11px;
  --badge-weight: 600;
  --badge-case: none;
  --badge-tracking: 0.08em;
  --badge-gap: 26px;
  --rule-w: 100%;
  --rule-h: 1px;
  --rule-gap: 26px;
  --headline-size: clamp(1rem, 2.4vw, 1.2rem);
  --headline-weight: 500;
  --headline-max: none;
  --rot-size: 0.95rem;
}

/* Editorial：去掉破折号与粗双线 */
[data-style="editorial"] .badge::before,
[data-style="editorial"] .badge::after { display: none; }
[data-style="editorial"] .domain { border-bottom: 1px solid #171714; padding-bottom: 9px; }

/* Terminal：保留等宽与 $，淡化扫描线 */
[data-style="terminal"] body::before {
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.13) 0 1px, transparent 1px 4px);
}

/* Swiss：蓝条收细，黑色 badge 改浅底小标签 */
[data-style="swiss"] body::before { width: 5px; }
[data-style="swiss"] .badge { background: #e9edff; color: #1b3fd8; padding: 5px 10px; border-radius: 3px; }

/* Poster：去掉粗外框、错位阴影与倾斜，保留牛皮纸与衬线 */
[data-style="poster"] body::after { content: none; }
[data-style="poster"] .badge {
  background: transparent; border: 0; box-shadow: none;
  padding: 0; transform: none; color: #8a3a2f;
}
[data-style="poster"] .domain { text-shadow: none; transform: none; }
[data-style="poster"] .rule,
[data-style="poster"] .headline { transform: none; }

/* Noir：去掉 badge 左边框 */
[data-style="noir"] .badge { border-left: 0; padding-left: 0; }

/* Google：细线改通栏，四色字保留但缩小 */
[data-style="google"] .rule { width: 100%; height: 1px; margin: 26px 0; }

/* 收敛补强：终端的 $ 降为普通符号色，瑞士的旋转词去实心块 */
[data-style="terminal"] .domain::before { color: #557f5f; }
[data-style="swiss"] .rotating-word {
  --word-bg: transparent;
  --word-pad: 0;
  --word-color: #1b3fd8;
}



/* Apple 隐藏了分隔线，正文需要独立间距 */
[data-style="apple"] .headline { margin-top: 30px; }


/* ============================================================
   13. Twitter 风格 — 清爽蓝、轻量卡片、社交动态式排版
   ============================================================ */
[data-style="twitter"] {
  --bg: #f7f9f9;
  --fg: #0f1419;
  --muted: #536471;
  --accent: #1d9bf0;
  --display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  --align-items: flex-start;
  --text-align: left;
  --max: 760px;
  --badge-size: 11px;
  --badge-weight: 700;
  --badge-case: none;
  --badge-color: #1d9bf0;
  --badge-gap: 26px;
  --domain-size: clamp(1.75rem, 4.6vw, 2.5rem);
  --domain-weight: 700;
  --domain-tracking: -0.03em;
  --rule-w: 100%;
  --rule-h: 1px;
  --rule-color: #eff3f4;
  --rule-opacity: 1;
  --rule-gap: 24px;
  --headline-size: clamp(1rem, 2.4vw, 1.15rem);
  --headline-weight: 400;
  --headline-max: none;
  --rot-size: 0.95rem;
  --word-color: #1d9bf0;
  --word-weight: 700;
}
[data-style="twitter"] .content {
  flex: 0 0 auto;
  width: min(620px, calc(100% - 48px));
  margin: 72px auto 0;
  padding: 128px 38px 38px;
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 16px;
  justify-content: flex-start;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 20, 25, 0.05);
}
[data-style="twitter"] .content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 88px;
  background: #1d9bf0;
}
[data-style="twitter"] .content > * { position: relative; z-index: 1; }
[data-style="twitter"] .badge {
  align-self: flex-start;
  color: #536471;
  background: transparent;
  padding: 0;
}
[data-style="twitter"] .badge::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #1d9bf0;
  vertical-align: middle;
}
[data-style="twitter"] .domain { line-height: 1.25; }
[data-style="twitter"] .headline { line-height: 1.7; }
[data-style="twitter"] .rotating-line { margin-top: 22px; line-height: 1.7; }
[data-style="twitter"] .rotating-word {
  text-decoration: underline;
  text-underline-offset: 4px;
}
[data-style="twitter"] .subheadline { line-height: 1.7; }
[data-style="twitter"] .footer {
  margin-top: auto;
  text-align: center;
  color: #8b98a5;
}

/* ============================================================
   14. getdesign.md 风格 — 暗色网格、荧光绿、技术文档式标题
   ============================================================ */
[data-style="getdesign"] {
  --bg: #0d0d0d;
  --fg: #f5f5f5;
  --muted: #8b8b8b;
  --accent: #c7f500;
  --display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  --align-items: flex-start;
  --text-align: left;
  --max: 860px;
  --badge-size: 11px;
  --badge-weight: 700;
  --badge-case: uppercase;
  --badge-tracking: 0.16em;
  --badge-color: #c7f500;
  --badge-gap: 30px;
  --domain-size: clamp(2.1rem, 5.6vw, 3.4rem);
  --domain-weight: 800;
  --domain-tracking: -0.045em;
  --domain-color: #f5f5f5;
  --rule-w: 100%;
  --rule-h: 2px;
  --rule-color: #272727;
  --rule-opacity: 1;
  --rule-gap: 30px;
  --headline-size: clamp(1rem, 2.4vw, 1.2rem);
  --headline-weight: 500;
  --headline-max: none;
  --rot-size: 0.95rem;
  --word-color: #c7f500;
  --word-weight: 700;
}
[data-style="getdesign"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
[data-style="getdesign"] .badge { border-left: 3px solid #c7f500; padding-left: 10px; }
[data-style="getdesign"] .domain { line-height: 1.15; }
[data-style="getdesign"] .rule { background: linear-gradient(90deg, #c7f500 0 64px, #272727 64px); }
[data-style="getdesign"] .headline { line-height: 1.7; }
[data-style="getdesign"] .rotating-line { line-height: 1.7; }
[data-style="getdesign"] .subheadline { line-height: 1.8; }
[data-style="getdesign"] .footer {
  border-top: 1px solid #272727;
  padding-top: 18px;
  color: #6e6e6e;
}

/* ============================================================
   15. OpenCode 风格 — 白底、大字细重、黑色方角标记
   ============================================================ */
[data-style="opencode"] {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b6b6b;
  --accent: #111111;
  --display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  --align-items: flex-start;
  --text-align: left;
  --max: 880px;
  --pad-top: 110px;
  --badge-size: 11px;
  --badge-weight: 600;
  --badge-case: uppercase;
  --badge-tracking: 0.14em;
  --badge-color: #111111;
  --badge-gap: 28px;
  --domain-size: clamp(2.2rem, 5.8vw, 3.4rem);
  --domain-weight: 400;
  --domain-tracking: -0.055em;
  --domain-color: #111111;
  --rule-w: 48px;
  --rule-h: 2px;
  --rule-color: #111111;
  --rule-opacity: 1;
  --rule-gap: 30px;
  --headline-size: clamp(1rem, 2.4vw, 1.2rem);
  --headline-weight: 400;
  --headline-max: none;
  --rot-size: 0.95rem;
  --word-color: #111111;
  --word-weight: 600;
}
[data-style="opencode"] .badge { font-family: 'DM Mono', ui-monospace, monospace; }
[data-style="opencode"] .badge::before { content: '[ '; color: #a3a3a3; }
[data-style="opencode"] .badge::after { content: ' ]'; color: #a3a3a3; }
[data-style="opencode"] .domain { line-height: 1.15; }
[data-style="opencode"] .headline { line-height: 1.75; }
[data-style="opencode"] .rotating-line { line-height: 1.7; }
[data-style="opencode"] .rotating-word {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
[data-style="opencode"] .subheadline { line-height: 1.8; }
[data-style="opencode"] .footer { border-top: 1px solid #e5e5e5; padding-top: 18px; }

/* ============================================================
   Responsive & reduced motion
   ============================================================ */
@media (max-width: 600px) {
  .content { padding-top: 78px; padding-bottom: 58px; }
  .badge { margin-bottom: 28px; }
  [data-style="editorial"],
  [data-style="terminal"],
  [data-style="swiss"],
  [data-style="poster"],
  [data-style="noir"],
  [data-style="linuxdo"],
  [data-style="apple"],
  [data-style="google"],
  [data-style="openai"] { --domain-size: clamp(1.6rem, 6.4vw, 2.4rem); }
  [data-style="nodeloc"] { --domain-size: clamp(1.5rem, 6vw, 2.2rem); }
  [data-style="nodeseek"],
  [data-style="sbforum"],
  [data-style="twitter"] { --domain-size: clamp(1.5rem, 6vw, 2.2rem); }
  [data-style="getdesign"],
  [data-style="opencode"] { --domain-size: clamp(1.7rem, 6.6vw, 2.5rem); }
  [data-style="nodeloc"] body::before { width: 3px; }
  [data-style="nodeseek"] .content,
  [data-style="sbforum"] .content {
    width: auto;
    margin: 48px 16px 0;
    padding: 28px 22px;
  }
  [data-style="twitter"] .content {
    width: auto;
    margin: 48px 16px 0;
    padding: 112px 22px 28px;
  }
  [data-style="twitter"] .content::before { height: 76px; }
  [data-style="google"] .rule { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
