/* 169摄影论坛 Editorial Design System (Local Self-Hosted, Zero External CDN) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-alt: #f3f1ec;
  --darkroom: #121417;
  --darkroom-card: #1b1f24;
  --ink: #1a1c20;
  --ink-secondary: #4e5563;
  --ink-muted: #7a8190;
  --border: #e5e2da;
  --accent: #d9620b;
  --accent-hover: #b84e06;
  --accent-soft: #fff3ea;
  --cobalt: #1b6ca8;
  --cobalt-soft: #edf5fb;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 10px rgba(20, 24, 31, 0.04);
  --shadow-md: 0 10px 30px rgba(20, 24, 31, 0.08);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 12px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-link.is-active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 4px 2px 12px;
  width: 210px;
}

.header-search input {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  font-family: inherit;
}

.header-search button {
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.header-search button:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-inner {
  padding-top: 14px;
  padding-bottom: 18px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
}

.mobile-search button {
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.mobile-nav-link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* Announcement Bar (Directly below navigation on homepage) */
.announce-bar {
  background: linear-gradient(90deg, #fff8f2 0%, #f3f8fc 100%);
  border-bottom: 1px solid var(--border);
}

.announce-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 0.9rem;
}

.announce-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.announce-text {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.announce-link {
  margin-left: auto;
  color: var(--cobalt);
  font-size: 0.84rem;
  font-weight: 500;
}

.announce-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: var(--surface-alt);
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-outline-dark {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero Section */
.hero-section {
  padding: 28px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.hero-lead {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}

.hero-lead-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #14171c;
}

.hero-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-lead:hover .hero-lead-media img {
  transform: scale(1.025);
}

.hero-tag {
  position: absolute;
  left: 16px;
  top: 16px;
  background: rgba(18, 20, 23, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.hero-lead-body {
  padding: 22px 24px 24px;
}

.exif-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.hero-lead-body h1 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 2.2vw, 1.92rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.hero-lead-body h1 a:hover {
  color: var(--accent);
}

.hero-lead-body p {
  margin: 0 0 18px;
  color: var(--ink-secondary);
  font-size: 0.96rem;
}

.hero-lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px 20px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}

.side-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.side-block-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.pill-count {
  font-size: 0.76rem;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.hero-side-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-side-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}

.hero-side-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-side-thumb {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #1a1c20;
}

.hero-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 3px;
}

.hero-side-meta h3 {
  margin: 0 0 5px;
  font-size: 0.94rem;
  line-height: 1.4;
}

.hero-side-meta h3 a:hover {
  color: var(--accent);
}

.mini-exif {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.editorial-manifesto-mini {
  margin-top: 16px;
  padding: 13px 14px;
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.84rem;
}

.editorial-manifesto-mini strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.editorial-manifesto-mini p {
  margin: 0;
  color: var(--ink-secondary);
}

/* Channel Strip */
.channel-strip {
  padding: 8px 0 36px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.channel-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.channel-slug {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--cobalt);
  font-weight: 700;
  margin-bottom: 6px;
}

.channel-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.channel-card p {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--ink-secondary);
  flex: 1;
}

.channel-arrow {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* Section Headers */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.94rem;
  max-width: 680px;
}

.section-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cobalt);
  white-space: nowrap;
}

.section-more:hover {
  color: var(--accent);
}

/* Darkroom Curated Gallery Band */
.darkroom-section {
  background: var(--darkroom);
  color: #f3f4f6;
  padding: 52px 0;
}

.section-head-dark .eyebrow {
  color: #f59e0b;
}

.section-head-dark p {
  color: #a6aebc;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-card {
  margin: 0;
  background: var(--darkroom-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b0d10;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.04);
}

.zoom-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(18, 20, 23, 0.78);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.zoom-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.gallery-caption {
  padding: 15px 16px 18px;
}

.gallery-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 0.74rem;
}

.gallery-loc {
  color: #f59e0b;
  font-weight: 600;
}

.gallery-exif {
  font-family: var(--font-mono);
  color: #9ba3b2;
}

.gallery-caption h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.4;
}

.gallery-caption h3 a:hover {
  color: #f59e0b;
}

.gallery-caption p {
  margin: 0;
  font-size: 0.84rem;
  color: #a6aebc;
}

/* Articles Grid */
.articles-section,
.topic-list-section {
  padding: 48px 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #16181d;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumb img {
  transform: scale(1.03);
}

.article-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.article-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.article-body h3,
.article-body h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.42;
}

.article-body h3 a:hover,
.article-body h2 a:hover {
  color: var(--accent);
}

.article-body p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  flex: 1;
}

.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
}

.exif-pill {
  font-family: var(--font-mono);
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 68%;
}

.read-link {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* Gear Matrix Table */
.gear-matrix-section {
  padding: 10px 0 48px;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fdfbf7;
}

/* Tools Promo Box */
.tools-promo-section {
  padding: 0 0 56px;
}

.tools-promo-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.tools-promo-text h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.55rem;
}

.tools-promo-text p {
  margin: 0 0 18px;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

.tools-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tools-promo-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-tool-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.mini-tool-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tool-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cobalt);
  letter-spacing: 0.06em;
}

.mini-tool-card strong {
  font-size: 0.96rem;
}

.mini-tool-card span:last-child {
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

/* Page Banner & Breadcrumb */
.page-banner {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 26px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.page-banner h1 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.banner-sub {
  margin: 0;
  color: var(--ink-secondary);
  max-width: 760px;
  font-size: 0.95rem;
}

.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.topic-tab {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.topic-tab:hover,
.topic-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Article Detail */
.article-hero-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 24px;
}

.article-head-inner h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 2.08rem);
  line-height: 1.32;
}

.article-subtitle {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--ink-secondary);
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 56px;
  align-items: start;
}

.article-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px 30px;
  min-width: 0;
}

.article-cover {
  margin: 0 0 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #121417;
}

.article-cover img {
  width: 100%;
  cursor: zoom-in;
}

.article-cover figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: #16191e;
  color: #d6dbe3;
  font-size: 0.8rem;
}

.exif-mono {
  font-family: var(--font-mono);
}

.exif-spec-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 24px;
}

.exif-cell small {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.exif-cell strong {
  font-size: 0.86rem;
  color: var(--ink);
  word-break: break-word;
}

.article-prose {
  font-size: 1.02rem;
  line-height: 1.88;
  color: #262930;
}

.article-prose h2 {
  margin: 28px 0 12px;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  line-height: 1.35;
}

.article-prose h3 {
  margin: 20px 0 8px;
  font-size: 1.08rem;
}

.article-prose p {
  margin: 0 0 16px;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-prose li {
  margin-bottom: 8px;
}

.article-prose blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

.article-prose th,
.article-prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.article-prose th {
  background: var(--surface-alt);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.tag-chip {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  font-size: 0.8rem;
}

.tag-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.article-notice-box {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--cobalt-soft);
  border: 1px solid #d4e6f5;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.sidebar-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sidebar-card > p {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.sidebar-tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-tool-list a {
  display: block;
  padding: 10px 12px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.sidebar-tool-list a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.sidebar-tool-list strong {
  display: block;
  font-size: 0.88rem;
}

.sidebar-tool-list span {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.sidebar-related {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-mini {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.related-mini img {
  width: 84px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
}

.related-mini strong {
  display: block;
  font-size: 0.85rem;
  line-height: 1.38;
  margin-bottom: 3px;
}

.related-mini:hover strong {
  color: var(--accent);
}

.related-mini span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* Interactive Tools Page */
.tools-workspace {
  padding: 36px 0 56px;
}

.tools-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.tool-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 86px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.tool-head h2 {
  margin: 4px 0 8px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.tool-head p {
  margin: 0 0 18px;
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.tool-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.tool-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field span {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.field input,
.field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.92rem;
  font-family: inherit;
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.tool-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-metric {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.result-metric.is-accent {
  background: var(--accent-soft);
  border-color: #f4c6a3;
}

.result-metric small {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.result-metric strong {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  color: var(--ink);
}

.result-metric.is-accent strong {
  color: var(--accent-hover);
}

.tool-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

/* Kelvin Slider */
.kelvin-slider-box {
  margin-bottom: 20px;
}

.kelvin-bar {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7b1c 0%, #ffb84d 26%, #fff6e0 48%, #e4f1ff 72%, #6ea8fe 100%);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.kelvin-control {
  display: block;
  margin-bottom: 14px;
}

.kelvin-control span {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.kelvin-control input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.kelvin-preview {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.kelvin-preview strong {
  display: block;
  margin-bottom: 4px;
}

.kelvin-preview p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

/* Search & About & 404 */
.big-search-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  max-width: 680px;
}

.big-search-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-family: inherit;
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.search-summary {
  margin: 0 0 20px;
  font-size: 0.94rem;
  color: var(--ink-secondary);
}

.empty-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
}

.empty-box p {
  margin: 0 0 16px;
  color: var(--ink-secondary);
}

.about-section {
  padding: 36px 0 56px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.about-prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  line-height: 1.85;
}

.about-prose h2 {
  margin: 22px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.32rem;
}

.about-prose h2:first-child {
  margin-top: 0;
}

.about-prose ul {
  padding-left: 20px;
}

.about-prose li {
  margin-bottom: 10px;
}

.site-profile-list {
  margin: 0;
}

.site-profile-list dt {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 10px;
}

.site-profile-list dt:first-child {
  margin-top: 0;
}

.site-profile-list dd {
  margin: 2px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.notfound-section {
  padding: 72px 0;
}

.notfound-box {
  text-align: center;
  max-width: 620px;
}

.notfound-box h1 {
  font-family: var(--font-serif);
  margin: 8px 0 12px;
}

.notfound-box p {
  color: var(--ink-secondary);
  margin: 0 0 22px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.page-btn,
.page-num {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
}

.page-num.is-active,
.page-btn:hover,
.page-num:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Footer */
.site-footer {
  background: #171a1f;
  color: #cfd5df;
  padding-top: 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-wrap {
  display: inline-block;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.footer-logo-wrap img {
  height: 36px;
  width: auto;
}

.footer-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.72;
  color: #9fa8b6;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.footer-col a {
  color: #aeb6c4;
}

.footer-col a:hover {
  color: #f59e0b;
}

.footer-bottom {
  padding: 18px 0;
  font-size: 0.82rem;
  color: #8f98a8;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  margin: 0;
}

.footer-beian a {
  color: #cfd5df;
}

.footer-beian a:hover {
  color: #f59e0b;
  text-decoration: underline;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 12, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-figure {
  margin: 0;
  max-width: 1060px;
  width: 100%;
  text-align: center;
}

.lightbox-figure img {
  max-height: 80vh;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

.lightbox-figure figcaption {
  margin-top: 12px;
  color: #d7dde6;
  font-size: 0.88rem;
}

/* Responsive Breakpoints (Zero horizontal scroll down to 375px) */
@media (max-width: 1060px) {
  .header-search {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tools-promo-box {
    grid-template-columns: 1fr;
  }
  .article-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand-logo img {
    height: 38px;
  }
  .announce-link {
    margin-left: 0;
    width: 100%;
  }
  .gallery-grid,
  .article-grid,
  .channel-grid,
  .tool-body-grid,
  .tool-controls,
  .tool-results,
  .tools-promo-cards,
  .exif-spec-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-lead-body,
  .article-main,
  .about-prose,
  .tool-panel,
  .tools-promo-box {
    padding: 18px 16px;
  }
  .hero-side-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .big-search-form {
    flex-direction: column;
  }
}
