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

img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', serif;
    color: #3a2a1a;
    line-height: 1.6;
    background-color: #f5f0eb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: linear-gradient(135deg, #8b1a1a 0%, #b22222 50%, #c0392b 100%);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 60px;
    max-width: 100%;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item-has-children {
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    min-width: 160px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    border-top: 3px solid #b22222;
}

.nav-item-has-children:hover .sub-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-nav li a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.sub-nav li a:hover {
    background-color: #fdf2f2;
    color: #b22222;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 15px;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    width: 150px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.search-btn img {
    width: 20px;
    height: auto;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.hero-section {
    position: relative;
    overflow: hidden;
    height: 450px;
    min-height: 300px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-item:first-child,
.slider-item.active {
    opacity: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.slider-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.slider-content p {
    font-size: 24px;
    font-weight: 600;
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.indicator {
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #fff;
    transform: scale(1.2);
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    font-size: 30px;
    padding: 15px 20px;
    padding: 0;
    width: 45px;
    height: 45px;
    line-height: 45px;
    display: block;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 50%;
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-icon,
.section-title-img {
    display: block;
    margin: 0 auto 10px;
    max-width: 100%;
    height: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: #8b1a1a;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.section-title p {
    font-size: 20px;
    color: #666;
}

.departments-section {
    padding: 80px 0;
    background: url(../images/keshi_bg.png) no-repeat center top;
    background-size: cover;
    background-color: #8b1a1a;
    position: relative;
}

.departments-section .container {
    position: relative;
    z-index: 2;
}

.departments-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 26, 26, 0.85);
    z-index: 1;
}

.departments-section .section-header img {
    filter: brightness(1.2);
}

.departments-section .section-title h2,
.departments-section .section-title p {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
}

.department-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.department-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.dept-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    -webkit-clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
}

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

.dept-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dept-name {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 4px;
    line-height: 1.4;
}

.dept-english {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    letter-spacing: 1px;
    text-transform: capitalize;
}

.dept-desc {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
    text-align: center;
    max-width: 100%;
}

.doctor-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ebe0d3 0%, #f5f0eb 100%);
    position: relative;
    overflow: hidden;
}

.doctor-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #b22222 20%, #d4a574 50%, #b22222 80%, transparent 100%);
}

.doctor-section .container {
    position: relative;
    z-index: 2;
}

.doctor-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.doctor-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 12px;
    border: 3px solid #d4a574;
    box-shadow: 0 10px 30px rgba(139, 26, 26, 0.15);
}

.doctor-info img {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.doctor-info p {
    font-size: 16px;
    color: #5a4535;
    line-height: 2;
}

.health-section {
    padding: 80px 0;
    background: url(../images/bg_yun.jpg) no-repeat center top, linear-gradient(135deg, #8b1a1a 0%, #b22222 100%);
    background-size: cover;
    color: #fff;
    position: relative;
}

.health-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 26, 26, 0.8);
    z-index: 1;
}

.health-section .container {
    position: relative;
    z-index: 2;
}

.health-section .section-title h2,
.health-section .section-title p {
    color: #fff;
}

.health-content p {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.health-card {
    display: block;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

.health-card:hover {
    transform: translateY(-5px);
}

.health-card img {
    width: 100%;
    height: auto;
    min-height: 150px;
    max-height: 200px;
    object-fit: cover;
}

.health-card h3 {
    padding: 20px;
    font-size: 18px;
    text-align: center;
}

.about-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f5f0eb 0%, #ebe0d3 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(178, 34, 34, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(212, 165, 116, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #b22222 20%, #d4a574 50%, #b22222 80%, transparent 100%);
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.about-section .section-title h2 {
    color: #8b1a1a;
}

.about-text {
    text-align: center;
    margin-bottom: 40px;
}

.about-text p {
    font-size: 18px;
    color: #5a4535;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-images {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(139, 26, 26, 0.1);
}

.about-images img {
    flex: 1;
    min-width: 0;
    height: 250px;
    object-fit: cover;
}

.about-intro {
    display: flex;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, #fff 0%, #faf6f0 100%);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(178, 34, 34, 0.15);
    box-shadow: 0 10px 40px rgba(139, 26, 26, 0.08);
    position: relative;
}

.about-intro::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 8px;
    pointer-events: none;
}

.about-intro img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
    border: 3px solid #d4a574;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.intro-text {
    position: relative;
    z-index: 2;
}

.intro-text h3 {
    color: #8b1a1a;
    margin-bottom: 20px;
    font-size: 26px;
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 15px;
}

.intro-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #b22222, #d4a574);
}

.intro-text p {
    color: #5a4535;
    line-height: 2;
    font-size: 16px;
}

.heritage-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f5f0eb 0%, #ebe0d3 100%);
    position: relative;
    overflow: hidden;
}

.heritage-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #b22222 20%, #d4a574 50%, #b22222 80%, transparent 100%);
}

.heritage-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #b22222 20%, #d4a574 50%, #b22222 80%, transparent 100%);
}

.heritage-section .container {
    position: relative;
    z-index: 2;
}

.heritage-section .section-title h2 {
    color: #8b1a1a;
}

.heritage-section .section-title p {
    color: #5a4535;
}

.heritage-content {
    text-align: center;
}

.heritage-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 3px solid #d4a574;
    box-shadow: 0 10px 30px rgba(139, 26, 26, 0.1);
}

.heritage-content p {
    font-size: 18px;
    color: #5a4535;
    max-width: 800px;
    margin: 0 auto;
    line-height: 2;
}

.news-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f5f0eb 0%, #ebe0d3 100%);
    position: relative;
    overflow: hidden;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #b22222 20%, #d4a574 50%, #b22222 80%, transparent 100%);
}

.news-section .container {
    position: relative;
    z-index: 2;
}

.news-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.news-column {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
}

.news-column h3 {
    color: #b22222;
    margin-bottom: 20px;
    font-size: 20px;
}

.news-column h3 a {
    color: #b22222;
    text-decoration: none;
}

.news-card {
    background: #f8f4ef;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.news-card img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.news-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.news-card h4 a {
    color: #333;
    text-decoration: none;
}

.news-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.news-list {
    list-style: none;
    margin-bottom: 20px;
}

.news-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.news-list li a:hover {
    color: #b22222;
}

/* 新闻列表分页条（list_4 / 首页新闻通用） */
.page-bar {
    margin: 25px 0 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
    min-height: 20px;
}

.page-bar span,
.page-bar a {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.page-bar .page-status {
    border: none;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
    color: #666;
}

.page-bar a:hover,
.page-bar .page-num-current {
    background: #b22222;
    color: #fff;
    border-color: #b22222;
}

.news-list li a span {
    color: #999;
    font-size: 12px;
}

.more-link {
    display: flex;
    justify-content: center;
}

.more-link img {
    width: 100%;
    max-width: 120px;
    height: auto;
}

.footer {
    background: #2a1a0e;
    color: #fff;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h3 {
    margin-bottom: 20px;
    color: #d4a574;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #ccc;
}

.footer-qr {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.footer-qr img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 5px;
}

.footer-map img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a3520;
}

.footer-bottom p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

@media (max-width: 1024px) {
    .departments-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .doctor-content {
        gap: 40px;
    }
    
    .doctor-image img {
        width: 280px;
    }
    .search-input {width: 100px;}
    .nav-link {
        padding: 6px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #8b1a1a;
        padding: 20px;
        flex-direction: column;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .nav-item-has-children {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sub-nav {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        background: rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        display: none;
    }
    
    .nav-item-has-children.active .sub-nav {
        display: block;
    }
    
    .sub-nav li a {
        color: #fff;
        padding: 10px 35px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .search-box {
        display: none;
    }
    
    .slider-content h1 {
        font-size: 28px;
    }
    
    .slider-content p {
        font-size: 16px;
    }
    
    .slider-prev,
    .slider-next {
        font-size: 20px;
        padding: 10px 15px;
    }
    
    .departments-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .dept-icon {
        width: 60px;
        height: 60px;
    }

    .dept-name {
        font-size: 12px;
        letter-spacing: 3px;
    }
    
    .page-content .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-content .dept-icon {
        width: 70px;
        height: 70px;
    }
    
    .departments-page-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px;
    }
    
    .departments-page-grid .dept-icon {
        width: 60px;
        height: 60px;
    }
    
    .departments-page-grid .dept-name {
        font-size: 12px;
        letter-spacing: 3px;
    }
    
    .doctor-content {
        flex-direction: column;
        text-align: center;
    }
    
    .doctor-image img {
        width: 100%;
        max-width: 300px;
    }
    
    .health-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-images {
        flex-direction: column;
    }
    
    .about-images img {
        height: 150px;
    }
    
    .about-intro {
        flex-direction: column;
        padding: 20px;
    }
    
    .about-intro img {
        width: 100%;
        max-width: 280px;
        aspect-ratio: 1 / 1;
        height: auto;
    }
    
    .news-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-qr {
        justify-content: center;
    }
}

.page-content {
    padding: 60px 0;
    min-height: calc(100vh - 300px);
    background: linear-gradient(180deg, #f5f0eb 0%, #ebe0d3 100%);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 32px;
    color: #b22222;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-content .departments-grid {
    max-width: 100%;
}

.page-content .department-card {
    padding: 25px 15px;
    background: #fff;
    color: #3a2a1a;
    border: 1px solid #e8e0d5;
}

.page-content .department-card:hover {
    background: #fff;
    border-color: #b22222;
}

.page-content .dept-icon {
    width: 90px;
    height: 90px;
}

.page-content .dept-name {
    color: #3a2a1a;
}

.page-content .dept-english {
    font-size: 12px;
    color: #999;
}

.page-content .dept-info {
    margin-top: 5px;
}

.departments-page-section {
    padding: 60px 0;
    background: url(../images/keshi_bg.png) no-repeat center top;
    background-size: cover;
    background-color: #8b1a1a;
    position: relative;
}

.departments-page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 26, 26, 0.9);
    z-index: 1;
}

.departments-page-section .container {
    position: relative;
    z-index: 2;
}

.departments-page-grid {
    max-width: 1100px;
    margin: 0 auto;
    grid-template-columns: repeat(7, 1fr);
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.departments-page-grid .department-card {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px 10px;
}

.departments-page-grid .department-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.departments-page-grid .dept-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    -webkit-clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
}

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

.departments-page-grid .dept-name {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 4px;
    line-height: 1.4;
}

.departments-page-grid .dept-english {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

.page-header p {
    font-size: 16px;
    color: #666;
}

/* 搜索页 */
.search-form-box {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.search-form-box form {
    display: flex;
    gap: 10px;
}

.search-form-box .search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.search-form-box .btn-primary {
    padding: 12px 30px;
    background: #b22222;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.search-results {
    max-width: 800px;
    margin: 0 auto;
}

.search-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.search-item h3 {
    margin-bottom: 10px;
}

.search-item h3 a {
    color: #333;
    font-size: 18px;
    text-decoration: none;
}

.search-item h3 a:hover {
    color: #b22222;
}

.search-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.search-date {
    color: #999;
    font-size: 12px;
}

/* 搜索结果关键词红色高亮标记 */
.search-hl {
    color: #e60000;
    font-weight: 600;
}

.page-icon {
    width: 100%;
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.article-nav {
    max-width: 800px;
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.article-nav .back-list {
    align-self: flex-start;
    color: #fff;
    background: linear-gradient(90deg, #b22222, #d4a574);
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: opacity .2s;
}
.article-nav .back-list:hover {
    opacity: .9;
}
.article-nav .prev-next {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
    padding-top: 16px;
}
.article-nav .prev,
.article-nav .next {
    flex: 1 1 0;
    min-width: 200px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    word-break: break-all;
}
.article-nav .next {
    text-align: right;
}
.article-nav .prev a,
.article-nav .next a {
    color: #333;
    text-decoration: none;
}
.article-nav .prev a:hover,
.article-nav .next a:hover {
    color: #b22222;
    text-decoration: underline;
}

.article-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 12px 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.about-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.about-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.about-card h3 {
    padding: 15px 20px 5px;
    font-size: 18px;
    color: #333;
}

.about-card p {
    padding: 0 20px 15px;
    color: #666;
    font-size: 14px;
}

.article-text h3 {
    color: #b22222;
    margin-bottom: 15px;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #b22222;
}

.article-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}
.article-text li>p {margin: 0;}

.article-text ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.article-text ul li {
    color: #666;
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
}

.article-text ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #b22222;
    font-weight: bold;
}

.news-list-page {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

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

.news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.news-item h3 {
    margin-bottom: 10px;
}

.news-item h3 a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.news-item h3 a:hover {
    color: #b22222;
}

.news-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.academy-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.academy-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.academy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.academy-card img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
}

.academy-card h3 {
    padding: 20px;
    font-size: 18px;
    color: #333;
}

.academy-card h3 a {
    color: #333;
    text-decoration: none;
}

.academy-card p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.courses-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.course-card img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
}

.course-card h3 {
    padding: 15px;
    font-size: 16px;
    color: #333;
}

.course-card h3 a {
    color: #333;
    text-decoration: none;
}

.course-card p {
    padding: 0 15px 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.registration-form,
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #b22222;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8b1a1a 0%, #b22222 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 26, 26, 0.4);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h3 {
    color: #b22222;
    margin-bottom: 10px;
    font-size: 18px;
}

.contact-item p {
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .article-content {
        padding: 20px;
    }
    
    .academy-content {
        grid-template-columns: 1fr;
    }
    
    .courses-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .registration-form,
    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .departments-page-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .departments-page-grid .dept-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero-section {
        height: 300px;
    }
    
    .slider-content h1 {
        font-size: 20px;
    }
    
    .slider-content p {
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title p {
        font-size: 16px;
    }
    
    .health-card img {
        height: 150px;
    }
    
    .news-card img {
        height: 120px;
    }
}

/* 悬浮侧边栏 - 科普治疗视频案例分享 */
.floating-sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-toggle {
    width: 55px;
    padding: 10px;
    text-align: center;
    /*writing-mode: vertical-rl;
    text-orientation: upright;*/
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #b22222, #8b1a1a);
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    letter-spacing: 3px;
    box-shadow: 2px 0 12px rgba(139, 26, 26, 0.3);
    transition: width 0.3s ease;
    user-select: none;
}

.sidebar-content {
    position: absolute;
    left: 55px;
    top: 0;
    background: #fff;
    border: 1px solid #e8d5c4;
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 20px 18px;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    min-width: 180px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #8b1a1a;
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.5;
    letter-spacing: 1px;
}

.goto-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, #b22222 0%, #8b1a1a 100%);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
}

.goto-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 34, 34, 0.4);
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-toggle,
    .sidebar-content,
    .goto-btn {
        transition: none;
    }
}