/* ==========================================================================
   中石化摄影家学会 (www.snpphoto.cn)
   Editorial Gallery & Industrial Darkroom Design System (100% Local)
   ========================================================================== */

:root {
    --ink: #141a22;
    --ink-soft: #435060;
    --ink-muted: #6c7a89;
    --paper: #faf9f6;
    --surface: #ffffff;
    --surface-dark: #0e141b;
    --surface-dark-2: #16202c;
    --border: #e5e8ec;
    --border-dark: rgba(255, 255, 255, 0.12);
    --brand-blue: #0b5ea8;
    --brand-blue-deep: #07447d;
    --brand-amber: #d96414;
    --brand-amber-soft: #fff3e8;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 10px rgba(14, 20, 27, 0.05);
    --shadow-md: 0 10px 30px rgba(14, 20, 27, 0.09);
    --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", "SimSun", Georgia, serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.2s ease;
}

a:hover {
    color: var(--brand-amber);
}

.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;
}

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

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 74px;
    padding-top: 8px;
    padding-bottom: 8px;
}

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

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

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

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.nav-list a {
    display: inline-block;
    padding: 7px 11px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--brand-blue);
    background: rgba(11, 94, 168, 0.08);
}

.nav-list a.nav-highlight {
    color: var(--brand-amber);
    font-weight: 600;
}

.nav-list a.nav-highlight.active,
.nav-list a.nav-highlight:hover {
    background: var(--brand-amber-soft);
    color: #b84f0b;
}

.header-search {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--paper);
    overflow: hidden;
}

.header-search input {
    border: 0;
    background: transparent;
    padding: 7px 12px;
    font-size: 13.5px;
    width: 150px;
    color: var(--ink);
    outline: none;
}

.header-search button {
    border: 0;
    background: var(--brand-blue);
    color: #fff;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.header-search button:hover {
    background: var(--brand-blue-deep);
}

/* Homepage Site Announcement Banner (Verbatim) */
.site-announcement {
    background: linear-gradient(90deg, #0b3c6d 0%, #104e88 55%, #163a5f 100%);
    color: #fff;
    border-bottom: 2px solid var(--brand-amber);
}

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

.announce-tag {
    display: inline-block;
    background: var(--brand-amber);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 9px;
    border-radius: 4px;
    flex-shrink: 0;
}

.announce-text {
    margin: 0;
    font-size: 14.5px;
    font-weight: 500;
    color: #fff;
    flex: 1;
    min-width: 180px;
}

.announce-meta {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.03em;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: var(--surface-dark);
    color: #fff;
    overflow: hidden;
    padding: 78px 0 68px;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.44;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 16, 24, 0.92) 0%, rgba(12, 24, 38, 0.72) 55%, rgba(12, 20, 30, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
    gap: 36px;
    align-items: end;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    color: #f6a460;
    margin-bottom: 14px;
}

.hero-title {
    margin: 0 0 16px;
    font-family: var(--font-serif);
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.2;
    letter-spacing: 0.04em;
    color: #fff;
}

.hero-subtitle {
    margin: 0 0 28px;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.86);
    max-width: 640px;
}

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

.hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    backdrop-filter: blur(6px);
}

.metric-val {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #ffad66;
    line-height: 1.25;
}

.metric-label {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.82);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background: #be540d;
    color: #fff;
}

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

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

.btn-ghost-light {
    color: #ffd3ad;
    background: transparent;
}

.btn-ghost-light:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: transparent;
}

.btn-outline:hover {
    background: var(--brand-blue);
    color: #fff;
}

.btn-block {
    width: 100%;
    margin-top: 14px;
}

.btn-amber-full {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 18px;
    background: var(--brand-amber);
    color: #fff;
}

.btn-amber-full:hover {
    background: #c2550d;
    color: #fff;
}

/* Sections & Headings */
.section {
    padding: 60px 0;
}

.section-alt {
    background: #f1f4f8;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-dark {
    background: var(--surface-dark);
    color: #eef2f6;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.section-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    color: var(--brand-blue);
    margin-bottom: 6px;
}

.kicker-amber {
    color: #f6a460;
}

.section-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(24px, 2.8vw, 32px);
    line-height: 1.28;
    color: var(--ink);
}

.section-more {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--brand-blue);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.work-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.work-thumb-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.work-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #10161d;
    overflow: hidden;
}

.work-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.work-card:hover .work-thumb-wrap img {
    transform: scale(1.04);
}

.work-theme-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(14, 20, 27, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

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

.work-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.4;
    color: var(--ink);
}

.work-card:hover .work-title {
    color: var(--brand-blue);
}

.work-summary {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.work-author-line {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
    color: var(--ink-muted);
    margin-bottom: 10px;
}

.work-exif {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-soft);
}

.work-exif span {
    background: #f3f5f8;
    padding: 2px 7px;
    border-radius: 4px;
}

/* Tools Preview Grid */
.tools-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tool-preview-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    color: inherit;
    box-shadow: var(--shadow-sm);
}

.tool-preview-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #104273 100%);
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
}

.tool-preview-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.4;
    color: var(--ink);
}

.tool-preview-card p {
    margin: 0 0 14px;
    font-size: 13.8px;
    color: var(--ink-soft);
    flex: 1;
}

.tool-cta {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brand-amber);
}

/* Articles Grid on Home */
.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-pill {
    font-size: 13.5px;
    padding: 5px 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--ink-soft);
}

.cat-pill:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: rgba(11, 94, 168, 0.05);
}

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

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

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

.article-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.article-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #141c24;
    overflow: hidden;
}

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

.article-cat-tag {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(11, 94, 168, 0.9);
    color: #fff;
    font-size: 11.5px;
    padding: 2px 8px;
    border-radius: 4px;
}

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

.article-card-title {
    margin: 0 0 8px;
    font-size: 16.5px;
    line-height: 1.45;
    color: var(--ink);
}

.article-card:hover .article-card-title {
    color: var(--brand-blue);
}

.article-card-summary {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--ink-muted);
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}

/* AI Manifesto Dark Band */
.manifesto-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: start;
}

.manifesto-title {
    margin: 0 0 16px;
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.35;
    color: #fff;
}

.manifesto-lead {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15.8px;
}

.manifesto-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.manifesto-point {
    background: var(--surface-dark-2);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 18px;
}

.manifesto-point strong {
    display: block;
    color: #ffad66;
    font-size: 15.5px;
    margin-bottom: 6px;
}

.manifesto-point p {
    margin: 0;
    font-size: 13.8px;
    color: rgba(255, 255, 255, 0.78);
}

.manifesto-side {
    background: var(--surface-dark-2);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 24px;
}

.manifesto-side-title {
    margin: 0 0 14px;
    font-size: 18px;
    color: #fff;
}

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

.manifesto-list li + li {
    border-top: 1px solid var(--border-dark);
}

.manifesto-list a {
    display: block;
    padding: 12px 0;
    color: #eef2f6;
}

.manifesto-list a:hover .ml-title {
    color: #ffad66;
}

.ml-title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 4px;
}

.ml-meta {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.6);
}

/* Subpages Banner & Breadcrumb */
.page-banner {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5fa 100%);
    border-bottom: 1px solid var(--border);
    padding: 36px 0 32px;
}

.breadcrumb {
    font-size: 13.5px;
    color: var(--ink-muted);
    margin-bottom: 10px;
}

.breadcrumb a {
    color: var(--ink-soft);
}

.breadcrumb-light, .breadcrumb-light a {
    color: rgba(255, 255, 255, 0.72);
}

.page-title {
    margin: 0 0 10px;
    font-family: var(--font-serif);
    font-size: clamp(26px, 3.2vw, 36px);
    color: var(--ink);
}

.page-desc {
    margin: 0;
    max-width: 760px;
    font-size: 15.5px;
    color: var(--ink-soft);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.filter-chip {
    display: inline-block;
    padding: 7px 15px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--ink-soft);
    font-weight: 500;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

/* Work Detail Stage */
.work-stage {
    background: #0c1218;
    color: #fff;
    padding: 28px 0 42px;
}

.work-frame {
    margin: 14px 0 24px;
    background: #06090c;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.work-hero-img {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
}

.work-stage-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.work-theme-pill {
    display: inline-block;
    background: var(--brand-amber);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.work-detail-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 34px);
    color: #fff;
}

.work-credits {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.work-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
    gap: 32px;
    align-items: start;
}

.detail-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px;
    margin-bottom: 22px;
}

.detail-block h2 {
    margin: 0 0 14px;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.exif-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.exif-panel h3 {
    margin: 0 0 14px;
    font-size: 17px;
}

.exif-dl {
    margin: 0;
}

.exif-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}

.exif-row dt {
    color: var(--ink-muted);
    flex-shrink: 0;
}

.exif-row dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
    color: var(--ink);
}

/* Category & Article Layout */
.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.85fr);
    gap: 32px;
    align-items: start;
}

.article-list-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-row-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.article-row-thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #141c24;
}

.article-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-row-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-row-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.badge-subtle {
    background: rgba(11, 94, 168, 0.09);
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 4px;
}

.date-muted {
    font-size: 12.5px;
    color: var(--ink-muted);
}

.article-row-title {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.4;
}

.article-row-title a {
    color: var(--ink);
}

.article-row-title a:hover {
    color: var(--brand-blue);
}

.article-row-summary {
    margin: 0 0 12px;
    font-size: 14.5px;
    color: var(--ink-soft);
    flex: 1;
}

.article-row-foot {
    display: flex;
    gap: 16px;
    font-size: 12.5px;
    color: var(--ink-muted);
}

/* Sidebar Widgets */
.side-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.side-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    margin: 0 0 14px;
    font-size: 16.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-blue);
}

.widget-text {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--ink-soft);
}

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

.side-cat-list a {
    display: flex;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 14.5px;
}

.side-cat-list a:hover,
.side-cat-list a.active {
    background: rgba(11, 94, 168, 0.08);
    color: var(--brand-blue);
    font-weight: 600;
}

.side-tool-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-tool-links a {
    display: block;
    padding: 9px 12px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.8px;
    font-weight: 500;
    color: var(--ink);
}

.side-tool-links a:hover {
    border-color: var(--brand-amber);
    color: var(--brand-amber);
}

.mini-works {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-work-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: inherit;
}

.mini-work-item img {
    width: 84px;
    height: 54px;
    object-fit: cover;
    border-radius: 5px;
}

.mini-work-title {
    font-size: 13.8px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
}

.mini-work-exif {
    font-size: 12px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
}

/* Article Detail */
.article-hero-band {
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%);
    border-bottom: 1px solid var(--border);
    padding: 36px 0 32px;
}

.article-header-wrap {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-h1 {
    margin: 0 0 14px;
    font-family: var(--font-serif);
    font-size: clamp(25px, 3.3vw, 38px);
    line-height: 1.3;
    color: var(--ink);
}

.article-lead {
    margin: 0 0 18px;
    font-size: 16.5px;
    color: var(--ink-soft);
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13.5px;
    color: var(--ink-muted);
}

.article-sheet {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.article-cover-figure {
    margin: 0 0 26px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.prose h2 {
    margin: 28px 0 12px;
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--ink);
    padding-left: 12px;
    border-left: 4px solid var(--brand-amber);
}

.prose h3 {
    margin: 22px 0 10px;
    font-size: 18px;
    color: var(--brand-blue-deep);
}

.prose p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.85;
    color: #242e39;
}

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

.prose li {
    margin-bottom: 8px;
    line-height: 1.78;
}

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

.param-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 18px 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 460px;
}

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

.prose th {
    background: #f1f5fa;
    color: var(--ink);
    font-weight: 600;
}

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

.tags-label {
    font-size: 13.5px;
    color: var(--ink-muted);
}

.tag-chip {
    font-size: 13px;
    padding: 4px 10px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--ink-soft);
}

.article-notice-box {
    margin-top: 22px;
    padding: 15px 18px;
    background: var(--brand-amber-soft);
    border: 1px solid #f4cfa8;
    border-radius: var(--radius-sm);
    font-size: 13.8px;
    color: #6b3812;
}

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

.related-item {
    display: block;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}

.related-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.related-cat {
    display: inline-block;
    font-size: 11.5px;
    color: var(--brand-blue);
    margin-bottom: 3px;
}

.related-title {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.45;
}

.related-item:hover .related-title {
    color: var(--brand-amber);
}

.related-date {
    display: block;
    font-size: 12px;
    color: var(--ink-muted);
    margin-top: 3px;
}

/* Interactive Tools Page */
.tools-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.tool-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 90px;
}

.tool-panel-head {
    margin-bottom: 22px;
}

.tool-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--brand-amber);
    background: var(--brand-amber-soft);
    padding: 2px 9px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.tool-panel-head h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.tool-panel-head p {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-soft);
}

.tool-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    align-items: stretch;
}

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

.form-divider {
    grid-column: 1 / -1;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-blue);
    padding-top: 6px;
    border-top: 1px dashed var(--border);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.form-row select,
.form-row input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd3dc;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    background: #fff;
    color: var(--ink);
}

.tool-result-box {
    background: linear-gradient(155deg, #0f1b29 0%, #152b44 100%);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.res-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 6px;
}

.res-big {
    font-family: var(--font-mono);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    color: #ffb169;
    line-height: 1.2;
    margin-bottom: 10px;
}

.res-meta {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
}

.res-tip {
    font-size: 13.5px;
    line-height: 1.65;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.9);
}

.dof-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.dof-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.dof-item span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 4px;
}

.dof-item strong {
    font-family: var(--font-mono);
    font-size: 19px;
    color: #ffb169;
}

/* Kelvin Lab */
.kelvin-bar {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff6b1a 0%, #ffa94d 24%, #fff3d6 45%, #ffffff 56%, #cfe5ff 78%, #6aa8ff 100%);
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.kelvin-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.kelvin-control input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.kelvin-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
}

.kelvin-swatch {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.kelvin-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.kelvin-card p {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-soft);
}

/* HSE Checklist */
.checklist-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--paper);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.btn-reset {
    background: #fff;
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    color: var(--ink-soft);
}

.btn-reset:hover {
    border-color: var(--brand-amber);
    color: var(--brand-amber);
}

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

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
}

.check-item input[type="checkbox"] {
    margin-top: 4px;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: var(--brand-blue);
}

/* Search, About, Pagination, 404 */
.search-large-form {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    max-width: 620px;
}

.search-large-form input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid #cbd3dc;
    border-radius: var(--radius-sm);
    font-size: 15px;
}

.search-subhead {
    margin: 0 0 18px;
    font-size: 21px;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.9fr);
    gap: 32px;
    align-items: start;
}

.about-main {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
}

.spec-dl {
    margin: 0;
}

.spec-dl div {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.spec-dl dt {
    font-size: 12.5px;
    color: var(--ink-muted);
}

.spec-dl dd {
    margin: 2px 0 0;
    font-size: 14px;
    font-weight: 500;
}

.empty-box {
    background: var(--surface);
    border: 1px dashed #cbd3dc;
    border-radius: var(--radius-md);
    padding: 36px 20px;
    text-align: center;
    color: var(--ink-soft);
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink);
}

.page-num.active, .page-num:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.not-found-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 48px 24px;
}

.nf-code {
    display: block;
    font-family: var(--font-mono);
    font-size: 56px;
    font-weight: 800;
    color: var(--brand-amber);
    line-height: 1;
    margin-bottom: 12px;
}

/* Footer */
.site-footer {
    background: #0d131a;
    color: rgba(255, 255, 255, 0.78);
    padding-top: 52px;
    border-top: 3px solid var(--brand-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 38px;
}

.footer-brand-title {
    font-family: var(--font-serif);
    font-size: 22px;
    color: #fff;
    margin-bottom: 10px;
}

.footer-desc {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-pill {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffbe85;
}

.footer-heading {
    margin: 0 0 14px;
    font-size: 15.5px;
    color: #fff;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.74);
}

.footer-links a:hover {
    color: #ffad66;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
    font-size: 13.5px;
}

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

.footer-bottom p {
    margin: 0;
}

.footer-beian a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-beian a:hover {
    color: #ffad66;
}

/* ==========================================================================
   Responsive Breakpoints (Tested down to 375px width, zero horizontal scroll)
   ========================================================================== */
@media (max-width: 1080px) {
    .tools-preview-grid,
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-content,
    .manifesto-grid,
    .work-detail-grid,
    .content-with-sidebar,
    .about-grid,
    .tool-body-grid {
        grid-template-columns: 1fr;
    }
    .hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .nav-toggle {
        display: flex;
    }
    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        align-items: stretch;
        padding: 14px 20px 18px;
        gap: 12px;
    }
    .main-nav.is-open {
        display: flex;
    }
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .nav-list a {
        padding: 10px 12px;
    }
    .header-search {
        width: 100%;
    }
    .header-search input {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 680px) {
    .container {
        padding: 0 15px;
    }
    .brand-logo {
        height: 44px;
    }
    .section {
        padding: 40px 0;
    }
    .hero-section {
        padding: 48px 0 42px;
    }
    .hero-metrics,
    .gallery-grid,
    .tools-preview-grid,
    .articles-grid,
    .manifesto-points,
    .checklist-grid,
    .footer-grid,
    .tool-form {
        grid-template-columns: 1fr;
    }
    .article-row-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .article-sheet,
    .tool-panel,
    .detail-block,
    .about-main {
        padding: 18px;
    }
    .kelvin-card {
        flex-direction: column;
    }
    .search-large-form {
        flex-direction: column;
    }
    .announce-meta {
        display: none;
    }
}
