:root { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #30352f; background: #fff; font-size: 16px; line-height: 1.6; font-synthesis: none; --gold: #ad7b30; --green: #346957; --line: #e8eae6; --muted: #747b73; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
button { border: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 27px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
h2 { font-size: 20px; font-weight: 650; }
h3 { font-size: 19px; font-weight: 650; }
.site-header { max-width: 1080px; padding: 20px 28px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 650; }
.header-label, .muted { color: var(--muted); font-size: 14px; }
main { max-width: 860px; margin: auto; padding: 32px 28px 60px; min-height: calc(100vh - 165px); }
.site-footer { text-align: center; border-top: 1px solid var(--line); color: var(--muted); padding: 23px; font-size: 12px; }
.page-heading { margin: 12px 0 30px; text-align: center; }
.page-heading .eyebrow { color: var(--green); font-size: 14px; margin-bottom: 8px; }
.page-heading p { margin-top: 12px; color: var(--muted); }
.clinic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.clinic-item { border: 1px solid var(--line); border-radius: 6px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.clinic-item:hover { border-color: var(--green); }
.clinic-item .area { color: var(--green); font-size: 13px; margin-bottom: 9px; }
.clinic-item h2 { margin-bottom: 16px; }
.clinic-item p { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.clinic-item .entry { color: var(--gold); margin-top: 24px; display: flex; justify-content: space-between; width: 100%; font-weight: 600; }
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-bottom: 25px; }
.breadcrumbs a:hover { color: var(--green); }
.clinic-heading { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.clinic-heading .eyebrow { font-size: 13px; color: var(--green); margin-bottom: 8px; }
.clinic-heading p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.clinic-contact { display: flex; gap: 8px 24px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.clinic-contact a { color: var(--green); white-space: nowrap; }
.toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 24px 0 10px; }
.toolbar label { font-size: 15px; font-weight: 600; }
.toolbar input { width: 220px; min-width: 0; padding: 9px 12px; border: 1px solid #d9ded8; border-radius: 4px; font-size: 14px; }
.doctor-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 92px; gap: 23px; padding: 30px 0; align-items: center; border-bottom: 1px solid var(--line); }
.avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; background: #f2f4f1; }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; color: var(--green); font-size: 30px; }
.doctor-title { color: var(--muted); font-size: 14px; font-weight: 400; margin-left: 12px; }
.visit-badge { display: inline-block; color: var(--green); background: #f1f4f0; padding: 2px 7px; border-radius: 3px; font-size: 12px; margin-top: 8px; }
.registration-fee { color: var(--gold); font-size: 14px; margin-top: 8px; }
.specialty { margin-top: 12px; font-size: 14px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 18px; background: var(--gold); color: white; border-radius: 4px; font-weight: 600; text-align: center; }
.primary-button:hover { background: #916323; }
.plain-button { background: #f1f4f0; color: var(--green); border-radius: 4px; padding: 10px 16px; min-height: 44px; }
.back-link { display: inline-flex; gap: 7px; align-items: center; color: var(--green); font-size: 14px; margin-bottom: 25px; }
.detail-heading { text-align: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.detail-heading .avatar { width: 114px; height: 114px; margin: 24px 0 12px; }
.detail-heading h2 { margin-bottom: 5px; }
.section { padding: 27px 0; border-bottom: 1px solid var(--line); }
.section h2 { margin-bottom: 17px; }
.section .body-copy { white-space: pre-line; font-size: 15px; line-height: 1.9; color: #5b635b; overflow-wrap: anywhere; }
.schedule-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.schedule-top h2 { margin: 0; }
.week-controls { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.icon-button { background: #f1f4f0; border-radius: 4px; color: var(--green); width: 40px; height: 40px; flex-shrink: 0; font-size: 23px; }
.schedule-wrap { overflow-x: auto; }
.schedule { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.schedule th, .schedule td { border: 1px solid var(--line); text-align: center; height: 58px; padding: 6px 2px; font-weight: 400; }
.schedule th { background: #f6f8f5; color: #626c62; }
.schedule th:first-child { width: 46px; }
.schedule small { display: block; font-size: 11px; color: var(--muted); }
.schedule td { color: #a5aaa3; }
.slot-button { background: #fff; width: 100%; height: 100%; padding: 8px 0; color: var(--gold); font-size: 14px; font-weight: 600; border-radius: 3px; }
.slot-button:hover { background: #f4f7f1; }
.form-summary { padding: 23px 0; border-bottom: 1px solid var(--line); }
.form-summary h2 { color: var(--gold); margin-bottom: 16px; }
dl { margin: 0; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px 8px; font-size: 15px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.appointment-form { max-width: 600px; padding: 26px 0; }
.appointment-form h2 { margin-bottom: 24px; }
.field { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; margin-bottom: 19px; align-items: start; }
.field > label { padding-top: 11px; font-size: 15px; }
.field input[type=text], .field input[type=tel], .field textarea { width: 100%; min-width: 0; border: 1px solid #d5dbd3; border-radius: 4px; padding: 11px 12px; background: #fff; color: #30352f; font-size: 16px; }
.field textarea { min-height: 110px; resize: vertical; }
.required { color: #b54c3b; margin-right: 3px; }
.choice-group { display: flex; flex-wrap: wrap; gap: 22px; min-height: 46px; align-items: center; }
.choice-group label { cursor: pointer; }
input[type=radio], input[type=checkbox] { accent-color: var(--green); width: 17px; height: 17px; vertical-align: middle; margin: 0 6px 0 0; flex-shrink: 0; }
.consent { font-size: 13px; display: flex; align-items: flex-start; color: var(--muted); gap: 3px; margin: 24px 0; line-height: 1.8; }
.consent input { margin-top: 4px; }
.form-message { font-size: 14px; color: #a34738; margin-bottom: 16px; }
.integration-status { padding: 12px 16px; border-left: 3px solid var(--gold); background: #fafaf7; color: #756440; font-size: 14px; margin: 20px 0; }
.appointment-form .primary-button { min-width: 210px; }
.notice { padding-top: 26px; border-top: 1px solid var(--line); }
.notice h2 { font-size: 17px; margin-bottom: 13px; }
.notice p { font-size: 14px; color: var(--muted); margin-bottom: 10px; line-height: 1.9; }
.state { text-align: center; padding: 50px 16px; color: var(--muted); }
.state p { margin-bottom: 20px; }
dialog { width: min(360px, calc(100% - 32px)); border: 0; border-radius: 8px; padding: 24px; box-shadow: 0 12px 60px #0002; }
dialog::backdrop { background: #0005; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }
.dialog-top h2 { font-size: 19px; }
.period-options { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 1000px) {
  main { padding-top: 42px; }
  .page-heading { margin: 25px 0 42px; }
  .clinic-grid { gap: 24px; }
}
@media (max-width: 600px) {
  .site-header { padding: 15px 18px; }
  .brand { font-size: 18px; gap: 9px; }
  .brand img { width: 31px; height: 31px; }
  .header-label { font-size: 12px; }
  main { padding: 23px 18px 40px; }
  h1 { font-size: 23px; }
  .page-heading { margin: 10px 0 28px; }
  .clinic-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .clinic-item { padding: 22px; }
  .doctor-row { grid-template-columns: 70px minmax(0, 1fr) 68px; gap: 12px; padding: 24px 0; align-items: start; }
  .avatar { width: 70px; height: 70px; }
  .doctor-row h3 { font-size: 17px; }
  .doctor-title { display: block; margin-left: 0; margin-top: 3px; font-size: 12px; }
  .doctor-row .primary-button { padding: 10px 6px; font-size: 14px; align-self: center; }
  .specialty { font-size: 13px; margin-top: 9px; -webkit-line-clamp: 3; }
  .toolbar { gap: 10px; }
  .toolbar input { width: 175px; }
  .clinic-contact { flex-direction: column; gap: 6px; }
  .schedule-top { flex-wrap: wrap; }
  .week-controls { gap: 9px; }
  .schedule th:first-child { width: 34px; }
  .schedule { font-size: 12px; }
  .schedule .slot-button { font-size: 12px; }
  .field { grid-template-columns: 76px minmax(0, 1fr); gap: 5px; }
  .field > label { font-size: 14px; }
  .appointment-form .primary-button { width: 100%; }
  .section h2 { font-size: 18px; }
}
@media (max-width: 360px) {
  main { padding-left: 12px; padding-right: 12px; }
  .doctor-row { grid-template-columns: 58px minmax(0, 1fr) 60px; gap: 9px; }
  .doctor-row .avatar { width: 58px; height: 58px; }
  .toolbar input { width: 155px; }
}
