:root {
    --brand: #0D5C63;
    --brand-dark: #094147;
    --brand-soft: #E8F3F3;
    --accent: #E06D3B;
    --accent-soft: #FDF0E9;
    --bg: #F6F8F7;
    --surface: #FFFFFF;
    --ink: #162326;
    --ink-2: #43565B;
    --muted: #6E8186;
    --border: #E2E8E7;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 10px rgba(13, 45, 50, 0.05);
    --shadow-hover: 0 10px 24px rgba(13, 45, 50, 0.09);
    --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.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;
    height: 70px;
}

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

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

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

.nav-link {
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
}

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

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

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

.nav-link.nav-accent:hover,
.nav-link.nav-accent.is-active {
    color: #fff;
    background: var(--accent);
}

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

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

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

.header-search button {
    border: none;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
}

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

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

.mobile-drawer {
    border-top: 1px solid var(--border);
    background: #fff;
    padding: 16px 0 20px;
}

.drawer-search {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.drawer-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

.drawer-search button {
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}

.drawer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.drawer-links a {
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
}

.drawer-links a.is-active {
    background: var(--brand);
    color: #fff;
}

/* Announcement Ribbon (directly beneath navigation) */
.announce-bar {
    background: linear-gradient(90deg, #0D5C63 0%, #126E73 65%, #167A78 100%);
    color: #fff;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.announce-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.announce-text {
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-right: auto;
}

.announce-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    opacity: 0.92;
}

.announce-links a:hover {
    text-decoration: underline;
    color: #FFD9C4;
}

.announce-links .sep {
    opacity: 0.45;
}

/* Buttons & Pills */
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--brand-dark);
}

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

.btn-outline:hover {
    background: var(--brand-soft);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.cat-pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
}

.badge-tag {
    position: absolute;
    left: 14px;
    top: 14px;
    background: rgba(13, 92, 99, 0.92);
    color: #fff;
    padding: 4px 11px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    padding: 26px 0 18px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.hero-lead {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

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

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

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

.hero-lead-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.hero-lead-body h1 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.35;
    color: var(--ink);
}

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

.hero-lead-body p {
    margin: 0 0 18px;
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.7;
}

.hero-lead-footer {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-side {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
}

.panel-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--brand-soft);
}

.panel-header-compact h2 {
    margin: 0;
    font-size: 17px;
    color: var(--ink);
}

.panel-header-compact a {
    font-size: 13px;
    color: var(--brand);
    font-weight: 500;
}

.hero-sub-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    justify-content: space-between;
}

.hero-sub-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #EEF2F1;
}

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

.sub-thumb {
    border-radius: 7px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e1eae9;
}

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

.sub-info h3 {
    margin: 4px 0 4px;
    font-size: 14.5px;
    line-height: 1.4;
}

.sub-info h3 a:hover {
    color: var(--brand);
}

.sub-info time {
    font-size: 12px;
    color: var(--muted);
}

/* Quick Tools Strip */
.quick-tools-strip {
    padding: 12px 0 24px;
}

.strip-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.strip-head h2 {
    margin: 0 0 3px;
    font-size: 19px;
}

.strip-head p {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
}

.link-more {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brand);
    white-space: nowrap;
}

.tool-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.tool-quick-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tool-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand);
}

.tq-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    color: #fff;
}

.tq-teal { background: #0D5C63; }
.tq-amber { background: #E06D3B; }
.tq-green { background: #2D7D5B; }
.tq-blue { background: #2A6496; }

.tq-body h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.tq-body p {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
}

/* Main Portal Layout */
.portal-main-section,
.article-page-section,
.about-page-section {
    padding: 10px 0 48px;
}

.portal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.section-header h2 {
    margin: 0;
    font-size: 20px;
    position: relative;
}

.cat-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cat-tab {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--ink-2);
}

.cat-tab:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
}

/* Article Feed */
.article-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-card {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feed-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: #c7d9d7;
}

.feed-thumb {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e1eae9;
    align-self: center;
}

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

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

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

.feed-body h3,
.feed-body h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.4;
}

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

.feed-body p {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mini-tag {
    font-size: 12px;
    color: var(--muted);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
}

.mini-tag:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

/* Channels Showcase Grid */
.channels-showcase {
    margin-top: 34px;
}

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

.channel-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.cb-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #EEF2F1;
}

.cb-head h3 {
    margin: 0 0 2px;
    font-size: 16.5px;
    color: var(--brand);
}

.cb-sub {
    font-size: 12px;
    color: var(--muted);
}

.cb-more {
    font-size: 12.5px;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}

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

.cb-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed #EEF2F1;
    font-size: 14px;
}

.cb-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cb-list a {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cb-list a:hover {
    color: var(--brand);
}

.cb-list time {
    font-size: 12px;
    color: var(--muted);
    flex-shrink: 0;
}

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

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

.widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-soft);
}

.widget-head h3 {
    margin: 0;
    font-size: 16px;
}

.widget-badge {
    font-size: 11.5px;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-list li {
    padding-bottom: 12px;
    border-bottom: 1px solid #EEF2F1;
}

.notice-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notice-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.notice-tag {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 1px 7px;
    border-radius: 4px;
}

.notice-top time {
    font-size: 11.5px;
    color: var(--muted);
}

.notice-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.45;
}

.notice-desc {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.55;
}

.hot-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-rank-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rank-num {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--bg);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.rank-num.top-rank {
    background: var(--accent);
    color: #fff;
}

.rank-body a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    display: block;
}

.rank-body a:hover {
    color: var(--brand);
}

.rank-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.widget-kanwu {
    background: linear-gradient(155deg, #FFFFFF 0%, #F0F7F7 100%);
}

.widget-text {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.65;
}

.widget-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.cloud-tag {
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink-2);
    border: 1px solid var(--border);
}

.cloud-tag:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

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

.side-tool-links a {
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-2);
}

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

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

.cat-side-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg);
}

.cat-side-list a strong {
    display: block;
    font-size: 14px;
}

.cat-side-list a span {
    font-size: 12px;
    color: var(--muted);
}

.cat-side-list a.is-active,
.cat-side-list a:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, #EEF6F6 0%, #FFFFFF 100%);
    border-bottom: 1px solid var(--border);
    padding: 28px 0 26px;
    margin-bottom: 20px;
}

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

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

.page-banner h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.3;
}

.banner-sub {
    margin: 0;
    font-size: 15px;
    color: var(--ink-2);
    max-width: 780px;
}

.banner-meta {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

/* Article Detail */
.reading-progress {
    position: fixed;
    top: 70px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    z-index: 95;
    transition: width 0.08s linear;
}

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

.article-header h1 {
    margin: 12px 0 12px;
    font-size: 27px;
    line-height: 1.38;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.article-lead {
    margin: 18px 0;
    padding: 14px 18px;
    background: var(--bg);
    border-left: 4px solid var(--brand);
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    color: var(--ink-2);
}

.article-cover {
    margin: 20px 0 24px;
    border-radius: 10px;
    overflow: hidden;
    background: #e1eae9;
}

.article-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-body {
    font-size: 16px;
    line-height: 1.85;
    color: #203034;
}

.article-body h2 {
    margin: 28px 0 12px;
    font-size: 20px;
    color: var(--brand-dark);
    padding-left: 12px;
    border-left: 4px solid var(--accent);
}

.article-body h3 {
    margin: 20px 0 8px;
    font-size: 17px;
    color: var(--ink);
}

.article-body p {
    margin: 0 0 15px;
}

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

.article-body li {
    margin-bottom: 7px;
}

.article-body blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    background: var(--brand-soft);
    border-radius: 8px;
    color: var(--brand-dark);
    font-size: 14.5px;
}

.article-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

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

.article-share-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.article-disclaimer {
    font-size: 12.5px;
    color: var(--muted);
    background: var(--bg);
    padding: 12px 15px;
    border-radius: 8px;
    line-height: 1.65;
}

.related-section {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.related-section h2 {
    margin: 0 0 16px;
    font-size: 19px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.related-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.related-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.related-body {
    padding: 12px 14px;
}

.related-body h3 {
    margin: 0 0 6px;
    font-size: 14.5px;
    line-height: 1.45;
}

.related-body h3 a:hover {
    color: var(--brand);
}

.related-body time {
    font-size: 12px;
    color: var(--muted);
}

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

.page-btn,
.page-num {
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--ink-2);
}

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

/* Tools Page */
.tools-page-section,
.guide-page-section {
    padding: 0 0 54px;
}

.tools-anchor-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.tools-anchor-nav a {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--brand);
}

.tools-anchor-nav a:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.tool-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 26px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
    scroll-margin-top: 90px;
}

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

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

.tool-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

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

.field span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
}

.field select,
.field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #CFD9D8;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink);
    background: #fff;
    font-family: inherit;
}

.tool-result {
    background: #F1F8F8;
    border: 1px solid #C9E2E2;
    border-radius: 10px;
    padding: 18px 20px;
}

.tool-result h3 {
    margin: 0 0 10px;
    font-size: 17px;
    color: var(--brand-dark);
}

.result-list {
    margin: 0;
    padding-left: 20px;
    font-size: 14.5px;
    color: var(--ink-2);
}

.result-list li {
    margin-bottom: 6px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg);
    color: var(--brand-dark);
    font-weight: 600;
}

/* Guide & Directory Page */
.kanwu-highlight {
    background: linear-gradient(135deg, #0D5C63 0%, #146E75 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 30px;
}

.kanwu-highlight .cat-pill {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.kanwu-highlight h2 {
    margin: 10px 0 10px;
    font-size: 23px;
}

.kanwu-highlight p {
    margin: 0 0 18px;
    opacity: 0.92;
    max-width: 820px;
}

.kh-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.kh-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 16px 18px;
}

.kh-box h4 {
    margin: 0 0 8px;
    font-size: 15.5px;
}

.kh-box ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.7;
}

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

.kanwu-highlight .btn-primary {
    background: var(--accent);
}

.kanwu-highlight .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}

.dir-group {
    margin-bottom: 28px;
}

.dir-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.dir-group-head h2 {
    margin: 0;
    font-size: 20px;
}

.dir-group-head span {
    font-size: 13px;
    color: var(--muted);
}

.dir-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dir-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.dir-card h3 {
    margin: 0 0 10px;
    font-size: 16.5px;
    color: var(--brand-dark);
}

.dir-meta {
    margin: 0;
    font-size: 13.5px;
}

.dir-meta > div {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
}

.dir-meta dt {
    width: 42px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--muted);
}

.dir-meta dd {
    margin: 0;
    color: var(--ink-2);
}

.dir-tip {
    margin: 10px 0 0;
    padding: 8px 10px;
    background: var(--bg);
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--brand);
}

/* Search, About, 404 */
.big-search-form {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    max-width: 640px;
}

.big-search-form input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid #C8D5D4;
    border-radius: 8px;
    font-size: 15px;
}

.search-summary {
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--ink-2);
}

.empty-box,
.about-card,
.notfound-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow);
}

.empty-box {
    text-align: center;
    padding: 40px 24px;
}

.about-card h2 {
    margin: 22px 0 10px;
    font-size: 19px;
    color: var(--brand-dark);
}

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

.notfound-section {
    padding: 48px 0 64px;
}

.notfound-card {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
    padding: 46px 28px;
}

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

.nf-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

/* Footer */
.site-footer {
    background: #132528;
    color: #C7D7D9;
    margin-top: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 34px;
}

.footer-logo-link {
    display: inline-block;
    background: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.footer-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: #9EB5B8;
}

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

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

.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    font-size: 13px;
    color: #8CA6AA;
}

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

.beian-wrap a {
    color: #D2E3E5;
}

.beian-wrap a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
    .main-nav {
        display: none;
    }
    .header-search {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .tool-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portal-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .container {
        padding: 0 14px;
    }
    .header-inner {
        height: 60px;
    }
    .brand-logo img {
        height: 38px;
    }
    .announce-links {
        display: none;
    }
    .hero-lead-body {
        padding: 16px;
    }
    .hero-lead-body h1 {
        font-size: 20px;
    }
    .tool-cards-grid,
    .channel-blocks-grid,
    .related-grid,
    .tool-form-grid,
    .kh-grid,
    .dir-cards-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .feed-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }
    .article-main {
        padding: 18px 16px;
    }
    .article-header h1 {
        font-size: 22px;
    }
    .page-banner h1 {
        font-size: 23px;
    }
    .big-search-form {
        flex-direction: column;
    }
    .kanwu-highlight {
        padding: 20px 18px;
    }
    .tool-panel {
        padding: 18px 16px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
