/* AI资讯速览 — 复刻自 ai-digest.liziran.com
   字体：正文使用系统无衬线字体，标题使用衬线字体
   颜色主题：深绿色 (#1a6b3c) 配浅灰背景 (#fafafa) */

/* ── Font preload hint ───────────────── */
/* Note: to match the reference site's typography exactly, consider
   self-hosting Noto Serif SC subset and Inter/Source Serif 4 fonts. */

/* ── 基础重置 ─────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── 基础样式 ─────────────────────── */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, "PingFang SC", "Noto Sans SC",
                 "Source Han Sans SC", "Helvetica Neue", sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #374151;
    background: #fafafa;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ── 容器 ─────────────────────────── */
.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    overflow-x: hidden;
}

/* ── 导航栏 ───────────────────────── */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #1a6b3c;
    font-size: 0.95rem;
}

.site-nav .nav-brand {
    flex-shrink: 0;
}

.site-nav .nav-title {
    font-weight: 700;
    color: #1a6b3c;
    text-decoration: none;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.2s, opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.site-nav .nav-title:hover {
    color: #155a31;
}

.site-nav .nav-title:active {
    opacity: 0.6;
    transition: opacity 0.05s;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1a1a1a;
}

.nav-links a svg {
    flex-shrink: 0;
    margin-right: 0.35em;
}

/* ── 页面头部 (首页/归档) ──────────── */
.page-header {
    text-align: center;
    padding: 2.5rem 0 1.8rem;
}

.page-header h1 {
    font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

.page-header p {
    font-size: 0.92rem;
    color: #999;
}

.page-subtitle {
    font-size: 0.95rem;
    color: #5a8a6a;
    font-weight: 400;
}

.page-tagline {
    font-size: 0.88rem;
    color: #888;
    letter-spacing: 0.03em;
}

/* ── 文章列表 (首页卡片) ─────────────── */
.posts-list {
    margin-top: 0.5rem;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-card {
    position: relative;
    background: #ffffff;
    padding: 1.6rem 2rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.article-card:active {
    transform: translateY(0) scale(0.985);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.1s, transform 0.1s;
}

.article-card .card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card .card-header {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.article-card .card-date {
    font-family: "JetBrains Mono", "Courier New", monospace;
    font-size: 0.88rem;
    color: #999;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.article-card .card-stat {
    position: absolute;
    top: 1.6rem;
    right: 2rem;
    font-family: "JetBrains Mono", "Courier New", monospace;
    font-size: 0.75rem;
    color: #bbb;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.article-card .card-stat:hover {
    color: #1a6b3c;
}

.article-card .card-numbered {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-card .card-numbered li {
    display: flex;
    gap: 0.8rem;
    padding: 0.35rem 0;
    font-size: 0.92rem;
    color: #888;
    line-height: 1.7;
    align-items: baseline;
    transition: color 0.3s ease;
}

.article-card .card-numbered li .num {
    font-family: "JetBrains Mono", "Courier New", monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ddd;
    flex-shrink: 0;
    width: 1.8rem;
    text-align: right;
}

.article-card .card-numbered li.lead {
    font-size: 1.13rem;
    color: #333;
    line-height: 1.6;
    padding-bottom: 0.45rem;
    margin-bottom: 0.15rem;
}

.article-card .card-numbered li.lead .num {
    color: #b87848;
}

.article-card .card-numbered strong {
    font-weight: 650;
    color: #1a1a1a;
}

.article-card:hover .card-numbered li {
    color: #666;
}

/* ── 文章详情页 ───────────────────── */
header {
    text-align: center;
    padding: 2rem 0 0.5rem;
    margin-bottom: 0;
}

header h1 {
    font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.05em;
    line-height: 1.5;
    margin-bottom: 0.3rem;
}

.article-meta {
    font-family: "JetBrains Mono", "Courier New", monospace;
    font-size: 0.8rem;
    color: #999;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
}

/* Section overview — inline with vertical bar separators */
.section-overview {
    list-style: none;
    padding-left: 0;
    margin: 0.8rem 0 0;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #999;
    text-align: left;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    cursor: pointer;
}

.section-overview.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.section-overview li {
    display: inline;
}

.section-overview li::before {
    content: " ｜ ";
}

.section-overview li:first-child::before {
    content: none;
}

/* Divider after overview */
header:has(.section-overview)::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #1a6b3c;
    margin: 1.5rem auto 0;
}

header:has(.section-overview) {
    padding-bottom: 1.8rem;
}

/* ── 文章正文 ─────────────────────── */
main {
    overflow-wrap: break-word;
}

main p {
    margin: 1.2em 0;
    line-height: 1.85;
}

main h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2.5rem 0 1rem;
    letter-spacing: 0.03em;
}

main h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #155a31;
    margin: 2.5rem 0 0.6rem;
    line-height: 1.55;
}

main h3:first-child {
    margin-top: 0;
}

main strong {
    font-weight: 700;
    color: #1a1a1a;
}

main a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.25);
    transition: border-color 0.15s;
}

main a:hover {
    border-bottom-color: #2563eb;
}

main ul,
main ol {
    padding-left: 1.5rem;
    margin: 1em 0;
}

main li {
    margin: 0.7rem 0;
    line-height: 1.9;
}

main blockquote {
    border-left: 4px solid #b8d4c8;
    padding: 0.8rem 1.4rem;
    margin: 1.5em 0;
    color: #5a5a5a;
    font-size: 0.95em;
    background: #f7faf8;
    border-radius: 0 4px 4px 0;
}

main hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2.8rem 0;
}

main code {
    font-family: "JetBrains Mono", "Courier New", monospace;
    font-size: 0.85em;
    background: #f3f4f6;
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

main pre {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

main pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
}

/* ── 文章区块 ─────────────────────── */
.article-section {
    background: #ffffff;
    padding: 2.5rem 3rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.2rem;
}

.article-section > h2:first-child {
    margin-top: 0;
}

.article-section > h2 {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin: 0 0 1.5rem;
}

.article-num {
    font-family: "JetBrains Mono", "Courier New", monospace;
    font-size: 2.4rem;
    font-weight: 600;
    color: #b87848;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

/* ── 关键标签 ──────────────────────── */
.key-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.2rem;
}

.key-tag {
    display: inline-block;
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
}

/* ── 来源列表（垂直排列） ──────────── */
.sources-list {
    margin-top: 1.2rem;
    background: #f8f9fa;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
}

.sources-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #bbb;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.source-item {
    display: block;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: #999;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.15s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

main .source-item {
    border-bottom: none;
}

.source-item:hover {
    color: #666;
}

.source-domain {
    display: inline;
    font-family: "JetBrains Mono", "Courier New", monospace;
    font-size: 0.68rem;
    color: #aaa;
    background: #eee;
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    margin-left: 0.4rem;
    white-space: nowrap;
}

/* ── 快讯部分 ─────────────────────── */
.quick-news-section {
    background: #ffffff;
    padding: 2.5rem 3rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.2rem;
}

.quick-news-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
    letter-spacing: 0.03em;
}

.quick-news-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-top: 1px solid #f0f0f0;
}

.quick-news-item:first-child {
    border-top: none;
    padding-top: 0;
}

.quick-news-body {
    flex: 1;
}

.quick-news-body p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #666;
    margin: 0.2em 0;
}

.quick-news-body p:first-child {
    margin-top: 0;
}

.quick-news-body strong {
    font-weight: 650;
    color: #1a1a1a;
}

.quick-news-body p strong:first-child {
    display: block;
    font-size: 1rem;
    color: #1a1a1a;
}

.qn-source {
    text-decoration: none;
    border-bottom: none;
}

.qn-source .source-domain {
    margin-left: 0;
    vertical-align: middle;
}

.qn-source:hover .source-domain {
    background: #e0e0e0;
}

.paper-num {
    font-family: "JetBrains Mono", "Courier New", monospace;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ccc;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* ── 图片 ──────────────────────────── */
main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 6px;
}

main figure {
    margin: 1.5rem 0;
}

main figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

main figure figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
    font-style: italic;
}

.article-cover {
    margin: 1.2rem 0;
}

.article-cover img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* ── 分享栏 ───────────────────────── */
.share-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid #e5e7eb;
}

.share-label {
    font-size: 0.82rem;
    color: #bbb;
    margin-right: 0.2rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #999;
    text-decoration: none;
    padding: 0.3rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    background: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.5;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.share-btn:hover {
    color: #666;
    border-color: #d1d5db;
    background: #f0fdf4;
}

.share-btn svg {
    flex-shrink: 0;
}

.share-copy.copied {
    color: #1a6b3c;
    border-color: #1a6b3c;
}

/* ── 继续阅读 ─────────────────────── */
.related-section {
    margin-top: 2rem;
}

.related-section h2 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.8rem;
}

.related-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related-card {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    background: #ffffff;
    padding: 1rem 1.4rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.related-card-date {
    flex-shrink: 0;
    font-family: "JetBrains Mono", "Courier New", monospace;
    font-size: 0.75rem;
    color: #bbb;
}

.related-card-title {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

.related-card:hover .related-card-title {
    color: #1a1a1a;
}

.related-archive {
    margin-top: 0.8rem;
    font-size: 0.85rem;
}

.related-archive a {
    color: #999;
    text-decoration: none;
    transition: color 0.15s;
}

.related-archive a:hover {
    color: #666;
}

/* ── 分页 ─────────────────────────── */
.pagination {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.pagination a {
    font-size: 0.9rem;
    color: #888;
    text-decoration: none;
}

.pagination a:hover {
    color: #1a6b3c;
}

/* ── 查看全部链接 ──────────────────── */
.view-all {
    text-align: center;
    margin-top: 1.5rem;
}

.view-all a {
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
}

.view-all a:hover {
    color: #1a6b3c;
}

/* ── 归档页面 ─────────────────────── */
.archive-stats {
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: #888;
}

.archive-count {
    font-weight: 600;
    margin-right: 0.4rem;
    color: #1a6b3c;
}

.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li {
    margin-bottom: 0.8rem;
}

.archive-list time {
    font-family: "JetBrains Mono", "Courier New", monospace;
    color: #999;
    margin-right: 1rem;
    font-size: 0.85rem;
}

.archive-list a {
    color: #374151;
    text-decoration: none;
}

.archive-list a:hover {
    color: #1a6b3c;
    text-decoration: underline;
}

/* ── 标签云 ───────────────────────── */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ── 照片墙 ────────────────────────── */
.photos-intro {
    font-size: 0.95rem;
    color: #888;
    text-align: center;
    margin-bottom: 1.5rem;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin: 0 0 2rem;
}

.photo-item {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.photo-item::before {
    content: '';
    display: block;
    padding-bottom: 100%;
}

.photo-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.photo-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #bbb;
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
}

/* ── 单张照片页面 ──────────────────── */
.post-content {
    margin-top: 0;
}

.post-cover {
    margin: 1.5rem 0;
}

.post-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.photo-figure {
    margin: 0;
}

.photo-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* ── EXIF 信息 ─────────────────────── */
.exif-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.8rem;
    margin: 0.6rem 0 0.2rem;
    font-size: 0.78rem;
    color: #999;
}

.exif-item strong {
    color: #bbb;
    font-weight: 600;
    margin-right: 0.2rem;
}

/* ── 订阅框 ───────────────────────── */
.subscribe-box {
    background: #ffffff;
    padding: 1.8rem 2.2rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subscribe-box h3 {
    font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.subscribe-box p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.subscribe-box form {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto;
}

.subscribe-box input[type="email"] {
    flex: 1;
    padding: 0.55rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
}

.subscribe-box input[type="email"]:focus {
    outline: none;
    border-color: #1a6b3c;
}

.subscribe-box button {
    padding: 0.55rem 1.3rem;
    background: #1a6b3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.subscribe-box button:hover {
    background: #155a31;
}

.subscribe-msg {
    font-size: 0.92rem;
    margin-top: 0.8rem;
    margin-bottom: 0;
}

.subscribe-ok {
    color: #16753d;
}

.subscribe-err {
    color: #c23028;
}

/* ── 页脚 ─────────────────────────── */
.site-footer {
    padding: 3rem 0 1.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.site-footer .container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    padding-top: 2rem;
    font-size: 0.9rem;
}

.footer-links a,
.footer-links button {
    color: #999;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    transition: color 0.15s;
}

.footer-links a:hover,
.footer-links button:hover {
    color: #666;
}

.footer-dot {
    color: #ccc;
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin-top: 1rem;
}

/* ── Lightbox ─────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}

/* ── 响应式设计 ───────────────────── */
@media (max-width: 1024px) {
    .container { padding: 2rem; }
}

@media (max-width: 768px) {
    body { font-size: 1.1rem; }
    .container { padding: 1.25rem; }

    /* Navigation */
    .site-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .nav-links { gap: 1rem; }

    /* Headers */
    header { padding: 1.5rem 0 0.5rem; }
    header h1 { font-size: 1.25rem; }
    .page-header h1 { font-size: 1.5rem; }
    .page-header { padding: 2rem 0 1.5rem; }

    /* Content */
    main h2 { margin-top: 3rem; font-size: 1.2rem; }
    main h3 { margin-top: 2rem; }
    .article-section { padding: 2rem 1.5rem; }
    .article-num { font-size: 1.8rem; }
    .quick-news-section { padding: 2rem 1.5rem; }

    /* Subscribe */
    .subscribe-box { padding: 1.5rem; }
    .subscribe-box form { flex-direction: column; }

    /* Article cards */
    .article-card { padding: 1.4rem 1.5rem; }
    .article-card .card-stat {
        position: static;
        display: block;
        margin-top: 0.5rem;
    }
    .article-card .card-header { gap: 0.2rem; }

    /* Share */
    .share-bar { gap: 0.4rem; flex-wrap: wrap; }
    .share-btn { font-size: 0.78rem; padding: 0.25rem 0.7rem; }

    /* Related */
    .related-card { flex-direction: column; gap: 0.2rem; padding: 0.8rem 1rem; }

    /* Tags */
    .key-tags { gap: 0.4rem; }
    .key-tag { font-size: 0.78rem; padding: 0.25rem 0.7rem; }

    /* Sources */
    .source-item {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
        white-space: normal;
    }
    .source-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .source-domain {
        margin-left: 0;
        align-self: flex-start;
    }

    /* Footer */
    .footer-links { font-size: 0.85rem; }

    /* Photos */
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .photo-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-card .card-numbered li {
        font-size: 0.88rem;
    }

    .article-card .card-numbered li .num {
        font-size: 1rem;
        width: 1.5rem;
    }

    header h1 {
        font-size: 1.15rem;
    }
}

/* ── Print ────────────────────────── */
@media print {
    body { background: #fff; }
    .container { padding: 0; }
    .article-section { box-shadow: none; padding: 0; background: #fff; }
    .quick-news-section { box-shadow: none; padding: 0; background: #fff; }
    .article-card { box-shadow: none; }
    .site-nav, .subscribe-box { display: none; }
    .share-bar { display: none; }
    .site-footer { display: none; }
}
