:root {
    --bg: #f3f7fb;
    --ink: #1a2a33;
    --muted: #57707d;
    --primary: #0f6c78;
    --accent: #ee9b3a;
    --surface: #ffffff;
    --surface-soft: #f6fbff;
    --line: #d3e3ea;
    --teal-glow: rgba(15, 108, 120, 0.2);
    --amber-glow: rgba(238, 155, 58, 0.22);
}

body {
    background: radial-gradient(circle at top right, #d0ecef 0%, #edf4fa 45%, #f3f7fb 100%);
    color: var(--ink);
}

.hero-shell {
    border-radius: 22px;
    background: linear-gradient(130deg, #12343b, #0d6e6e);
    color: #f8f9fa;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(8, 38, 49, 0.22);
}

.hero-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ecf7f7;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
}

.quick-card {
    position: relative;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #ffffff 0%, #f1f8fc 100%);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(10, 52, 67, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #0f6c78, #2b8f9b);
}

.quick-card:hover {
    transform: translateY(-4px);
    border-color: #7fade0;
    box-shadow: 0 16px 30px rgba(12, 68, 89, 0.2);
}

.row.g-3.mb-4 > .col-md-4:nth-child(2) .quick-card {
    background: linear-gradient(160deg, #fffdf8 0%, #fff2de 100%);
}

.row.g-3.mb-4 > .col-md-4:nth-child(2) .quick-card::before {
    background: linear-gradient(90deg, #ee9b3a, #f4b14f);
}

.row.g-3.mb-4 > .col-md-4:nth-child(3) .quick-card {
    background: linear-gradient(160deg, #f4fffb 0%, #e4f7ef 100%);
}

.row.g-3.mb-4 > .col-md-4:nth-child(3) .quick-card::before {
    background: linear-gradient(90deg, #1a8a67, #29a57f);
}

.kb-block {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(10, 45, 58, 0.09);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kb-block:hover {
    border-color: #9cc3ce;
    box-shadow: 0 14px 28px rgba(12, 62, 78, 0.15);
}

.kb-head {
    background: linear-gradient(125deg, #eaf6fb, #f5fbff);
    border-bottom: 1px solid var(--line);
    padding: 0.9rem 1rem;
}

.kb-body {
    padding: 1rem;
}

.article-chip {
    border: 1px solid #cfe3eb;
    border-left: 4px solid #2d8c98;
    border-radius: 12px;
    padding: 0.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #f3f9fd 100%);
    box-shadow: 0 4px 12px rgba(14, 56, 71, 0.08);
}

.article-chip:hover {
    border-color: #8fb8c6;
    box-shadow: 0 10px 20px rgba(14, 66, 84, 0.14);
}

.video-click-card {
    cursor: pointer;
}

.article-summary {
    min-height: 5.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-summary-lg {
    min-height: 7.2rem;
    -webkit-line-clamp: 5;
}

.filter-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.filter-wrap-center {
    justify-content: center;
}

.search-dynamic {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.dynamic-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #c8dce5;
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    background: linear-gradient(180deg, #ffffff, #edf6fa);
    color: #15414d;
    font-size: 0.8rem;
}

.chip-btn {
    border: 1px solid #bfd6df;
    background: linear-gradient(180deg, #ffffff, #edf6fa);
    color: #163842;
    border-radius: 999px;
    padding: 0.34rem 0.9rem;
    font-size: 0.83rem;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(12, 49, 60, 0.09);
    transition: all 0.22s ease;
}

.chip-btn:hover {
    transform: translateY(-1px);
    border-color: #94b8c4;
    box-shadow: 0 7px 15px rgba(13, 63, 77, 0.14);
}

.chip-btn.active {
    border-color: #0f6c78;
    background: linear-gradient(130deg, #0f5f6f, #0f6c78);
    color: #fff;
    box-shadow: 0 8px 16px rgba(15, 108, 120, 0.3);
}

.section-title {
    letter-spacing: 0.2px;
    color: #12343b;
}

.fade-up {
    animation: fadeUp 0.5s ease both;
}

.site-footer {
    background: #12343b;
    color: #ecf7f7;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-logo {
    display: inline-block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 0.45rem;
    background: #fff;
    padding: 2px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    display: inline-block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 3px;
}

.footer-muted {
    color: rgba(236, 247, 247, 0.86);
}

.right-nav-toggle {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1052;
    border: none;
    background: linear-gradient(140deg, #12343b, #0d6e6e);
    color: #fff;
    border-radius: 14px;
    padding: 0.65rem 0.8rem;
    box-shadow: 0 10px 22px rgba(10, 53, 64, 0.28);
}

.right-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 24, 30, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1053;
}

.right-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    background: #fff;
    border-left: 1px solid #d7e4e8;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1054;
    display: flex;
    flex-direction: column;
}

.right-nav-open .right-nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

.right-nav-open .right-nav-panel {
    transform: translateX(0);
}

.right-nav-head {
    padding: 1rem;
    background: linear-gradient(125deg, #12343b, #0d6e6e);
    color: #ecf7f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.right-nav-body {
    padding: 1rem;
    overflow-y: auto;
}

.right-nav-link {
    display: block;
    border: 1px solid #dde8ec;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    text-decoration: none;
    color: #13313a;
    margin-bottom: 0.55rem;
    transition: all 0.2s ease;
}

.right-nav-link:hover {
    border-color: #98bdc7;
    background: linear-gradient(145deg, #f2f9fc, #eef7fb);
}

.right-nav-cat a {
    color: #0d5b67;
    text-decoration: none;
    font-size: 0.92rem;
}

.right-nav-cat a:hover {
    text-decoration: underline;
}

.share-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1055;
    border: none;
    background: linear-gradient(140deg, #f2a541, #e8872a);
    color: #fff;
    border-radius: 14px;
    padding: 0.65rem 0.82rem;
    box-shadow: 0 10px 22px rgba(90, 48, 12, 0.28);
}

.share-panel {
    position: fixed;
    right: 18px;
    bottom: 72px;
    z-index: 1056;
    background: #fff;
    border: 1px solid #d9e5ea;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(9, 37, 47, 0.2);
    width: 210px;
    padding: 0.6rem;
    display: none;
}

.share-panel.open {
    display: block;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #18333d;
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
}

.share-link:hover {
    background: linear-gradient(145deg, #f2f9fc, #eef7fb);
}

.share-link i {
    font-size: 1.1rem;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
