/* 中国药店门户网站首页 */
:root {
    --primary: #C8111F;
    --primary-dark: #a01218;
    --primary-light: #fff;
    --text: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border: #e8e8e8;
    --bg-page: #fff;
    --page-padding-x: clamp(16px, 5vw, 80px);
    --header-height: 80px;
    --logo-height: 48px;
    --nav-font-size: 18px;
    --nav-padding-x: 18px;
    --search-width: 280px;
    --search-height: 36px;
    --grid-gap: 18px;
    --base-font-size: 14px;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

html {
    height: 100%;
    min-width: 0;
}

html {
    min-height: 100vh;
    min-height: 100dvh;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: var(--base-font-size);
    color: var(--text);
    background: #fff;
    line-height: 1.5;
    min-width: 0;
    min-height: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

/* 顶栏以下区域独立滚动，顶栏不参与滚动、不受 body 滚动条影响 */
.portal-main {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* 全宽区块：左右 50px 内边距 */
.page-section {
    width: 100%;
    padding: 0 var(--page-padding-x);
    box-sizing: border-box;
}

/* ========== 顶栏 ========== */
.site-header {
    position: relative;
    flex-shrink: 0;
    z-index: 1000;
    background: #fff;
    padding: 0 var(--page-padding-x);
    border-bottom: 1px solid #C8111F;
}

.header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-content: stretch;
    position: relative;
    height: var(--header-height);
    gap: 24px;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    min-width: 0;
}

.portal-con {
    padding: 30px var(--page-padding-x) 0;
    box-sizing: border-box;
    background: #fff;
}

.site-logo {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo img {
    height: var(--logo-height);
    width: auto;
    display: block;
}

.site-nav {
    position: static;
    height: 100%;
    transform: none;
    display: flex;
    justify-content: center;
    align-self: stretch;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 var(--nav-padding-x);
    font-size: var(--nav-font-size);
    font-weight: 500;
    color: #3D3D3D;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.site-nav a:hover {
    color: #C8111F;
}

.site-nav a.active {
    background: #C8111F;
    color: #fff;
}

.site-nav a.active:hover {
    color: #fff;
}

.site-nav a::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: transparent;
    border-radius: 2px;
}

.site-nav a.active::after {
    background: #fff;
}

.header-search-btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 96px;
    height: var(--search-height);
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
}

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

.header-search-btn .search-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-search-btn .search-icon svg {
    width: 16px;
    height: 16px;
}

/* ========== 主轮播 ========== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: clamp(180px, 15vw, 320px);
    overflow: hidden;
    border-radius: 20px;
}

.hero-slides,
.promo-slides {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-carousel .carousel-slide img {
    border-radius: 12px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.45);
}

.carousel-arrow.prev {
    left: clamp(16px, 4vw, 60px);
}

.carousel-arrow.next {
    right: clamp(16px, 4vw, 60px);
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dots span.active {
    background: #fff;
    transform: scale(1.2);
}

/* ========== 广告条轮播 ========== */
.promo-carousel {
    position: relative;
    width: 100%;
    margin-top: 10px;
    height: clamp(120px, 10vw, 200px);
    overflow: hidden;
    border-radius: 12px;
}

.promo-carousel .carousel-slide img {
    border-radius: 12px;
}

.hero-carousel.is-single .carousel-controls,
.promo-carousel.is-single .carousel-controls {
    display: none !important;
}

/* ========== 医生投稿 ========== */
.submit-cta {
    padding: 20px 0 18px;
    background: var(--bg-page);
}

.submit-card-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.submit-card {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 116px;
    padding: 20px 28px;
    border: 1px solid rgba(219, 11, 31, 0.08);
    border-radius: 12px;
    background: linear-gradient(110deg, #fff1f2 0%, #fff 100%);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.submit-card-pharmacist {
    border-color: rgba(239, 124, 0, 0.08);
    background: linear-gradient(110deg, #fff4e6 0%, #fff 100%);
}

.submit-card-learning {
    border-color: rgba(16, 126, 205, 0.08);
    background: linear-gradient(110deg, #eef8ff 0%, #fff 100%);
}

.submit-card-icon {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.submit-card-learning .submit-card-icon {
    width: 78px;
    height: 78px;
}

.submit-card-body {
    min-width: 0;
}

.submit-card h3 {
    margin: 0 0 8px;
    color: #d90d21;
    font-size: 20px;
    font-weight: 700;
}

.submit-card-pharmacist h3 {
    color: #ef7c00;
}

.submit-card-learning h3 {
    color: #107ecd;
}

.submit-card p {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

.submit-card button {
    min-width: 90px;
    height: 28px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #df0b1f, #c80418);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.submit-card-pharmacist button {
    background: linear-gradient(90deg, #ff8a00, #ef6c00);
}

.submit-card-learning button {
    background: linear-gradient(90deg, #1c9ae8, #0875c6);
    cursor: default;
}

.submit-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(2px);
}

.submit-modal {
    position: relative;
    width: min(674px, 100%);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 48px 42px 32px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.submit-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #f6f6f6;
    color: #999;
    font-size: 20px;
    line-height: 28px;
    cursor: pointer;
}

.submit-modal-close:hover {
    background: #fff0f0;
    color: var(--primary);
}

.submit-modal-content {
    color: #111;
    font-size: 14px;
    line-height: 1.9;
}

.submit-modal-content p {
    margin: 0 0 16px;
}

.submit-modal-content p:not(:first-child) {
    text-indent: 2em;
}

.submit-modal-content strong {
    font-weight: 700;
}

.submit-modal-mail {
    text-indent: 0 !important;
}

.submit-modal-welcome {
    margin: 34px 0 26px !important;
    color: #ff0000;
    font-weight: 700;
    text-align: center;
    text-indent: 0 !important;
}

.submit-modal-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding-top: 4px;
}

.submit-modal-actions button {
    min-width: 88px;
    height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-modal-primary {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
}

.submit-modal-primary:hover {
    background: #a90d1a;
}

/* ========== 三栏主内容 ========== */
.main-content {
    padding: 24px 0 32px;
    background: var(--bg-page);
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.35fr) minmax(400px, 0.95fr) minmax(220px, 0.7fr);
    gap: var(--grid-gap);
    align-items: stretch;
    width: 100%;
}

.panel {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-width: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.panel-header h2,
.panel-header h3 {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.disease-panel .panel-header h2 {
    font-size: clamp(18px, 1.4vw, 20px);
}

.latest-panel .panel-header h3 {
    color: var(--text);
    font-size: clamp(16px, 1.2vw, 18px);
}

.side-stack .panel-header h3 {
    font-size: clamp(16px, 1.2vw, 18px);
}

.panel-header .more {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.panel-header .more:hover {
    color: var(--primary);
}

.disease-panel,
.latest-panel,
.side-stack {
    padding: 16px 18px;
}

.latest-panel,
.side-stack {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.latest-panel .panel-header,
.qa-section .panel-header {
    flex-shrink: 0;
}

.latest-panel .article-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 4px;
}

.side-stack .sidebar-section:first-child {
    flex-shrink: 0;
}

.qa-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    margin-bottom: 0;
}

.qa-section .qa-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 4px 8px;
}

.portal-info {
    width: 100%;
    padding: 0 clamp(0px, 3.5vw, 50px);
}

/* 疾病种网格 */
.disease-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 12px 14px;
}

.panel-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 24px 12px;
    font-size: 13px;
}

.disease-card {
    min-height: 86px;
    min-width: 0;
    display: grid;
    grid-template-columns: clamp(46px, 4vw, 58px) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(200, 17, 31, 0.12);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--tone), #fff);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.disease-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 22, 29, 0.1);
}

.disease-icon {
    width: clamp(46px, 4vw, 58px);
    height: clamp(46px, 4vw, 58px);
    display: grid;
    place-items: center;
    color: var(--icon);
    background: rgba(255, 255, 255, 0.66);
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 800;
    flex-shrink: 0;
    overflow: hidden;
}

.disease-icon.has-img {
    background: transparent;
}

.disease-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.disease-card > span:last-child {
    min-width: 0;
}

.disease-card > span:last-child strong {
    display: block;
    color: var(--icon);
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.25;
    word-break: break-all;
}

.disease-card > span:last-child > span {
    display: block;
    margin-top: 5px;
    color: #2a2a2a;
    font-size: clamp(12px, 0.95vw, 14px);
}

.article-item {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    border-radius: var(--radius);
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.article-thumb {
    flex-shrink: 0;
    width: clamp(96px, 8vw, 120px);
    height: clamp(60px, 5vw, 70px);
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

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

.article-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: clamp(60px, 5vw, 70px);
}

.article-info h4 {
    font-size: clamp(14px, 1vw, 15px);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.article-meta .author {
    flex: 1;
    min-width: 0;
    color: var(--text-secondary);
}

.article-meta .views {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-meta .views::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 16px;
}

.tag-item {
    padding: 4px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    background: #f5f5f5;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.qa-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.qa-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.qa-avatar {
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 50%;
    background: #f5f1ee center/cover no-repeat;
    flex-shrink: 0;
}

.qa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qa-info {
    min-width: 0;
}

.qa-info strong {
    display: block;
    font-size: 15px;
}

.qa-info p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 数据统计条 ========== */
.stats-bar {
    padding: 0 0 32px;
    background: var(--bg-page);
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 20px);
    width: 100%;
    padding: 14px clamp(16px, 2vw, 26px);
    background: linear-gradient(180deg, #fff, #fff8f1);
    border: 1px solid #f0ded3;
    border-radius: var(--radius);
    box-sizing: border-box;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1vw, 13px);
    min-width: 0;
}

.stat-mark {
    color: #d89a38;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.stat-item > span:last-child {
    min-width: 0;
}

.stat-item > span:last-child strong {
    display: block;
    color: var(--primary);
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 700;
    white-space: nowrap;
}

.stat-item > span:last-child > span {
    display: block;
    margin-top: 2px;
    color: #4c4c4c;
    font-size: clamp(12px, 0.9vw, 13px);
    white-space: nowrap;
}

/* ========== 占位页 ========== */
.page-placeholder {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 80px;
}

.page-placeholder h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.page-placeholder p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========== 药宝儿学习平台 ========== */
.yaobaoer-main {
    display: flex;
}

.yaobaoer-qrcode-wrap {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 72px;
}

.yaobaoer-qrcode {
    display: block;
    width: min(320px, 72vw);
    height: auto;
}

/* ========== 自适应断点：窄屏换行，避免挤压变形 ========== */
@media (max-width: 1400px) {
    :root {
        --nav-padding-x: 14px;
        --nav-font-size: 16px;
        --search-width: 240px;
    }
}

@media (max-width: 1200px) {
    .site-header {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .header-inner {
        grid-template-columns: auto minmax(0, 1fr);
        height: auto;
        gap: 8px 18px;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        height: 46px;
        justify-content: flex-start;
        margin: 0 calc(var(--page-padding-x) * -1);
        padding: 0 var(--page-padding-x);
    }

    .header-search-btn {
        justify-self: end;
    }

    .home-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }

    .side-stack {
        grid-column: 1 / -1;
        height: auto !important;
    }

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

@media (max-width: 992px) {
    :root {
        --header-height: 72px;
        --logo-height: 42px;
        --nav-font-size: 15px;
        --nav-padding-x: 10px;
        --search-width: 200px;
    }

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

    .latest-panel,
    .side-stack {
        height: auto !important;
    }

    .latest-panel .article-list,
    .qa-section .qa-list {
        overflow-y: visible;
        flex: none;
        min-height: auto;
    }

    .qa-section {
        flex: none;
        min-height: auto;
    }

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

    .stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --page-padding-x: 24px;
        --nav-font-size: 14px;
        --nav-padding-x: 8px;
        --search-width: 160px;
    }

    .site-nav a {
        gap: 6px;
    }

    .portal-con {
        padding-top: 18px;
    }

    .portal-info {
        padding: 0;
    }

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

    .stats-strip {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-item {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    :root {
        --page-padding-x: 16px;
        --header-height: 64px;
        --search-width: 130px;
    }

    .header-inner {
        gap: 12px;
    }

    .site-logo img {
        max-width: 150px;
        height: auto;
        max-height: var(--logo-height);
    }

    .header-search-btn {
        min-width: auto;
        padding: 0 14px;
    }

    .site-nav a {
        font-size: 12px;
        padding: 0 6px;
    }
}

/* 低于 1280 时保持桌面版布局，由浏览器滚动承载，避免继续挤压后错位 */
@media (max-width: 1279px) {
    :root {
        --page-padding-x: 48px;
        --header-height: 80px;
        --logo-height: 48px;
        --nav-font-size: 16px;
        --nav-padding-x: 12px;
        --search-width: 240px;
    }

    html,
    body {
        min-width: 1280px;
        min-height: 720px;
    }

    body {
        overflow-x: auto;
    }

    .site-header {
        padding: 0 var(--page-padding-x);
    }

    .header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        height: var(--header-height);
        gap: 18px;
    }

    .site-logo img {
        width: auto;
        height: var(--logo-height);
        max-width: none;
        max-height: none;
    }

    .site-nav {
        grid-column: auto;
        grid-row: auto;
        height: 100%;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .site-nav a {
        gap: 10px;
        padding: 0 var(--nav-padding-x);
        font-size: var(--nav-font-size);
    }

    .header-search-btn {
        min-width: 96px;
        padding: 0 20px;
    }

    .portal-con {
        padding: 30px var(--page-padding-x) 0;
    }

    .portal-info {
        padding: 0 32px;
    }

    .home-grid {
        grid-template-columns: minmax(330px, 1.25fr) minmax(360px, 1fr) minmax(200px, 0.7fr);
    }

    .side-stack {
        grid-column: auto;
        height: auto !important;
    }

    .latest-panel {
        height: auto !important;
    }

    .disease-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .article-thumb {
        width: 110px;
        height: 66px;
    }

    .article-info {
        min-height: 66px;
    }

    .stats-strip {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .stat-item {
        justify-content: center;
    }
}
