/* ==================== Page Styles ==================== */

/* ==================== Services Icons ==================== */
.services {
  padding: 50px 0;
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* 移动端 Swiper（默认隐藏） */
.services-swiper-mobile {
  display: none;
}

.services-swipe-hint {
  display: none;
}

.service-item {
  text-align: center;
  padding: 20px 10px;
  border-radius: var(--radius);
  transition: all .3s;
  cursor: pointer;
}

a.service-item {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-item:hover {
  background: var(--primary-light);
  transform: translateY(-4px);
}

.service-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 16px;
  background: #fff;
  border: 2px solid #e1e1e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  transition: all .3s;
}

.service-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.service-item:hover .service-icon {
  background: #388c57;
  border-color: #388c57;
  color: #fff;
}

.service-item:hover .service-icon img {
  filter: brightness(0) invert(1);
}

.service-name {
  font-size: 20px;
  font-weight: 500;
  color: #454545;
  transition: font-weight .3s;
}

.service-item:hover .service-name {
  font-weight: 700;
}

/* ==================== Brand Features ==================== */
.brand-features {
  height: 620px;
  background: url('../images/brand-features-bg.png') no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.brand-features .container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #388c57;
  margin: 12px auto 0;
}

.section-header .en {
  font-size: 22px;
  color: #999;
  font-weight: 400;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 78px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all .3s;
  border: 1px solid rgba(56, 140, 87, 0.08);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(56, 140, 87, 0.12);
  border-color: rgba(56, 140, 87, 0.2);
}

.feature-icon {
  width: 181px;
  height: 181px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #e8f5ee 0%, #d4ead8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 181px;
  height: 181px;
}

.feature-card h4 {
  font-size: 28px;
  font-weight: 700;
  color: #388c57;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 18px;
  color: #454545;
  line-height: 1.7;
}

/* ==================== Expert Team ==================== */
.experts {
  background: #fff;
  position: relative;
}

.experts-top {
  position: relative;
  z-index: 2;
}

.experts .section-header {
  padding: 50px 0 10px;
}

.expert-swiper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.expert-slide {
  display: flex !important;
  align-items: stretch;
  gap: 60px;
  padding: 0 60px 0;
  /* Swiper slide 默认 flex-shrink:0 + width:100%，单行荣誉文本会把 slide 撑宽溢出，需允许收缩 */
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* 首页专家区：沿用医生列表页 doctor-card 样式（命名空间，避免与列表页/详情页冲突） */
.experts .doctor-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: none;
  padding: 0;
  /* PC 端：照片 + 信息区横向排列 */
  display: flex;
  align-items: stretch;
  gap: 60px;
}

.experts .doctor-card:hover {
  transform: none;
  box-shadow: none;
}

.experts .doctor-main {
  display: block;
  background: transparent;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.experts .doctor-photo {
  flex: 0 0 auto;
  width: 40%;
  max-width: 485px;
  aspect-ratio: 485 / 580;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.experts .doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* 照片上的预约按钮 - PC 端隐藏，仅移动端显示在照片右下角 */
.experts .doctor-photo .btn-book {
  display: none;
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 5;
}

.experts .doctor-photo .btn-book img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.experts .doctor-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #454545;
}

.experts .doctor-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.experts .doctor-name {
  font-size: 40px;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
}

.experts .doctor-degree {
  font-size: 24px;
  color: #666;
  font-weight: 500;
}

.experts .doctor-intro {
  font-size: 24px;
  color: #333;
  line-height: 48px;
}

.experts .doctor-intro ul {
  list-style: none;
}

/* "查看詳情"链接：仅移动端显示，PC/平板端隐藏 */
.experts .doctor-detail-link {
  display: none;
}

.experts .doctor-intro li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
}

.experts .doctor-intro li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #454545;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

ul.expert-honors {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

ul.expert-honors li {
  font-size: 22px;
  color: #454545;
  line-height: 1.8;
  text-align: left;
}

ul.expert-honors li br {
  display: block;
}

/* 导航按钮 */
.expert-nav-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all .3s;
  padding: 0;
}

.expert-nav-btn.prev {
  left: 10px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  color: #ccc;
}

.expert-nav-btn.next {
  right: 10px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  color: #ccc;
}

/* 默认两个箭头统一为「左箭头」样式：白底 + 灰边 + 灰色图标 */
/* 鼠标悬停时统一变为「右箭头」样式：绿色底 + 白色图标 */
.expert-nav-btn:hover {
  background: #388c57;
  border-color: #388c57;
  color: #fff;
  opacity: .9;
}

/* 专长项目栏 - 全宽，与照片重叠 */
.specialty-bar {
  background: #388c57;
  padding: 30px 0;
  position: relative;
  z-index: 1;
}

.specialty-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.specialty-label {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.specialty-label span {
  display: block;
}

.specialty-divider {
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, .3);
  flex: none;
}

.specialty-desc {
  flex: 1;
  color: #fff;
  font-size: 15px;
  line-height: 1.9;
}

.btn-book {
  flex: none;
  text-decoration: none;
  transition: all .3s;
  display: block;
  animation: breathe 2s ease-in-out infinite;
}

.btn-book img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.btn-book:hover {
  transform: scale(1.08);
  animation: none;
}

/* ==================== Unified Tab Styles ==================== */
.tab-group {
  display: flex;
  justify-content: stretch;
  gap: 0;
  background: #eeeeee;
}

.tab-btn {
  flex: 1;
  height: 80px;
  font-size: 24px;
  font-weight: 600;
  color: #454545;
  background: #eeeeee;
  border: none;
  cursor: pointer;
  transition: all .3s;
  text-align: center;
}

.tab-btn.active {
  background: #388c57;
  color: #ffffff;
}

/* ==================== Nearby Clinics ==================== */
.clinics {
  padding: 60px 0;
  background: #f8f9fa;
}

.clinic-tabs {
  margin-bottom: 50px;
}

/* ==================== Clinics - 诊所 Swiper 容器 ==================== */
.clinic-swiper-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.clinic-doctors-swiper {
  overflow: hidden;
}

.clinic-swiper-wrapper .doctor-card {
  text-align: center;
  padding: 10px;
  display: block;
  gap: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  transition: none;
}

.clinic-swiper-wrapper .doctor-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.clinic-swiper-wrapper .doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clinic-swiper-wrapper .doctor-card h4 {
  font-size: 28px;
  font-weight: 700;
  color: #454545;
  margin-bottom: 6px;
}

.clinic-swiper-wrapper .doctor-card .degree {
  font-size: 22px;
  color: #454545;
  line-height: 1.6;
}

.clinic-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.clinic-pagination .dot {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  transition: all .3s;
}

.clinic-pagination .dot.active {
  background: #388c57;
  width: 32px;
}

/* ==================== Appointment Form ==================== */
.appointment {
  padding: 60px 0;
  background: #fff;
}

.appointment .section-header {
  margin-bottom: 40px;
}

.appointment-form {
  max-width: 1200px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
  margin-bottom: 30px;
}

.form-group label {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.form-group label .required {
  color: #e74c3c;
}

.form-group label .label-note {
  font-size: 14px;
  font-weight: 400;
  color: #999;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 16px 18px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: #f8f9fb;
  color: #333;
  transition: border-color .2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #388c57;
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.checkbox-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fb;
  cursor: pointer;
  transition: all .2s;
  font-size: 16px;
  color: #454545;
}

.checkbox-tag:hover {
  border-color: #388c57;
}

.checkbox-tag input[type="checkbox"] {
  accent-color: #388c57;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-tag input[type="checkbox"]:checked+span {
  color: #388c57;
  font-weight: 600;
}

.checkbox-tag:has(input:checked) {
  border-color: #388c57;
  background: #f0f7f2;
}

/* 超过上限时禁用未选项 */
.checkbox-tag.disabled {
  opacity: .45;
  cursor: not-allowed;
}

.checkbox-tag.disabled:hover {
  border-color: #e0e0e0;
}

.btn-submit {
  display: block;
  width: 320px;
  max-width: 100%;
  margin: 40px auto 0;
  padding: 18px 40px;
  background: #e8a84c;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 8px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all .3s;
  animation: breathe 2s ease-in-out infinite;
}

.btn-submit:hover {
  background: #d4953e;
  transform: scale(1.08);
  animation: none;
}

/* ==================== HKG Certification ==================== */
.certification {
  padding: 60px 0;
  background: #f5f5f5;
}

.certification .section-header {
  margin-bottom: 40px;
}

.cert-tabs {
  margin-bottom: 20px;
}

.cert-content-wrapper {
  background: #fff;
  overflow: hidden;
}

.cert-content-wrapper .cert-content {
  margin-top: 0;
}

.cert-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  overflow: hidden;
  min-height: 320px;
  margin-top: 0;
}

.cert-panel {
  display: none;
}

.cert-panel.active {
  display: grid;
}

.cert-text {
  padding: 50px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cert-text h4 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #388c57;
  display: inline-block;
}

.cert-text p {
  font-size: 18px;
  color: #454545;
  line-height: 2;
}

.cert-image {
  overflow: hidden;
}

.cert-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== Location Map ==================== */
.location {
  padding: 60px 0 80px;
  background: #fff;
}

.location-tabs {
  max-width: 1200px;
  margin: 0 auto 20px;
}

.location-panel {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.location-panel.active {
  display: block;
}

.location-panel img {
  width: 100%;
  display: block;
}

.location-panel .info {
  display: flex;
  justify-content: space-between;
  padding: 30px;
}

.location-panel .info .shop,
.location-panel .info .address {
  display: flex;
  align-items: center;
  color: #454545;
}

.location-panel .info .icon {
  width: 71px;
  height: 71px;
  background-size: 100% 100%;
  margin: 0 10px 0 0;
}

.location-panel .info .shop .icon {
  background-image: url('../images/shop-address.gif');
}

.location-panel .info .address .icon {
  background-image: url('../images/shop-ditie.gif');
}


.location-panel .info .shop-name {
  font-size: 30px;
  line-height: 40px;
}

.location-panel .info .shop-address {
  font-size: 20px;
  line-height: 30px;
}


.location-panel .info .shop-ditie {
  font-size: 30px;
  line-height: 30px;
}

.location-panel .info3 {
  justify-content: center;
}

.btn-help {
  display: block;
  width: 280px;
  max-width: 100%;
  margin: 40px auto 0;
  padding: 16px 40px;
  background: #e8a84c;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all .3s;
  animation: breathe 2s ease-in-out infinite;
}

.btn-help:hover {
  background: #d4953e;
  transform: scale(1.08);
  animation: none;
}

/* ==================== Doctor List Page ==================== */
.doctor-list-section {
  padding: 30px 0 80px;
  background: var(--bg-gray);
}

/* Tab 切换栏 */
.doctor-tabs {
  display: flex;
  width: 100%;
  margin-bottom: 40px;
  background: #f0f0f0;
  border-radius: 0;
  overflow: hidden;
}

.doctor-tab-btn {
  flex: 1;
  height: 60px;
  border: none;
  background: #ececec;
  color: #666;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  letter-spacing: 1px;
}

.doctor-tab-btn.active,
.doctor-tab-btn:hover {
  background: var(--primary);
  color: #fff;
}

.doctor-tab-btn + .doctor-tab-btn {
  border-left: 2px solid #fff;
}

.doctor-tab-btn.active + .doctor-tab-btn,
.doctor-tab-btn:hover + .doctor-tab-btn {
  border-left-color: transparent;
}

/* 医生列表 */
.doctor-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doctor-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: none;
  padding: 0;
  /* PC 端：照片 + 信息区横向排列 */
  display: flex;
  align-items: stretch;
  gap: 60px;
}

.doctor-card:hover {
  transform: none;
  box-shadow: none;
}

/* 顶部：照片 + 信息区 */
.doctor-main {
  display: block;
  background: transparent;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.doctor-photo {
  flex: 0 0 auto;
  width: 40%;
  max-width: 485px;
  aspect-ratio: 485 / 580;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* 照片上的预约按钮 - PC 端隐藏，仅移动端显示在照片右下角 */
.doctor-photo .btn-book {
  display: none;
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 5;
}

.doctor-photo .btn-book img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.doctor-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #454545;
}

.doctor-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.doctor-name {
  font-size: 40px;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
}

.doctor-degree {
  font-size: 24px;
  color: #666;
  font-weight: 500;
}

.doctor-intro {
  font-size: 24px;
  color: #333;
  line-height: 48px;
}

.doctor-intro ul {
  list-style: none;
}

/* "查看詳情"链接：仅移动端显示，PC/平板端隐藏 */
.doctor-detail-link {
  display: none;
}

.doctor-intro li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
}

.doctor-intro li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #454545;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

/* 底部：绿色擅長項目条 + 橙色預約按钮 */
.doctor-specialty-bar {
  display: flex;
  align-items: stretch;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  min-height: 90px;
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(26, 122, 76, .15);
}

.list-doctor-wrapper .specialty-label {
  flex: 0 0 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 6px;
  text-align: center;
  line-height: 1.3;
  text-indent: 6px;
}

.list-doctor-wrapper .specialty-text {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 14px 24px;
  font-size: 16px;
  line-height: 1.7;
  border-left: 1px solid rgba(255, 255, 255, .35);
}

/* 绿色条右侧预约按钮：使用 appointment.png 整图 */
.list-doctor-wrapper .doctor-specialty-bar .btn-book {
  flex: 0 0 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-doctor-wrapper .doctor-specialty-bar .btn-book img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
}

/* 占位：连锁分院占位 */
.doctor-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 18px;
  background: #fff;
  border-radius: 8px;
}

/* 医生详情正文 */
.doctor-detail-section {
  padding: 40px 0 60px;
}

.doctor-detail-content {
  margin-top: 40px;
  font-size: 16px;
  line-height: 2;
  color: #333;
}

.doctor-detail-content p {
  margin-bottom: 16px;
}

.doctor-back {
  margin-top: 40px;
  text-align: center;
}

.doctor-back a {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  text-decoration: none;
  transition: opacity .2s;
}

.doctor-back a:hover {
  opacity: .9;
}

/* ==================== 連鎖分院牙醫師 ==================== */
.chain-doctor-section {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  border-radius: 12px;
  padding: 40px;
}

.chain-sidebar {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chain-branch-btn {
  width: 100%;
  max-width: 278px;
  height: 80px;
  padding: 0;
  border: 1px solid #f0af4f;
  border-radius: 40px;
  background: #fff;
  color: #f0af4f;
  font-size: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s;
  text-align: center;
}

.chain-branch-btn.active,
.chain-branch-btn:hover {
  background: #388c57;
  color: #ffffff;
  border-color: #388c57;
  font-size: 30px;
  font-weight: bold;
}

.chain-content {
  flex: 1;
  min-width: 0;
}

.chain-branch-panel {
  display: none;
}

.chain-branch-panel.active {
  display: block;
}

.chain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.chain-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .3s;
}

.chain-card:hover {
  transform: translateY(-6px);
}

.chain-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.chain-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.chain-name {
  font-size: 30px;
  font-weight: 700;
  color: #454545;
  margin-bottom: 10px;
  line-height: 1.3;
}

.chain-title {
  font-size: 24px;
  font-weight: 400;
  color: #454545;
  line-height: 1.6;
}

.chain-title p {
  margin: 0;
}

.chain-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: var(--text-muted);
  font-size: 18px;
  background: #fff;
  border-radius: 12px;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .services-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clinic-doctors {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .clinic-swiper-wrapper .doctor-avatar {
    width: 140px;
    height: 140px;
  }

  .clinic-swiper-wrapper .doctor-card h4 {
    font-size: 24px;
  }

  .clinic-swiper-wrapper .doctor-card .degree {
    font-size: 18px;
  }

  .tab-btn {
    font-size: 22px;
    height: 60px;
  }

  /* 平板端适配 */
  .section-header {
    margin-bottom: 40px;
  }

  .appointment {
    padding: 50px 0;
  }

  .clinics {
    padding: 50px 0;
  }

  .certification {
    padding: 50px 0;
  }

  .form-group label {
    font-size: 18px;
  }

  .checkbox-tag {
    padding: 10px 16px;
    font-size: 16px;
  }

  /* 认证板块 1024px 适配 */
  .cert-text {
    padding: 40px 30px;
  }

  .cert-text h4 {
    font-size: 24px;
  }

  .cert-text p {
    font-size: 16px;
  }

  .cert-image {
    max-height: 300px;
  }

  /* 連鎖分院牙醫師 1024px 适配 */
  .chain-doctor-section {
    gap: 30px;
    padding: 30px;
  }

  .chain-sidebar {
    flex: 0 0 180px;
  }

  .chain-branch-btn {
    width: 100%;
    height: 60px;
    font-size: 22px;
    border-radius: 30px;
  }

  .chain-branch-btn.active,
  .chain-branch-btn:hover {
    font-size: 22px;
  }

  .chain-grid {
    gap: 30px 20px;
  }

  .chain-photo {
    width: 150px;
    height: 150px;
  }

  .chain-name {
    font-size: 24px;
  }

  .chain-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* 平板端：专家荣誉列表字号缩小 */
  ul.expert-honors li {
    font-size: 16px;
    line-height: 1.9;
  }

  .brand-features {
    height: auto;
    padding: 30px 0;
  }

  .brand-features .container {
    height: auto;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-header h2 {
    font-size: 28px;
    padding: 0;
    line-height: 1;
    margin: 0 0 10px;
  }

  .section-header h2::after {
    width: 30px;
    height: 3px;
  }

  .section-header .en {
    font-size: 18px;
  }

  .services {
    padding: 30px 0;
  }

  /* 移动端：隐藏 PC 版 grid，显示 Swiper 版本 */
  .services-grid-pc {
    display: none;
  }

  .services-swiper-mobile {
    display: block;
  }

  .services-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 4px;
    color: #999;
    font-size: 13px;
  }

  .services-swipe-hint span {
    display: inline-block;
    animation: swipeHint 1.5s ease-in-out infinite;
  }

  .services-swipe-hint span:first-child {
    animation-delay: 0.5s;
  }

  .services-swipe-hint span:last-child {
    animation-delay: 0s;
  }

  /* 移动端每页 grid：4列x2行 */
  .services-grid-mobile {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .services-grid-mobile .service-item {
    padding: 12px 8px;
  }

  .services-grid-mobile .service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 8px;
    font-size: 22px;
  }

  .services-grid-mobile .service-name {
    font-size: 16px;
  }

  .services-grid-mobile .service-icon img {
    width: 42px;
    height: 42px;
  }

  @keyframes swipeHint {

    0%,
    100% {
      transform: translateX(0);
    }

    50% {
      transform: translateX(8px);
    }
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 16px 12px;
    border-radius: 10px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .feature-icon img {
    width: 36px;
    height: 36px;
  }

  .feature-card h4 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .feature-card p {
    font-size: 16px;
    line-height: 1.5;
  }

  .clinics {
    padding: 30px 0;
  }

  .tab-btn {
    flex: 1;
    height: 50px;
    font-size: 16px;
  }

  .clinic-tabs {
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .cert-tabs {
    flex-wrap: nowrap;
    margin-bottom: 12px;
  }

  .location {
    padding: 30px 0;
  }

  .location-tabs {
    margin-bottom: 12px;
  }

  .location-content {
    grid-template-columns: 1fr;
  }

  .location-booking {
    padding: 30px 20px;
  }

  .booking-text h3 {
    font-size: 20px;
  }

  .location-footer {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .btn-help {
    width: 220px;
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 24px;
  }

  .clinic-doctors {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .clinic-swiper-wrapper .doctor-avatar {
    width: 120px;
    height: 120px;
  }

  .clinic-swiper-wrapper .doctor-card h4 {
    font-size: 20px;
  }

  .clinic-swiper-wrapper .doctor-card .degree {
    font-size: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .appointment {
    padding: 30px 0;
  }

  .appointment-form {
    padding: 0 12px;
  }

  .form-group label {
    font-size: 16px;
    margin-bottom: 6px;
  }

  /* 移动端 label 备注最小 16px */
  .form-group label .label-note {
    font-size: 16px;
  }

  .form-group.full {
    margin-bottom: 16px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 16px;
  }

  .form-group textarea {
    min-height: 70px;
  }

  .checkbox-group {
    gap: 6px;
  }

  .checkbox-tag {
    padding: 6px 10px;
    font-size: 16px;
    gap: 4px;
  }

  .checkbox-tag input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }

  .btn-submit {
    width: 100%;
    font-size: 16px;
    letter-spacing: 3px;
    padding: 12px 24px;
    margin-top: 24px;
  }

  .cert-content {
    grid-template-columns: 1fr;
  }

  .cert-text {
    padding: 24px 20px;
    order: 1;
  }

  .cert-text h4 {
    font-size: 20px;
  }

  .cert-text p {
    font-size: 15px;
  }

  .cert-image {
    max-height: 240px;
    order: 2;
  }

  .specialty .container {
    flex-direction: column;
    text-align: center;
  }

  .expert-slide {
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
    padding: 0 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 平板端：沿用列表页 doctor-card 适配（命名空间） */
  .experts .doctor-card {
    gap: 40px;
    min-width: 0;
  }

  .experts .doctor-info {
    padding: 0;
    min-width: 0;
  }

  .experts .doctor-photo {
    flex: 0 0 auto;
    width: 40%;
    max-width: 485px;
  }

  .experts .doctor-photo img {
    max-height: none;
  }

  .experts .doctor-info {
    padding: 0;
  }

  .experts .doctor-header {
    gap: 10px;
    margin-bottom: 16px;
  }

  .experts .doctor-name {
    font-size: 26px;
  }

  .experts .doctor-degree {
    font-size: 16px;
  }

  .experts .doctor-intro {
    font-size: 15px;
    line-height: 2;
  }

  .experts .doctor-intro li {
    padding-left: 14px;
  }

  .experts .doctor-intro li::before {
    font-size: 14px;
  }

  /* 平板端：荣誉列表条目单行省略 */
  .experts .doctor-intro li {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .expert-nav-btn {
    display: none;
  }

  .expert-nav-btn svg {
    width: 14px;
    height: 14px;
  }

  .specialty-bar {
    padding: 20px 20px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .specialty-label {
    font-size: 22px;
  }

  .specialty-divider {
    display: none;
  }

  .specialty-desc {
    font-size: 13px;
    flex-basis: 100%;
    order: 3;
    /* 移动端最多显示 2 行，超出截斷顯示省略號 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .experts .btn-book {
    width: 56px;
    height: 56px;
  }

  /* 移动端：预约按钮定位到照片右下角，隐藏专长栏中的按钮 */
  .experts .doctor-photo .btn-book {
    display: block;
    width: 60px;
    height: 60px;
  }

  .specialty-bar .btn-book {
    display: none;
  }

  .location-info {
    flex-direction: column;
    align-items: center;
  }

  /* ==================== Location Panel - 平板适配 ==================== */
  .location-panel .info {
    padding: 20px;
    gap: 16px;
  }

  .location-panel .info .icon {
    width: 48px;
    height: 48px;
  }

  .location-panel .info .shop-name {
    font-size: 22px;
    line-height: 1.3;
  }

  .location-panel .info .shop-address {
    font-size: 16px;
    line-height: 1.4;
  }

  .location-panel .info .shop-ditie {
    font-size: 22px;
    line-height: 1.3;
  }

  /* ==================== Doctor List - 平板/手机端适配 ==================== */
  .doctor-list-section {
    padding: 30px 0 60px;
  }

  .doctor-tab-btn {
    height: 50px;
    font-size: 18px;
    letter-spacing: 0;
  }

  .doctor-card {
    gap: 40px;
  }

  .doctor-photo {
    flex: 0 0 auto;
    width: 40%;
    max-width: 485px;
  }

  .doctor-photo img {
    max-height: none;
  }

  .doctor-info {
    padding: 0;
  }

  .doctor-header {
    gap: 10px;
    margin-bottom: 16px;
  }

  .doctor-name {
    font-size: 26px;
  }

  .doctor-degree {
    font-size: 16px;
  }

  .doctor-intro {
    font-size: 15px;
    line-height: 2;
  }

  .doctor-specialty-bar {
    min-height: 80px;
  }

  .list-doctor-wrapper .specialty-label {
    flex: 0 0 110px;
    font-size: 22px;
    letter-spacing: 4px;
    text-align: left;
    justify-content: flex-start;
  }

  .list-doctor-wrapper .specialty-text {
    padding: 12px 18px;
    font-size: 15px;
    line-height: 1.7;
  }

  .list-doctor-wrapper .doctor-specialty-bar .btn-book {
    flex: 0 0 100px;
  }

  .list-doctor-wrapper .doctor-specialty-bar .btn-book img {
    width: 80px;
    height: 80px;
  }

  /* 連鎖分院牙醫師 768px 适配 */
  .chain-doctor-section {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }

  .chain-sidebar {
    flex: 0 0 auto;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  .chain-branch-btn {
    flex: 1;
    max-width: 200px;
    height: 60px;
    padding: 0;
    font-size: 22px;
    border-radius: 30px;
  }

  .chain-branch-btn.active,
  .chain-branch-btn:hover {
    font-size: 22px;
  }

  .chain-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
  }

  .chain-photo {
    width: 150px;
    height: 150px;
    margin-bottom: 16px;
  }

  .chain-name {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .chain-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .brand-features {
    padding: 20px 0;
  }

  .section-header {
    margin-bottom: 16px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .section-header h2::after {
    width: 24px;
    height: 3px;
  }

  .section-header .en {
    font-size: 16px;
  }

  .services {
    padding: 20px 0;
  }

  .services-grid-mobile .service-item {
    padding: 8px 6px;
  }

  .services-grid-mobile .service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 6px;
  }

  .services-grid-mobile .service-name {
    font-size: 16px;
  }

  .services-grid-mobile .service-icon img {
    width: 30px;
    height: 30px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 20px 12px;
    border-radius: 10px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .feature-icon img {
    width: 36px;
    height: 36px;
  }

  .feature-card h4 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .feature-card p {
    font-size: 16px;
    line-height: 1.5;
  }

  .clinic-doctors {
    grid-template-columns: repeat(2, 1fr);
  }

  .clinic-swiper-wrapper .doctor-avatar {
    width: 100px;
    height: 100px;
  }

  .clinic-swiper-wrapper .doctor-card h4 {
    font-size: 18px;
  }

  .clinic-swiper-wrapper .doctor-card .degree {
    font-size: 14px;
  }

  .tab-btn {
    height: 44px;
    font-size: 16px;
  }

  .cert-tabs {
    margin-bottom: 10px;
  }

  .expert-slide {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    padding: 0 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 小屏手机端：沿用列表页 doctor-card 适配（命名空间） */
  .experts .doctor-card {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    /* 轮播 slide 为横向 flex，需允许卡片收缩，否则荣誉单行文本会把卡片撑宽溢出 */
    min-width: 0;
  }

  .experts .doctor-photo {
    flex: 0 0 120px;
    width: 120px;
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
  }

  .experts .doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  /* 移动端：预约按钮显示到照片右下角 */
  .experts .doctor-photo .btn-book {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
  }

  .experts .doctor-photo .btn-book img {
    width: 52px;
    height: 52px;
  }

  .experts .doctor-info {
    padding: 0;
    overflow: hidden;
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .experts .doctor-header {
    gap: 6px;
    margin-bottom: 8px;
  }

  .experts .doctor-name {
    font-size: 18px;
  }

  .experts .doctor-degree {
    font-size: 13px;
  }

  .experts .doctor-intro {
    font-size: 13px;
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    max-height: 80px;
    margin-bottom: 4px;
  }

  .experts .doctor-intro ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .experts .doctor-intro li {
    padding-left: 14px;
    margin-bottom: 0;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 4px;
  }

  .experts .doctor-intro li::before {
    font-size: 12px;
  }

  .experts .doctor-detail-link {
    display: block;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0;
    text-align: left;
  }

  .experts .doctor-detail-link .detail-arrow {
    font-size: 16px;
    line-height: 1;
    margin-left: 2px;
  }

  .expert-nav-btn {
    display: none;
  }

  .expert-nav-btn svg {
    width: 12px;
    height: 12px;
  }

  .specialty-bar {
    padding: 16px 12px;
    gap: 10px;
  }

  .specialty-label {
    font-size: 18px;
  }

  .specialty-desc {
    font-size: 12px;
  }

  .experts .btn-book {
    width: 48px;
    height: 48px;
  }

  .experts .doctor-photo .btn-book {
    width: 52px;
    height: 52px;
  }

  .btn-help {
    width: 180px;
    padding: 10px 24px;
    font-size: 16px;
    margin-top: 16px;
  }

  /* ==================== Doctor List - 小屏手机端适配 ==================== */
  .doctor-list-section {
    padding: 20px 0 50px;
  }

  .doctor-tab-btn {
    height: 44px;
    font-size: 15px;
  }

  .doctor-list {
    gap: 10px;
  }

  .doctor-card {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
  }

  .doctor-photo {
    flex: 0 0 120px;
    width: 120px;
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
  }

  .doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  /* 移动端：预约按钮显示到照片右下角 */
  .doctor-photo .btn-book {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
  }

  .doctor-photo .btn-book img {
    width: 52px;
    height: 52px;
  }

  .doctor-info {
    padding: 0;
    overflow: hidden;
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
  }

  .doctor-header {
    gap: 6px;
    margin-bottom: 8px;
  }

  .doctor-name {
    font-size: 18px;
  }

  .doctor-degree {
    font-size: 13px;
  }

  .doctor-intro {
    font-size: 13px;
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    max-height: 80px;
    margin-bottom: 4px;
  }

  .doctor-intro ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .doctor-intro li {
    padding-left: 14px;
    margin-bottom: 0;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .doctor-detail-link {
    display: block;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0;
    text-align: left;
  }

  .doctor-detail-link .detail-arrow {
    font-size: 16px;
    line-height: 1;
    margin-left: 2px;
  }

  .doctor-specialty-bar {
    min-height: 0;
    padding: 8px 0;
  }

  .list-doctor-wrapper .specialty-label {
    flex: 0 0 auto;
    padding: 10px 12px;
    font-size: 16px;
    letter-spacing: 4px;
    line-height: 1.3;
    /* 保留 <br>，擅長/項目 分两行竖排，文字水平居中 */
    white-space: normal;
    text-align: center;
    text-indent: 4px;
  }

  .list-doctor-wrapper .specialty-text {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
  }

  .list-doctor-wrapper .doctor-specialty-bar .btn-book {
    display: none;
  }

  .list-doctor-wrapper .doctor-specialty-bar .btn-book img {
    width: 72px;
    height: 72px;
  }

  /* 移动端：专家荣誉列表字号缩小 */
  ul.expert-honors li {
    font-size: 14px;
    line-height: 1.4;
  }

  /* ==================== Location Panel - 移动端适配 ==================== */
  .location-panel .info {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  .location-panel .info .shop,
  .location-panel .info .address {
    width: 100%;
  }

  .location-panel .info .icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .location-panel .info .shop-name {
    font-size: 16px;
  }

  .location-panel .info .shop-address {
    font-size: 16px;
  }

  .location-panel .info .shop-ditie {
    font-size: 16px;
  }

  /* 連鎖分院牙醫師 480px 适配 */
  .chain-doctor-section {
    padding: 12px;
    gap: 12px;
  }

  .chain-content {
    width: 100%;
  }

  .chain-sidebar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .chain-branch-btn {
    flex: 1 1 calc(50% - 4px);
    max-width: none;
    height: 44px;
    font-size: 16px;
    border-radius: 22px;
  }

  .chain-branch-btn.active,
  .chain-branch-btn:hover {
    font-size: 16px;
  }

  .chain-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  .chain-photo {
    width: 120px;
    height: 120px;
    margin-bottom: 12px;
  }

  .chain-name {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .chain-title {
    font-size: 14px;
  }
}

/* ==================== Article Detail (article_doctor.html) ==================== */
/* 所有样式均在 .article-wrapper 命名空间下 */

.article-wrapper {
  padding: 40px 0 80px;
  background: #f9f9f9;
}

/* 面包屑（公共模板 comm/position.html，通用命名空间） */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  font-size: 16px;
  color: #666;
}

.breadcrumb .breadcrumb-home {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-right: 2px;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color .3s;
}

.breadcrumb a:hover {
  color: #f0af4f;
}

.breadcrumb .breadcrumb-sep {
  color: #999;
}

.breadcrumb .breadcrumb-current {
  color: #f0af4f;
}

/* 文章主體 */
.article-wrapper .article-main {
  width: 100%;
  margin: 0 auto;
}

.article-wrapper .article-title {
  font-size: 34px;
  font-weight: 700;
  color: #454545;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 20px;
}

.article-wrapper .article-meta {
  text-align: center;
  font-size: 16px;
  color: #999;
  margin-bottom: 40px;
}

/* 正文內容 */
.article-wrapper .article-body {
  font-size: 18px;
  line-height: 1.9;
  color: #454545;
  margin-bottom: 50px;
}

.article-wrapper .article-body p {
  margin-bottom: 1.5em;
  text-align: justify;
}

.article-wrapper .article-body p:last-child {
  margin-bottom: 0;
}

.article-wrapper .article-body img,
.article-wrapper .article-body video,
.article-wrapper .article-body iframe {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 24px auto;
  border-radius: 8px;
}

/* 视频 / 嵌入iframe（YouTube等）限制最大宽度，避免溢出显示区 */
.article-wrapper .article-body video,
.article-wrapper .article-body iframe {
  max-width: 100%;
  aspect-ratio: 16 / 9;
}

.article-wrapper .article-body iframe {
  border: 0;
}

.article-wrapper .article-body h2,
.article-wrapper .article-body h3,
.article-wrapper .article-body h4 {
  color: #454545;
  margin: 1.5em 0 .8em;
  line-height: 1.4;
}

.article-wrapper .article-body h2 {
  font-size: 26px;
}

.article-wrapper .article-body h3 {
  font-size: 22px;
}

.article-wrapper .article-body h4 {
  font-size: 20px;
}

.article-wrapper .article-body ul,
.article-wrapper .article-body ol {
  margin-bottom: 1.5em;
  padding-left: 1.8em;
}

.article-wrapper .article-body li {
  margin-bottom: .6em;
}

/* 表格：寬度超出時橫向滾動，避免撐破佈局 */
.article-wrapper .article-body table {
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  /* 关键：UEditor 单元格带 word-break:break-all，auto 布局会把列压缩到恰好填满容器，
     导致表格永远“不溢出”，横向滚动 JS 检测失效。设最小宽度让窄屏必然溢出触发滚动。 */
  min-width: 500px;
}

/* SimpleBar 表格滾動容器 */
.article-wrapper .article-body .table-scroll-wrapper {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}

.article-wrapper .article-body .table-scroll-wrapper table {
  margin: 0;
}

.article-wrapper .article-body table caption {
  padding: 10px 16px;
  font-size: 14px;
  color: #888;
  text-align: left;
}

.article-wrapper .article-body table th,
.article-wrapper .article-body table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
}

.article-wrapper .article-body table th {
  background: #2e7d6f !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
  border-bottom: 1px solid #e8e8e8;
}

/* UEditor 表格常用 <td> 作表頭（無 <th>），補齊首行綠色表頭美化 */
.article-wrapper .article-body table tbody tr:first-child td {
  background: #2e7d6f !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
}

.article-wrapper .article-body table tbody tr:nth-child(even) {
  background: #f8faf9;
}

.article-wrapper .article-body table tbody tr:hover {
  background: #eef5f3;
  transition: background .2s;
}

.article-wrapper .article-body table td {
  color: #555;
}

.article-wrapper .article-body table tbody tr:last-child td {
  border-bottom: none;
}

/* 表格橫向滾動提示 */
.table-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #2e7d6f;
  background: #eef5f3;
  border-radius: 6px;
  transition: opacity .3s;
  user-select: none;
}

.table-scroll-hint-icon {
  font-size: 16px;
  font-weight: 700;
  display: inline-block;
}

.table-scroll-hint-icon:first-child {
  animation: tableHintLeft 1.2s ease-in-out infinite;
}

.table-scroll-hint-icon:last-child {
  animation: tableHintRight 1.2s ease-in-out infinite;
}

@keyframes tableHintLeft {
  0%, 100% { transform: translateX(0); opacity: .5; }
  50% { transform: translateX(-5px); opacity: 1; }
}

@keyframes tableHintRight {
  0%, 100% { transform: translateX(0); opacity: .5; }
  50% { transform: translateX(5px); opacity: 1; }
}

/* SimpleBar 自定義滾動條樣式 */
.article-wrapper .article-body .simplebar-track {
  pointer-events: auto;
}

.article-wrapper .article-body .simplebar-track.simplebar-horizontal {
  left: 0;
  right: 0;
  height: 8px;
}

.article-wrapper .article-body .simplebar-scrollbar {
  min-height: 6px;
  min-width: 30px;
}

.article-wrapper .article-body .simplebar-scrollbar::before {
  background: #2e7d6f;
  border-radius: 4px;
  opacity: .4;
  transition: opacity .2s;
}

.article-wrapper .article-body .simplebar-scrollbar:hover::before {
  opacity: .7;
}

/* 底部返回 + 社交 */
.article-wrapper .article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.article-wrapper .article-back {
  font-size: 18px;
  color: #f0af4f;
  text-decoration: underline;
  transition: opacity .3s;
}

.article-wrapper .article-back:hover {
  opacity: .8;
}

/* 帶預約按鈕的底部行（article_doctor）：左返回，右預約睇牙 */
.article-wrapper .article-footer--booking {
  flex-direction: column;
  align-items: stretch;
}

.article-wrapper .article-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-wrapper .article-footer--booking .article-social {
  margin-top: 20px;
}

.article-wrapper .article-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  background: #388c57;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  border-radius: 10px;
  white-space: nowrap;
  transition: background .3s;
  animation: breathe 2s ease-in-out infinite; /* 全局呼吸動畫（comm.css 定義） */
}

.article-wrapper .article-booking:hover {
  background: #2f7a4a;
  color: #fff;
}

.article-wrapper .article-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-wrapper .social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all .3s;
}

.article-wrapper .social-link img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.article-wrapper .social-link:hover {
  background: #388c57;
  color: #fff;
}

/* 上一篇 / 下一篇 */
.article-wrapper .article-nav {
  width: 100%;
  margin: 0 auto 60px;
  padding: 24px 0;
  background: #f8f8f8;
  border-radius: 12px;
}

.article-wrapper .nav-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.article-wrapper .nav-row + .nav-row {
  border-top: 1px solid #eee;
}

.article-wrapper .nav-label {
  flex: 0 0 auto;
  min-width: 56px;
  padding: 4px 12px;
  background: #388c57;
  color: #fff;
  font-size: 14px;
  border-radius: 4px;
  text-align: center;
}

.article-wrapper .nav-title {
  flex: 1;
  color: #388c57;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity .3s;
}

.article-wrapper .nav-title:hover {
  opacity: .8;
}

/* 近期動態 */
.article-wrapper .article-recent {
  max-width: 1200px;
  margin: 0 auto;
}

.article-wrapper .recent-title {
  font-size: 32px;
  font-weight: 700;
  color: #454545;
  text-align: left;
  margin-bottom: 40px;
}

.article-wrapper .recent-swiper {
  overflow: hidden;
}

.article-wrapper .recent-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all .3s;
}

.article-wrapper .recent-card:hover {
  transform: translateY(-6px);
}

.article-wrapper .recent-logo {
  width: 100%;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #ffffff;
}

.article-wrapper .recent-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-wrapper .recent-card-body {
  padding: 14px 0 0;
  text-align: left;
}

.article-wrapper .recent-card-title {
  font-size: 18px;
  font-weight: 500;
  color: #454545;
  line-height: 1.5;
  margin-bottom: 12px;
  /* 兩行截斷 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-wrapper .recent-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.article-wrapper .recent-date {
  color: #bdbdbd;
}

.article-wrapper .recent-more {
  color: #f0af4f;
  font-weight: 500;
}

/* ==================== Article Detail Responsive ==================== */
@media (max-width: 1024px) {
  .article-wrapper {
    padding: 30px 0 60px;
  }

  .article-wrapper .article-title {
    font-size: 30px;
  }

  .article-wrapper .article-body {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
  }

  .article-wrapper .article-title {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .article-wrapper .article-meta {
    margin-bottom: 30px;
  }

  .article-wrapper .article-body {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
  }

  .article-wrapper .article-body table th,
  .article-wrapper .article-body table td {
    padding: 10px;
  }

  .article-wrapper .article-footer {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .article-wrapper .article-footer--booking {
    align-items: stretch;
    gap: 0;
  }

  .article-wrapper .article-booking {
    height: 42px;
    padding: 0 20px;
    font-size: 16px;
    border-radius: 8px;
  }

  .article-wrapper .article-nav {
    margin-bottom: 50px;
    padding: 20px 24px;
  }

  .article-wrapper .nav-row {
    gap: 12px;
  }

  .article-wrapper .nav-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .article-wrapper {
    padding: 20px 0 40px;
  }

  .breadcrumb {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
  }

  .article-wrapper .article-title {
    font-size: 22px;
  }

  .article-wrapper .article-body {
    font-size: 15px;
  }

  .article-wrapper .article-back {
    font-size: 16px;
  }

  .article-wrapper .article-nav {
    padding: 16px 0;
    margin-bottom: 0;
  }

  .article-wrapper .nav-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .article-wrapper .nav-label {
    font-size: 13px;
  }

  .article-wrapper .nav-title {
    width: 100%;
  }

  .article-wrapper .recent-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .article-wrapper .recent-logo {
    height: 120px;
  }

  .article-wrapper .recent-card-body {
    padding: 12px 0 0;
  }

  .article-wrapper .recent-card-title {
    font-size: 16px;
  }

  .article-wrapper .recent-card-meta {
    font-size: 13px;
  }
}

/* ==================== Tag 標籤頁（tags.html） ==================== */
.tags-page-title {
  font-size: 32px;
  font-weight: 700;
  color: #454545;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .tags-page-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

/* ==================== List Article (list_article.html) ==================== */

.list-article-wrapper .article-list-section {
  padding: 30px 0 80px;
  background: #f8f8f8;
}

/* 列表容器 */
.list-article-wrapper .article-list {
  display: flex;
  flex-direction: column;
}

/* 单条新闻卡片通用 */
.list-article-wrapper .article-item {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid #e6e6e6;
  transition: transform .25s ease;
}

.list-article-wrapper .article-item:hover {
  transform: translateY(-4px);
}

/* 第一条：左右分栏 */
.list-article-wrapper .article-item-featured {
  display: flex;
  align-items: stretch;
  gap: 32px;
}

/* 左侧缩略图区 */
.list-article-wrapper .article-brand {
  display: block;
  flex: 0 0 auto;
  width: 40%;
  max-width: 500px;
  aspect-ratio: 500 / 340;
  align-self: center;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  text-decoration: none;
}

.list-article-wrapper .article-brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 右侧内容区 */
.list-article-wrapper .article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.list-article-wrapper .article-date {
  font-size: 18px;
  color: #555;
  text-align: right;
  margin-bottom: 20px;
}

.list-article-wrapper .article-title {
  font-size: 30px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  margin: 0 0 16px;
}

.list-article-wrapper .article-title a {
  color: inherit;
  text-decoration: none;
}

.list-article-wrapper .article-title a:hover {
  color: #399630;
}

.list-article-wrapper .article-summary {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 24px;
}

.list-article-wrapper .article-detail-tag {
  color: #555;
  font-size: 18px;
}

/* 查看全文链接 */
.list-article-wrapper .article-view-link {
  font-size: 22px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  align-self: flex-start;
}

.list-article-wrapper .article-view-primary {
  color: #399630;
}

/* ==================== 中等屏幕适配 (max-width: 1200px) ==================== */
@media (max-width: 1200px) {
  .list-article-wrapper .article-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .list-article-wrapper .article-summary {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .list-article-wrapper .article-detail-tag {
    font-size: 15px;
  }

  .list-article-wrapper .article-view-link {
    font-size: 18px;
  }
}

/* ==================== 平板端适配 (max-width: 768px) ==================== */
@media (max-width: 768px) {
  .list-article-wrapper .article-list-section {
    padding: 20px 0 60px;
  }

  /* 第一条：保持左右分栏，缩小图片 */
  .list-article-wrapper .article-item-featured {
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
  }

  .list-article-wrapper .article-brand {
    width: 40%;
    max-width: 500px;
    border-radius: 16px;
  }

  .list-article-wrapper .article-date {
    display: none;
  }

  .list-article-wrapper .article-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .list-article-wrapper .article-summary {
    font-size: 15px;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .list-article-wrapper .article-detail-tag {
    font-size: 15px;
  }

  .list-article-wrapper .article-view-link {
    font-size: 18px;
  }
}

/* ==================== 移动端适配 (max-width: 480px) ==================== */
@media (max-width: 480px) {
  .list-article-wrapper .article-list-section {
    padding: 16px 0 50px;
  }

  .article-breadcrumb {
    font-size: 12px;
    margin-bottom: 20px;
  }

  /* 列表改两列网格 */
  .list-article-wrapper .article-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .list-article-wrapper .article-item {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
  }

  /* 第一条也改为卡片式 */
  .list-article-wrapper .article-item-featured {
    flex-direction: column;
    gap: 0;
  }

  .list-article-wrapper .article-brand {
    flex: 0 0 auto;
    width: 100%;
    height: 120px;
    border-radius: 10px;
  }

  /* 移动端隐藏发布时间 */
  .list-article-wrapper .article-date {
    display: none;
  }

  .list-article-wrapper .article-title {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
  }

  .list-article-wrapper .article-title a {
    color: #333;
  }

  .list-article-wrapper .article-summary {
    display: none;
  }

  .list-article-wrapper .article-detail-tag {
    display: none;
  }

  .list-article-wrapper .article-view-link {
    display: none;
  }

  .list-article-wrapper .article-content {
    padding: 8px 0 0;
  }

  .article-pagination {
    margin-top: 30px;
    gap: 8px;
  }

  .article-pagination .page-num {
    display: none;
  }

  .article-pagination .page-btn {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 8px;
    font-size: 14px;
  }
}

/* ==================== Booking Contact 預約聯絡 ==================== */
.booking-contact {
  max-width: 1200px;
  margin: 50px auto;
  padding: 56px 24px 88px;
  background: #f1f1f1;
  border-radius: 12px;
  box-sizing: border-box;
}

.booking-contact-items {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 60px;
  margin-bottom: 30px;
}

.booking-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease;
}

.booking-contact-item:hover {
  transform: translateY(-2px);
}

.booking-contact-icon {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.booking-contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.booking-contact-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.booking-contact-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.booking-contact-num {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.5px;
}

.booking-contact-tip {
  display: block;
  width: max-content;
  margin: 0 auto 20px;
  background: #388c57;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  padding: 12px 56px;
  /* 高度 = 20px * 1.4 + 12px * 2 = 52px，圆角取 1/4 高度 = 13px */
  border-radius: 13px;
  line-height: 1.4;
  letter-spacing: 2px;
}

.booking-contact-desc {
  text-align: center;
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .booking-contact {
    margin: 36px 10px;
    padding: 36px 16px;
    border-radius: 8px;
  }

  .booking-contact-items {
    flex-wrap: nowrap; /* 移動端兩個聯絡卡片橫排 */
    gap: 12px;
  }

  .booking-contact-item {
    flex: 1;
    min-width: 0;
    justify-content: center;
    gap: 8px;
  }

  .booking-contact-icon {
    width: 36px;
    height: 36px;
  }

  .booking-contact-title {
    font-size: 13px;
  }

  .booking-contact-num {
    font-size: 14px;
    letter-spacing: 0;
  }

  .booking-contact-tip {
    font-size: 18px;
    padding: 10px 40px;
    /* 高度 = 18px * 1.4 + 10px * 2 ≈ 45px，圆角取 1/4 高度 ≈ 11px */
    border-radius: 11px;
  }

  .booking-contact-desc {
    font-size: 14px;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .booking-contact-items {
    gap: 8px;
  }

  .booking-contact-item {
    gap: 6px;
  }

  .booking-contact-icon {
    width: 30px;
    height: 30px;
  }

  .booking-contact-title {
    font-size: 12px;
  }

  .booking-contact-num {
    font-size: 13px;
  }
}

/* ==================== Booking Process 預約睇牙流程 ==================== */
.booking-process {
  padding: 60px 0;
  background: #f8f9fa;
}

.booking-process-header {
  text-align: center;
  margin-bottom: 50px;
}

.booking-process-title {
  font-size: 40px;
  font-weight: 700;
  color: #333;
  position: relative;
  display: inline-block;
}

/* 標題下方綠色短橫線 */
.booking-process-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #388c57;
  margin: 12px auto 0;
}

.booking-process-steps {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.booking-process-step {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.booking-process-icon {
  width: 140px;
  height: 140px;
}

.booking-process-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.booking-process-text {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.7;
  text-align: center;
}

/* 步驟之間的灰色箭頭（CSS 三角形） */
.booking-process-arrow {
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid #d8d8d8;
  flex-shrink: 0;
  /* 垂直對齊圖標中心：(140 - 26) / 2 = 57px */
  margin-top: 57px;
}

@media (max-width: 768px) {
  .booking-process {
    padding: 40px 0;
  }

  .booking-process-header {
    margin-bottom: 30px;
  }

  .booking-process-title {
    font-size: 28px;
  }

  /* 移動端與 PC 一致橫向單行排列，整體縮小，顯示不下時橫向滾動 */
  .booking-process-steps {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    max-width: none;
    padding: 0 16px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox 細滾動條 */
    scrollbar-color: #d8d8d8 transparent;
  }

  /* 細滾動條 */
  .booking-process-steps::-webkit-scrollbar {
    height: 4px;
  }

  .booking-process-steps::-webkit-scrollbar-track {
    background: transparent;
  }

  .booking-process-steps::-webkit-scrollbar-thumb {
    background: #d8d8d8;
    border-radius: 2px;
  }

  .booking-process-step {
    flex: 0 0 auto; /* 禁止壓縮，保證溢出後可滾動 */
  }

  /* 箭頭縮小並對齊縮小後的圖標中心：(72 - 20) / 2 = 26px */
  .booking-process-arrow {
    display: block;
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 16px;
    margin-top: 26px;
  }

  .booking-process-icon {
    width: 72px;
    height: 72px;
  }

  .booking-process-text {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
  }
}

/* ==================== SWT WhatsApp 自動跳轉落地頁 ==================== */
.swt-page {
  min-height: 340px;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-sizing: border-box;
}

.swt-page-box {
  text-align: center;
  max-width: 480px;
}

.swt-page-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.swt-page-desc {
  font-size: 15px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* 高度 = 17px * 1.4 + 12px * 2 ≈ 48px，圆角取 1/4 高度 = 12px */
.swt-page-btn {
  display: inline-block;
  background: #388c57;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 12px 40px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.swt-page-btn:hover {
  opacity: 0.9;
  color: #fff;
}

@media (max-width: 768px) {
  .swt-page {
    min-height: 260px;
    padding: 50px 16px;
  }

  .swt-page-title {
    font-size: 19px;
  }

  .swt-page-desc {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .swt-page-btn {
    font-size: 16px;
    padding: 11px 32px;
  }
}

/* ==================== page_pinzhi 品质页：溫馨貼士 ==================== */
/* ==================== 公共灰底包裹容器（tieshi-wrapper 与 part-pzbz-wrapper 共用） ==================== */
.page_pinzhi .page_pinzhi-gray-wrapper {
  background: #f9f9f9;
  /* 上下内边距撑出灰底围绕内容的呼吸感 */
  padding: 50px 0;
}

.page_pinzhi .tieshi {
  position: relative;
  background: #fff;
  border-radius: 16px;
  /* 右内边距比左侧宽，贴合设计稿留白 */
  padding: 36px 72px 36px 44px;
  margin: 0 auto; /* 改用 wrapper 上下内边距 */
  max-width: 1200px;
  /* 去掉边框，改用外阴影突出白卡 */
  box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
}

.page_pinzhi .tieshi-decor {
  position: absolute;
  top: 18px;
  left: 28px;
  color: #f5b800;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

.page_pinzhi .tieshi-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page_pinzhi .tieshi-figure {
  flex: 0 0 auto;
  width: 240px;
  text-align: center;
}

.page_pinzhi .tieshi-img {
  width: 210px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.page_pinzhi .tieshi-label {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  letter-spacing: 2px;
}

.page_pinzhi .tieshi-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.page_pinzhi .tieshi-text {
  margin: 0;
  font-size: 30px;
  line-height: 1.7;
  color: #666;
}

.page_pinzhi .tieshi-link {
  align-self: flex-end;
  color: #f0af4f;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s;
}

.page_pinzhi .tieshi-link:hover {
  color: #d8951f;
}

.page_pinzhi .tieshi-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform .2s;
}

.page_pinzhi .tieshi-link:hover .tieshi-arrow {
  transform: translateX(3px);
}

/* 移动端 */
@media (max-width: 768px) {
  .page_pinzhi .page_pinzhi-gray-wrapper {
    padding: 36px 0;
  }
  .page_pinzhi .tieshi {
    padding: 28px 36px 28px 22px;
    margin: 0 auto;
    border-radius: 12px;
  }
  .page_pinzhi .tieshi-decor {
    top: 14px;
    left: 18px;
    font-size: 16px;
  }
  .page_pinzhi .tieshi-inner {
    flex-direction: column;
    gap: 20px;
  }
  .page_pinzhi .tieshi-figure {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }
  .page_pinzhi .tieshi-img {
    width: 96px;
  }
  .page_pinzhi .tieshi-label {
    margin-top: 0;
    font-size: 18px;
    letter-spacing: 1px;
  }
  .page_pinzhi .tieshi-body {
    min-height: auto;
  }
  .page_pinzhi .tieshi-text {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
  }
  .page_pinzhi .tieshi-link {
    align-self: center;
    font-size: 14px;
  }
}

/* ==================== page_pinzhi part-one 服務規範篇 ==================== */
.page_pinzhi .part-one {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

/* ==================== 公共标题样式（part-one 与 part-pzbz 共用） ==================== */
.page_pinzhi .page_pinzhi-section-title {
  position: relative;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px;
  letter-spacing: 2px;
  padding-bottom: 12px;
}

.page_pinzhi .page_pinzhi-section-title-em {
  margin-left: 8px;
  font-weight: 700;
}

/* 标题下方水平居中的短线条（相对整个 H2 居中） */
.page_pinzhi .page_pinzhi-section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: #388c57;
  border-radius: 2px;
}

.page_pinzhi .page_pinzhi-section-subtitle {
  text-align: center;
  font-size: 15px;
  color: #888;
  margin: 0 0 40px;
  letter-spacing: 1px;
}

.page_pinzhi .part-one-content {
  display: flex;
  gap: 28px;
  /* 右侧卡片组相对左侧图片垂直居中 */
  align-items: center;
}

.page_pinzhi .part-one-image {
  flex: 0 0 auto;
  width: 380px;
  height: 515px;
  border-radius: 16px;
  overflow: hidden;
}

.page_pinzhi .part-one-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page_pinzhi .part-one-features {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.page_pinzhi .part-one-item {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.page_pinzhi .part-one-label {
  flex: 0 0 auto;
  width: 130px;
  background: #388c57;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 8px;
  letter-spacing: 2px;
}

.page_pinzhi .part-one-desc {
  flex: 1 1 auto;
  padding: 18px 24px;
  font-size: 24px;
  color: #454545;
  background: #f4fbf9;
  border: 1px solid #d7e8dd;
  line-height: 1.7;
  /* 文字垂直居中 */
  display: flex;
  align-items: center;
}

/* 移动端 */
@media (max-width: 768px) {
  .page_pinzhi .part-one {
    padding: 36px 16px;
  }
  .page_pinzhi .page_pinzhi-section-title {
    font-size: 24px;
    letter-spacing: 1px;
  }
  .page_pinzhi .page_pinzhi-section-title::after {
    width: 100px;
    height: 2px;
  }
  .page_pinzhi .page_pinzhi-section-subtitle {
    font-size: 13px;
    margin-bottom: 24px;
  }
  .page_pinzhi .part-one-content {
    flex-direction: column;
    gap: 16px;
  }
  .page_pinzhi .part-one-image {
    width: 100%;
    height: 220px;
  }
  .page_pinzhi .part-one-label {
    width: 80px;
    font-size: 20px;
    padding: 10px 4px;
  }
  .page_pinzhi .part-one-desc {
    padding: 12px 14px;
    font-size: 16px;
  }
}

/* ==================== page_pinzhi part-pzbz 四重品質標準 ==================== */
.page_pinzhi .part-pzbz {
  max-width: 1200px;
  margin: 0 auto;
  /* 上下间距由外层公共灰底 wrapper 提供 */
  padding: 0;
}

.page_pinzhi .part-pzbz-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 56px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
}

.page_pinzhi .part-pzbz-item {
  display: flex;
  gap: 32px;
  padding: 24px 0;
}

.page_pinzhi .part-pzbz-figure {
  flex: 0 0 auto;
  width: 220px;
  text-align: center;
}

.page_pinzhi .part-pzbz-figure img {
  width: 220px;
  height: 156px;
  display: block;
  margin: 0 auto;
}

.page_pinzhi .part-pzbz-tag {
  margin-top: 10px;
  display: block;
  width: 220px;
  height: 60px;
  line-height: 58px; /* 60 - 上下边框2px，文字垂直居中 */
  box-sizing: border-box;
  border: 2px solid #388c57;
  color: #388c57;
  font-size: 30px;
  font-weight: 700;
  border-radius: 6px;
  background: #fff;
  letter-spacing: 1px;
  text-align: center;
}

.page_pinzhi .part-pzbz-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.page_pinzhi .part-pzbz-item-title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 700;
  color: #388c57;
}

.page_pinzhi .part-pzbz-item-desc {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.85;
  color: #454545;
}

.page_pinzhi .part-pzbz-link {
  align-self: flex-end;
  color: #f0af4f;
  font-size: 24px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s;
}

.page_pinzhi .part-pzbz-link:hover {
  color: #d8951f;
}

.page_pinzhi .part-pzbz-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform .2s;
}

.page_pinzhi .part-pzbz-link:hover .part-pzbz-arrow {
  transform: translateX(3px);
}

/* 移动端 */
@media (max-width: 768px) {
  .page_pinzhi .part-pzbz {
    padding: 0 16px;
  }
  .page_pinzhi .part-pzbz-card {
    padding: 24px 20px;
    border-radius: 14px;
  }
  .page_pinzhi .part-pzbz-item {
    /* 横排：图标居左，文字居右 */
    gap: 14px;
    align-items: center;
    text-align: left;
    padding: 18px 0;
  }
  /* 移动端隐藏板块配图，文字占满整行 */
  .page_pinzhi .part-pzbz-figure {
    display: none;
  }
  .page_pinzhi .part-pzbz-tag {
    width: 130px;
    height: 38px;
    line-height: 36px;
    font-size: 15px;
  }
  .page_pinzhi .part-pzbz-item-title {
    font-size: 18px;
  }
  .page_pinzhi .part-pzbz-item-desc {
    font-size: 14px;
  }
  .page_pinzhi .part-pzbz-link {
    align-self: flex-end;
    font-size: 14px;
  }
}

/* ==================== Part Huanjing 口岸連鎖·星級環境 ==================== */
.page_pinzhi .part-huanjing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

.page_pinzhi .part-huanjing-title {
  margin-bottom: 44px;
}

.page_pinzhi .part-huanjing-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.page_pinzhi .part-huanjing-slider .swiper-container {
  overflow: hidden;
}

.page_pinzhi .part-huanjing-slider .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  /* 統一 1200x600 比例，不足部分居中裁切 */
  aspect-ratio: 1200 / 600;
  object-fit: cover;
}

/* 左右圓形導航按鈕：左白底灰箭頭，右綠底白箭頭（同設計稿） */
.page_pinzhi .part-huanjing-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #b5b5b5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: background .2s, color .2s, box-shadow .2s;
  z-index: 2;
}

.page_pinzhi .part-huanjing-nav.prev {
  left: 24px;
}

.page_pinzhi .part-huanjing-nav.next {
  right: 24px;
}

.page_pinzhi .part-huanjing-nav:hover {
  background: #388c57;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

/* 單張圖片時隱藏導航按鈕（JS 標記） */
.page_pinzhi .part-huanjing-slider--single .part-huanjing-nav {
  display: none;
}

/* 移动端 */
@media (max-width: 768px) {
  .page_pinzhi .part-huanjing {
    padding: 40px 16px;
  }

  .page_pinzhi .part-huanjing-title {
    margin-bottom: 28px;
  }

  /* 按鈕移入圖片內側，避免溢出屏幕 */
  .page_pinzhi .part-huanjing-nav {
    width: 36px;
    height: 36px;
  }

  .page_pinzhi .part-huanjing-nav.prev {
    left: 10px;
  }

  .page_pinzhi .part-huanjing-nav.next {
    right: 10px;
  }
}

/* ==================== Part Pinpai 國際品牌·品質保障 ==================== */
/* 板塊整體灰底（同其他 gray-wrapper：#f9f9f9），內容限寬居中 */
.page_pinzhi .part-pinpai {
  background: #f9f9f9;
  padding: 50px 0;
}

.page_pinzhi .part-pinpai-title {
  max-width: 1200px;
  margin: 0 auto 44px;
}

.page_pinzhi .part-pinpai-figure {
  max-width: 1200px;
  margin: 0 auto;
}

.page_pinzhi .part-pinpai-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* 移动端 */
@media (max-width: 768px) {
  .page_pinzhi .part-pinpai {
    padding: 36px 16px;
  }

  .page_pinzhi .part-pinpai-title {
    margin-bottom: 28px;
  }
}

/* ==================== Page Luxian Huanjing 鵬程口腔新美姿店環境 ==================== */
.page-luxian .huanjing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

/* 綠底白字標籤式標題（huanjing 環境標題） */
.page-luxian .huanjing-title {
  width: fit-content;
  margin: 0 auto 44px;
  background: #388c57;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 12px 40px;
}

.page-luxian .huanjing-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.page-luxian .huanjing-slider .swiper-container {
  overflow: hidden;
}

.page-luxian .huanjing-slider .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  /* 統一 1200x600 比例，不足部分居中裁切 */
  aspect-ratio: 1200 / 600;
  object-fit: cover;
}

/* 左右圓形導航按鈕：默認白底，懸停變綠（同品質保障頁） */
.page-luxian .huanjing-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #b5b5b5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: background .2s, color .2s, box-shadow .2s;
  z-index: 2;
}

.page-luxian .huanjing-nav.prev {
  left: 24px;
}

.page-luxian .huanjing-nav.next {
  right: 24px;
}

.page-luxian .huanjing-nav:hover {
  background: #388c57;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

/* 單張圖片時隱藏導航按鈕（JS 標記） */
.page-luxian .huanjing-slider--single .huanjing-nav {
  display: none;
}

/* 移动端 */
@media (max-width: 768px) {
  .page-luxian .huanjing-title {
    font-size: 20px;
    letter-spacing: 1px;
    padding: 10px 24px;
    margin-bottom: 28px;
  }

  .page-luxian .huanjing-nav {
    width: 36px;
    height: 36px;
  }

  .page-luxian .huanjing-nav.prev {
    left: 10px;
  }

  .page-luxian .huanjing-nav.next {
    right: 10px;
  }
}

/* 加載更多按鈕（两个列表共用）：左右線條 + 文字居中，无边框 */
.page-luxian .meishi-more-wrap {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 0;
}

.page-luxian .meishi-more-wrap::before,
.page-luxian .meishi-more-wrap::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.page-luxian .meishi-more-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 30px;
  border: none;
  background: none;
  color: #388c57;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: opacity .2s;
}

.page-luxian .meishi-more-btn:hover {
  opacity: .7;
}

/* ==================== Page Luxian Meishi 必食美食 / 遊玩懶人包（共用樣式） ==================== */
/* 两个列表均使用 .meishi 系列结构，靠 data-scode 区分欄目 */
.page-luxian .meishi {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* 首屏列表上方留白：第一個列表（遊玩懶人包） */
.page-luxian .meishi:first-of-type {
  padding-top: 60px;
}

/* 左側標籤卡：140x140，綠字 27px */
.page-luxian .meishi-tag {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.4;
  color: #388c57;
}

.page-luxian .meishi-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-content: center;
}

.page-luxian .meishi-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 26px;
  padding: 2px 12px;
  font-size: 17px;
  color: #454545;
  text-align: left;
}

/* 標題超長時單行省略號隱藏 */
.page-luxian .meishi-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 標題前的綠色裝飾點 */
.page-luxian .meishi-item::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #388c57;
  opacity: .75;
}

/* 移动端 */
@media (max-width: 768px) {
  .page-luxian .meishi-list {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .page-luxian .meishi-item {
    min-height: 34px;
    font-size: 16px;
    padding: 4px 10px;
  }

  .page-luxian .meishi {
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 40px;
  }

  .page-luxian .meishi-tag {
    flex: none;
    width: fit-content;
    min-width: 130px;
    height: 52px;
    font-size: 24px;
    padding: 0 22px;
    margin-bottom: 4px;
  }

  /* 移动端文字合併為一行 */
  .page-luxian .meishi-tag br {
    display: none;
  }
}

/* ==================== List Price 價格公示（欄目 Tab + 文章內容） ==================== */
/* PC/平板：左側 Tab，右側內容 */
.list-price-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 16px 60px;
}

.list-price-tabs {
  flex: 0 0 220px;
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-price-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 17px;
  color: #454545;
  text-align: left;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.list-price-tab:hover {
  color: #388c57;
  border-color: #388c57;
}

.list-price-tab.is-active {
  background: #388c57;
  border-color: #388c57;
  color: #fff;
}

.list-price-panels {
  flex: 1;
  min-width: 0;
}

.list-price-panel {
  display: none;
}

.list-price-panel.is-active {
  display: block;
}

/* 文章塊：標題 + 內容詳情 */
.list-price-article {
  margin-bottom: 28px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px 24px 16px;
}

.list-price-article-title {
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid #388c57;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

.list-price-article-content {
  font-size: 15px;
  color: #454545;
  line-height: 1.9;
  overflow-wrap: break-word;
}

.list-price-article-content img {
  max-width: 100%;
  height: auto;
}

.list-price-article-content p {
  margin: 0 0 10px;
}

/* 內容中的價格表格 */
.list-price-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  /* 關鍵：設最小寬度讓窄屏必然溢出，觸發 SimpleBar 橫向滾動（同文章詳情頁） */
  min-width: 700px;
}

/* SimpleBar 表格滾動容器（由 JS 動態包裹） */
.list-price-article-content .table-scroll-wrapper {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 10px 0;
}

.list-price-article-content .table-scroll-wrapper table {
  margin: 0;
}

.list-price-article-content th,
.list-price-article-content td {
  border: 1px solid #e5e7eb;
  padding: 9px 12px;
  text-align: left;
}

.list-price-article-content th {
  background: #f0f7f3;
  color: #388c57;
  font-weight: 700;
}

.list-price-article-content tr:nth-child(even) td {
  background: #fafcfa;
}

/* 欄目無文章時顯示空提示 */
.list-price-empty {
  display: none;
  padding: 60px 20px;
  text-align: center;
  font-size: 16px;
  color: #999;
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
  border-radius: 10px;
}

/* :has 兼容现代浏览器；无文章时显示提示 */
.list-price-panel:not(:has(.list-price-article)) .list-price-empty {
  display: block;
}

/* 移动端：Tab 置頂橫向滾動 + 吸附 */
@media (max-width: 768px) {
  .list-price-layout {
    flex-direction: column;
    gap: 20px;
    padding: 24px 0 40px;
  }

  .list-price-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    flex: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 10px 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .list-price-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 6px;
    font-size: 14px;
    border-radius: 999px;
  }

  .list-price-panels {
    width: 100%;
    padding: 0 16px;
  }

  .list-price-article {
    padding: 18px 16px 12px;
    margin-bottom: 20px;
  }

  .list-price-article-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .list-price-article-content {
    font-size: 14px;
  }

  .list-price-empty {
    padding: 40px 16px;
    font-size: 14px;
  }
}


/* page_about styles moved to css/page_about.css, included only in page_about.html */
