/* 不送网 (busong.cn) - Editorial & Utility Gifting Etiquette Stylesheet */
:root {
    --bg: #FAF8F5;
    --bg-tinted: #F2EEE7;
    --surface: #FFFFFF;
    --border: #E5DED4;
    --border-strong: #D5CBBF;
    --ink: #1D2530;
    --ink-soft: #4F5B6B;
    --ink-muted: #7A8696;
    --brand-blue: #125C96;
    --brand-blue-dark: #0C4370;
    --brand-blue-soft: #EBF4FB;
    --brand-orange: #E06314;
    --brand-orange-dark: #C24E09;
    --brand-orange-soft: #FFF3EA;
    --danger: #C52828;
    --danger-bg: #FEF1F1;
    --danger-border: #F5C9C9;
    --warn: #A86407;
    --warn-bg: #FFF8EB;
    --warn-border: #F3DBA8;
    --safe: #187547;
    --safe-bg: #EEF9F3;
    --safe-border: #BCE5CF;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 8px rgba(24, 39, 60, 0.05);
    --shadow-md: 0 8px 24px rgba(24, 39, 60, 0.08);
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    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;
}

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

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

.site-main {
    flex: 1 0 auto;
}

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(20, 35, 55, 0.04);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--ink);
}

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

.brand-sub {
    font-size: 0.78rem;
    color: var(--ink-muted);
    padding-left: 10px;
    border-left: 1px solid var(--border);
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    justify-content: flex-end;
}

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

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

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

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

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

.header-search button {
    border: none;
    background: var(--brand-blue);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
}

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

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 38px;
    padding: 7px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

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

/* Announcement Banner (Top bar below nav on Homepage) */
.announce-bar {
    background: linear-gradient(90deg, #FFF5EC 0%, #FDEEE2 100%);
    border-bottom: 1px solid #F2D8C2;
}

.announce-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 0.88rem;
    color: #7A380C;
}

.announce-tag {
    background: var(--brand-orange);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.announce-text {
    margin: 0;
    line-height: 1.5;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #103A60 0%, #155387 58%, #1D689E 100%);
    color: #fff;
    padding: 48px 0 54px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
    color: #FFE4CC;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    letter-spacing: 0.03em;
}

.hero-title {
    margin: 0 0 14px;
    font-size: 2.25rem;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.accent-orange {
    color: #FFB46B;
}

.hero-lead {
    margin: 0 0 26px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
}

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

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.stat-item span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.82);
}

.hero-tool-card {
    background: var(--surface);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 14px 36px rgba(9, 25, 45, 0.24);
}

.tool-card-head h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    color: var(--brand-blue-dark);
}

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

.form-group {
    margin-bottom: 14px;
}

.form-group label,
.filter-col label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

select,
input[type="search"],
input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
}

select:focus,
input[type="search"]:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(18, 92, 150, 0.14);
}

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

.quick-tags a {
    background: var(--bg-tinted);
    color: var(--ink-soft);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.79rem;
}

.quick-tags a:hover {
    background: var(--brand-orange-soft);
    color: var(--brand-orange-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    line-height: 1.3;
    text-align: center;
}

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

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

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

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

.btn-block {
    width: 100%;
}

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

/* Sections */
.section {
    padding: 46px 0;
}

.section-tinted {
    background: var(--bg-tinted);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.section-head-spaced {
    margin-top: 40px;
}

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

.section-sub {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.section-more {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(180deg, #EDF3F8 0%, #FAF8F5 100%);
    border-bottom: 1px solid var(--border);
    padding: 32px 0 28px;
}

.page-banner h1 {
    margin: 8px 0 8px;
    font-size: 1.85rem;
    line-height: 1.3;
    color: var(--brand-blue-dark);
}

.page-banner p {
    margin: 0;
    max-width: 760px;
    color: var(--ink-soft);
    font-size: 0.96rem;
}

.breadcrumb {
    font-size: 0.83rem;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Badges */
.badge {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
}

.badge-high {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

.badge-medium {
    background: var(--warn-bg);
    color: var(--warn);
    border: 1px solid var(--warn-border);
}

.badge-context {
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    border: 1px solid #C5DFEF;
}

/* Taboo Cards */
.taboo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.taboo-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.taboo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.taboo-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.taboo-name {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--ink);
}

.taboo-reason {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
    flex: 1;
}

.taboo-meta,
.taboo-alt {
    font-size: 0.82rem;
    line-height: 1.5;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.meta-label {
    color: var(--ink-muted);
    font-weight: 600;
}

.alt-label {
    color: var(--safe);
    font-weight: 700;
}

/* Country Cards */
.country-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

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

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

.country-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
    font-weight: 800;
    font-size: 0.86rem;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.country-code-lg {
    width: 48px;
    height: 48px;
    font-size: 0.96rem;
}

.country-code-xl {
    width: 58px;
    height: 58px;
    font-size: 1.15rem;
}

.country-code-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 24px;
    border-radius: 5px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.country-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.country-region {
    font-size: 0.78rem;
    color: var(--ink-muted);
}

.country-summary {
    margin: 0;
    font-size: 0.86rem;
    color: var(--ink-soft);
    flex: 1;
}

.country-warning {
    font-size: 0.8rem;
    color: var(--danger);
    background: var(--danger-bg);
    padding: 7px 10px;
    border-radius: 6px;
}

/* Category Strip */
.cat-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.cat-pill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-sm);
}

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

.cat-pill-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--brand-blue-dark);
}

.cat-pill-tag {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

/* Article Grid & Cards */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

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

.cat-chip,
.cat-chip-sm {
    display: inline-block;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 5px;
}

.cat-chip-sm {
    padding: 2px 7px;
    font-size: 0.74rem;
}

.tag-outline {
    display: inline-block;
    border: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 0.74rem;
    padding: 1px 7px;
    border-radius: 4px;
}

.article-card-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.42;
}

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

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

.article-card-desc {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
    flex: 1;
}

.article-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.read-link {
    font-weight: 700;
    color: var(--brand-blue);
    white-space: nowrap;
}

/* Latest List */
.latest-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.latest-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.latest-row-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.latest-row-title {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

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

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

.latest-row-summary {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.latest-row-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.date-text {
    font-size: 0.8rem;
    color: var(--ink-muted);
    white-space: nowrap;
}

/* Formula Box */
.formula-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.formula-head {
    text-align: center;
    margin-bottom: 26px;
}

.formula-head h2 {
    margin: 0 0 6px;
    font-size: 1.45rem;
}

.formula-head p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
}

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

.formula-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.formula-num {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--brand-orange);
    background: var(--brand-orange-soft);
    padding: 3px 9px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.formula-item h3 {
    margin: 0 0 8px;
    font-size: 1.06rem;
}

.formula-item p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

/* Filter Panel & Scenario Cards (/check) */
.filter-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

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

.pill-shortcuts,
.pill-bar,
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
}

.pill-bar,
.cat-tabs {
    margin-top: 0;
    margin-bottom: 22px;
}

.pill-label {
    font-size: 0.84rem;
    color: var(--ink-muted);
}

.filter-pill {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-weight: 600;
}

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

.result-summary {
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-bottom: 18px;
}

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

.scenario-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.scenario-head {
    background: #F6F3ED;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.scenario-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.sc-target {
    background: var(--brand-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.sc-occasion {
    background: var(--brand-orange-soft);
    color: var(--brand-orange-dark);
    border: 1px solid #F3CCA8;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.sc-x {
    color: var(--ink-muted);
}

.sc-budget {
    font-size: 0.85rem;
    color: var(--ink-soft);
    font-weight: 600;
}

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

.sc-box {
    border-radius: var(--radius-sm);
    padding: 15px 16px;
    border: 1px solid var(--border);
}

.sc-box h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.sc-box ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.88rem;
}

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

.sc-box-danger {
    background: var(--danger-bg);
    border-color: var(--danger-border);
}

.sc-box-danger h3 {
    color: var(--danger);
}

.sc-box-warn {
    background: var(--warn-bg);
    border-color: var(--warn-border);
}

.sc-box-warn h3 {
    color: var(--warn);
}

.sc-box-safe {
    background: var(--safe-bg);
    border-color: var(--safe-border);
}

.sc-box-safe h3 {
    color: var(--safe);
}

.scenario-foot {
    padding: 14px 20px 18px;
    border-top: 1px dashed var(--border);
    background: #FCFBF9;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
}

.sc-speech {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--brand-blue-soft);
    border: 1px solid #C8E0F2;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.btn-copy {
    border: 1px solid var(--brand-blue);
    background: #fff;
    color: var(--brand-blue);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
}

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

/* Dictionary (/taboos) */
.dict-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

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

.dict-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.dict-cat {
    font-size: 0.76rem;
    color: var(--ink-muted);
    display: block;
}

.dict-card-head h2 {
    margin: 2px 0 0;
    font-size: 1.22rem;
}

.dict-lead {
    margin: 0 0 8px;
    font-weight: 700;
    color: var(--danger);
    font-size: 0.94rem;
}

.dict-detail {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.dict-meta {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 8px;
    font-size: 0.86rem;
}

.dict-meta dt {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.8rem;
}

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

.text-safe {
    color: var(--safe) !important;
    font-weight: 600;
}

/* Country Atlas (/countries) */
.country-atlas-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.atlas-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.atlas-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.atlas-card-head h2 {
    margin: 0;
    font-size: 1.22rem;
}

.atlas-card-head h2 a {
    color: var(--ink);
}

.atlas-summary {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.atlas-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1;
}

.atlas-block {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
}

.atlas-block h4 {
    margin: 0 0 6px;
    font-size: 0.85rem;
}

.atlas-block ul {
    margin: 0;
    padding-left: 16px;
}

.atlas-block li {
    margin-bottom: 4px;
}

.atlas-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
}

.atlas-danger h4 {
    color: var(--danger);
}

.atlas-safe {
    background: var(--safe-bg);
    border: 1px solid var(--safe-border);
}

.atlas-safe h4 {
    color: var(--safe);
}

.atlas-foot {
    padding-top: 8px;
    border-top: 1px solid var(--border);
    text-align: right;
}

/* Two-Column Layout (Country Detail, Category, Article, About) */
.layout-2col,
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}

.country-hero-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 12px 0 10px;
}

.region-badge {
    display: inline-block;
    background: var(--brand-orange-soft);
    color: var(--brand-orange-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 5px;
    margin-bottom: 4px;
}

.detail-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}

.detail-panel h2 {
    margin: 0 0 12px;
    font-size: 1.18rem;
    color: var(--brand-blue-dark);
}

.panel-danger {
    border-left: 4px solid var(--danger);
}

.panel-danger h2 {
    color: var(--danger);
}

.panel-safe {
    border-left: 4px solid var(--safe);
}

.panel-safe h2 {
    color: var(--safe);
}

.panel-info {
    background: var(--brand-blue-soft);
    border-color: #C5DFEF;
}

.check-list,
.bullet-list {
    margin: 0;
    padding-left: 20px;
}

.check-list li,
.bullet-list li {
    margin-bottom: 8px;
    font-size: 0.94rem;
}

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

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

.side-card h3 {
    margin: 0 0 12px;
    font-size: 1.04rem;
    color: var(--brand-blue-dark);
}

.side-cta {
    background: linear-gradient(180deg, #F5FAFE 0%, #FFFFFF 100%);
    border-color: #C9DFEE;
}

.side-cta p {
    margin: 0 0 14px;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.side-country-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-country-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 7px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
}

.side-country-link small {
    margin-left: auto;
    color: var(--ink-muted);
    font-weight: 400;
    font-size: 0.76rem;
}

.side-country-link:hover {
    background: var(--bg-tinted);
}

.side-article-list,
.side-taboo-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-article-list li {
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}

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

.side-article-list a {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.45;
}

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

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

.side-taboo-list li a {
    display: block;
    padding: 8px 10px;
    border-radius: 7px;
    background: var(--bg);
    color: var(--ink);
}

.side-taboo-list li a:hover {
    background: var(--danger-bg);
}

.side-taboo-list strong {
    display: block;
    font-size: 0.88rem;
    color: var(--danger);
}

.side-taboo-list span {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-soft);
}

/* Archive & Article Page */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.archive-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}

.archive-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.archive-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    line-height: 1.4;
}

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

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

.archive-desc {
    margin: 0 0 12px;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.archive-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--ink-muted);
}

.article-header-band {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 28px 0 24px;
}

.article-h1 {
    margin: 10px 0 8px;
    font-size: 1.9rem;
    line-height: 1.35;
    color: var(--ink);
}

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

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.84rem;
    color: var(--ink-muted);
}

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

.takeaway-box {
    background: var(--brand-orange-soft);
    border: 1px solid #F2CDA9;
    border-left: 4px solid var(--brand-orange);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.takeaway-title {
    font-weight: 800;
    color: var(--brand-orange-dark);
    margin-bottom: 8px;
    font-size: 0.96rem;
}

.takeaway-box ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9rem;
}

.takeaway-box li {
    margin-bottom: 5px;
}

.article-body {
    font-size: 1rem;
    line-height: 1.85;
    color: #252E3A;
}

.article-body h2 {
    margin: 28px 0 12px;
    font-size: 1.32rem;
    color: var(--brand-blue-dark);
    padding-bottom: 6px;
    border-bottom: 2px solid var(--brand-blue-soft);
}

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

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

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

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

.article-body .callout {
    background: var(--bg);
    border-left: 4px solid var(--brand-blue);
    padding: 14px 16px;
    border-radius: 6px;
    margin: 18px 0;
    font-size: 0.94rem;
}

.article-body .callout-warn {
    background: var(--danger-bg);
    border-left-color: var(--danger);
}

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

.article-body th,
.article-body td {
    border: 1px solid var(--border);
    padding: 9px 12px;
    text-align: left;
    min-width: 110px;
}

.article-body th {
    background: var(--bg-tinted);
    font-weight: 700;
}

.article-disclaimer {
    margin-top: 28px;
    padding: 14px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    color: var(--ink-muted);
    border: 1px solid var(--border);
}

.article-bottom-cta {
    margin-top: 22px;
    padding: 20px;
    background: var(--brand-blue-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.article-bottom-cta h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: var(--brand-blue-dark);
}

.article-bottom-cta p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

/* Search & Empty Box */
.search-hero-form {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin-top: 14px;
}

.search-section-title {
    font-size: 1.25rem;
    margin: 0 0 14px;
    color: var(--brand-blue-dark);
}

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

.empty-box h3 {
    margin: 0 0 8px;
}

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

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

.page-link {
    padding: 7px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
}

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

/* Footer */
.site-footer {
    background: #172433;
    color: #C7D2DE;
    margin-top: auto;
    padding-top: 42px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 28px;
    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: 0.86rem;
    line-height: 1.65;
    color: #9FB0C3;
}

.footer-heading {
    margin: 0 0 12px;
    font-size: 0.96rem;
    color: #fff;
}

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

.footer-links a {
    color: #B4C3D4;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    font-size: 0.82rem;
    color: #93A5B8;
}

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

.footer-bottom a {
    color: #C7D2DE;
}

.footer-bottom a:hover {
    color: #FFB46B;
}

.footer-sep {
    opacity: 0.4;
}

/* Responsive Design (Tablet & Mobile 375px safe) */
@media (max-width: 1024px) {
    .brand-sub {
        display: none;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .taboo-grid,
    .country-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cat-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .layout-2col,
    .about-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        padding: 14px 20px 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .main-nav.is-open {
        display: flex;
    }
    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-list a {
        padding: 9px 12px;
    }
    .header-search {
        width: 100%;
    }
    .header-search input {
        width: 100%;
        flex: 1;
    }
    .scenario-cols,
    .dict-grid,
    .country-atlas-grid,
    .formula-grid,
    .filter-row {
        grid-template-columns: 1fr;
    }
    .atlas-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 14px;
    }
    .brand-logo {
        height: 40px;
    }
    .hero-section {
        padding: 32px 0 36px;
    }
    .hero-title {
        font-size: 1.65rem;
    }
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .section {
        padding: 32px 0;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .page-banner h1,
    .article-h1 {
        font-size: 1.45rem;
    }
    .taboo-grid,
    .taboo-grid-3,
    .country-grid,
    .article-grid,
    .cat-strip,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .latest-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .latest-row-side {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .article-paper {
        padding: 20px 16px;
    }
    .search-hero-form {
        flex-direction: column;
    }
    .announce-inner {
        align-items: flex-start;
        font-size: 0.82rem;
    }
}
