* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}
.container { max-width: 480px; margin: 0 auto; background: #fff; min-height: 100vh; }
/* 头部区域 */
.header { background: linear-gradient(135deg, #c9a96e, #b8956a); text-align: center; padding: 20px 15px; }
.header h1 { color: #fff; font-size: 20px; font-weight: 600; margin-bottom: 5px; padding: 0 45px; }
.header .subtitle { color: rgba(255,255,255,0.9); font-size: 14px; }
.clinic-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 6px 8px 8px; }
.clinic-tag { display: inline-block; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.55); color: #fff; font-size: 11px; line-height: 1.5; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.clinic-tags:empty { display: none; }

/* 病种筛选区域 */
.disease-filter { background: #fff; padding: 12px 15px; border-bottom: 1px solid #f0f0f0; }

/* 一级分类（横向滚动） */
.category-scroll { display: flex; overflow-x: auto; gap: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-btn { flex-shrink: 0; padding: 6px 16px; border: none; border-radius: 16px; font-size: 13px; color: #666; background: #f5f5f5; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.category-btn:hover { background: #ede8e0; }
.category-btn.active { background: #c9a96e; color: #fff; }

/* 二级分类 */
.subcategory-scroll { display: none; padding-top: 12px; gap: 8px; border-top: 1px solid #f0f0f0; margin-top: 12px; flex-wrap: wrap; }
.subcategory-scroll.show { display: flex; }
.subcategory-btn { flex-shrink: 0; padding: 6px 14px; border-radius: 16px; font-size: 13px; color: #666; background: #f5f5f5; cursor: pointer; transition: all 0.2s; white-space: nowrap; margin-bottom: 6px; }
.subcategory-btn:hover { background: #ede8e0; color: #8b6914; }
.subcategory-btn.active { background: #c9a96e; color: #fff; }

/* 三级病种标签（仅展示，不可点击） */
.disease-scroll { display: none; padding-top: 10px; gap: 6px; flex-wrap: wrap; border-top: 1px dashed #eee; margin-top: 10px; }
.disease-scroll.show { display: flex; }
.disease-tag { flex-shrink: 0; padding: 4px 10px; border-radius: 10px; font-size: 11px; color: #999; background: #f8f8f8; white-space: nowrap; margin-bottom: 4px; }

/* 日历头部 */
.calendar-header { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 12px 15px; border-bottom: 1px solid #f0f0f0; }
.calendar-header .month-title { font-size: 15px; font-weight: bold; color: #333; display: flex; align-items: center; }
.calendar-header .toggle-btn { background: none; border: 1px solid #ddd; color: #666; font-size: 12px; margin-left: 10px; cursor: pointer; padding: 3px 10px; border-radius: 12px; }
.calendar-header .toggle-btn:hover { border-color: #c9a96e; color: #c9a96e; }
.calendar-header .nav-btn { background: #c9a96e; color: #fff; border: none; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.calendar-header .nav-btn:hover { background: #b8956a; }
.calendar-header .nav-btn:disabled { background: #ddd; cursor: not-allowed; }
/* 日期横向滚动条 */
.date-scroll { display: flex; overflow-x: auto; overflow-y: hidden; background: #fff; padding: 10px 15px; border-bottom: 1px solid #f0f0f0; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-x; }
.date-scroll::-webkit-scrollbar { display: none; }
.date-scroll-item { flex-shrink: 0; width: 50px; text-align: center; padding: 8px 5px; cursor: pointer; transition: all 0.2s; border-radius: 8px; }
.date-scroll-item:hover { background: #f5f5f5; }
.date-scroll-item.active { background: #c9a96e; color: #fff; }
.date-scroll-item.past { color: #ccc; cursor: not-allowed; }
.date-scroll-item.has-schedule { position: relative; }
.date-scroll-item.has-schedule::after { content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background: #c9a96e; border-radius: 50%; }
.date-scroll-item.active.has-schedule::after { background: #fff; }
.date-scroll-item .day { font-size: 16px; font-weight: bold; }
.date-scroll-item .weekday { font-size: 11px; color: #999; margin-top: 2px; }
.date-scroll-item.active .weekday { color: rgba(255,255,255,0.9); }
.date-scroll-item.other-month .day { color: #bbb; }
.date-scroll-item.other-month .weekday { color: #ccc; }
.date-scroll-item.other-month.active .day { color: #fff; }
.date-scroll-item.other-month.active .weekday { color: rgba(255,255,255,0.9); }

/* 日历网格展开视图 */
.calendar-grid { display: none; grid-template-columns: repeat(7, 1fr); background: #fff; border-bottom: 1px solid #f0f0f0; }
.calendar-grid.expanded { display: grid; }
.calendar-weekday { text-align: center; padding: 8px 4px; font-size: 12px; color: #999; background: #fafafa; }
.calendar-day { text-align: center; padding: 10px 4px; font-size: 14px; color: #333; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; min-height: 45px; }
.calendar-day:hover { background: #f5f5f5; }
.calendar-day.active { background: #c9a96e; color: #fff; }
.calendar-day.today { border: 1px solid #c9a96e; }
.calendar-day.other-month { color: #ccc; }
.calendar-day.past { color: #ccc; cursor: not-allowed; }
.calendar-day.has-schedule { position: relative; }
.calendar-day.has-schedule::after { content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background: #c9a96e; border-radius: 50%; }
.calendar-day.active.has-schedule::after { background: #fff; }
.doctor-list { padding: 15px; }
.doctor-card { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 15px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: all 0.2s; cursor: pointer; }
.doctor-card:hover { border-color: #c9a96e; box-shadow: 0 4px 12px rgba(201,169,110,0.2); }
.doctor-avatar { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid #ddd; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #666; }
.doctor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor-info { flex: 1; margin-left: 12px; display: flex; flex-direction: column; }
.doctor-name { font-size: 17px; font-weight: bold; color: #333; }
.doctor-title { font-size: 13px; color: #666; margin-left: 8px; }
.doctor-fee { font-size: 13px; color: #e64a19; margin-left: 10px; font-weight: 500; }
.doctor-specialty { font-size: 13px; color: #888; margin-top: 6px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; line-clamp: 4; }
.doctor-bottom { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #eee; gap: 10px; }
.doctor-bottom span { flex: 1; line-height: 1.4; }
.btn-appointment { background: #c9a96e; color: #fff; border: none; padding: 8px 24px; border-radius: 4px; font-size: 14px; cursor: pointer; transition: background 0.3s; }
.btn-appointment:hover { background: #b8956a; }
.no-doctor { text-align: center; padding: 40px 20px; color: #999; font-size: 14px; }
.page { display: none; }
.page.active { display: block; }
.doctor-detail-header { background: #fff; padding: 20px; text-align: center; border-bottom: 1px solid #eee; }
.detail-avatar { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 15px; overflow: hidden; border: 3px solid #ddd; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #666; }
.detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.detail-name { font-size: 20px; color: #333; }
.detail-name span { color: #333; font-weight: bold; }
.detail-title { color: #666; margin-left: 10px; }
.schedule-section { background: #fff; margin: 15px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: none; }
.schedule-calendar-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: linear-gradient(135deg, #faf6ef, #fff); }
.schedule-calendar-header .month-title { font-size: 16px; font-weight: bold; color: #333; letter-spacing: 1px; }
.schedule-calendar-header .nav-btn { background: #c9a96e; color: #fff; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 13px; transition: all 0.2s; box-shadow: 0 2px 6px rgba(201,169,110,0.3); }
.schedule-calendar-header .nav-btn:hover { background: #b8956a; transform: scale(1.1); }
.schedule-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; padding: 0 4px; }
.schedule-calendar .weekday { text-align: center; padding: 8px 2px; font-size: 12px; color: #b0a08a; font-weight: 600; }
.schedule-calendar .day-cell { text-align: center; padding: 4px 2px; font-size: 13px; color: #d0d0d0; min-height: 68px; position: relative; transition: all 0.2s; border-radius: 8px; margin: 2px; display: flex; flex-direction: column; }
.schedule-calendar .day-cell.current-month { color: #999; }
.schedule-calendar .day-cell .day-num { margin-bottom: 2px; font-size: 13px; flex-shrink: 0; }
.schedule-calendar .day-cell.has-slot { background: linear-gradient(180deg, #fffdf7, #fef6e8); cursor: pointer; box-shadow: 0 1px 4px rgba(201,169,110,0.15); }
.schedule-calendar .day-cell.has-slot:hover { background: linear-gradient(180deg, #fff8ec, #fdefd5); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(201,169,110,0.2); }
.schedule-calendar .day-cell.has-slot .day-num { color: #8b6914; font-weight: bold; font-size: 15px; }
.schedule-calendar .day-cell .slot-label { font-size: 10px; color: #c9a96e; font-weight: 600; cursor: pointer; margin-top: 2px; letter-spacing: 1px; }
.slot-popover-mask { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999; background: rgba(0,0,0,0.3); }
.slot-popover { display: none; position: fixed; z-index: 1000; background: #fff; border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); padding: 20px 16px 16px; width: 260px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.slot-popover .pop-title { font-size: 15px; color: #333; text-align: center; margin-bottom: 14px; font-weight: bold; }
.slot-popover .pop-date { font-size: 12px; color: #999; text-align: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.slot-popover .pop-btn { display: block; width: 100%; padding: 13px 12px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 8px; transition: all 0.2s; text-align: center; }
.slot-popover .pop-btn:last-child { margin-bottom: 0; }
.slot-popover .pop-btn.morning { background: #c9a96e; color: #fff; }
.slot-popover .pop-btn.morning:hover { background: #b8956a; }
.slot-popover .pop-btn.afternoon { background: rgba(201,169,110,0.1); color: #8b6914; border: 1px solid #c9a96e; }
.slot-popover .pop-btn.afternoon:hover { background: rgba(201,169,110,0.25); }
.slot-popover .pop-btn.evening { background: #6b5b73; color: #fff; }
.slot-popover .pop-btn.evening:hover { background: #5a4c61; }
.schedule-legend { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 12px 15px; background: #faf8f4; }
.legend-item { display: flex; align-items: center; font-size: 12px; color: #999; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.legend-dot.available { background: #c9a96e; }
.legend-dot.no-visit { background: #ddd; }
.section { background: #fff; margin: 15px; border-radius: 8px; padding: 15px; border: 1px solid #ddd; }
.section-title { background: #c9a96e; color: #fff; padding: 6px 16px; border-radius: 4px; display: inline-block; font-size: 14px; margin-bottom: 15px; }
.section-content { font-size: 14px; color: #555; line-height: 1.8; text-indent: 2em; }
.hospital-info { background: #fff; margin: 15px; padding: 15px; border-radius: 8px; border: 1px solid #ddd; }
.hospital-info p { font-size: 13px; color: #666; margin-bottom: 8px; }
.hospital-info .icon { color: #333; margin-right: 5px; }
.form-section { background: #fff; margin: 15px; border-radius: 8px; padding: 15px; border: 1px solid #ddd; }
.form-title { color: #333; font-size: 15px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px dashed #ddd; font-weight: bold; }
.confirm-info { font-size: 14px; color: #555; line-height: 2; }
.form-group { margin-bottom: 15px; display: flex; align-items: center; }
.form-group label { width: 80px; font-size: 14px; color: #555; flex-shrink: 0; }
.form-group input { flex: 1; height: 40px; border: 1px solid #ddd; border-radius: 4px; padding: 0 12px; font-size: 14px; }
.form-group input:focus { border-color: #c9a96e; outline: none; }
.form-group input.valid { border-color: #4caf50; }
.form-group input.invalid { border-color: #f44336; }
.input-hint { font-size: 12px; color: #f44336; margin-top: 4px; display: none; }
.input-hint.show { display: block; }
.form-group .gender-select { display: flex; align-items: center; }
.form-group .gender-select input { width: 80px; }
.form-group .gender-btn { color: #c9a96e; margin-left: 10px; cursor: pointer; font-size: 14px; }
.form-group textarea { flex: 1; height: 100px; border: 1px solid #ddd; border-radius: 4px; padding: 12px; font-size: 14px; resize: none; }
.form-group textarea:focus { border-color: #c9a96e; outline: none; }
.form-group.textarea-group { align-items: flex-start; }
.form-group.textarea-group label { padding-top: 10px; }
.btn-submit { width: 100%; height: 44px; background: #c9a96e; color: #fff; border: none; border-radius: 22px; font-size: 16px; cursor: pointer; margin-top: 10px; transition: background 0.3s; }
.btn-submit:hover { background: #b8956a; }
.notice-section { background: #fff; margin: 15px; border-radius: 8px; padding: 15px; border: 1px solid #ddd; }
.notice-title { color: #333; font-size: 15px; margin-bottom: 15px; font-weight: bold; }
.notice-list { font-size: 13px; color: #666; line-height: 1.8; }
.notice-list p { margin-bottom: 10px; }
.back-btn { position: fixed; top: 15px; left: 15px; background: rgba(201,169,110,0.9); color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 18px; z-index: 100; }
.back-btn:hover { background: rgba(184,149,106,1); }
/* 分隔线 */
.divider { height: 10px; background: #f5f5f5; }

/* 搜索筛选栏 */
.filter-bar { padding: 10px 15px; background: #fff; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filter-checkbox { display: inline-flex; align-items: center; cursor: pointer; font-size: 14px; color: #666; flex-shrink: 0; }
.filter-checkbox input { width: 16px; height: 16px; margin-right: 6px; cursor: pointer; accent-color: #c9a96e; }
.search-box { flex: 1; max-width: 180px; position: relative; }
.search-box .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #999; font-size: 14px; pointer-events: none; }
.search-box input { width: 100%; height: 32px; border: 1px solid #ddd; border-radius: 16px; padding: 0 12px 0 30px; font-size: 13px; outline: none; }
.search-box input:focus { border-color: #c9a96e; }
.search-box input::placeholder { color: #bbb; }

/* 开票申请页 */
.invoice-intro { background: #fff; margin: 15px 15px 0; border-radius: 8px; padding: 15px; border: 1px solid #ddd; font-size: 13px; color: #555; line-height: 1.8; }
.invoice-intro p { margin-bottom: 6px; }
.invoice-intro p:last-child { margin-bottom: 0; }
.invoice-tip { color: #c9a96e; }
.invoice-contact { color: #888; font-size: 12px; padding-top: 6px; border-top: 1px dashed #eee; }
.required { color: #f44336; margin-left: 2px; }
.radio-group { flex: 1; display: flex; gap: 16px; align-items: center; }
.radio-item { display: inline-flex; align-items: center; font-size: 14px; color: #555; cursor: pointer; }
.radio-item input { width: 16px; height: 16px; margin-right: 6px; accent-color: #c9a96e; cursor: pointer; }
.form-actions { display: flex; gap: 10px; margin-top: 10px; }
.form-actions .btn-submit { flex: 2; margin-top: 0; }
.btn-reset { flex: 1; height: 44px; background: #fff; color: #c9a96e; border: 1px solid #c9a96e; border-radius: 22px; font-size: 15px; cursor: pointer; }
.btn-reset:hover { background: #faf6ee; }
.privacy-note { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #eee; font-size: 12px; color: #999; line-height: 1.6; }
.input-hint { font-size: 12px; color: #999; margin-top: 4px; }
