:root {
    --brand-blue: #0F4C81;
    --brand-blue-dark: #0A3358;
    --brand-blue-soft: #EBF4FB;
    --brand-orange: #E8630A;
    --brand-orange-dark: #C65005;
    --brand-orange-soft: #FFF3E8;
    --ink: #0F172A;
    --ink-2: #334155;
    --muted: #64748B;
    --border: #E2E8F0;
    --bg: #F6F8FB;
    --card: #FFFFFF;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    overflow-x: clip;
}

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

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

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

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

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

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

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

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

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

.nav-item {
    padding: 8px 13px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.is-active {
    color: var(--brand-blue);
    background: var(--brand-blue-soft);
}

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

.header-search {
    display: flex;
    align-items: center;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    padding: 2px 6px 2px 14px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.header-search:focus-within {
    background: #FFFFFF;
    border-color: var(--brand-blue);
}

.header-search input {
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 170px;
    color: var(--ink);
    padding: 6px 0;
}

.header-search button {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

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

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

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

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

.mobile-drawer[hidden] {
    display: none;
}

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

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

.mobile-search button {
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--brand-blue);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.mobile-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mobile-links a {
    padding: 10px 12px;
    border-radius: 8px;
    background: #F8FAFC;
    color: var(--ink-2);
    font-weight: 600;
    font-size: 14px;
}

.mobile-links a.is-active {
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
}

/* Top Announcement Bar */
.announce-bar {
    background: linear-gradient(90deg, #0B2D52 0%, #12467A 100%);
    color: #FFFFFF;
    border-bottom: 2px solid var(--brand-orange);
}

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

.announce-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--brand-orange);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

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

.announce-link {
    color: #FDE68A;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.announce-link:hover {
    color: #FFFFFF;
}

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

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

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

.hero-cover-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 8.5;
    background: #0C2D48;
}

.cover-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-title {
    margin: 10px 0 10px;
    font-size: 25px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.01em;
}

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

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

.hero-summary {
    margin: 0 0 18px;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.72;
}

.hero-cta-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    border: 0;
    background: var(--brand-blue);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--brand-blue-dark);
    color: #FFFFFF;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.trend-card {
    background: linear-gradient(160deg, #0D2644 0%, #133B6B 100%);
    color: #FFFFFF;
    border-radius: var(--radius);
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

.trend-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #FDBA74;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.trend-head h2 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.35;
}

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

.trend-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.trend-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.trend-num {
    font-size: 13px;
    font-weight: 800;
    color: #FDBA74;
    background: rgba(232, 99, 10, 0.28);
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

.trend-cat {
    display: block;
    font-size: 12px;
    color: #BAE6FD;
    margin-bottom: 2px;
}

.trend-info h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.48;
    font-weight: 600;
    color: #FFFFFF;
}

.trend-foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.metric-chip {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 10px;
    border-radius: 8px;
}

.metric-chip strong {
    display: block;
    font-size: 14px;
    color: #FDBA74;
}

.metric-chip span {
    font-size: 12px;
    color: #E2E8F0;
}

/* Workbench Strip */
.workbench-strip {
    padding: 20px 0 10px;
}

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

.section-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--brand-orange);
    margin-bottom: 2px;
}

.section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
}

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

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

.tool-mini-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    color: var(--ink);
}

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

.tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--brand-orange-soft);
    color: var(--brand-orange);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.tool-mini-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.tool-mini-card p {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
}

/* Main Content Layout */
.content-section {
    padding: 26px 0 42px;
}

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

.feed-column, .sidebar-column {
    min-width: 0;
}

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

.tab-pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: #FFFFFF;
    border: 1px solid var(--border);
    color: var(--ink-2);
}

.tab-pill.is-active,
.tab-pill:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #FFFFFF;
}

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

.article-card {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.article-card:hover {
    border-color: #CBD5E1;
    box-shadow: var(--shadow-md);
}

.article-thumb {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    align-self: center;
}

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

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

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

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

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

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

.article-summary {
    margin: 0 0 12px;
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.65;
}

.article-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

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

.tag-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: #F1F5F9;
    color: var(--ink-2);
    font-size: 12px;
}

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

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

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

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

.widget-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    padding-bottom: 10px;
    border-bottom: 1px solid #F1F5F9;
}

.algo-card {
    border-top: 3px solid var(--brand-orange);
}

.weight-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weight-list li {
    display: grid;
    grid-template-columns: 28px auto 1fr;
    gap: 8px;
    align-items: center;
    font-size: 13.5px;
}

.weight-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 800;
}

.weight-list strong {
    color: var(--ink);
}

.weight-list em {
    font-style: normal;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.widget-cta {
    display: block;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--brand-blue);
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 600;
}

.widget-cta:hover {
    background: var(--brand-blue-dark);
    color: #FFFFFF;
}

.widget-cta.secondary {
    margin-top: 8px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
}

.widget-cta.secondary:hover {
    background: #DCEBFA;
    color: var(--brand-blue-dark);
}

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

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

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

.rank-idx.is-top {
    background: var(--brand-orange);
    color: #FFFFFF;
}

.rank-text a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
}

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

.rank-text small {
    font-size: 12px;
    color: var(--muted);
}

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

.cat-stat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    background: #F8FAFC;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
}

.cat-stat-list a:hover,
.cat-stat-list a.is-current {
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
}

.count-badge {
    font-size: 12px;
    color: var(--muted);
    background: #FFFFFF;
    padding: 2px 8px;
    border-radius: 999px;
}

.ningbo-card {
    background: linear-gradient(160deg, #F8FBFF 0%, #EEF6FF 100%);
    border-color: #BFDBFE;
}

.ningbo-card p {
    font-size: 13.5px;
    color: var(--ink-2);
    margin: 0 0 14px;
}

.btn-secondary-full {
    display: block;
    text-align: center;
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--brand-orange);
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 700;
}

.btn-secondary-full:hover {
    background: var(--brand-orange-dark);
    color: #FFFFFF;
}

/* Playbook Preview & Full */
.playbook-preview {
    padding: 36px 0 48px;
    background: #FFFFFF;
    border-top: 1px solid var(--border);
}

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

.playbook-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    background: #FAFBFD;
    display: flex;
    flex-direction: column;
}

.pb-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--brand-orange-soft);
    color: var(--brand-orange);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.playbook-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.4;
}

.pb-scene {
    margin: 0 0 10px;
    font-size: 13.5px;
    color: var(--muted);
}

.pb-hook {
    font-size: 13.5px;
    background: #FFFFFF;
    border-left: 3px solid var(--brand-blue);
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
    color: var(--ink-2);
}

.pb-link {
    margin-top: auto;
    font-size: 13.5px;
    font-weight: 700;
}

.playbook-full-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.pb-detail-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.pb-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pb-detail-head h2 {
    margin: 4px 0 4px;
    font-size: 21px;
}

.btn-copy {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--brand-blue);
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

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

.pb-script-box {
    margin: 12px 0;
    padding: 16px;
    background: #0F172A;
    color: #E2E8F0;
    border-radius: 10px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13.5px;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.pb-tips {
    font-size: 14px;
    color: var(--ink-2);
    background: #F8FAFC;
    padding: 12px 14px;
    border-radius: 8px;
}

/* Page Banners & Article Detail */
.page-banner,
.article-header-band {
    background: linear-gradient(135deg, #0B2545 0%, #134074 100%);
    color: #FFFFFF;
    padding: 32px 0 34px;
}

.breadcrumb {
    font-size: 13px;
    color: #CBD5E1;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: #93C5FD;
}

.banner-title,
.article-page-title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.32;
    font-weight: 800;
    color: #FFFFFF;
}

.banner-desc,
.article-subtitle {
    margin: 0;
    max-width: 820px;
    font-size: 15.5px;
    color: #E2E8F0;
    line-height: 1.7;
}

.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #CBD5E1;
    margin-bottom: 10px;
}

.article-detail-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.article-cover-hero {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 22px;
}

.takeaways-box {
    background: #F0F7FF;
    border: 1px solid #BFDBFE;
    border-left: 4px solid var(--brand-blue);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.takeaways-box h2 {
    margin: 0 0 10px;
    font-size: 16px;
    color: var(--brand-blue-dark);
}

.takeaways-box ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink-2);
    font-size: 14.5px;
}

.takeaways-box li {
    margin-bottom: 6px;
}

.prose {
    font-size: 16px;
    line-height: 1.85;
    color: #1E293B;
}

.prose h2 {
    margin: 30px 0 12px;
    font-size: 21px;
    line-height: 1.38;
    color: var(--ink);
    padding-bottom: 8px;
    border-bottom: 2px solid #F1F5F9;
}

.prose h3 {
    margin: 22px 0 8px;
    font-size: 17.5px;
    color: var(--brand-blue-dark);
}

.prose p {
    margin: 0 0 14px;
}

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

.prose li {
    margin-bottom: 6px;
}

.prose blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    border-left: 4px solid var(--brand-orange);
    background: #FFF9F5;
    border-radius: 0 8px 8px 0;
    color: var(--ink-2);
}

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

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

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

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

.article-action-bar {
    margin: 26px 0 20px;
    padding: 18px 20px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 14.5px;
}

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

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

.editorial-notice {
    font-size: 13px;
    color: var(--muted);
    background: #F8FAFC;
    border-radius: 8px;
    padding: 12px 14px;
}

.toc-widget {
    position: sticky;
    top: 86px;
}

.toc-list {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-list a {
    color: var(--ink-2);
}

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

/* Tools Page */
.tool-anchor-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.tool-anchor-nav a {
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 600;
}

.tool-anchor-nav a:hover {
    background: var(--brand-orange);
    color: #FFFFFF;
}

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

.tool-panel {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 84px;
}

.tool-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--brand-orange-soft);
    color: var(--brand-orange);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

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

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

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

.field-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-2);
    margin-bottom: 6px;
}

.tool-textarea,
.tool-input,
.tool-select {
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ink);
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 10px 12px;
    background: #FFFFFF;
}

.tool-textarea {
    width: 100%;
    resize: vertical;
    line-height: 1.65;
}

.tool-input.full,
.tool-select.full {
    width: 100%;
}

.tool-controls,
.tool-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.tool-actions-row {
    justify-content: flex-start;
}

.inline-label {
    font-size: 13.5px;
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-cards-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.stat-box {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.stat-val {
    display: block;
    margin-top: 4px;
    font-size: 19px;
    color: var(--brand-blue);
}

.result-card {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
}

.result-card h3 {
    margin: 0 0 8px;
    font-size: 15.5px;
    color: var(--ink);
}

.result-card.subtle {
    background: #FFFFFF;
}

.small-note {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
}

.status-ok {
    color: #047857;
    font-size: 14px;
    font-weight: 600;
}

.status-warn {
    color: #B45309;
    font-size: 14px;
    font-weight: 600;
}

.risk-tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 4px 6px 0 0;
    border-radius: 6px;
    background: #FEE2E2;
    color: #B91C1C;
    font-size: 13px;
    font-weight: 700;
}

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

.diag-list {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: var(--ink-2);
}

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

/* Search & Empty & Pagination */
.big-search-form {
    display: flex;
    gap: 10px;
    max-width: 660px;
    margin-top: 16px;
}

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

.hot-keywords {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #CBD5E1;
}

.hot-keywords a {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
}

.hot-keywords a:hover {
    background: var(--brand-orange);
}

.search-count {
    margin: 0 0 14px;
    font-size: 14.5px;
    color: var(--muted);
}

.empty-state {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
}

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

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    color: var(--ink-2);
    font-weight: 600;
    font-size: 14px;
}

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

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

/* Footer */
.site-footer {
    background: #0B192C;
    color: #CBD5E1;
    padding-top: 42px;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 32px;
}

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

.footer-desc {
    margin: 0 0 10px;
    font-size: 14px;
    color: #E2E8F0;
    line-height: 1.7;
}

.footer-note {
    margin: 0;
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.65;
}

.footer-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
}

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

.footer-list a {
    color: #CBD5E1;
}

.footer-list a:hover {
    color: #FDBA74;
}

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

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

.beian-link {
    color: #CBD5E1;
}

.beian-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

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

@media (max-width: 640px) {
    .container {
        padding: 0 14px;
    }
    .brand-logo {
        height: 36px;
    }
    .hero-title {
        font-size: 21px;
    }
    .banner-title,
    .article-page-title {
        font-size: 23px;
    }
    .article-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }
    .tool-cards-grid,
    .tool-form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .stat-cards-3 {
        grid-template-columns: 1fr;
    }
    .article-detail-card,
    .tool-panel,
    .pb-detail-card {
        padding: 18px 15px;
    }
    .big-search-form {
        flex-direction: column;
    }
    .mobile-links {
        grid-template-columns: 1fr;
    }
    .announce-link {
        display: none;
    }
}
