/* 四川高草堂中医医学研究院 - 泥巴色主题 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&display=swap');

:root {
    /* 泥巴色主题 */
    --primary: #8B7355;        /* 泥巴色主色 */
    --primary-dark: #654321;   /* 深棕色 */
    --primary-light: #A0826D;  /* 浅泥巴色 */
    --secondary: #8B4513;      /* 赭色 */
    --accent: #D2B48C;         /* 棕褐色 */
    --gold: #C9A962;           /* 暗金色点缀 */
    --bg: #F5F5DC;             /* 米黄色背景 */
    --bg-light: #FAF8F3;       /* 浅米白 */
    --bg-dark: #EDE8DF;        /* 深米色 */
    --text: #3D2914;           /* 深棕文字 */
    --text-light: #6B5344;     /* 浅棕文字 */
    --white: #FFFEF5;          /* 暖白色 */
    --shadow: 0 4px 15px rgba(101, 67, 33, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
    line-height: 1.6; 
    color: var(--text); 
    background: var(--bg);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 头部 */
.header { 
    background: linear-gradient(180deg, #FAF8F3 0%, #F5F5DC 100%);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-top { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 0;
    border-bottom: 1px solid var(--accent);
}
.logo img { height: 65px; }
.header-contact span { 
    margin-left: 25px; 
    color: var(--text-light);
    font-size: 14px;
}
.header-contact i { 
    color: var(--primary); 
    margin-right: 5px;
}

.nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 0; 
}
.nav ul { display: flex; gap: 35px; }
.nav a { 
    color: var(--text); 
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding-bottom: 3px;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.btn-consult {
    background: var(--primary);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-consult:hover { 
    background: var(--primary-dark); 
    transform: translateY(-2px);
}

/* 幻灯片 */
.hero-slider { 
    position: relative; 
    height: 550px; 
    overflow: hidden; 
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.slide.active { opacity: 1; }
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(61,41,20,0.75) 0%, rgba(61,41,20,0.4) 100%);
}
.slide-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 650px;
    padding-left: 50px;
}
.slide-content h1 {
    font-size: 44px;
    margin-bottom: 20px;
    line-height: 1.3;
}
.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}
.btn-slide {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 30px;
    transition: all 0.3s;
}
.btn-slide:hover { background: var(--primary-dark); }

.slider-nav { position: absolute; top: 50%; width: 100%; transform: translateY(-50%); }
.slider-nav button {
    position: absolute;
    background: rgba(139,115,85,0.7);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
}
.slider-nav .prev { left: 25px; }
.slider-nav .next { right: 25px; }
.slider-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.dot.active { background: var(--white); width: 25px; border-radius: 6px; }

/* 核心优势 */
.features { background: var(--bg-light); padding: 60px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-item {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--accent);
    transition: all 0.3s;
}
.feature-item:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow);
    border-color: var(--primary);
}
.feature-icon {
    width: 65px;
    height: 65px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.feature-icon i { font-size: 26px; color: var(--white); }
.feature-item h3 { font-size: 18px; margin-bottom: 12px; color: var(--text); }
.feature-item p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* 区块标题 */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title .subtitle { color: var(--primary); font-size: 14px; letter-spacing: 2px; }
.section-title h2 { font-size: 34px; color: var(--text); margin: 10px 0; }
.section-title .divider { width: 60px; height: 3px; background: var(--primary); margin: 0 auto; }

/* 关于我们 */
.about { padding: 80px 0; background: var(--white); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text .lead { 
    font-size: 18px; 
    color: var(--primary); 
    margin-bottom: 20px;
    font-weight: 500;
}
.about-text p { color: var(--text-light); margin-bottom: 18px; line-height: 1.8; }
.btn-more { color: var(--primary); font-weight: 500; }
.btn-more i { margin-left: 5px; }
.about-image img { width: 100%; border-radius: 10px; border: 3px solid var(--accent); }

/* 治疗领域 */
.treatment { padding: 80px 0; background: var(--bg); }
.treatment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.treatment-card {
    background: var(--white);
    padding: 35px 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--accent);
    transition: all 0.3s;
}
.treatment-card:hover { 
    border-color: var(--primary);
    transform: translateY(-5px);
}
.treatment-card i { font-size: 42px; color: var(--primary); margin-bottom: 15px; }
.treatment-card h3 { font-size: 18px; margin-bottom: 10px; }
.treatment-card p { font-size: 13px; color: var(--text-light); }

/* 专家团队 */
.team { padding: 80px 0; background: var(--bg-light); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.team-card { text-align: center; }
.team-photo {
    width: 180px;
    height: 220px;
    margin: 0 auto 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid var(--accent);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-info h3 { font-size: 18px; color: var(--text); }
.team-title { color: var(--primary); font-size: 14px; margin-top: 5px; }

/* CTA */
.cta { padding: 70px 0; background: var(--primary); text-align: center; color: var(--white); }
.cta h2 { font-size: 32px; margin-bottom: 15px; }
.cta p { font-size: 16px; opacity: 0.9; margin-bottom: 30px; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; }
.btn-cta { background: var(--white); color: var(--primary); padding: 12px 35px; border-radius: 25px; font-weight: 500; }
.btn-cta-outline { border: 2px solid var(--white); color: var(--white); padding: 12px 35px; border-radius: 25px; }

/* 底部 */
.footer { background: var(--text); color: var(--white); padding: 50px 0 20px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; margin-bottom: 30px; }
.footer-info h3 { font-size: 22px; margin-bottom: 15px; }
.footer-info p { margin-bottom: 10px; opacity: 0.85; }
.footer-info i { width: 20px; margin-right: 8px; color: var(--accent); }
.footer-links h4 { font-size: 18px; margin-bottom: 15px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { opacity: 0.8; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.7; }

/* 响应式 - 移动端适配 */
@media (max-width: 768px) {
    /* 头部 */
    .header { position: relative; }
    .header-top { flex-direction: column; gap: 10px; padding: 8px 0; }
    .logo img { height: 45px; }
    .header-contact { display: none; }
    
    /* 导航 - 移动端改为简洁版 */
    .nav { 
        flex-wrap: wrap; 
        justify-content: center;
        gap: 8px;
        padding: 10px 0;
    }
    .nav ul { 
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center;
        gap: 8px 15px;
        width: 100%;
        order: 2;
    }
    .nav a { 
        font-size: 13px; 
        padding: 5px 8px;
    }
    .btn-consult {
        order: 1;
        width: 100%;
        text-align: center;
        padding: 8px 15px;
        font-size: 13px;
    }
    
    /* 幻灯片 */
    .hero-slider { height: 280px; }
    .slide-content { padding: 0 15px !important; text-align: center; }
    .slide-content h1 { font-size: 20px !important; margin-bottom: 10px; }
    .slide-content p { font-size: 13px; margin-bottom: 15px; display: none; }
    .btn-slide { padding: 10px 20px; font-size: 13px; }
    .slider-nav button { width: 32px; height: 32px; font-size: 12px; }
    .slider-dots { bottom: 10px; }
    .dot { width: 8px; height: 8px; }
    .dot.active { width: 18px; }
    
    /* 区块通用 */
    .section-title h2 { font-size: 22px; }
    .section-title .divider { width: 40px; height: 2px; }
    
    /* 核心优势 */
    .features { padding: 30px 0; }
    .features-grid { grid-template-columns: 1fr; gap: 15px; }
    .feature-item { padding: 20px 15px; }
    .feature-icon { width: 50px; height: 50px; }
    .feature-icon i { font-size: 20px; }
    .feature-item h3 { font-size: 16px; }
    .feature-item p { font-size: 13px; }
    
    /* 关于我们 */
    .about { padding: 30px 0; }
    .about-content { grid-template-columns: 1fr; gap: 20px; }
    .about-text .lead { font-size: 16px; }
    .about-text p { font-size: 14px; }
    .about-image { order: -1; }
    
    /* 治疗领域 */
    .treatment { padding: 30px 0; }
    .treatment-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .treatment-card { padding: 20px 10px; }
    .treatment-card i { font-size: 28px; margin-bottom: 10px; }
    .treatment-card h3 { font-size: 14px; }
    .treatment-card p { font-size: 12px; display: none; }
    
    /* 专家团队 */
    .team { padding: 30px 0; }
    .team-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .team-photo { width: 100%; height: 160px; }
    .team-info h3 { font-size: 14px; }
    .team-title { font-size: 12px; }
    
    /* CTA */
    .cta { padding: 40px 0; }
    .cta h2 { font-size: 20px; }
    .cta p { font-size: 14px; }
    .cta-buttons { flex-direction: column; gap: 10px; }
    .btn-cta, .btn-cta-outline { width: 100%; text-align: center; }
    
    /* 底部 */
    .footer { padding: 30px 0 15px; }
    .footer-content { grid-template-columns: 1fr; gap: 25px; }
    .footer-info h3 { font-size: 18px; }
    .footer-info p { font-size: 13px; }
    .footer-links h4 { font-size: 16px; }
    .footer-links li { margin-bottom: 8px; }
    .footer-bottom { font-size: 12px; }
}

/* 更小屏幕 */
@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .nav ul { gap: 5px 10px; }
    .nav a { font-size: 12px; padding: 4px 6px; }
    .treatment-grid, .team-grid { grid-template-columns: 1fr; }
}

/* 后台样式 */
.admin-body { background: var(--bg); font-family: 'Microsoft YaHei', sans-serif; }
.admin-header { background: var(--primary); color: var(--white); padding: 15px 20px; }
.admin-container { display: flex; }
.admin-sidebar { width: 220px; background: var(--white); min-height: calc(100vh - 60px); border-right: 1px solid var(--accent); }
.admin-sidebar a { display: block; padding: 15px 20px; border-bottom: 1px solid var(--bg); color: var(--text); }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--primary); color: var(--white); }
.admin-main { flex: 1; padding: 20px; }
.admin-card { background: var(--white); padding: 25px; border-radius: 8px; border: 1px solid var(--accent); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--bg); }
.admin-table th { background: var(--bg); color: var(--text); }
.btn { padding: 8px 20px; background: var(--primary); color: var(--white); border: none; border-radius: 5px; cursor: pointer; }
.btn:hover { background: var(--primary-dark); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid var(--accent); 
    border-radius: 5px;
    background: var(--white);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; }