/* 导入名医堂主题 */
@import url('theme-mingyitang.css');

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: normal;
    font-family: 'ZhiMangXing', '楷体', 'KaiTi', serif;
    letter-spacing: 0.15em;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

.nav-link.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero 区域 */
.hero {
    padding: 120px 0 80px;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-family: 'ZhiMangXing', '楷体', 'KaiTi', serif;
    letter-spacing: 0.1em;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* 功能特点 */
.features {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-family: 'ZhiMangXing', '楷体', 'KaiTi', serif;
    letter-spacing: 0.12em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.feature-content {
    padding: 1.5rem;
    text-align: center;
}

.feature-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-family: 'ZhiMangXing', '楷体', 'KaiTi', serif;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* 服务介绍 */
.services {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-item {
    display: flex;
    gap: 2rem;
    align-items: center;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateX(10px);
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
}

.service-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-family: 'ZhiMangXing', '楷体', 'KaiTi', serif;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    transform: translateX(5px);
    display: inline-block;
}

/* 环境展示 */
.environment {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 24, 16, 0.9), transparent);
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: white;
    font-size: 1.2rem;
    font-family: 'ZhiMangXing', '楷体', 'KaiTi', serif;
    letter-spacing: 0.1em;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
}

.stat h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'ZhiMangXing', '楷体', 'KaiTi', serif;
}

.stat p {
    color: var(--text-light);
}

/* 联系方式 */
.contact {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
}

.contact-icon {
    font-size: 1.5rem;
}

/* 页脚 */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* 图片优化 */
img {
    /* 防止布局偏移 */
    aspect-ratio: attr(width) / attr(height);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* features-grid样式已移到mobile-optimization.css */

    /* stats样式已移到mobile-optimization.css */

    .contact-methods {
        flex-direction: column;
        gap: 1rem;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image img {
        height: 300px;
    }
    
    .feature-image {
        height: 150px;
    }
    
    /* gallery样式已移到mobile-optimization.css */
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选中文本样式 */
::selection {
    background-color: var(--primary-color);
    color: white;
}

/* 移动端关键优化 - 直接嵌入避免@import问题 */
@media (max-width: 768px) {
    /* 整体间距缩小 */
    .container {
        padding: 0 12px !important;
    }
    
    section {
        padding: 40px 0 !important;
    }
    
    .section-title {
        margin-bottom: 1.5rem !important;
        font-size: clamp(1.8rem, 5vw, 2.2rem) !important;
    }
    
    /* 按钮缩小 */
    .btn {
        padding: 8px 16px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
    }
    
    .btn-large {
        padding: 10px 20px !important;
        font-size: 15px !important;
    }
    
    .hero-buttons {
        gap: 8px !important;
        margin-top: 1rem !important;
    }
    
    /* 核心服务2x2布局 - 缩小间距 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .feature-content {
        padding: 12px !important;
    }
    
    .feature-content h3 {
        font-size: clamp(0.9rem, 3.2vw, 1.1rem) !important;
        margin-bottom: 6px !important;
    }
    
    .feature-content p {
        font-size: clamp(0.7rem, 2.2vw, 0.8rem) !important;
        line-height: 1.3 !important;
    }
    
    .feature-image {
        height: clamp(100px, 20vw, 140px) !important;
    }
    
    /* 环境展示2x5布局 - 缩小间距 */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    
    .gallery-item img {
        height: clamp(100px, 22vw, 140px) !important;
    }
    
    .gallery-overlay {
        padding: 8px 6px 6px !important;
    }
    
    .gallery-overlay h4 {
        font-size: clamp(0.7rem, 2.5vw, 0.8rem) !important;
        letter-spacing: 0.02em !important;
    }
    
    /* 统计数据一行三栏 - 更紧凑 */
    .stats {
        display: flex !important;
        justify-content: space-between !important;
        gap: 4px !important;
        margin-top: 1.5rem !important;
        padding: 12px !important;
        background: var(--bg-white) !important;
        border-radius: 8px !important;
        box-shadow: var(--shadow-sm) !important;
    }
    
    .stat {
        flex: 1 !important;
        padding: 8px 4px !important;
        text-align: center !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        position: relative !important;
    }
    
    .stat:not(:last-child)::after {
        content: '' !important;
        position: absolute !important;
        right: 0 !important;
        top: 15% !important;
        height: 70% !important;
        width: 1px !important;
        background: var(--border-color) !important;
    }
    
    .stat h3 {
        font-size: clamp(1rem, 3.5vw, 1.4rem) !important;
        margin-bottom: 2px !important;
        color: var(--primary-color) !important;
        font-weight: 600 !important;
        line-height: 1.1 !important;
    }
    
    .stat p {
        font-size: clamp(0.65rem, 2.2vw, 0.75rem) !important;
        color: var(--text-light) !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }
    
    /* 名医团队改为一排三个 */
    .services-list {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .service-item {
        flex: 1 !important;
        min-width: calc(33.333% - 6px) !important;
        padding: 10px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .service-number {
        font-size: clamp(1.2rem, 4vw, 1.6rem) !important;
        margin-bottom: 6px !important;
        opacity: 0.4 !important;
    }
    
    .service-content {
        flex: 1 !important;
    }
    
    .service-content h3 {
        font-size: clamp(0.85rem, 3vw, 1rem) !important;
        margin-bottom: 4px !important;
        line-height: 1.2 !important;
    }
    
    .service-content p {
        font-size: clamp(0.7rem, 2.2vw, 0.8rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }
    
    .service-link {
        font-size: clamp(0.7rem, 2.2vw, 0.8rem) !important;
    }
}

/* 黑名单公示样式 */
.blacklist {
    background: var(--light-bg);
    padding: 80px 0;
}

.blacklist .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.blacklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
    min-height: 200px;
}

.blacklist-item {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--danger-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.blacklist-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.blacklist-item h4 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.blacklist-item p {
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.blacklist-item strong {
    color: var(--text-color);
    font-weight: 500;
}

.blacklist-item .violation-text {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    line-height: 1.6;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.report-section {
    text-align: center;
    margin-bottom: 2rem;
}

.report-form {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-top: 32px;
}

.report-form h3 {
    color: var(--text-color);
    margin-bottom: 24px;
    font-size: 1.5rem;
    text-align: center;
}

.report-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.report-form .form-group {
    display: flex;
    flex-direction: column;
}

.report-form .form-group.full-width {
    grid-column: 1 / -1;
}

.report-form label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.report-form .required {
    color: var(--danger-color);
}

.report-form input,
.report-form textarea,
.report-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.report-form input:focus,
.report-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.report-form textarea {
    min-height: 100px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blacklist {
        padding: 60px 0;
    }
    
    .blacklist-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .blacklist-item {
        padding: 20px;
    }
    
    .report-form {
        padding: 24px;
        margin: 24px 0;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-buttons .btn {
        width: 100%;
    }
}