/* v2raynjc.org 工位 6 视觉层「终端窗口」（M3 11-16）。浅色底；只改样式，不改文字和链接。 */
:root, :root:root {
  --bg: #ffffff; --bg-soft: #f7f4fb; --text: #1e1a26; --text-muted: #4b4458; --border: #e6e0ee; --accent: #6b1aa3; --accent-soft: #f3ebfa;
  --warn-bg: #fff7e6; --warn-border: #f2c46d;
  --t-grape: #7a1fb8; --t-grape-d: #5e1690; --t-rose: #e11d48; --t-rose-d: #9f1035; --t-cyan: #0891b2; --t-cyan-d: #08566b; --t-lime: #65a30d; --t-lime-d: #3f6b07;
  --t-page: #faf7fd; --t-shadow: 0 1px 2px rgba(30, 26, 38, .06), 0 10px 26px rgba(30, 26, 38, .07);
  --t-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:root { --bg: #ffffff; --bg-soft: #f7f4fb; --text: #1e1a26; --text-muted: #4b4458; --border: #e6e0ee; --accent: #6b1aa3; --accent-soft: #f3ebfa; --warn-bg: #fff7e6; --warn-border: #f2c46d; }
}
body { background: var(--t-page) !important; color: var(--text) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif !important; }

/* 页头：白底 + 终端标签页式导航 */
.site-header { background: #fff !important; border-bottom: 1px solid var(--border) !important; box-shadow: 0 1px 0 rgba(122, 31, 184, .06); }
.site-header .logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800 !important; font-size: 19px; color: var(--text) !important; text-decoration: none !important; }
.site-header .logo { border: 1.5px solid #e2d3f0; border-radius: 12px; padding: 6px 12px; background: var(--accent-soft); }
.site-header .nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-header .nav a { display: inline-flex !important; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px !important; border-radius: 10px 10px 0 0;
  color: var(--text) !important; font-weight: 600; text-decoration: none !important; border-bottom: 3px solid transparent; }
.site-header .nav a:hover { background: var(--accent-soft); border-bottom-color: var(--t-grape); }
.site-header .nav .vi { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav a.vi-c1 .vi { color: var(--t-grape); } .nav a.vi-c2 .vi { color: var(--t-rose-d); } .nav a.vi-c3 .vi { color: var(--t-cyan-d); } .nav a.vi-c4 .vi { color: var(--t-lime-d); }

/* 首页 ①：hero → 终端窗口（三点标题栏） */
main > .hero { position: relative; background: #fff !important; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--t-shadow);
  padding: 58px 32px 28px !important; margin-top: 22px; text-align: left !important; overflow: hidden; }
main > .hero::before { content: "~/v2raynjc  —  bash"; position: absolute; left: 0; right: 0; top: 0; height: 36px; background: #f1ecf7; border-bottom: 1px solid var(--border);
  font: 600 12.5px/36px var(--t-mono); color: var(--text-muted); text-align: center; }
main > .hero::after { content: ""; position: absolute; left: 16px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: 20px 0 0 #febc2e, 40px 0 0 #28c840; }
main > .hero h1 { font-size: 36px !important; font-weight: 800 !important; color: var(--text) !important; margin: 0 0 12px !important; }
main > .hero h1::before { content: "$ "; font-family: var(--t-mono); color: var(--t-grape); }
main > .hero p { color: var(--text-muted) !important; font-size: 17px !important; line-height: 1.85 !important; max-width: 44em; }

/* 首页 ②：主推区 → 左右分栏（左说明、右按钮竖排） */
main > .pick { display: grid !important; grid-template-columns: 1fr 260px; grid-template-areas: "head act" "desc act" "coupon act" "note note"; gap: 6px 28px;
  background: #fff !important; border: 2px solid var(--t-grape) !important; border-left-width: 8px !important; border-radius: 14px !important; box-shadow: var(--t-shadow); padding: 22px 24px !important; }
.pick-head { grid-area: head; } .pick-desc { grid-area: desc; } .pick-coupon { grid-area: coupon; } .pick-actions { grid-area: act; align-self: center; display: flex !important; flex-direction: column; gap: 10px; }
.pick-note { grid-area: note; color: var(--text-muted) !important; font-size: 14px; border-top: 1px dashed var(--border); padding-top: 10px; }
.pick-tag { background: var(--t-grape) !important; color: #fff !important; border-radius: 999px !important; padding: 2px 12px !important; font-weight: 700; }
.pick-head h2 { color: var(--t-grape-d) !important; font-size: 24px !important; font-weight: 800 !important; }
.pick-coupon code, .prose code { background: #fff7e6 !important; color: #6a3f00 !important; border: 1px solid #f2d18c; border-radius: 6px; padding: 1px 7px; font-family: var(--t-mono); }
.btn-primary { background: var(--t-grape) !important; color: #fff !important; border-radius: 10px !important; min-height: 46px; display: inline-flex !important; align-items: center; justify-content: center;
  font-weight: 800; box-shadow: 0 4px 12px rgba(122, 31, 184, .28); text-decoration: none !important; border: 0 !important; }
.btn-ghost { background: #fff !important; color: var(--t-grape-d) !important; border: 1.5px solid #d9c6ea !important; border-radius: 10px !important; min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center; font-weight: 700; text-decoration: none !important; }

/* 首页 ③：栏目卡网格 → 「ls」式两列命令清单 */
main > .card-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 0 !important; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--t-shadow); overflow: hidden; margin-top: 26px; }
main > .card-grid .card { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; border-bottom: 1px solid var(--border) !important; }
main > .card-grid .card:nth-child(odd) { border-right: 1px solid var(--border) !important; }
main > .card-grid .card a { display: grid; grid-template-columns: 30px 1fr; gap: 0 6px; padding: 14px 18px; text-decoration: none !important; color: var(--text) !important; min-height: 44px; }
main > .card-grid .card a::before { content: "›"; grid-row: 1 / 3; font: 800 20px/1.3 var(--t-mono); color: var(--t-grape); }
main > .card-grid .card:nth-child(4n+2) a::before { color: var(--t-rose-d); } main > .card-grid .card:nth-child(4n+3) a::before { color: var(--t-cyan-d); } main > .card-grid .card:nth-child(4n) a::before { color: var(--t-lime-d); }
main > .card-grid .card h3 { margin: 0 !important; font-size: 17px !important; font-weight: 800 !important; color: var(--text) !important; font-family: inherit; }
main > .card-grid .card p { margin: 2px 0 0 !important; color: var(--text-muted) !important; font-size: 14.5px; }
main > .card-grid .card a:hover { background: var(--accent-soft); }

/* 首页 ④ / 列表页：文章列表 → 左日期列 + 右标题摘要（日志式） */
.page-title { font-size: 24px !important; font-weight: 800 !important; color: var(--text) !important; display: flex; align-items: center; gap: 10px; }
.page-title::before { content: "#"; font-family: var(--t-mono); color: #fff; background: var(--t-rose-d); border-radius: 6px; width: 26px; height: 26px; display: inline-grid; place-items: center; font-size: 15px; }
.page-desc { color: var(--text-muted) !important; }
.post-list { list-style: none !important; padding: 0 !important; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--t-shadow); overflow: hidden; }
.post-list > li { display: grid !important; grid-template-columns: 196px 1fr; grid-template-areas: "date title" "date desc"; gap: 2px 18px; padding: 16px 20px !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--border) !important; }
.post-list > li:last-child { border-bottom: 0 !important; }
.post-list > li > h3 { grid-area: title; margin: 0 !important; font-size: 18px !important; font-weight: 800 !important; }
.post-list > li > h3 a { color: var(--text) !important; text-decoration: none !important; }
.post-list > li > h3 a:hover { color: var(--t-grape-d) !important; }
.post-list > li > p { grid-area: desc; margin: 2px 0 0 !important; color: var(--text-muted) !important; font-size: 15.5px; line-height: 1.75; max-width: 44em; }
.post-list > li > .post-date { grid-area: date; align-self: start; font: 600 13px/1.6 var(--t-mono); color: var(--t-cyan-d) !important; background: #ecf7fa; border-radius: 8px; padding: 6px 10px; }

/* 面包屑：路径式 */
.breadcrumb { font: 500 13.5px/1.6 var(--t-mono); color: var(--text-muted) !important; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px 12px; display: inline-block; margin: 18px 0 12px; }
.breadcrumb a { color: var(--t-grape-d) !important; text-decoration: none !important; font-weight: 700; }

/* 文章页 */
.prose { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--t-shadow); padding: 26px 34px 32px !important; color: var(--text) !important; font-size: 17px; line-height: 1.85; }
.prose > p, .prose li { max-width: 44em; }
.prose h1 { font-size: 31px !important; font-weight: 800 !important; color: var(--text) !important; padding: 16px 18px !important; background: var(--bg-soft) !important; border: 1px solid var(--border) !important;
  border-top: 5px solid var(--t-grape) !important; border-radius: 12px !important; margin: 0 0 14px !important; }
.prose .meta { color: var(--text-muted) !important; font: 500 13.5px/1.6 var(--t-mono); }
.prose h2 { background: var(--bg-soft) !important; border: 0 !important; border-left: 6px solid var(--t-grape) !important; border-radius: 0 10px 10px 0 !important; padding: 10px 16px !important;
  font-size: 23px !important; font-weight: 800 !important; color: var(--text) !important; margin: 36px 0 16px !important; }
.prose h2:nth-of-type(4n+2) { border-left-color: var(--t-cyan) !important; } .prose h2:nth-of-type(4n+3) { border-left-color: var(--t-rose) !important; } .prose h2:nth-of-type(4n) { border-left-color: var(--t-lime) !important; }
.prose h3 { display: inline-block; background: #faf8fc !important; border-left: 3px solid var(--t-grape-d); border-radius: 0 8px 8px 0; padding: 4px 12px !important; font-size: 19px !important; font-weight: 800 !important; color: var(--text) !important; }
.prose a { color: var(--t-grape-d) !important; text-decoration: underline; text-underline-offset: 3px; }
.prose a[href*="twyyds.lol"], .prose a[href="/go/kuajieyun/"] { background: var(--t-grape); color: #fff !important; text-decoration: none !important; border-radius: 10px; padding: 9px 16px; display: inline-flex; min-height: 44px; align-items: center; font-weight: 800; box-shadow: 0 4px 12px rgba(122, 31, 184, .25); }
.prose blockquote { background: #fbf7ff !important; border: 1px solid #e6d6f4 !important; border-left: 8px solid var(--t-grape) !important; border-radius: 12px; padding: 12px 18px !important; color: var(--text) !important; font-style: normal; }
.prose pre { position: relative; background: #1f1a29 !important; color: #f3eefa !important; border-radius: 12px !important; padding: 44px 18px 16px !important; border: 0; box-shadow: var(--t-shadow); overflow-x: auto; }
.prose pre::before { content: ""; position: absolute; left: 14px; top: 14px; width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: 18px 0 0 #febc2e, 36px 0 0 #28c840; }
.prose pre code { background: none !important; border: 0 !important; color: inherit !important; padding: 0 !important; }
.prose table { border-collapse: separate !important; border-spacing: 0; width: 100%; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: table; }
.prose thead th { background: var(--accent-soft) !important; color: var(--t-grape-d) !important; font-weight: 800; border: 0 !important; }
.prose td, .prose th { border: 0 !important; border-bottom: 1px solid var(--border) !important; padding: 10px 12px !important; }
.prose tbody tr:nth-child(even) td { background: #fcfbfd; }
.prose ul { background: #fbfafc; border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px 12px 34px !important; }
.prose ul > li::marker { color: var(--t-cyan-d); }
.prose ol > li::marker { color: var(--t-grape-d); font-weight: 800; font-family: var(--t-mono); }
.faq-box { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--t-shadow); padding: 18px 22px !important; margin-top: 22px; }
.faq-box h2 { font-size: 21px !important; font-weight: 800 !important; color: var(--text) !important; }
.faq-box details { border: 1px solid var(--border) !important; border-radius: 12px !important; background: var(--bg-soft) !important; margin: 10px 0 !important; padding: 0 !important; }
.faq-box summary { list-style: none; cursor: pointer; padding: 12px 16px; min-height: 44px; font-weight: 700; color: var(--text) !important; display: flex; align-items: center; gap: 10px; }
.faq-box summary::before { content: "?"; font: 800 13px var(--t-mono); color: #fff; background: var(--t-cyan-d); border-radius: 6px; width: 22px; height: 22px; display: inline-grid; place-items: center; flex: none; }
.faq-box details > :not(summary) { padding: 0 16px 12px; color: var(--text) !important; }

/* 广告位 */
.kj-ad { border: 2px solid var(--t-grape) !important; border-left-width: 8px !important; background: linear-gradient(90deg, var(--accent-soft), #fff 65%) !important; border-radius: 14px !important; }
.kj-ad a, main a[href*="twyyds.lol"][style] { background: var(--t-grape) !important; border-radius: 10px !important; min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center; box-sizing: border-box; }
main a[href="/go/kuajieyun/"][style] { background: var(--t-grape) !important; }
main > div > div[style*="border:1px solid #e4e7ec"] { border-top: 6px solid var(--t-grape) !important; }

/* 页脚 */
.site-footer { background: #fff !important; border-top: 1px solid var(--border) !important; color: var(--text-muted) !important; }
.site-footer a { color: var(--text) !important; }

@media (max-width: 760px) {
  main > .hero { padding: 52px 18px 20px !important; }
  main > .hero h1 { font-size: 27px !important; }
  main > .pick { grid-template-columns: 1fr; grid-template-areas: "head" "desc" "coupon" "act" "note"; padding: 18px 16px !important; }
  main > .card-grid { grid-template-columns: 1fr !important; }
  main > .card-grid .card:nth-child(odd) { border-right: 0 !important; }
  .post-list > li { grid-template-columns: 1fr; grid-template-areas: "date" "title" "desc"; }
  .post-list > li > .post-date { justify-self: start; padding: 2px 8px; }
  .prose { padding: 16px 14px 22px !important; font-size: 16px; }
  .prose h1 { font-size: 24px !important; }
  .prose h2 { font-size: 20px !important; }
  .prose table { display: block; overflow-x: auto; }
  .site-header .nav a { white-space: nowrap; }
}

/* ---------- 第 1 轮修 ---------- */
main > .hero { max-width: none !important; width: auto !important; }
.post-list > li > .post-date { white-space: nowrap; }
.prose table { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
@media (max-width: 760px) { .post-list > li > .post-date { white-space: normal; } }

/* 截图排查 r1：原站表格单元格不折行——电脑版教程 / ChatGPT 页 4~5 列表撑出文章卡右边框，手机版表宽 505 > 320 被裁；改为单元格可折行，首列保持一行 */
.prose td, .prose th { white-space: normal !important; overflow-wrap: anywhere; }
.prose tr > :first-child { white-space: nowrap !important; }
@media (max-width: 760px) {
  /* 截图排查 r2：手机版多列表被逐字竖排挤碎；改为每列至少 6.5em、按词折行，超出部分在表内横滑（页面不溢出） */
  .prose td, .prose th { overflow-wrap: break-word; min-width: 6.5em; }
  .prose tr > :first-child { white-space: normal !important; min-width: 5.5em; }
}

/* ── 不许左右滑动（站长 11-16 硬规矩，部署卡SOP 一节 2b；工具包 m3-noscroll.css 追加到各站视觉 CSS 末尾）──
   桌面 / 平板：表格一屏放下（去掉最小宽、单元格可折行），表格外层的横滑容器不再横滑；
   手机（≤640px）：有表头的表（mir_table_cards.py 加了 .m3-cards 与 data-label）改竖排卡片；
   代码块折行；横向导航改为换行。 */
table { max-width: 100% !important; }
table[class*="min-w-"], .m3-cards { min-width: 0 !important; }
td, th { overflow-wrap: anywhere; }
table td, table th { white-space: normal !important; }
.overflow-x-auto, .table-responsive, .table-wrap, [class*="overflow-x"] { overflow-x: visible !important; }
pre, pre code { white-space: pre-wrap !important; overflow-wrap: anywhere; word-break: break-all; overflow-x: visible !important; }
@media (max-width: 1023px) {
  table:not(.m3-cards):not(.ap-stack) { display: table !important; overflow-x: visible !important; }
}
@media (max-width: 640px) {
  table.m3-cards, .m3-cards > tbody, .m3-cards > thead, .m3-cards tr, .m3-cards td, .m3-cards tbody > tr > th { display: block !important; width: auto !important; min-width: 0 !important; overflow: visible !important; }
  table.m3-cards { border: 0 !important; background: transparent !important; box-shadow: none !important; border-spacing: 0 !important; }
  .m3-cards > thead { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
  .m3-cards > caption { display: block; text-align: left; }
  .m3-cards tbody > tr, .m3-cards > tr { margin: 0 0 10px !important; padding: 8px 12px !important; border: 1px solid rgba(0,0,0,.12) !important; border-radius: 12px !important; background: #fff !important; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
  .m3-cards tbody > tr > th { position: static !important; padding: 2px 0 6px !important; border: 0 !important; background: transparent !important; font-weight: 800 !important; text-align: left !important; }
  .m3-cards td { display: grid !important; grid-template-columns: minmax(5.5em, 34%) 1fr; gap: 8px; padding: 5px 0 !important; border: 0 !important; border-top: 1px dashed rgba(0,0,0,.08) !important; background: transparent !important; text-align: left !important; }
  .m3-cards td:first-child { border-top: 0 !important; }
  .m3-cards td::before { content: attr(data-label); font-weight: 700; opacity: .8; }
  .m3-cards td[data-label=""]::before, .m3-cards td:not([data-label])::before { content: none; }
  .m3-cards td[data-label=""], .m3-cards td:not([data-label]) { grid-template-columns: 1fr; }
  nav, header nav, .nav, .site-nav, .tabs, [role="tablist"] { overflow-x: visible !important; flex-wrap: wrap !important; }
}

/* 审计复核 7：手机宽吸顶页头 228px（导航换行后三行）占视口 27%；手机宽改为不吸顶、随页面滚走（目标 ≤12%：滚动后占 0） */
@media (max-width: 760px) { .site-header { position: static !important; top: auto !important; } } /* 吸顶页头 */

/* 军师 11-16：手机宽页头仍占 228px → 导航收进菜单按钮（纯 CSS 复选框开关，不加可见文字、不加链接；导航 8 个链接原样保留在 HTML 里） */
.m3nav-t { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.m3nav-b { display: none; }
@media (max-width: 760px) {
  .site-header .header-inner { flex-wrap: wrap !important; padding-top: 10px !important; padding-bottom: 10px !important; gap: 8px !important; }
  .m3nav-b { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border: 1.5px solid #e2d3f0; border-radius: 12px; background: #fff; color: var(--text); cursor: pointer; }
  .m3nav-b svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .m3nav-t:focus-visible + .m3nav-b { outline: 2px solid #7a1fb8; outline-offset: 2px; }
  .m3nav-t:checked + .m3nav-b { background: var(--accent-soft); }
  .site-header .nav { display: none !important; width: 100%; }
  .m3nav-t:checked ~ .nav { display: flex !important; flex-direction: column; gap: 2px !important; padding: 4px 0 6px; }
  .m3nav-t:checked ~ .nav a { border-radius: 10px !important; }
}

/* 排序依据说明（v2_listnote.py，M4 11-17） */
.list-note{font-size:.875rem;color:#5b6472;margin:.75rem 0 .5rem}
