/* AI Know 编辑部晨刊版式（AI早报/AI财经/智慧城市/AI技术共用骨架）。
 * 所有规则都限定在 .ed-page 下，避免污染其它栏目。 */
.ed-page{
  --ed-paper:#f7f4ec; --ed-ink:#1b1a17; --ed-muted:#6b6660;
  --ed-rule:#ddd6c8; --ed-accent:#1b4fd8; --ed-alert:#c0392b; --ed-card:#fffdf8;
  background:var(--ed-paper); color:var(--ed-ink);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
}
:root[data-theme="dark"] .ed-page{
  --ed-paper:#14150f; --ed-ink:#ece7dc; --ed-muted:#a09a8e;
  --ed-rule:#33322b; --ed-accent:#7ea2ff; --ed-card:#1c1d16;
}
.ed-page *{box-sizing:border-box}
.ed-wrap{max-width:1180px;margin:0 auto;padding:24px 20px 64px;width:100%;min-width:0}
.ed-skip{position:absolute;left:-9999px}
.ed-skip:focus{left:12px;top:12px;z-index:99;background:var(--ed-accent);color:#fff;padding:8px 14px;border-radius:6px}

/* 报头 */
.ed-masthead{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:end;
  border-bottom:3px double var(--ed-rule);padding-bottom:16px;margin-bottom:22px}
.ed-issue{font-size:.78rem;color:var(--ed-muted);letter-spacing:.14em;text-transform:uppercase;
  border-right:1px solid var(--ed-rule);padding-right:18px;line-height:1.8}
.ed-issue strong{display:block;font-size:1.5rem;color:var(--ed-ink);letter-spacing:0}
.ed-kicker{display:inline-block;font-size:.75rem;font-weight:700;letter-spacing:.08em;
  color:var(--ed-accent);border:1px solid currentColor;border-radius:999px;padding:2px 10px;margin-bottom:10px}
.ed-title{font-family:Georgia,"Songti SC","SimSun",serif;font-weight:700;line-height:1.22;
  font-size:clamp(1.55rem,4.4vw,2.6rem);margin:0 0 10px;word-break:break-word}
.ed-lede{color:var(--ed-muted);font-size:clamp(.94rem,2.4vw,1.05rem);line-height:1.75;margin:0;word-break:break-word}

/* 头部：正文 + 封面 */
.ed-head{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:26px;align-items:start;margin-bottom:26px}
.ed-figure{margin:0;border:1px solid var(--ed-rule);background:var(--ed-card);border-radius:10px;overflow:hidden}
.ed-figure img{display:block;width:100%;height:auto}
.ed-figure figcaption{font-size:.76rem;color:var(--ed-muted);padding:8px 10px;word-break:break-word}

/* 听书条 */
.ed-audio{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  border:1px solid var(--ed-rule);background:var(--ed-card);border-radius:10px;padding:12px 14px;margin:16px 0 0}
.tts-play{flex:0 0 auto;width:40px;height:40px;border-radius:50%;border:0;cursor:pointer;
  background:var(--ed-accent);color:#fff;font-size:15px;line-height:1}
.tts-play[data-playing="1"]::before{content:"❚❚"}
.tts-play[data-playing="0"]::before,.tts-play:not([data-playing])::before{content:"▶"}
.tts-range{flex:1 1 180px;min-width:120px;appearance:none;height:6px;border-radius:99px;
  background:linear-gradient(var(--ed-accent),var(--ed-accent)) 0/var(--tts-progress,0%) 100% no-repeat,var(--ed-rule);cursor:pointer}
.tts-range::-webkit-slider-thumb{appearance:none;width:15px;height:15px;border-radius:50%;background:var(--ed-accent);border:2px solid #fff}
.tts-range::-moz-range-thumb{width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:var(--ed-accent)}
.tts-range:focus-visible{outline:3px solid var(--ed-accent);outline-offset:3px}
.tts-time{font-variant-numeric:tabular-nums;font-size:.82rem;color:var(--ed-muted);white-space:nowrap}
.tts-status{font-size:.76rem;color:var(--ed-muted)}
.tts-label{font-size:.8rem;font-weight:700;color:var(--ed-muted);white-space:nowrap}

/* 60 秒速读 */
.ed-flash{border-top:1px solid var(--ed-rule);border-bottom:1px solid var(--ed-rule);padding:16px 0;margin:0 0 26px}
.ed-flash h2{font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ed-muted);margin:0 0 12px}
.ed-flash ol{list-style:none;margin:0;padding:0;display:grid;gap:12px;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));counter-reset:flash}
.ed-flash li{counter-increment:flash;font-size:.9rem;line-height:1.6;color:var(--ed-ink);word-break:break-word}
.ed-flash li::before{content:counter(flash);display:block;font-family:Georgia,serif;font-size:1.1rem;color:var(--ed-accent);margin-bottom:4px}

/* 正文 + 侧栏 */
.ed-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,290px);gap:30px;align-items:start}
.ed-article h2{font-family:Georgia,"Songti SC",serif;font-size:1.25rem;margin:26px 0 12px;
  padding-bottom:6px;border-bottom:1px solid var(--ed-rule);word-break:break-word}
.ed-article h3{font-size:1.02rem;margin:20px 0 8px}
.ed-article p,.ed-article li{font-size:.96rem;line-height:1.85;word-break:break-word}
.ed-article img{max-width:100%;height:auto}
.ed-article table{width:100%;border-collapse:collapse;font-size:.86rem}
.ed-article td,.ed-article th{border:1px solid var(--ed-rule);padding:8px 10px;white-space:normal}
.ed-aside section{border:1px solid var(--ed-rule);background:var(--ed-card);border-radius:10px;padding:14px 16px;margin-bottom:16px}
.ed-aside h2{font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ed-muted);margin:0 0 10px}
.ed-aside ul{margin:0;padding-left:18px}
.ed-aside li{font-size:.88rem;line-height:1.7;margin-bottom:8px;word-break:break-word}

/* 信源 */
.ed-sources{margin-top:30px;border-top:3px double var(--ed-rule);padding-top:18px}
.ed-sources h2{font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ed-muted);margin:0 0 12px}
.ed-sources .source-item{border-bottom:1px solid var(--ed-rule);padding:10px 0}
.ed-sources .source-link{color:var(--ed-accent);font-weight:600;text-decoration:none;word-break:break-word}
.ed-sources .source-summary{font-size:.84rem;color:var(--ed-muted);margin:4px 0 0;word-break:break-word}
.ed-sources .source-thumb{width:100%;max-width:220px;height:auto;border-radius:6px;border:1px solid var(--ed-rule);margin-bottom:6px}
.ed-icp{text-align:center;margin-top:30px;padding-top:14px;border-top:1px solid var(--ed-rule);font-size:.76rem;color:var(--ed-muted)}
.ed-icp a{color:inherit;text-decoration:none}

@media (max-width:960px){
  .ed-head{grid-template-columns:minmax(0,1fr)}
  .ed-body{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:560px){
  .ed-wrap{padding:16px 14px 48px}
  .ed-masthead{grid-template-columns:minmax(0,1fr);gap:10px;align-items:start}
  .ed-issue{border-right:0;border-bottom:1px solid var(--ed-rule);padding:0 0 8px;display:flex;gap:10px;align-items:baseline}
  .ed-issue strong{font-size:1.15rem}
  .ed-flash ol{grid-template-columns:minmax(0,1fr)}
  .tts-time{font-size:.78rem}
}
@media (prefers-reduced-motion:reduce){
  .ed-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
