/* ============================================================
   冬青 OS · 文章页（列表 / 详情）：旧报纸底色 + 适合长时间阅读的排版
   不依赖框架、字体文件和脚本，打开即读
   ============================================================ */
.ar-scope {
  --paper: #f4ecd8;
  --ink: #2b2418;
  --ink-2: #5c5142;
  --ink-3: #8f836f;
  --line: rgba(90, 64, 24, 0.16);
  --accent: #b4532a;
  /* 标题、引用也用苹方（不再用宋体）；Windows 上是微软雅黑，安卓上是思源黑体 */
  --serif: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.8;
}
.ar-scope a { color: inherit; }
.ar-scope img { max-width: 100%; }

/* ---------- 独立阅读页（手机访问文章网址时） ---------- */
html.ar-html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.ar-page {
  margin: 0;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, #f6efde, #efe4c9);
  background-size: 220px 220px, cover;
  background-attachment: fixed;
}
body.ar-page * { box-sizing: border-box; }
/* 跟后台「窗口主题」一致（旧报纸主题就是上面的默认纸色） */
body.ar-page.wt-white { --paper: #ffffff; --ink: #1d1d1f; --accent: #0a66d8; }
body.ar-page.wt-gray { --paper: #f6f6f5; --ink: #262626; --accent: #2f6df6; }
body.ar-page.wt-green { --paper: #f8fbf8; --ink: #1f2d24; --accent: #1f8a5b; }
body.ar-page.wt-dark { --paper: #1e1e21; --ink: #ececee; --accent: #5ea0ff; }
body.ar-page.wt-custom { --paper: var(--wt-bg); --ink: var(--wt-ink); --accent: var(--wt-accent); }
body.ar-page:not(.wt-paper) {
  --ink-2: color-mix(in srgb, var(--ink) 72%, var(--paper));
  --ink-3: color-mix(in srgb, var(--ink) 50%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  background: var(--paper);
}
body.ar-page:not(.wt-paper) .ar-top { background: color-mix(in srgb, var(--paper) 88%, transparent); }
body.ar-page:not(.wt-paper) .nv-card { background: color-mix(in srgb, var(--ink) 3%, var(--paper)); }
body.ar-page:not(.wt-paper) .ar-body code { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ar-wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ---------- 页头 / 页脚 ---------- */
.ar-top { border-bottom: 1px solid var(--line); background: rgba(246, 239, 222, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.ar-top-in { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.ar-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; }
.ar-nav { display: flex; gap: 18px; font-size: 14px; }
.ar-nav a { text-decoration: none; color: var(--ink-2); }
.ar-nav a:hover { color: var(--accent); }
.ar-enter { color: var(--accent) !important; font-weight: 600; }
.ar-foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 22px 0 34px; font-size: 12px; color: var(--ink-3); }
.ar-foot .ar-wrap { display: flex; gap: 16px; flex-wrap: wrap; }
.ar-foot a { text-decoration: none; }

/* ---------- 列表 ---------- */
.ar-list-page { padding-top: 40px; }
.ar-list-title { font-family: var(--serif); font-size: 34px; margin: 0; letter-spacing: 0.04em; }
.ar-list-sub { color: var(--ink-3); font-size: 13px; margin: 4px 0 18px; }
.ar-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ar-list li { border-bottom: 1px solid var(--line); }
.ar-item { display: flex; gap: 18px; padding: 22px 0; text-decoration: none; align-items: flex-start; }
.ar-item-text { flex: 1; min-width: 0; }
.ar-item time { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.ar-item h2, .ar-item h3 { font-family: var(--serif); font-size: 21px; line-height: 1.45; margin: 4px 0 6px; }
.ar-item:hover h2, .ar-item:hover h3 { color: var(--accent); }
.ar-item p { margin: 0; color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar-item-cover { width: 150px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; flex: none; filter: sepia(0.12); }
.ar-empty { color: var(--ink-3); padding: 40px 0; }

/* ---------- 详情 ---------- */
.ar-article { padding-top: 42px; }
.ar-head h1 { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1.4; margin: 0; letter-spacing: 0.01em; }
.ar-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-3); font-size: 13px; margin: 12px 0 0; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.ar-meta b { font-weight: 500; display: inline-block; min-width: 3ch; }   /* 阅读数变化不推挤 */
.ar-cover { display: block; width: 100%; margin: 26px 0 0; border-radius: 8px; filter: sepia(0.1); }
.ar-body { font-size: 17px; line-height: 1.95; margin-top: 26px; word-break: break-word; }
.ar-body h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; margin: 1.8em 0 0.6em; line-height: 1.45; }
.ar-body h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 1.6em 0 0.5em; }
.ar-body p { margin: 0 0 1.1em; }
.ar-body a { color: var(--accent); text-underline-offset: 3px; }
.ar-body img { display: block; margin: 1.4em auto; border-radius: 6px; height: auto; }
.ar-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink-2); font-family: var(--serif); }
.ar-body blockquote p { margin: 0.3em 0; }
.ar-body ul, .ar-body ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.ar-body li { margin: 0.25em 0; }
.ar-body code { font-family: var(--mono); font-size: 0.88em; background: rgba(90, 64, 24, 0.08); padding: 2px 6px; border-radius: 4px; }
.ar-body pre { background: #2b2418; color: #f1e6cc; padding: 16px 18px; border-radius: 8px; overflow-x: auto; font-size: 14px; line-height: 1.7; }
.ar-body pre code { background: none; padding: 0; color: inherit; }
.ar-body hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }
.ar-body table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.ar-body th, .ar-body td { border: 1px solid var(--line); padding: 6px 10px; }

.ar-pn { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.ar-pn a { flex: 1; text-decoration: none; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; line-height: 1.5; }
.ar-pn a:hover { border-color: var(--accent); color: var(--accent); }
.ar-pn small { display: block; font-size: 12px; color: var(--ink-3); }
.ar-pn-old { text-align: right; }
.ar-back { margin-top: 22px; font-size: 14px; }
.ar-back a { color: var(--ink-3); text-decoration: none; }

@media (max-width: 640px) {
  .ar-head h1 { font-size: 25px; }
  .ar-body { font-size: 16px; }
  .ar-item-cover { width: 96px; }
  .ar-item h2 { font-size: 18px; }
  .ar-pn { flex-direction: column; }
  .ar-pn-old { text-align: left; }
}

/* ---------- 软件 / 导航（介绍页与桌面窗口共用） ---------- */
.ar-scope .sw-icon { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; flex: none; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(90, 64, 24, 0.18); }
.ar-scope .sw-icon-sm { width: 52px; height: 52px; border-radius: 13px; }
.ar-scope .sw-icon-xs { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 6px rgba(90, 64, 24, 0.15); }
.ar-scope .sw-icon-ph { background: linear-gradient(160deg, #e9d9b4, #cdb27d); color: #fff; font-weight: 800; font-size: 0.45em; }
/* 没传图标时按 ID 轮换 8 种颜色，一排里不会全是同一个颜色 */
.ph-0 { background: linear-gradient(150deg, #5b8cff, #2f6df6) !important; }
.ph-1 { background: linear-gradient(150deg, #ffa24d, #ff7a1a) !important; }
.ph-2 { background: linear-gradient(150deg, #3fcf7a, #14a44d) !important; }
.ph-3 { background: linear-gradient(150deg, #ff6b7f, #e2364c) !important; }
.ph-4 { background: linear-gradient(150deg, #a78bfa, #7c4dff) !important; }
.ph-5 { background: linear-gradient(150deg, #33c7d9, #0e98ab) !important; }
.ph-6 { background: linear-gradient(150deg, #ffcf4d, #f2a705) !important; }
.ph-7 { background: linear-gradient(150deg, #6b7a90, #3f4b5e) !important; }
.ar-scope .sw-icon-sm.sw-icon-ph { font-size: 22px; }
.ar-scope .sw-icon-xs.sw-icon-ph { font-size: 15px; }
.ar-scope .sw-icon:not(.sw-icon-sm):not(.sw-icon-xs).sw-icon-ph { font-size: 30px; }
.sw-detail { padding-top: 6px; }

.sw-summary { font-size: 16px; color: var(--ink-2); margin: 18px 0 0; }

.sw-ver { font-family: var(--mono); font-size: 12px; color: var(--ink-3); font-weight: 400; }
.ar-item .sw-icon-sm { margin-top: 2px; }

.nv-cat { font-family: var(--serif); font-size: 18px; margin: 26px 0 10px; }
.nv-cat a { text-decoration: none; }
.nv-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.nv-card { position: relative; display: flex; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 252, 244, 0.5); }
.nv-card:hover { border-color: var(--accent); }
.nv-card > a:first-child { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; }
.nv-card b { display: block; font-size: 14px; }
.nv-card small { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-card span { min-width: 0; }
a.nv-card { gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: inherit; }

.rd-back { display: inline-block; margin: 22px 0 6px; font-size: 13px; color: var(--ink-3) !important; text-decoration: none; }
.rd-back:hover { color: var(--accent) !important; }

/* ---------- 网址介绍页：顶部横幅 + 左边简介、右边信息栏（窄时上下排，信息栏在前） ---------- */
.nv-detail { container-type: inline-size; padding-top: 4px; }
.nv-hero { display: flex; align-items: center; gap: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.nv-icon { flex: none; width: 120px; height: 120px; border-radius: 28px; object-fit: cover; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.04); }
.nv-icon-ph { display: grid; place-items: center; font-size: 48px; font-weight: 800; color: #fff; background: linear-gradient(145deg, #5b8cff, #2f6df6); }
.nv-hero-txt { flex: 1; min-width: 0; }
.nv-cat-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 4px; }
.nv-hero h1 { font-family: var(--serif); font-size: 34px; font-weight: 800; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.nv-lead { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-3); }
/* 访问按钮放在横幅最右边：按钮在上、域名在下；窄了再挪到名称下面 */
.nv-actions { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 240px; }
.nv-visit { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: #fff !important; font-size: 15px; font-weight: 700; text-decoration: none !important; transition: filter 0.15s ease, transform 0.15s ease; }
.nv-visit i { font-size: 12px; opacity: 0.9; }
.nv-visit:hover { filter: brightness(1.08); }
.nv-visit:active { transform: scale(0.97); }
.nv-visit-qr { background: #07c160; cursor: default; }
.nv-visit-qr:hover { filter: none; }
.nv-host { max-width: 100%; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; margin-top: 28px; align-items: start; }
.nv-main { grid-column: 1; grid-row: 1; min-width: 0; }
.nv-side { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.nv-sec { font-family: var(--serif); font-size: 20px; font-weight: 800; margin: 0; }
.nv-body { margin-top: 12px; font-size: 16px; line-height: 1.9; }
.nv-body > :first-child { margin-top: 0; }
.nv-body h2 { font-size: 17px; margin: 1.4em 0 0.4em; }
.nv-body h3 { font-size: 16px; margin: 1.2em 0 0.3em; }
.nv-body img { max-width: 100%; height: auto; border-radius: 12px; }
.nv-none { color: var(--ink-3); }
/* 右栏：二维码卡片 + 信息列表 + 访问按钮 */
.nv-qr { padding: 18px; border-radius: 18px; text-align: center; background: color-mix(in srgb, #07c160 6%, transparent); border: 1px solid color-mix(in srgb, #07c160 22%, transparent); }
.nv-qr img { display: block; width: 100%; max-width: 200px; aspect-ratio: 1; margin: 0 auto; object-fit: contain; border-radius: 10px; background: #fff; padding: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.nv-qr b { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; font-size: 15px; }
.nv-qr b i { color: #07c160; }
.nv-qr p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); }
.nv-facts { margin: 0; padding: 4px 16px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 2%, transparent); }
.nv-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14px; }
.nv-facts > div + div { border-top: 1px solid var(--line); }
.nv-facts dt { color: var(--ink-3); flex: none; }
.nv-facts dd { margin: 0; font-weight: 600; color: var(--ink-2); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-side-visit { display: flex; justify-content: center; align-items: center; gap: 8px; height: 44px; border-radius: 14px; background: var(--accent); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; transition: filter 0.15s ease; }
.nv-side-visit i { font-size: 12px; }
.nv-side-visit:hover { filter: brightness(1.08); }
/* 窄窗口 / 手机：上下排，信息栏放在简介前面 */
@container (max-width: 720px) {
  .nv-hero { flex-wrap: wrap; }
  .nv-actions { flex-direction: row; align-items: center; gap: 14px; max-width: none; width: 100%; padding-left: 146px; margin-top: -8px; }
  .nv-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .nv-side, .nv-main { grid-column: 1; grid-row: auto; }
  .nv-side { position: static; }
}
@container (max-width: 560px) {
  .nv-hero { gap: 16px; align-items: flex-start; padding-bottom: 20px; }
  .nv-icon { width: 84px; height: 84px; border-radius: 20px; }
  .nv-hero h1 { font-size: 24px; }
  .nv-lead { font-size: 14px; }
  .nv-actions { padding-left: 100px; margin-top: -6px; }
  .nv-visit { height: 34px; padding: 0 18px; font-size: 14px; }
  .nv-host { display: none; }   /* 下面信息列表里有网站，这里省掉 */
}

/* 手机导航列表：二维码类的卡片右边带个标记，点了弹大图 */
.nv-card-qr { margin-left: auto; flex: none; font-size: 16px; color: #07c160; }
.qr-pop { position: fixed; inset: 0; z-index: 9000; background: rgba(0, 0, 0, 0.45); display: grid; place-items: center; padding: 20px; animation: qr-fade 0.18s ease; }
.qr-pop-box { position: relative; width: min(300px, 100%); padding: 22px 20px 18px; border-radius: 20px; background: #fff; text-align: center; color: #1d1d1f; }
.qr-pop-box b { display: block; font-size: 17px; }
.qr-pop-box img { display: block; width: 220px; height: 220px; margin: 14px auto 10px; object-fit: contain; }
.qr-pop-box p { margin: 0; font-size: 13px; color: #8a8a8e; }
.qr-pop-more { display: inline-block; margin-top: 12px; font-size: 14px; color: #0a66d8 !important; text-decoration: none !important; }
.qr-pop-x { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border: 0; background: none; font-size: 24px; line-height: 1; color: #8a8a8e; cursor: pointer; }
@keyframes qr-fade { from { opacity: 0; } }
/* 软件详情页右栏：下载方式卡片（复用网址介绍页的两栏布局） */
.sw-dl-card { padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 4%, transparent); display: flex; flex-direction: column; gap: 8px; }
.sw-dl-title { margin: 0 2px 2px; font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.04em; }
.sw-dl-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--accent); color: #fff !important; text-decoration: none !important; transition: filter 0.15s ease; flex-wrap: wrap; }
.sw-dl-item:hover { filter: brightness(1.08); }
.sw-dl-item > i { font-size: 16px; width: 18px; text-align: center; }
.sw-dl-item span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sw-dl-item b { font-size: 14px; }
.sw-dl-item small { font-size: 11.5px; opacity: 0.8; }
.sw-dl-item em { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); user-select: text; -webkit-user-select: text; }
.sw-dl-src { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }
.sw-dl-src:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); filter: none; }
.nv-facts dd.wrap { white-space: normal; line-height: 1.6; }
/* 软件详情页横幅右边：每种下载方式一个按钮，第一个实心，其余描边 */
.sw-acts { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; max-width: 360px; }
.nv-visit-alt { background: transparent; color: var(--accent) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.nv-visit-alt:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); filter: none; }
@container (max-width: 720px) { .sw-acts { justify-content: flex-start; max-width: none; flex-wrap: wrap; } }
