/* 七曜龙渊介绍页（guide-longyuan.html）专属样式。
   底座 styles.css 提供色板、顶栏与天空背景；本文件只做龙渊的星海主题与版式（结构参照 guide-dungeon.css）。
   CSP 禁止内联样式，所有视觉都写在这里；背景与立绘由 tools/longyuan-guide/build_assets.py 生成，禁止手改。 */
.ly-page {
  --star: #f2c14e;
  --star-soft: #ffe29a;
  --night: #141a3c;
  --night-2: #23306b;
  --violet: #6b4fd8;
  --sea: #2a7fd4;
  --ly-ink: #1f2547;
  --ly-line: #d8dcf3;
  --ly-paper: #f8f9ff;
  --ly-soft: #eef0ff;
  min-width: 0;
}
.ly-main { width: min(100% - 32px, 1120px); padding-top: 18px; color: var(--ly-ink); }
.ly-main a { color: #3b3fb0; text-underline-offset: 3px; }
.ly-main a:focus-visible, .ly-main summary:focus-visible { outline: 3px solid var(--star); outline-offset: 3px; }

/* ===== 页头：漩涡海面 ===== */
.ly-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 360px;
  padding: 34px 38px 0;
  overflow: hidden;
  color: #eef1ff;
  border: 3px solid #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hard);
  background:
    linear-gradient(90deg, rgba(10, 14, 40, .92) 0%, rgba(14, 20, 56, .72) 46%, rgba(20, 26, 70, .15) 100%),
    url("/static/longyuan-bg-sea.webp?v=20261017-1") center 38% / cover no-repeat,
    var(--night);
}
.ly-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, #f2c14e, #e85a8a, #4fb3ff, #5bd17a, #f2c14e, #b98bff, #c98a4b);
  opacity: .9;
}
.ly-hero-copy { position: relative; z-index: 1; align-self: center; padding-bottom: 30px; }
.ly-eyebrow { margin: 0 0 10px; color: var(--star); font-size: 12px; font-weight: 800; letter-spacing: 3px; }
.ly-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.15;
  letter-spacing: 8px;
  text-shadow: 0 3px 0 #2a1f6e, 0 0 24px rgba(120, 160, 255, .75);
}
.ly-lead { margin: 12px 0 8px; color: var(--star-soft); font-size: 21px; font-weight: 800; }
.ly-intro { margin: 0 0 18px; color: #dfe5ff; line-height: 1.85; }
.ly-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ly-hero-tags li {
  padding: 4px 12px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(200, 210, 255, .55);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}
.ly-hero-art { position: relative; z-index: 1; flex: 0 0 260px; margin: 0; text-align: center; }
.ly-hero-art img { display: block; width: 260px; height: auto; margin: 0 auto; filter: drop-shadow(0 0 22px rgba(140, 170, 255, .55)); }
.ly-hero-art figcaption {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 3px 14px;
  color: var(--star-soft);
  background: rgba(14, 18, 52, .78);
  border: 1.5px solid rgba(242, 193, 78, .6);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ===== 提示条与目录 ===== */
.ly-notice {
  margin: 16px 0 0;
  padding: 11px 16px;
  background: #fff7dd;
  border: 2px solid #f2cf72;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.8;
}
.ly-notice strong { color: #a5560a; }
.ly-toc {
  position: sticky;
  top: 8px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 10px 12px;
  background: rgba(248, 249, 255, .96);
  border: 2px solid var(--ly-line);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 16px -10px rgba(30, 30, 90, .4);
}
.ly-toc a {
  padding: 4px 11px;
  color: #3b3fb0;
  background: #fff;
  border: 1.5px solid var(--ly-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.ly-toc a:hover, .ly-toc a.is-active { color: #fff; background: var(--violet); border-color: var(--violet); }

/* ===== 分节 ===== */
.ly-section {
  margin-top: 22px;
  padding: 24px 28px 26px;
  background: var(--ly-paper);
  border: 3px solid #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hard);
  scroll-margin-top: 80px;
  font-size: 14px;
  line-height: 1.85;
}
.ly-section > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: #2a2f8a;
  font-family: var(--font-title);
  font-size: 26px;
  letter-spacing: 2px;
}
.ly-no {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  color: #fff;
  background: linear-gradient(160deg, #8a6cff, var(--violet) 55%, #3b2ca0);
  border-radius: 12px;
  box-shadow: 0 3px 0 #2b2080;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}
.ly-section h3 {
  margin: 20px 0 8px;
  padding-left: 11px;
  color: #2f2a7a;
  border-left: 5px solid var(--star);
  font-family: var(--font-title);
  font-size: 19px;
  letter-spacing: 1px;
}
.ly-section h4 { margin: 12px 0 4px; color: #3a2f8f; font-size: 15.5px; }
.ly-section p { margin: 6px 0; }
.ly-section ul, .ly-section ol { margin: 6px 0; padding-left: 22px; }
.ly-section li { margin: 3px 0; }
.ly-section strong { color: #c0392b; }
.ly-section b { color: #2f2a7a; }
.ly-fine { color: #4a5285; font-size: 12.5px; }

.ly-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 14px; overflow: hidden; border: 2px solid var(--ly-line); border-radius: var(--radius-md); background: var(--ly-soft); }
.ly-facts > div { padding: 14px 12px; text-align: center; }
.ly-facts > div + div { border-left: 2px solid var(--ly-line); }
.ly-facts strong { display: block; color: var(--violet); font-size: 20px; }
.ly-facts span { display: block; color: #3d4478; font-size: 12.5px; line-height: 1.6; }

.ly-check { list-style: none; padding-left: 0 !important; }
.ly-check li { position: relative; padding-left: 22px; }
.ly-check li::before { content: "✦"; position: absolute; left: 1px; top: 0; color: #d9a21b; font-size: 12px; line-height: 2.3; }
.ly-steps li::marker { color: var(--violet); font-weight: 900; }

.ly-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 10px 0; }
.ly-box { padding: 4px 18px 14px; background: #fff; border: 2px solid var(--ly-line); border-radius: var(--radius-md); }
.ly-box h3 { margin-top: 14px; }
.ly-box ul { padding-left: 18px; }
.ly-box-hot { background: #fff4f2; border-color: #f6c4bb; }
.ly-box-hot h3 { color: #9c2a1c; border-left-color: #e5533c; }

.ly-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.ly-terms dl { margin: 0; padding: 10px 14px; background: #fff; border: 2px solid var(--ly-line); border-radius: var(--radius-md); }
.ly-terms dt { margin-bottom: 4px; }
.ly-terms dd { margin: 0; font-size: 13.5px; line-height: 1.75; }

/* 技能标签：实心底白字，不用灰色 */
.ly-tag {
  display: inline-block;
  margin: 0 5px 2px 0;
  padding: 0 8px;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.75;
  vertical-align: 1px;
  white-space: nowrap;
}
.t-charge { background: #e0741a; }
.t-break { background: #b8860b; }
.t-mp { background: #2f6fd6; }
.t-lethal { background: #c4161c; }
.t-guard { background: #2f8f5a; }
.t-ally { background: #8a4fd1; }
.t-silence { background: #4a5bbd; }
.t-imm { background: #3d6a8a; }
.t-rage { background: #d6331d; }
.t-attr { background: #d65a8b; }
.t-dispel { background: #138a9a; }
.t-ban { background: #7a3fb0; }

/* ===== 故事与楼层 ===== */
.ly-story { display: flex; gap: 18px; align-items: center; padding: 14px 18px; background: linear-gradient(120deg, #f1efff, #e6f0ff); border: 2px solid #d3d6f5; border-radius: var(--radius-md); }
.ly-story img { flex: none; width: 120px; height: auto; }
.ly-floors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0 8px; }
.ly-floor { overflow: hidden; background: #fff; border: 2px solid var(--ly-line); border-radius: var(--radius-md); }
.ly-floor header { padding: 12px 14px; color: #fff; background-size: cover; background-position: center; }
.ly-floor-1 header { background-image: linear-gradient(135deg, rgba(14, 40, 96, .9), rgba(30, 110, 190, .75)), url("/static/longyuan-bg-sea.webp?v=20261017-1"); }
.ly-floor-2 header { background-image: linear-gradient(135deg, rgba(40, 46, 120, .9), rgba(110, 140, 230, .7)), url("/static/longyuan-bg-calm.webp?v=20261017-1"); }
.ly-floor-3 header { background-image: linear-gradient(135deg, rgba(30, 14, 60, .92), rgba(110, 60, 170, .72)), url("/static/longyuan-bg-abyss.webp?v=20261017-1"); }
.ly-floor header span { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--star-soft); }
.ly-floor header h3 { margin: 2px 0 0; padding: 0; color: #fff; border: 0; font-size: 21px; }
.ly-floor ol { padding: 8px 14px 12px 32px; font-size: 13.5px; }
.ly-floor li { margin: 6px 0; }
.ly-floor li::marker { color: var(--violet); font-weight: 900; }
.ly-tip { margin: 14px 0 0; padding: 12px 16px; background: linear-gradient(120deg, #fff8e0, #fff1c8); border: 2px solid #f2cf72; border-radius: var(--radius-md); font-size: 13.5px; }
.ly-tip strong { color: #a5560a; }

/* ===== 谜题 ===== */
.ly-who { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 8px 0 4px; font-size: 13px; font-weight: 700; }
.ly-dot { display: inline-block; width: 11px; height: 11px; margin: 0 5px 0 0; border-radius: 50%; vertical-align: -1px; }
.ly-dot.is-all { background: #2f9e6a; box-shadow: 0 0 0 2px #c8efd9; }
.ly-dot.is-lead { background: #d9862b; box-shadow: 0 0 0 2px #fbe0bf; }
.ly-puzzle { margin: 16px 0 0; overflow: hidden; background: #fff; border: 2px solid var(--ly-line); border-radius: var(--radius-lg); scroll-margin-top: 80px; }
.ly-puzzle > header { display: flex; gap: 14px; align-items: center; padding: 12px 18px; background: linear-gradient(120deg, #ecebff, #e2ecff); border-bottom: 2px solid var(--ly-line); }
.ly-pz-no {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  color: #2a1f6e;
  background: radial-gradient(circle at 35% 30%, #fff6cf, var(--star) 60%, #c78a17);
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 0 14px rgba(242, 193, 78, .8);
  font-size: 20px;
  font-weight: 900;
}
.ly-pz-where { margin: 0 !important; color: #4a3fb0; font-size: 12.5px; font-weight: 800; }
.ly-puzzle > header h3 { margin: 0; padding: 0; border: 0; color: #2a2f8a; font-size: 22px; }
.ly-pz-body { padding: 8px 18px 14px; }
.ly-pz-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.ly-pz-art { margin: 10px 0 0; }
.ly-pz-art img { display: block; width: 100%; height: auto; border: 3px solid #fff; border-radius: var(--radius-md); box-shadow: 0 8px 18px -10px rgba(30, 30, 90, .55); }
.ly-section details { margin: 10px 0; padding: 0 16px; background: #fff; border: 2px solid var(--ly-line); border-radius: var(--radius-md); }
.ly-section summary { padding: 11px 0; color: #4a3fb0; font-weight: 800; cursor: pointer; }
.ly-section details[open] { background: #fbfbff; }
.ly-section details p { padding: 0 0 10px; }
.ly-words { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.ly-words span { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 12px; color: #3a3f7a; background: linear-gradient(120deg, #eef0ff, #f6ecff); border: 1.5px solid #d6d2f5; border-radius: 10px; font-size: 13px; font-weight: 700; }
.ly-words b { color: #5b3fd0; font-size: 14.5px; }

/* 七座星座示意 */
.ly-stars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 12px 0 4px; }
.ly-stars figure { margin: 0; padding: 8px 6px 6px; text-align: center; background: radial-gradient(circle at 50% 30%, #2a3480, #121637 75%); border: 2px solid #2d3577; border-radius: var(--radius-md); }
.ly-stars svg { display: block; width: 100%; height: auto; }
.ly-sv-line polyline { fill: none; stroke: #9fc8ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ly-sv-star circle { fill: #fff3c4; stroke: #f2c14e; stroke-width: 1.2; }
.ly-stars figcaption { margin-top: 4px; color: #dfe5ff; font-size: 11.5px; line-height: 1.5; }
.ly-stars figcaption b { display: block; color: var(--star-soft); font-size: 13px; }

/* ===== 首领卡（按属性着色） ===== */
.ly-boss { margin: 18px 0 0; padding: 0 0 12px; overflow: hidden; background: #fff; border: 2px solid var(--ly-line); border-radius: var(--radius-lg); scroll-margin-top: 80px; --el: #4a5bbd; --el-bg: #eef0ff; --el-deep: #2a2f8a; }
.ly-el-water { --el: #2a7fd4; --el-bg: #e6f2ff; --el-deep: #13508f; }
.ly-el-wood { --el: #2f9e5a; --el-bg: #e8f7ec; --el-deep: #1b6b3a; }
.ly-el-metal { --el: #c79a12; --el-bg: #fff6d9; --el-deep: #7d5b05; }
.ly-el-earth { --el: #a8682a; --el-bg: #f8eee2; --el-deep: #6b3f12; }
.ly-el-fire { --el: #d8452b; --el-bg: #fdecea; --el-deep: #8f2414; }
.ly-el-sunmoon { --el: #7a5fe0; --el-bg: #f1edff; --el-deep: #43309a; }
.ly-el-sun { --el: #e08a14; --el-bg: #fff3df; --el-deep: #8f4f00; }
.ly-el-moon { --el: #6b4fd8; --el-bg: #efeaff; --el-deep: #3b2a91; }
.ly-boss-head { display: flex; gap: 18px; align-items: center; padding: 14px 18px; background: linear-gradient(120deg, var(--el-bg), #fff 85%); border-bottom: 3px solid var(--el); }
.ly-boss-head > img { flex: none; width: 140px; height: auto; filter: drop-shadow(0 5px 6px rgba(20, 20, 60, .3)); }
.ly-boss-head h3 { margin: 0 0 6px; padding: 0; border: 0; color: var(--el-deep); font-size: 24px; }
.ly-boss-where { margin: 0 0 2px !important; color: var(--el); font-size: 12.5px; font-weight: 800; letter-spacing: 1px; }
.ly-boss-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 !important; padding: 0 !important; list-style: none; }
.ly-boss-meta li { margin: 0; padding: 1px 10px; color: var(--el-deep); background: #fff; border: 1.5px solid var(--el); border-radius: 999px; font-size: 12px; font-weight: 700; }
.ly-boss-meta li.is-ban { color: #fff; background: #7a3fb0; border-color: #7a3fb0; }
.ly-boss-final { --el: #8a5cf0; --el-bg: #eae4ff; --el-deep: #2c1a6b; }
.ly-boss-final .ly-boss-head { color: #eef1ff; background: linear-gradient(140deg, rgba(20, 10, 50, .95), rgba(60, 30, 120, .85) 60%, rgba(120, 80, 220, .7)), url("/static/longyuan-bg-abyss.webp?v=20261017-1") center / cover; border-bottom-color: #2c1a6b; }
.ly-boss-final .ly-boss-head h3 { color: #fff; text-shadow: 0 0 14px rgba(180, 140, 255, .8); }
.ly-boss-final .ly-boss-where { color: var(--star-soft); }
.ly-boss-final .ly-boss-head a { color: var(--star-soft); }
.ly-boss-final .ly-boss-meta li { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(220, 210, 255, .6); }
.ly-boss-final .ly-boss-meta li.is-ban { background: #7a3fb0; }
.ly-phases { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 0; }
.ly-phases span { padding: 3px 12px; color: #fff; background: var(--el); border-radius: 999px; font-size: 12.5px; font-weight: 800; }
/* 后面的阶段只压暗底色（内阴影叠一层黑），白字保持清楚 */
.ly-phases span:nth-child(2) { box-shadow: inset 0 0 0 99px rgba(0, 0, 0, .1); }
.ly-phases span:nth-child(3) { box-shadow: inset 0 0 0 99px rgba(0, 0, 0, .2); }
.ly-phases span:nth-child(4) { box-shadow: inset 0 0 0 99px rgba(0, 0, 0, .3); }
.ly-phases span:nth-child(5) { box-shadow: inset 0 0 0 99px rgba(0, 0, 0, .38); }
.ly-skills { width: calc(100% - 36px); margin: 12px 18px 4px; border-collapse: collapse; font-size: 13.5px; }
.ly-skills th, .ly-skills td { padding: 8px 10px; text-align: left; vertical-align: top; border: 1px solid #e3e6f7; }
.ly-skills th { color: var(--el-deep); background: var(--el-bg); font-weight: 800; }
.ly-skills td:first-child { color: var(--el-deep); font-weight: 800; white-space: nowrap; }
.ly-skills td:nth-child(2) { color: #3d4478; font-weight: 700; white-space: nowrap; font-size: 12.5px; }
.ly-skills tbody tr:nth-child(even) td { background: #fafbff; }
.ly-skills tr.ly-row-s td:first-child { box-shadow: inset 4px 0 0 #3aa0d8; }
.ly-skills tr.ly-row-d td:first-child { box-shadow: inset 4px 0 0 #c4161c; }
.ly-hl { color: #b0560a !important; }

/* 掉落 */
.ly-loot { margin: 10px 18px 14px; padding: 10px 14px 12px; background: #fbfbff; border: 2px solid var(--ly-line); border-radius: var(--radius-md); }
.ly-loot + .ly-loot { margin-top: 0; }
.ly-loot h4 { margin: 0 0 6px; color: #2f2a7a; font-size: 15px; }
.ly-loot h4 small { margin-left: 6px; color: #4a5285; font-size: 12px; font-weight: 600; }
.ly-loot-chest { background: #fff8e3; border-color: #f2cf72; }
.ly-loot-sub { margin: 8px 0 4px; color: #2f2a7a; font-size: 13px; font-weight: 800; }
.ly-loot-route { display: inline-block; padding: 1px 10px; border-radius: 999px; color: #fff; font-size: 12px; }
.ly-loot-route.is-d { background: #b8331c; }
.ly-loot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 0 !important; padding: 0 !important; list-style: none; }
.ly-loot-list li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 8px; background: #fff; border: 1.5px solid #e1e4f6; border-radius: 10px; }
.ly-loot-list img { flex: none; width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.ly-loot-name { flex: 1; min-width: 0; color: #1f2547; font-size: 13.5px; font-weight: 700; }
.ly-loot-name small { display: block; color: #4a5285; font-size: 12px; font-weight: 500; }
.ly-loot-pct { flex: none; min-width: 52px; padding: 2px 8px; text-align: center; color: #3b2a91; background: #ece8ff; border-radius: 999px; font-size: 13px; }
.ly-loot-pct.is-sure { color: #fff; background: #6b4fd8; }
.ly-loot-pct.is-rare { color: #fff; background: #d6336c; }

/* ===== 两条路线 ===== */
.ly-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.ly-route { overflow: hidden; background: #fff; border: 2px solid var(--ly-line); border-radius: var(--radius-lg); }
.ly-route header { padding: 16px 18px; color: #fff; }
.ly-route header span { display: inline-block; padding: 1px 10px; background: rgba(255, 255, 255, .2); border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; font-size: 12px; font-weight: 800; }
.ly-route header h3 { margin: 8px 0 4px; padding: 0; border: 0; color: #fff; font-size: 28px; letter-spacing: 4px; }
.ly-route header p { margin: 0; font-size: 13.5px; }
.ly-route-s header { background: linear-gradient(135deg, #1f4fa8, #3a8fe0 60%, #ffd36a); }
.ly-route-d header { background: linear-gradient(135deg, #1a0a3a, #6a1fa0 55%, #e0457a); }
.ly-route ul { padding: 10px 18px 14px 36px; font-size: 13.5px; }

/* ===== 七曜幼龙 ===== */
.ly-section-dragon { background: linear-gradient(180deg, rgba(248, 249, 255, .97), rgba(240, 242, 255, .97)), url("/static/longyuan-bg-calm.webp?v=20261017-1") top / cover; }
.ly-dragons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0 8px; }
.ly-dragon { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: linear-gradient(120deg, var(--el-bg), #fff 75%); border: 2px solid var(--el); border-radius: var(--radius-lg); }
.ly-dragon figure { flex: none; width: 128px; margin: 0; padding: 4px; background: radial-gradient(circle at 50% 70%, rgba(255, 255, 255, .95), var(--el-bg) 70%); border-radius: var(--radius-md); }
.ly-dragon figure img { display: block; width: 128px; height: auto; }
.ly-dragon h3 { margin: 0 0 4px; padding: 0; border: 0; color: var(--el-deep); font-size: 20px; }
.ly-dragon h4 { margin: 8px 0 2px; color: var(--el-deep); font-size: 14.5px; }
.ly-dragon p { margin: 2px 0; font-size: 13.5px; line-height: 1.75; }
.ly-dragon p b { color: var(--el-deep); }
.ly-dg-yao { color: var(--el); font-size: 12.5px; font-weight: 800; letter-spacing: 1px; }
.ly-dg-attr { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ly-dg-attr i { padding: 0 8px; color: #fff; border-radius: 6px; font-size: 12px; font-style: normal; font-weight: 800; line-height: 1.8; }
.ly-dg-attr span { padding: 0 8px; color: var(--el-deep); background: #fff; border: 1.5px solid var(--el); border-radius: 999px; font-size: 12px; font-weight: 800; }
.ly-ve { color: #1d5fc4; font-weight: 800; }
.ly-vp { color: #d1302b; font-weight: 800; }
.ly-dg-legend { margin: 12px 0 0; padding: 8px 12px; background: #fff; border: 2px solid var(--ly-line); border-radius: var(--radius-md); font-size: 13.5px; line-height: 1.75; }
.a-earth { background: #4f9a2c; }
.a-water { background: #2a7fd4; }
.a-fire { background: #d8452b; }
.a-wind { background: #d4a20f; }

/* ===== 兑换 ===== */
.ly-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 4px; }
.ly-items article { display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; background: #fff; border: 2px solid var(--ly-line); border-radius: var(--radius-md); }
.ly-items img { flex: none; width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.ly-items h4 { margin: 0 0 2px; color: #2f2a7a; font-size: 16px; }
.ly-items p { margin: 0; font-size: 13.5px; }
.ly-shop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 10px 0 4px; }
.ly-shop div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; text-align: center; background: linear-gradient(160deg, #fff, #f1eeff); border: 2px solid #d9d2fb; border-radius: var(--radius-md); }
.ly-shop img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.ly-shop strong { color: #2f2a7a !important; font-size: 14.5px; }
.ly-shop span { color: #c0392b; font-size: 13px; font-weight: 800; }
.ly-odds { width: 100%; max-width: 560px; margin: 8px 0; border-collapse: collapse; font-size: 13.5px; }
.ly-odds th, .ly-odds td { padding: 7px 12px; text-align: left; border: 1px solid #e1e4f6; }
.ly-odds th { color: #2f2a7a; background: var(--ly-soft); }
.ly-odds td:last-child { width: 90px; color: #3b2a91; font-weight: 800; text-align: center; }
.ly-odds tr.is-top td { color: #b0560a; background: #fff6dc; font-weight: 800; }

.ly-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 22px 0 10px; padding: 14px; background: rgba(248, 249, 255, .92); border-radius: var(--radius-md); }
.ly-footer a { color: #3b3fb0; font-weight: 800; }

/* 官方长篇小说入口横幅卡片 */
.ly-novel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: linear-gradient(125deg, #12173a 0%, #24215c 60%, #3a235e 100%);
  color: #eef1ff;
  border: 2px solid rgba(242, 193, 78, 0.65);
  box-shadow: 0 10px 24px -10px rgba(18, 23, 58, 0.55);
}
.ly-novel-copy { max-width: 680px; }
.ly-novel-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(242, 193, 78, 0.2);
  border: 1px solid #f2c14e;
  color: #ffe29a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.ly-novel-copy h3 {
  margin: 0 0 6px !important;
  color: #fff !important;
  font-size: 20px !important;
}
.ly-novel-copy p {
  margin: 0 !important;
  color: #d6defa !important;
  font-size: 13.5px;
  line-height: 1.65;
}
.ly-novel-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd86b, #f2a922);
  color: #231804 !important;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(242, 169, 34, 0.45);
  white-space: nowrap;
}
.ly-novel-cta:hover { transform: translateY(-1px); }
@media (max-width: 640px) {
  .ly-novel-card { flex-direction: column; align-items: flex-start; padding: 16px; }
}

/* ===== 平板 ===== */
@media (max-width: 960px) {
  .ly-floors { grid-template-columns: 1fr; }
  .ly-stars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ly-pz-split { grid-template-columns: 1fr; }
  .ly-pz-art { max-width: 420px; }
  .ly-dragons { grid-template-columns: 1fr; }
  .ly-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== 手机 ===== */
@media (max-width: 640px) {
  .ly-main { width: calc(100% - 20px); padding-top: 10px; }
  .ly-hero { flex-direction: column-reverse; align-items: stretch; min-height: 0; gap: 0; padding: 20px 18px 0; background-position: center, 60% 38%, center; }
  .ly-hero-copy { padding-bottom: 26px; }
  .ly-hero-art { flex: none; }
  .ly-hero-art img { width: 170px; }
  .ly-hero-art figcaption { bottom: 6px; }
  .ly-intro br { display: none; }
  .ly-lead { font-size: 18px; }
  .ly-toc { top: 6px; flex-wrap: nowrap; overflow-x: auto; padding: 8px; scrollbar-width: none; }
  .ly-toc::-webkit-scrollbar { display: none; }
  .ly-section { padding: 18px 14px 20px; border-radius: var(--radius-lg); font-size: 13.5px; scroll-margin-top: 70px; }
  .ly-section > h2 { font-size: 21px; gap: 9px; }
  .ly-no { width: 32px; height: 32px; font-size: 14px; border-radius: 10px; }
  .ly-facts { grid-template-columns: 1fr; }
  .ly-facts > div + div { border-left: 0; border-top: 2px solid var(--ly-line); }
  .ly-grid2, .ly-terms, .ly-routes, .ly-items { grid-template-columns: 1fr; }
  .ly-story { flex-direction: column; align-items: flex-start; }
  .ly-story img { width: 96px; }
  .ly-stars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ly-puzzle > header { padding: 10px 12px; }
  .ly-pz-body { padding: 6px 12px 12px; }
  .ly-boss-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ly-boss-head > img { width: 110px; }
  .ly-boss-head h3 { font-size: 20px; }
  .ly-phases { padding: 10px 12px 0; }
  /* 技能表在手机上改成卡片式逐行堆叠，避免横向滚动 */
  .ly-skills { width: calc(100% - 24px); margin: 10px 12px 4px; }
  .ly-skills thead { display: none; }
  .ly-skills, .ly-skills tbody, .ly-skills tr, .ly-skills td { display: block; }
  .ly-skills tr { margin-bottom: 8px; overflow: hidden; border: 1px solid #e3e6f7; border-radius: 10px; }
  .ly-skills td { border: 0; padding: 6px 10px; }
  .ly-skills td:first-child { display: inline-block; padding-right: 4px; font-size: 14.5px; }
  .ly-skills td:nth-child(2) { display: inline-block; padding-left: 4px; color: #c0392b; }
  .ly-skills td:nth-child(3) { padding-top: 0; }
  .ly-skills tbody tr:nth-child(even) td { background: transparent; }
  .ly-skills tbody tr:nth-child(even) { background: #fafbff; }
  .ly-skills tr.ly-row-s, .ly-skills tr.ly-row-d { border-left-width: 4px; }
  .ly-skills tr.ly-row-s { border-left-color: #3aa0d8; }
  .ly-skills tr.ly-row-d { border-left-color: #c4161c; }
  .ly-skills tr.ly-row-s td:first-child, .ly-skills tr.ly-row-d td:first-child { box-shadow: none; }
  .ly-loot { margin: 10px 12px 12px; padding: 8px 10px 10px; }
  .ly-loot-list { grid-template-columns: 1fr; }
  .ly-dragon { flex-direction: column; align-items: center; text-align: left; }
  .ly-dragon > div { width: 100%; }
  .ly-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .ly-main * { scroll-behavior: auto; } }
