* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7fc;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 导航 */
.navbar {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color: #f1c40f;
}
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}
/* 首屏 */
.hero {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.hero-search {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.hero-search input {
    width: 50%;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.hero-search button {
    padding: 12px 30px;
    background: #f39c12;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}
.hero-search button:hover {
    background: #e67e22;
}
/* 筛选 */
.filters {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}
.filter-group label {
    font-weight: 600;
}
.filter-group select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 0.9rem;
}
/* 网格 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px 0;
}
.card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.rank {
    background: #2a5298;
    color: #fff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge-green {
    background: #2ecc71;
    color: #fff;
}
.badge-blue {
    background: #3498db;
    color: #fff;
}
.region, .desc {
    margin: 5px 0;
    color: #666;
}
.card-footer {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.9rem;
}
.card-actions {
    display: flex;
    gap: 10px;
}
.btn {
    display: inline-block;
    padding: 10px 25px;
    background: #2a5298;
    color: #fff;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
}
.btn:hover {
    background: #1e3c72;
    transform: scale(1.02);
}
.btn-sm {
    padding: 6px 15px;
    font-size: 0.9rem;
}
.btn-outline {
    background: transparent;
    border: 2px solid #2a5298;
    color: #2a5298;
}
.btn-outline:hover {
    background: #2a5298;
    color: #fff;
}
.btn-primary {
    background: #f39c12;
}
.btn-primary:hover {
    background: #e67e22;
}
/* 评价 */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.review-item {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.review-header {
    margin-bottom: 5px;
}
.rating {
    color: #f1c40f;
}
/* 页脚 */
.footer {
    background: #1e3c72;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}
.footer a {
    color: #f1c40f;
    text-decoration: none;
}
/* 管理后台 */
.admin-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}
.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}
.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
}
.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.admin-form h2 {
    margin: 30px 0 15px;
    color: #2a5298;
}
.entry-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}
.entry-group input {
    flex: 1;
    min-width: 120px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.error {
    color: #e74c3c;
    text-align: center;
}
.success {
    color: #2ecc71;
    text-align: center;
}
/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #1e3c72;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 20px;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-search input {
        width: 70%;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}
/* 图表容器 */
canvas {
    max-width: 100%;
    height: auto;
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.section {
    padding: 50px 0;
}
.section h2 {
    margin-bottom: 30px;
    color: #1e3c72;
    font-size: 1.8rem;
}
.success-preview {
    text-align: center;
}
.success-preview canvas {
    max-width: 600px;
    margin: 0 auto;
}
/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}
/* 医生卡片 */
.doctor-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.doctor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2a5298;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}
.doctor-info h3 {
    margin-bottom: 5px;
}
.doctor-info .title {
    color: #2a5298;
    font-weight: 600;
}
/* 费用表格 */
.cost-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.cost-table th, .cost-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.cost-table th {
    background: #2a5298;
    color: #fff;
}
.cost-table tr:hover {
    background: #f4f7fc;
}
/* 预约表单 */
.appointment-form {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
}
.appointment-form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 600;
}
.appointment-form input, .appointment-form select, .appointment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
}
.appointment-form textarea {
    height: 100px;
}