/**
 * 医院预约挂号系统 - 前台样式
 * 石家庄远大中医皮肤病医院
 */

/* ===== 全局 ===== */
body {
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a { color: #1a6b3a; }
a:hover { color: #2d9b5a; text-decoration: none; }

/* ===== Hero Banner ===== */
.hero-banner {
    background: linear-gradient(135deg, #0d4a28 0%, #1a6b3a 40%, #2d9b5a 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.badge-expert-tag {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    border-radius: 30px;
    padding: 8px 24px;
    font-size: 0.85rem;
    letter-spacing: 4px;
    display: inline-block;
    margin-bottom: 10px;
}
.opacity-9 { opacity: .9; }
.opacity-8 { opacity: .8; }
.opacity-7 { opacity: .7; }

/* ===== 快速导航 ===== */
.quick-nav a {
    color: #333;
    text-decoration: none;
    transition: all .2s;
}
.quick-nav-item {
    border-right: 1px solid #eee;
}
.quick-nav-item:last-child { border-right: none; }
.quick-nav a:hover { background: #f0faf4; }

/* ===== Section Header ===== */
.section-title {
    font-weight: 700;
    color: #1a3a2a;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #2d9b5a;
    border-radius: 2px;
}

/* ===== 医生卡片 ===== */
.doctor-card {
    transition: transform .2s, box-shadow .2s;
    border-radius: 12px !important;
    overflow: hidden;
}
.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}
.avatar-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e8f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}
.doctor-avatar { position: relative; }
.expert-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #f0ad00;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    z-index: 1;
}
.specialty-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

/* ===== 步骤 ===== */
.step-item { position: relative; }
.step-number {
    width: 36px;
    height: 36px;
    background: #2d9b5a;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.step-icon { margin-bottom: 5px; }

/* ===== 统计数字 ===== */
.stat-number { font-size: 2rem; line-height: 1.2; }
.feature-list li { font-size: 0.95rem; }

/* ===== 页面头部 ===== */
.page-header { background: linear-gradient(135deg, #1a6b3a, #2d9b5a); }
.breadcrumb { background: transparent; }
.text-white-75 { color: rgba(255,255,255,.75); }

/* ===== 步骤面板 ===== */
.step-panel { border-radius: 10px !important; overflow: hidden; }
.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    font-weight: 700;
    margin-right: 8px;
}

/* ===== 医生选择卡片 ===== */
.doctor-select-card {
    border-radius: 8px !important;
    transition: all .2s;
}
.doctor-select-card:hover { border-color: #2d9b5a !important; background: #f0faf4; }
.selected-doctor { border-color: #1a6b3a !important; background: #e8f5ee !important; }

/* ===== 日期号源 ===== */
.date-list { scrollbar-width: thin; }
.date-list::-webkit-scrollbar { height: 4px; }
.date-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.date-item { flex-shrink: 0; }
.date-label { font-size: .75rem; color: #555; }
.date-value { font-size: .7rem; }

.slot-btn {
    border-radius: 6px;
    padding: 5px 8px;
    font-size: .75rem;
    line-height: 1.4;
    border: 1px solid #ddd;
    cursor: not-allowed;
    user-select: none;
    min-width: 70px;
}
.slot-available {
    border-color: #2d9b5a;
    color: #1a6b3a;
    background: #f0faf4;
    cursor: pointer;
    transition: all .15s;
}
.slot-available:hover, .slot-selected {
    background: #2d9b5a !important;
    color: #fff !important;
    border-color: #1a6b3a !important;
}
.slot-full { background: #f8d7da; border-color: #f5c6cb; color: #721c24; }
.slot-closed { background: #f0f0f0; color: #aaa; border-color: #ddd; }
.slot-remain { font-weight: 700; font-size: .8rem; }

/* ===== 预约表单 ===== */
.selected-info { font-size: .9rem; }

/* ===== 底部 ===== */
.footer-area a { color: rgba(255,255,255,.6); }
.footer-area a:hover { color: #fff; }

/* ===== 查询页 ===== */
.appointment-record-card {
    border-radius: 10px;
    overflow: hidden;
    border: none !important;
    transition: box-shadow .2s;
}
.appointment-record-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important; }
.record-header { padding: 12px 16px; }
.record-body { padding: 12px 16px; }

/* ===== 医生详情页 ===== */
.doctor-detail-card { border-radius: 12px; overflow: hidden; }
.doctor-big-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #e8f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 响应式 ===== */
@media (max-width: 576px) {
    .hero-banner { padding: 40px 0; }
    .hero-banner h1 { font-size: 1.6rem; }
    .hero-banner h2 { font-size: 1.1rem; }
    .quick-nav-item a .fa-2x { font-size: 1.4rem !important; }
    .stat-number { font-size: 1.5rem; }
}
