body {
    font-family: 'Segoe UI', 'PingFang TC', 'Microsoft YaHei', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e2a3e;
}
p
{
    margin-bottom:6px;
}
.hero-section {
    background: linear-gradient(135deg, #0b5e7e 0%, #1b8c5e 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.hero-section h1 {
    font-weight: 600;
    font-size: 2em;
}
.hero-section .lead {
    font-size: 1em;
   
}
.section-title {
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
    font-size:1.25em;
}
.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #1b8c5e;
    margin-top: 8px;
}
.card-hover {
    
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.disease-category {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.2s;
}
.disease-category h5 {
    font-weight: 700;
    border-left: 4px solid #1b8c5e;
    padding-left: 12px;
    margin-bottom: 1rem;
    color: #0f3b2c;
}
.disease-list a {
    display: inline-block;
    background: #f0f4f8;
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    margin: 0.2rem 0.4rem;
    font-size: 0.85rem;
    color: #2c5a42;
    text-decoration: none;
    transition: 0.2s;
}
.disease-list a:hover {
    background: #1b8c5e;
    color: white;
}
.doctor-card img, .hospital-card img, .pharmacy-card img {
    margin:0 auto;
    height: 260px;
    width:auto; 
    display:block;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.article-item {
    border-bottom: none;
    padding: 0;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-item h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.article-item h6 a {
    color: #1e2a3e;
    text-decoration: none;
}

.article-item h6 a:hover {
    color: #1b8c5e;
}

.article-item p {
    font-size: 0.85rem;
    color: #5a6874;
    margin-bottom: 0;
}


.qa-grid {
    display: grid;
    
    gap: 1.5rem;
}

.qa-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.qa-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.qa-card-question {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: #1e2a3e;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    transition: background 0.2s;
    border-bottom: 1px solid #eef2f6;
}

.qa-card-question:hover {
    background: #f8fafc;
}

.qa-icon {
    width: 32px;
    height: 32px;
    background: #e8f3ef;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1b8c5e;
    font-size: 1rem;
}

.qa-card-question .qa-toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #9ca3af;
    font-size: 0.9rem;
}

.qa-card-question.active .qa-toggle-icon {
    transform: rotate(180deg);
    color: #1b8c5e;
}

.qa-card-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fefef9;
    border-top: 1px solid transparent;
}

.qa-card-answer.show {
    max-height: 300px;
    border-top-color: #e8f0ea;
    padding: 1rem 1.5rem;
}

.qa-card-answer p {
    margin: 0;
    line-height: 1.6;
    color: #4a5568;
    font-size: 13px;
}

.drug-carousel-new {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0 2rem;
}

.drug-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1.8rem;
}

.drug-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 10px rgba(0,0,0,0.01);
    transition: all 0.3s;
    border: 1px solid #f0f2f5;
    height: 100%;
    overflow:hidden;
}

.drug-card:hover {
    transform: translateY(-6px);
   
}

.drug-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1b8c5e;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}
.drug-name a{
    font-size:15px;
    font-weight: 400;
    color:#1b8c5e;
    text-decoration: none;
}

.drug-desc {
    font-size: 13px;
    color: #5a6e7c;
    line-height: 1.5;
    margin-bottom: 0;
}

.carousel-indicators {
    bottom: -3rem;
}

.carousel-indicators li {
    background-color: #cbd5e1;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 6px;
}

.carousel-indicators li.active {
    background-color: #1b8c5e;
    width: 8px;
    border-radius: 50%;
}



.footer {
    background-color: #0a2b24;
    color: #cddfda;
    padding: 3rem 0 1.5rem;
}
.footer a {
    color: #cbd5e0;
    text-decoration: none;
}
.footer a:hover {
    color: white;
}

        .nav-link {
    font-weight: 500;
}
.bg-light-green {
    background: #eef5f0;
}

/* 疾病列表 */

.tab-link {
    display: inline-block;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 400;
    border-radius: 20px;
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
    background: #ccc;
    margin: 0 0.5rem;
    margin-left:0px !important;
    text-decoration:none !important;
}
.tab-link.active {
    background: #1b8c5e;
    color: white;
    box-shadow: 0 4px 12px rgba(27,140,94,0.3);
}
.tab-link:hover:not(.active) {
    background: #e2e8f0;
    color: #1e2a3e;
    text-decoration: none;
}
.tab-border {
    border-bottom: 3px solid #e2e8f0;
    margin-top: -1px;
}

#searchheader,#deptTab,#diseaseGrid
{
    padding:1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border-radius:6px;
}
.category-level1 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.cat1-item {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}
.cat1-item.active ,.cat2-item.active,.cat1-item:hover,.cat2-item:hover {
    background: #1b8c5e;
    color: white;
    border-color: #1b8c5e;
}



.cat1-item a,.cat2-item a{
    color:#666;
    text-decoration: none !important;
}
.cat1-item.active a,.cat2-item.active a ,.cat1-item:hover a,.cat2-item:hover a{
    color:#fff;
}

.cat1-item  a{
    text-decoration: none !important;
}
.category-level2 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2rem;
}
.cat2-item {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.disease-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}
.disease-card-item a{ 
    font-size:13px;   
    width:100%;
    display:block;  
    transition: all 0.2s;
    color:#000;
    cursor: pointer;
    border-bottom:1px dashed #ccc;
    padding:3px 6px;
    text-decoration: none !important;
}
.disease-card-item a:hover
{
    color:#f14700;
}

#letterButtons
{
    margin-bottom:0px;
    border-bottom:0px;
    padding-bottom:0px;
}


/* 医生 */
.dept-sidebar {
            background: white;
            border-radius: 20px;
            padding: 1rem 0;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        .dept-item {
            padding: 0.75rem 1.2rem;
            cursor: pointer;
            transition: all 0.2s;
            border-left: 3px solid transparent;
            font-weight: 500;
            color: #2d3748;
        }
        .dept-item:hover {
            background-color: #f0fdf4;
            border-left-color: #1b8c5e;
            color: #1b8c5e;
        }
        .dept-item.active {
            background-color: #e6f7ef;
            border-left-color: #1b8c5e;
            color: #1b8c5e;
            font-weight: 600;
        }
        .dept-header {
            padding: 0.75rem 1.2rem;
            font-weight: 700;
            font-size: 1.1rem;
            background: #f8fafc;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            display:none;
        }
        .dept-header i {
            transition: transform 0.3s;
        }
        .dept-header.collapsed i {
            transform: rotate(-90deg);
        }
        .dept-group {
            border-bottom: 1px solid #edf2f7;
        }
        .dept-children {
            list-style: none;
            padding-left: 0;
            margin-bottom: 0;
            background: #ffffff;
        }
        .dept-children li {
            padding: 0.5rem 1.2rem 0.5rem 2rem;
            cursor: pointer;
            font-size: 0.9rem;
            color: #4a5568;
            transition: all 0.2s;
        }
         .dept-children li a{
            color:#000;
            text-decoration: none;
            width:100%;
            display:block;
         }
        .dept-children li:hover {
            background: #dce6ef;
            color: #1b8c5e;
        }
       

        .dept-children li.active {
            background: #dce6ef;
            color: #1b8c5e;
            font-weight: 500;
            border-radius: 0 20px 20px 0;
        }

         .dept-children li:hover a ,.dept-children li.active a{
            color:#1b8c5e;
        }
.card
{
    display:block;
    overflow:hidden;
}
.card-body
{
    padding:0.25em 0.6em;
}
.card-body a{
    margin-top:10px;
    margin-bottom:6px;
    width:100%;
    display:block;
}
.card-img-top
{
    height:215px;
    max-width:100%;
    width:auto;
    display:block;
    margin:0 auto;
}

h5.card-title
{
    font-size:1em;
}

.hospital-card .card-text
{
    font-size:12px;
}

/* 医生详情页 */

.doctor-avatar {
    width: 100%;
    max-width: 280px;
    border-radius: 24px;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.15);
}
.hospital-info-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
   
}
.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5em;
    font-size: 15px;
}
.info-icon {
    width: 32px;
    color: #1b8c5e;
    font-size: 1.2rem;
    margin-top: 2px;
}
.doctor-content {
    background: white;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    line-height: 1.75;
    font-size: 1.02rem;
    color: #2d3e50;
}
.doctor-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #1b8c5e;
}
.doctor-content h3:first-of-type {
    margin-top: 0;
}
.related-article-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    transition: all 0.2s;
}
.related-article-item:last-child {
    border-bottom: none;
}
.related-article-item:hover {
    background-color: #fefdf9;
    padding-left: 0.5rem;
}
.badge-specialty {
    background: #e8f3ef;
    color: #1b8c5e;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

.content_box h4,.content_box h3 {
    font-size: 1.125em;
    font-weight: 700;
    color: #1b8c5e;
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8f0ea;
    position: relative;
}

.content_box h4:first-of-type ,.content_box h3:first-of-type {
    margin-top: 0;
}

.content_box .info_text {
    font-size: 13px;
    line-height: 1.7;
    color: #2d3e50;
    margin-bottom: 1.25rem;
}

.content_box .info_text p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.content_box .info_text ul,
.content_box .info_text ol {
    margin: 0.5rem 0 0.75rem 0rem;
    padding-left: 0;
}

.content_box .info_text li {
    margin-bottom: 0.4rem;
    line-height: 1.65;
    list-style:none;
}

.content_box .info_text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #fefefe;
}

.content_box .info_text th,
.content_box .info_text td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.content_box .info_text th {
    background: #f0fdf4;
    font-weight: 600;
    color: #1b5e3f;
}

.content_box .info_text tr:nth-child(even) {
    background: #fafcfb;
}

.content_box .info_text strong,
.content_box .info_text b {
    color: #1b8c5e;
    font-weight: 600;
}

.content_box .info_text a {
    color: #1b8c5e;
    text-decoration: none;
    
}

.content_box .info_text a:hover {
    color: #fff;
   border-color:#1b8c5e;
   background:#1b8c5e;
}

.content_box .info_text br {
    display: block;
    margin: 0.25rem 0;
}

.info_text span{
    display:inline-block;
    margin-right:3px;
    color:#666;
    font-size:13px;
}

.content_box .info_text iframe{
    width:100% !important;
    height:300px !important;
}

.content_box .info_text h3{
    font-size:14px;

}
.content_box .info_text .tag_items
{
    display:inline-block;
    margin-right:5px;
}

.tag_items {
    position: relative;
    padding-left: 20px;
}

.tag_items:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #1b8c5e;
    font-weight: bold;
    font-size: 14px;
}

.tag_no_items {
    position: relative;
    padding-left: 20px;
}
.tag_no_items span{
    display:none;
}
.tag_no_items:before {
    content: "✗";
    position: absolute;
    left: 0;
    top: 0;
    color: #dc3545;
    font-weight: bold;
    font-size: 14px;
}


/* 医院 */
.hospital-header {
            background: white;
            border-radius: 24px;
            padding: 1.5rem;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            margin-bottom: 2rem;
        }
        .hospital-rating {
            display: inline-block;
            background: #fef9e6;
            padding: 0.3rem 0.8rem;
            border-radius: 30px;
            font-size: 0.85rem;
        }
        .info-card {
            background: white;
            border-radius: 20px;
            padding: 1.2rem;
            margin-bottom: 1.2rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.03);
            border: 1px solid #edf2f7;
        }
        .info-row {
            display: flex;
            align-items: flex-start;
            margin-bottom: 1rem;
            font-size: 0.95rem;
        }
        .info-icon {
            width: 32px;
            color: #1b8c5e;
            font-size: 1.1rem;
            margin-top: 2px;
        }
        .dept-tag {
            display: inline-block;
            background: #e8f3ef;
            color: #1b5e3f;
            padding: 0.4rem 1rem;
            border-radius: 30px;
            font-size: 0.85rem;
            margin: 0.2rem;
            transition: all 0.2s;
        }
        .dept-tag:hover {
            background: #1b8c5e;
            color: white;
            text-decoration: none;
        }
        .doctor-mini-card {
            background: #fefefe;
            border-radius: 16px;
            padding: 1rem;
            margin-bottom: 1rem;
            border: 1px solid #eef2f6;
            transition: all 0.2s;
        }
        .doctor-mini-card:hover {
            border-color: #c6e0d4;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }

.hos-card img
{
    width:auto;
    margin:0 auto;
    display:block;
    height:200px;
}

.hos-card .card-text{
    font-size:12px;
}

.pagination {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #2d3748;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination li a:hover {
    background: #e8f3ef;
    border-color: #1b8c5e;
    color: #1b8c5e;
    text-decoration: none;
}

.pagination li.active span {
    background: #1b8c5e;
    border-color: #1b8c5e;
    color: #ffffff;
    cursor: default;
}

.pagination li.disabled span {
    background: #f8fafc;
    border-color: #eef2f6;
    color: #cbd5e1;
    cursor: not-allowed;
}

.pagination li:first-child a,
.pagination li:first-child span {
    border-radius: 8px;
}

.pagination li:last-child a,
.pagination li:last-child span {
    border-radius: 8px;
}

.pagination .active span {
    box-shadow: 0 2px 6px rgba(27, 140, 94, 0.2);
}

.pagination li a i,
.pagination li span i {
    font-size: 12px;
}

.pagination.text-center {
    text-align: center;
}

.pagination.text-center ul {
    justify-content: center;
}

.article-card {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            transition: all 0.3s;
            height: 100%;
        }
        .article-card:hover {
            box-shadow: 0 12px 28px rgba(0,0,0,0.1);
        }
       
        .article-category {
            display: inline-block;
            background: #e8f3ef;
            color: #1b8c5e;
            font-size: 0.7rem;
            padding: 0.2rem 0.8rem;
            border-radius: 20px;
            margin-bottom: 0.5rem;
        }
        .article-title {
            font-size: 1.2em;
            font-weight: 700;
            margin-bottom: 0.5rem;
            line-height: 1.4;
        }
        .article-title a {
            color: #1e2a3e;
            text-decoration: none;
        }
        .article-title a:hover {
            color: #1b8c5e;
        }
        .article-meta {
            font-size: 0.8rem;
            color: #7f8c8d;
            margin-bottom: 0.5rem;
        }
        .article-summary {
            font-size: 0.875em;
            color: #4a5568;
            line-height: 1.5;
        }

.sidebar-card {
            background: white;
            border-radius: 20px;
            padding: 1.2rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }
        .sidebar-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #e8f0ea;
            color: #1b8c5e;
        }
        .hot-article-item {
            padding: 0.8rem 0;
            border-bottom: 1px solid #eef2f6;
        }
        .hot-article-item:last-child {
            border-bottom: none;
        }
        .hot-article-title {
            font-size: 0.9rem;
            font-weight: 400;
            margin-bottom: 0.2rem;
        }
        .hot-article-title a {
            color: #2d3748;
            text-decoration: none;
        }
        .hot-article-title a:hover {
            color: #1b8c5e;
        }
        .hot-article-date {
            font-size: 0.7rem;
            color: #a0aec0;
        }
        .category-tag {
            display: inline-block;
            background: #f0f4f8;
            color: #2d3748;
            padding: 0.3rem 0.8rem;
            border-radius: 30px;
            font-size: 0.8rem;
            margin: 0.2rem;
            transition: all 0.2s;
        }
        .category-tag:hover {
            background: #1b8c5e;
            color: white;
            text-decoration: none;
        }

.article-content {
            background: white;
            border-radius: 28px;
            padding: 2rem;
            box-shadow: 0 8px 24px rgba(0,0,0,0.05);
        }
        .article-header {
            border-bottom: 1px solid #e8f0ea;
            padding-bottom: 1rem;
            margin-bottom: 1.5rem;
        }
        .article-category {
            display: inline-block;
            background: #e8f3ef;
            color: #1b8c5e;
            font-size: 0.75rem;
            padding: 0.2rem 0.8rem;
            border-radius: 20px;
        }
        .article-title {
           
            margin: 0.8rem 0;
            color: #1e2a3e;
        }
        .article-meta {
            font-size: 0.85rem;
            color: #7f8c8d;
        }
        .article-body {
            font-size: 1em;
            line-height: 1.8;
            color: #2d3e50;
        }
        .article-body h2 {
            font-size: 1.5rem;
            margin: 1.5rem 0 0.8rem;
            color: #1b8c5e;
        }
        .article-body h3 {
            font-size: 1.2rem;
            margin: 1.2rem 0 0.6rem;
            color: #2d3748;
        }
        
        .article-body ul, .article-body ol {
            margin: 0.8rem 0 0.8rem 1.5rem;
        }
        .article-body li {
            margin-bottom: 0.4rem;
        }
        .article-body img {
            max-width: 100%;
            border-radius: 16px;
            margin: 1rem 0;
        }
        .article-body table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
        }
        .article-body th, .article-body td {
            border: 1px solid #e2e8f0;
            padding: 0.75rem;
        }
        .article-body th {
            background: #e8f3ef;
        }

        .disease-info-card {
            background: white;
            border-radius: 20px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }
        .info-row {
            display: flex;
            align-items: flex-start;
            margin-bottom: 1rem;
            font-size: 0.95rem;
            flex-wrap: wrap;
        }
        .info-label {
            width: 90px;
            font-weight: 700;
            color: #1b5e3f;
            flex-shrink: 0;
        }
        .info-value {
            flex: 1;
            color: #2d3e50;
        }
        .badge-info {
            background: #e8f3ef;
            color: #1b5e3f;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.8rem;
            margin-right: 0.5rem;
            display: inline-block;
        }
        .badge-info a{
            color:#1b5e3f;
            text-decoration: none;
        }
        .badge-info a:hover{
            color:#0f442b;
        }
        .article-card-sm, .qa-card-sm {
            background: white;
            border-radius: 16px;
            padding: 1rem;
            
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            transition: all 0.2s;
            height: 100%;
            border: 1px solid #edf2f7;
        }
        .article-card-sm:hover, .qa-card-sm:hover {
            border-color: #c6e0d4;
            transform: translateY(-2px);
        }
        .article-title-sm {
            font-size: 0.9em;
            font-weight: 600;
            margin-bottom: 0.3rem;
        }
        .article-title-sm a ,.qa-question-sm a,.hospital-name a{
            color: #1e2a3e;
            text-decoration: none;
        }
        .article-title-sm a:hover ,.qa-question-sm a:hover,.hospital-name a:hover {
            color: #1b8c5e;
        }
        .article-meta-sm ,.article-meta-sm{
            font-size: 0.7rem;
            color: #7f8c8d;
        }
        .qa-question-sm {
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 0.3rem;
            color: #1e2a3e;
        }
        .qa-answer-sm {
            font-size: 0.8rem;
            color: #5a6e7c;
            line-height: 1.4;
        }
        .hospital-card-sm {
            background: white;
            border-radius: 16px;
            padding: 1rem;
            margin-bottom: 1rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            transition: all 0.2s;
            height: 100%;
            border: 1px solid #edf2f7;
        }
        .hospital-card-sm:hover {
            border-color: #c6e0d4;
            transform: translateY(-2px);
        }
        .hospital-name {
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 0.3rem;
            color: #1b5e3f;
        }
        .hospital-address {
            font-size: 0.75rem;
            color: #7f8c8d;
        }
        .doctor-card-side {
            background: white;
            border-radius: 16px;
            padding: 1rem;
            margin-bottom: 1rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            transition: all 0.2s;
            display: flex;
            align-items: center;
            border: 1px solid #edf2f7;
        }
        .doctor-card-side:hover {
            border-color: #c6e0d4;
            transform: translateX(3px);
        }
        .doctor-card-side a{
            display:flex;
            text-decoration:none;
        }
        .doctor-avatar-side {
            width: 55px;
            height: 55px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 1rem;
        }
        .doctor-info-side {
            flex: 1;
        }
        .doctor-name-side {
            font-weight: 700;
            margin-bottom: 0.2rem;
            color: #1e2a3e;
        }
        .doctor-dept-side {
            font-size: 0.75rem;
            color: #1b8c5e;
            margin-bottom: 0.2rem;
        }
        .doctor-hospital-side {
            font-size: 0.7rem;
            color: #7f8c8d;
        }
        .grid-2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
        .btn-view-more {
            text-align: center;
            margin-top: 1rem;
        }
.sidebar-card {
            background: white;
            border-radius: 20px;
            padding: 1.2rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }
        .sidebar-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #e8f0ea;
            color: #1b8c5e;
        }

        .grid-3 {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
        }


        .disease-img-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .disease-img-card:hover {
            transform: scale(1.02);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }
        .disease-img {
            width: 100%;
            height: 150px;
            object-fit: cover;
        }
        .disease-img-caption {
            padding: 0.6rem;
            text-align: center;
            font-size: 0.8rem;
            color: #4a5568;
            background: #f8fafc;
        }
        .modal-img {
            max-width: 100%;
            max-height: 80vh;
            display: block;
            margin: 0 auto;
            border-radius: 12px;
        }
        .modal-caption {
            text-align: center;
            margin-top: 1rem;
            color: #e2e8f0;
        }

        .image-modal .modal-content {
            background: rgba(0,0,0,0.9);
            border: none;
            border-radius: 20px;
        }
        .image-modal .modal-header {
            border: none;
            padding: 0.8rem 1rem;
        }
        .image-modal .modal-body {
            padding: 1rem;
        }
        .image-modal .close {
            color: white;
            opacity: 0.8;
            font-size: 2rem;
        }
        .image-modal .close:hover {
            opacity: 1;
        }

        .drug-card {
            background: white;
            border-radius: 20px;
            padding: 1.2rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            transition: all 0.3s;
            height: 100%;
            
            border: 1px solid #edf2f7;
        }
        .drug-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 28px rgba(27,140,94,0.12);
            border-color: #c6e0d4;
        }
        .drug-name {
            font-size: 1.2rem;
            font-weight: 700;
            color: #1b8c5e;
            margin-bottom: 0.5rem;
        }
        .drug-name-en {
            font-size: 0.85rem;
            color: #7f8c8d;
            margin-bottom: 0.5rem;
            font-style: italic;
        }
        .drug-date {
            font-size: 0.8rem;
            color: #5a6e7c;
            margin-bottom: 0.5rem;
        }
        .drug-symptoms {
            font-size: 0.9rem;
            color: #2d3e50;
            line-height: 1.4;
            margin-top: 0.5rem;
            padding-top: 0.5rem;
            border-top: 1px solid #eef2f6;
        }
        .drug-symptoms-label {
            font-weight: 400;
            font-size:13px;
            color: #1b5e3f;
        }
    
.drug-detail-card {
            background: white;
            border-radius: 24px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 8px 24px rgba(0,0,0,0.05);
        }
        .drug-header {
            border-bottom: 2px solid #e8f0ea;
            padding-bottom: 1rem;
            margin-bottom: 1.5rem;
        }
        .drug-zh-name {
            font-size: 1.5em;
            font-weight: 700;
            color: #1b8c5e;
            margin-bottom: 0.3rem;
        }
        .drug-en-name {
            font-size: 14px;
            color: #7f8c8d;
            
        }
        .info-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        .info-item {
            display: flex;
            align-items: flex-start;
        }
        .info-label {
            width: 100px;
            font-weight: 700;
            color: #1b5e3f;
            flex-shrink: 0;
        }
        .info-value {
            flex: 1;
            color: #2d3e50;
        }
        .badge-category {
            display: inline-block;
            background: #e8f3ef;
            color: #1b5e3f;
            padding: 0.3rem 1rem;
            border-radius: 30px;
            font-size: 0.8rem;
            margin-right: 0.5rem;
        }
        .content_box h4 {
           
            font-weight: 700;
            color: #1b8c5e;
            margin: 1.5rem 0 1rem 0;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #e8f0ea;
        }
        .content_box h4:first-of-type {
            margin-top: 0;
        }
        .content_box .info_text {
            font-size: 1rem;
            line-height: 1.7;
            color: #2d3e50;
            margin-bottom: 1.25rem;
        }
        .content_box .info_text p {
            margin-bottom: 0.75rem;
            line-height: 1.7;
        }
        .content_box .info_text ul {
            margin: 0.5rem 0 0.75rem 1.5rem;
            padding-left: 0;
        }
        .content_box .info_text li {
            margin-bottom: 0.4rem;
            line-height: 1.65;
        }
        .content_box .info_text table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
            background: #ffffff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
        }
        .content_box .info_text thead tr {
            background: #e8f3ef;
            border-bottom: 2px solid #cde6dc;
        }
        .content_box .info_text tbody tr {
            border-bottom: 1px solid #eef2f6;
            transition: background 0.2s;
        }
        .content_box .info_text tbody tr:hover {
            background: #f9fdfb;
        }
        .content_box .info_text th,
        .content_box .info_text td {
            padding: 0.9rem 1rem;
            text-align: left;
            vertical-align: top;
        }
        .content_box .info_text th {
            font-weight: 400;
            color: #1b5e3f;
            font-size: 13px;
        }
        .content_box .info_text td {
            color: #2d3e50;
            font-size: 13px;
        }
        .content_box .info_text tr:last-child td {
            border-bottom: none;
        }
        .content_box .info_text tfoot tr {
            background: #f8fafc;
            font-weight: 500;
        }
        .content_box .info_text tfoot td {
            border-top: 2px solid #cde6dc;
        }
        .content_box .info_text strong {
            color: #1b8c5e;
            font-weight: 600;
        }
        .sidebar-card {
            background: white;
            border-radius: 20px;
            padding: 1.2rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }
        .sidebar-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #e8f0ea;
            color: #1b8c5e;
        }
        .related-drug-item {
            padding: 0.8rem 0;
            border-bottom: 1px solid #eef2f6;
        }
        .related-drug-item:last-child {
            border-bottom: none;
        }
        .related-drug-name {
            font-weight: 400;
            
        }
        .related-drug-name a {
            color: #2d3748;
            font-size:14px;
            margin-bottom:6px;
            text-decoration: none;
        }
        .related-drug-name a:hover {
            color: #1b8c5e;
        }
        .related-drug-symptoms {
            font-size: 0.75rem;
            color: #7f8c8d;
        }

        .navbar-light .navbar-nav .nav-link
        {
            color:#000 !important;
        }
        .navbar-light .navbar-nav .active > .nav-link, .navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .nav-link.show, .navbar-light .navbar-nav .show > .nav-link
        {
            color:#1b8c5e !important;
        }
        
.footer h5{
    font-size:1em;
}
.footer p{
    font-size:13px;
}

.list-unstyled a.text-dark{
    color:#000 !important;
    font-size:14px;
    text-decoration: none;
}
.list-unstyled a.text-dark:hover{
    color:#1b8c5e !important;
}

.hos-h2-title
{
    font-size:1.35em;
}
.content_box ul ,.content_box ol
{
    padding:0px;
}
.content_box ul li,.content_box ol li{
    list-style:none;
}
.index-doc .card-text
{
    font-size:13px;
}

.navbar-light .navbar-toggler
{
    border:none !important;
    color:#1b8c5e !important;
}
.navbar-light .navbar-toggler-icon
{
    background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(18, 114, 112, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")
}

.text-success
{
    color:#14786c !important;
}
@media (max-width:1366px)
{
    .card-img-top
    {
        height:200px;
    }
    h5.card-title
    {
        font-size:14px;
    }
        .section-title
        {
            font-size:1.15em;
        }
        .hero-section h1
        {
            font-size:1.5em;
        }
        .hero-section .lead
        {
            font-size:.875em;
        }
        .drug-zh-name
        {
            font-size:1.35em;
        }

        .content_box .info_text th, .content_box .info_text td
        {
            padding:0.45em 0.8em;
        }
        .content_box .info_text
        {
            font-size:13px;
        }
        .hos-h2-title
{
    font-size:1.25em;
}

.index-doc .card-text
{
    font-size:12px;
}


}

@media (max-width:1200px)
{
    .card-img-top
    {
        height:160px;
    }
    .hero-section h1
    {
        font-size:1.2em;
    }
    .drug-zh-name
    {
        font-size:1.2em;
    }
    .hos-h2-title
{
    font-size:1.15em;
}
}
@media (max-width: 992px) {
    .dept-header {
        display:block;
    }
    .drug-card {
        flex: 0 0 calc(50% - 0.9rem);
    }
    .disease-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }
    
}


@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1em;
    }
    .section-title {
        font-size: 1em;
    }
    .doctor-card img, .hospital-card img {
        height: 160px;
    }

    .qa-grid {
        
        gap: 1rem;
    }
    
    .drug-name {
        font-size: 1.1rem;
    }
    
    .drug-desc {
        font-size: 0.85rem;
    }  
    
    .qa-card-question {
        font-size: 0.95rem;
        padding: 1rem 1.2rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .disease-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .tab-link {
        padding: 6px 10px;
        font-size: 13px;
        margin: 0 0.3rem;
    }
    #searchheader, #deptTab, #diseaseGrid
    {
        padding:0.8em 0.6em ;
    }
    .pagination {
        gap: 4px;
    }
    
    .pagination li a,
    .pagination li span {
        min-width: 26px;
        height: 26px;
        padding: 0 5px;
        font-size: 12px;
    }

    .grid-2,.grid-3 {
                grid-template-columns: 1fr;
                gap: 0.8rem;
            }
            .info-label {
                width: 80px;
            }


}

@media (max-width:480px)
{
    .disease-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
