/* ============================================================
   TC4AutoResearch 版本预告 —— Thaumcraft 奥术风格
   仅优化视觉层，页面文字内容保持不变
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;900&family=Cinzel:wght@600;800&display=swap');

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

:root {
  --gold:        #e8c877;
  --gold-hi:     #f7e3ac;
  --gold-dim:    #b8934a;
  --gold-deep:   #7a5a26;
  --auram:       #9d6bd3;   /* 奥术紫 */
  --auram-deep:  #4a2a78;
  --teal:        #7fd4e8;
  --ink:         #d8cdb4;
  --ink-dim:     rgba(216, 205, 180, .55);
  --panel:       rgba(19, 12, 32, .84);
  --edge:        rgba(184, 240, 255, .28);
  --crimson:     #c8434f;
  --obsidian:    #0b0714;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 650px at 50% -12%, rgba(122, 74, 168, .34), transparent 62%),
    radial-gradient(850px 600px at 88% 112%, rgba(40, 110, 120, .24), transparent 60%),
    radial-gradient(circle at 15% 82%, rgba(70, 40, 120, .22), transparent 55%),
    linear-gradient(180deg, #0d0916 0%, #090612 100%);
  color: var(--ink);
  font-family: 'Noto Serif SC', serif;
  display: flex;
  justify-content: center;
  padding: 64px 20px 84px;
  position: relative;
  overflow-x: hidden;
}

/* ---------- 环境层 ---------- */

/* 奥术辉光：缓慢流动的极光雾 */
.aurora {
  position: fixed; inset: -20%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(38% 30% at 30% 30%, rgba(122, 74, 168, .20), transparent 70%),
    radial-gradient(34% 28% at 70% 60%, rgba(64, 148, 160, .14), transparent 70%),
    radial-gradient(30% 26% at 55% 20%, rgba(184, 147, 74, .10), transparent 70%);
  filter: blur(40px);
  animation: auroraDrift 34s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate(-3%, -2%) rotate(0deg) scale(1); }
  50%  { transform: translate(3%, 2%) rotate(4deg) scale(1.06); }
  100% { transform: translate(-2%, 3%) rotate(-3deg) scale(1.03); }
}

/* 星尘 */
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.stars span {
  position: absolute;
  border-radius: 50%;
  background: #f4ead0;
  box-shadow: 0 0 6px 1px rgba(232, 200, 119, .55);
  animation: twinkle var(--dur, 4s) ease-in-out var(--delay, 0s) infinite;
  opacity: .1;
}
@keyframes twinkle {
  0%, 100% { opacity: .08; transform: scale(.8); }
  50%      { opacity: .9;  transform: scale(1.25); }
}

/* 漂浮符文背景 */
.rune-bg {
  position: fixed; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.rune-bg span {
  position: absolute;
  color: rgba(232, 200, 119, .12);
  animation: drift var(--dur, 14s) ease-in-out var(--delay, 0s) infinite;
  text-shadow: 0 0 12px rgba(232, 200, 119, .30), 0 0 30px rgba(157, 107, 211, .25);
  will-change: transform, opacity;
}
.rune-bg span:nth-child(3n) {
  color: rgba(157, 107, 211, .16);
  text-shadow: 0 0 12px rgba(157, 107, 211, .45);
}
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .35; }
  50%      { transform: translateY(-40px) rotate(16deg); opacity: 1; }
}

/* 颗粒噪点（陈旧羊皮纸质感） */
.noise {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 2;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 暗角 */
.vignette {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(4, 2, 10, .62) 100%);
}

/* 鼠标奥术光环 */
.cursor-aura {
  position: fixed; left: 0; top: 0;
  width: 360px; height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(157, 107, 211, .13), rgba(232, 200, 119, .05) 45%, transparent 70%);
  transition: transform .12s ease-out;
  will-change: transform;
}

/* ---------- 页面骨架 ---------- */

.page {
  width: 880px;
  max-width: 100%;
  position: relative;
  z-index: 3;
}

/* ---------- 头部 ---------- */

header { text-align: center; margin-bottom: 44px; position: relative; }

/* 旋转奥术法阵 */
.arcane-ring {
  position: absolute;
  left: 50%; top: 50px;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  pointer-events: none;
  opacity: .9;
}
.ring { position: absolute; border-radius: 50%; }
.ring-outer {
  inset: 0;
  border: 1px solid rgba(232, 200, 119, .28);
  box-shadow: 0 0 40px rgba(157, 107, 211, .28), inset 0 0 40px rgba(157, 107, 211, .18);
  animation: spin 70s linear infinite;
}
.ring-inner {
  inset: 26px;
  border: 1px dashed rgba(127, 212, 232, .30);
  box-shadow: inset 0 0 30px rgba(127, 212, 232, .10);
  animation: spin 46s linear infinite reverse;
}
.ring-core {
  inset: 70px;
  border: 1px solid rgba(232, 200, 119, .20);
  box-shadow: 0 0 26px rgba(232, 200, 119, .22), inset 0 0 26px rgba(232, 200, 119, .14);
  animation: spin 30s linear infinite;
}
.arcane-ring .glyph {
  position: absolute;
  left: 50%; top: 50%;
  font-size: 15px;
  color: rgba(232, 200, 119, .55);
  text-shadow: 0 0 10px rgba(232, 200, 119, .5);
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'Noto Serif SC', serif;
}
@keyframes spin { to { transform: rotate(360deg); } }

.mod-name {
  font-family: 'Cinzel', 'Noto Serif SC', serif;
  font-size: 15px;
  letter-spacing: .5em;
  color: var(--gold-dim);
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 14px rgba(232, 200, 119, .35);
}
.mod-name::before,
.mod-name::after {
  content: '';
  position: absolute; top: 50%;
  width: 54px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 200, 119, .7));
}
.mod-name::before { right: calc(100% + 18px); transform: scaleX(-1); }
.mod-name::after  { left:  calc(100% + 18px); }

h1 {
  font-size: 46px;
  font-weight: 900;
  background: linear-gradient(180deg, #f9ecc0 10%, var(--gold) 50%, #8a6a2f 95%);
  background-size: 100% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(232, 200, 119, .28);
  letter-spacing: .05em;
  animation: goldShimmer 7s ease-in-out infinite;
}
@keyframes goldShimmer {
  0%, 100% { background-position: 50% 0%; }
  50%      { background-position: 50% 90%; }
}
h1 .rune {
  color: var(--teal);
  -webkit-text-fill-color: var(--teal);
  text-shadow: 0 0 18px rgba(127, 212, 232, .6);
}
.subtitle {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-dim);
  font-style: italic;
  letter-spacing: .08em;
}

/* ---------- 警告条 ---------- */

.warning {
  border: 1px solid rgba(200, 67, 79, .45);
  border-left: 4px solid var(--crimson);
  outline: 1px solid rgba(232, 200, 119, .25);
  outline-offset: 3px;
  background:
    linear-gradient(90deg, rgba(200, 67, 79, .14), rgba(232, 200, 119, .08) 55%, transparent 80%);
  padding: 14px 20px;
  margin-bottom: 34px;
  font-size: 14.5px;
  color: #ecd9a0;
  border-radius: 3px;
  position: relative;
  text-shadow: 0 0 10px rgba(232, 200, 119, .25);
  animation: warnFlicker 4.2s steps(1) infinite;
}
@keyframes warnFlicker {
  0%, 100% { box-shadow: 0 0 22px rgba(200, 67, 79, .18), inset 0 0 24px rgba(200, 67, 79, .08); }
  47%      { box-shadow: 0 0 30px rgba(200, 67, 79, .30), inset 0 0 30px rgba(200, 67, 79, .14); }
  48%      { box-shadow: 0 0 8px  rgba(200, 67, 79, .10), inset 0 0 10px rgba(200, 67, 79, .05); }
  49%      { box-shadow: 0 0 26px rgba(200, 67, 79, .28), inset 0 0 26px rgba(200, 67, 79, .12); }
  50%      { box-shadow: 0 0 14px rgba(200, 67, 79, .20), inset 0 0 18px rgba(200, 67, 79, .10); }
}
.signal {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: rgba(127, 212, 232, .75);
  letter-spacing: .14em;
  margin-top: 8px;
  text-shadow: 0 0 10px rgba(127, 212, 232, .3);
}
#pct { display: inline-block; min-width: 2.2em; text-align: center; color: var(--gold); }

/* ---------- 奥术石板条目 ---------- */

section {
  background: linear-gradient(165deg, rgba(28, 18, 48, .88), rgba(13, 9, 24, .86));
  border: 1px solid rgba(157, 107, 211, .24);
  border-radius: 4px;
  padding: 20px 24px 18px 26px;
  margin-bottom: 18px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, .55),
    inset 0 0 46px rgba(74, 42, 120, .14);
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
section:hover {
  transform: translateY(-3px);
  border-color: rgba(157, 107, 211, .5);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .6),
    0 0 30px rgba(157, 107, 211, .22),
    inset 0 0 46px rgba(74, 42, 120, .2);
}
/* 顶部奥术刻线 */
section::before {
  content: '';
  position: absolute;
  left: 12px; right: 12px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 200, 119, .55), transparent);
  opacity: .8;
}
/* 左侧秘金刻痕 */
section h2::before {
  content: '';
  display: none;
}
section > h2 {
  position: relative;
}
section::after {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(157, 107, 211, .8) 60%, transparent);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(232, 200, 119, .5);
  opacity: .85;
}
/* 四角金饰 */
.corner-frame {
  position: absolute; inset: 7px;
  pointer-events: none;
  background:
    linear-gradient(var(--gold) 0 0) top left    / 14px 1px,
    linear-gradient(var(--gold) 0 0) top left    / 1px 14px,
    linear-gradient(var(--gold) 0 0) top right   / 14px 1px,
    linear-gradient(var(--gold) 0 0) top right   / 1px 14px,
    linear-gradient(var(--gold) 0 0) bottom left / 14px 1px,
    linear-gradient(var(--gold) 0 0) bottom left / 1px 14px,
    linear-gradient(var(--gold) 0 0) bottom right/ 14px 1px,
    linear-gradient(var(--gold) 0 0) bottom right/ 1px 14px;
  background-repeat: no-repeat;
  opacity: .5;
}

h2 {
  font-size: 20px;
  color: #f0e2c0;
  margin-bottom: 12px;
  letter-spacing: .04em;
  text-shadow: 0 0 16px rgba(232, 200, 119, .18);
  position: relative;
  padding-bottom: 10px;
}
h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 120px; height: 1px;
  background: linear-gradient(90deg, rgba(232, 200, 119, .7), transparent);
}
h2 .rune { color: var(--teal); text-shadow: 0 0 14px rgba(127, 212, 232, .5); }

ul { list-style: none; }
li {
  font-size: 15px;
  line-height: 1.9;
  padding-left: 20px;
  position: relative;
}
li::before {
  content: '✦';
  position: absolute;
  left: 2px;
  color: var(--gold-dim);
  font-size: 12px;
  top: 5px;
  text-shadow: 0 0 8px rgba(232, 200, 119, .5);
}
b, code {
  color: #ffe9b3;
  font-family: 'Cinzel', 'Noto Serif SC', serif;
  background: rgba(232, 200, 119, .12);
  padding: 1px 8px;
  border-radius: 4px;
  border: 1px solid rgba(232, 200, 119, .3);
  box-shadow: 0 0 10px rgba(232, 200, 119, .12);
  font-size: 13.5px;
}
.rune {
  color: var(--teal);
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'Noto Serif SC', serif;
  font-variant-emoji: text;
  text-shadow: 0 0 12px rgba(127, 212, 232, .4);
  letter-spacing: .03em;
  white-space: nowrap;
}
.rune.glitching {
  color: #b7f0ff;
  text-shadow: 0 0 16px rgba(127, 212, 232, .95), 0 0 34px rgba(157, 107, 211, .8);
}

/* 修复列表 */
.fixes { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 28px; }
.fixes li { font-size: 14px; line-height: 1.75; }

/* ---------- 损毁残页（羊皮纸） ---------- */

.fragment {
  margin-top: 40px;
  border: 1px dashed rgba(232, 200, 119, .5);
  outline: 1px solid rgba(74, 42, 120, .3);
  outline-offset: 5px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(88, 62, 24, .35), transparent 60%),
    linear-gradient(165deg, rgba(52, 38, 16, .45), rgba(24, 17, 8, .5));
  border-radius: 6px 3px 7px 4px / 4px 7px 3px 6px;
  padding: 26px 24px;
  text-align: center;
  font-size: 17px;
  line-height: 2.2;
  color: var(--gold);
  position: relative;
  transform: rotate(-.5deg);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .5), inset 0 0 40px rgba(0, 0, 0, .35);
  text-shadow: 0 0 12px rgba(232, 200, 119, .35);
  animation: fragmentFlicker 6s ease-in-out infinite;
}
@keyframes fragmentFlicker {
  0%, 100% { opacity: 1; }
  50%      { opacity: .86; }
}
.fragment::before {
  content: '🕮 损 毁 残 页';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%) rotate(.5deg);
  background: #120c1e;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: .45em;
  color: var(--gold-dim);
  text-shadow: 0 0 10px rgba(232, 200, 119, .4);
  white-space: nowrap;
}

footer {
  text-align: center;
  margin-top: 40px;
  font-family: 'Cinzel', serif;
  font-size: 12.5px;
  color: rgba(127, 212, 232, .62);
  letter-spacing: .16em;
  text-shadow: 0 0 12px rgba(127, 212, 232, .3);
  animation: footerPulse 5s ease-in-out infinite;
}
@keyframes footerPulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

/* ---------- 响应式 & 动效偏好 ---------- */

@media (max-width: 640px) {
  body { padding: 40px 14px 56px; }
  h1 { font-size: 32px; }
  .fixes { grid-template-columns: 1fr; }
  .arcane-ring { width: 220px; height: 220px; top: 40px; }
  .ring-inner { inset: 20px; }
  .ring-core { inset: 52px; }
  .mod-name::before, .mod-name::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* ===== 提亮补丁 ===== */
body {
  background:
    radial-gradient(1100px 650px at 50% -12%, rgba(140, 92, 190, .45), transparent 62%),
    radial-gradient(850px 600px at 88% 112%, rgba(60, 140, 155, .34), transparent 60%),
    radial-gradient(circle at 15% 82%, rgba(90, 55, 150, .32), transparent 55%),
    linear-gradient(180deg, #141024 0%, #0f0a1c 100%);
}
section {
  background: linear-gradient(165deg, rgba(40, 27, 66, .92), rgba(22, 15, 40, .9));
}
.vignette {
  background: radial-gradient(ellipse at center, transparent 58%, rgba(4, 2, 10, .42) 100%);
}
.rune-bg span { color: rgba(232, 200, 119, .22); }
.aurora { opacity: 1.4; }
li { color: #e6dcc2; }
