* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: #1a73e8;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

.logo a {
  color: #fff;
  text-decoration: none;
}

.logo-sub {
  font-size: 13px;
  opacity: 0.9;
  margin-left: 10px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero {
  text-align: center;
  padding: 48px 0 24px;
}

.hero h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.hero-desc {
  color: #666;
  margin-bottom: 24px;
}

.search-box {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  gap: 8px;
}

.search-box input {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: #1a73e8;
}

.search-box button {
  padding: 12px 28px;
  font-size: 16px;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.search-box button:hover {
  background: #1557b0;
}

.hot-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hot-tags .tag {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.hot-tags .tag:hover {
  border-color: #1a73e8;
  color: #1a73e8;
}

.section {
  margin: 32px 0;
}

.section-title {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1a73e8;
  display: inline-block;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.dept-item {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dept-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dept-item .dept-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a73e8;
}

.dept-item .dept-count {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.hidden {
  display: none;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.doctor-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.doctor-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.doctor-card .left {
  flex: 1;
}

.doctor-card .name {
  font-size: 17px;
  font-weight: 600;
  margin-right: 8px;
}

.doctor-card .title-tag {
  font-size: 12px;
  background: #eef4ff;
  color: #1a73e8;
  padding: 2px 8px;
  border-radius: 4px;
}

.doctor-card .dept {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.doctor-card .goodat {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

.doctor-card .right {
  text-align: right;
  flex-shrink: 0;
  margin-left: 12px;
}

.doctor-card .hospital {
  font-size: 13px;
  color: #555;
}

.doctor-card .schedule-preview {
  font-size: 12px;
  color: #1a73e8;
  margin-top: 4px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.badge-stopped {
  background: #fff1f0;
  color: #cf1322;
}

.hospital-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.hospital-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hospital-card h4 {
  font-size: 16px;
  color: #1a73e8;
}

.hospital-card .level {
  font-size: 12px;
  color: #cf1322;
  margin-left: 6px;
}

.hospital-card p {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

.group-title {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin: 20px 0 10px;
}

.empty-tip {
  text-align: center;
  color: #999;
  padding: 32px;
  background: #fff;
  border-radius: 10px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-btn {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  color: #555;
}

.filter-btn.active {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}

.hospital-info-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.hospital-info-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.hospital-info-card .meta {
  font-size: 14px;
  color: #666;
  margin: 6px 0;
}

.hospital-info-card .intro {
  font-size: 14px;
  color: #555;
  margin-top: 12px;
  line-height: 1.8;
}

.doctor-detail-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.doctor-detail-card h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.doctor-detail-card .sub {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.stopped-banner {
  background: #fff1f0;
  border: 1px solid #ffa39e;
  color: #cf1322;
  padding: 10px 16px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 14px;
}

.info-block {
  margin-top: 16px;
}

.info-block h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

.info-block .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-block .tag {
  background: #f0f5ff;
  color: #1a73e8;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 13px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid #eee;
  padding: 8px;
  text-align: center;
  font-size: 13px;
}

.schedule-table th {
  background: #f7f9fc;
  color: #555;
  font-weight: 600;
}

.schedule-table td.status-yes {
  color: #389e0d;
}

.schedule-table td.status-full {
  color: #d46b08;
}

.schedule-table td.status-stopped {
  color: #bbb;
  text-decoration: line-through;
}

.schedule-table td.empty {
  color: #ccc;
}

.site-footer {
  margin-top: 48px;
  padding: 20px 0;
  text-align: center;
  color: #999;
  font-size: 13px;
  border-top: 1px solid #eee;
  background: #fff;
}
