:root {
  color-scheme: light;
  --paper: #f7f3ea; --white: #fffcf6; --sun: #f6eadb;
  --green: #294538; --green-mid: #40614d; --sage: #dfe7d6; --mist: #edf0e6;
  --orange: #a75233; --peach: #f4e3d4; --line: #e9e2d5; --muted: #646b5d; --ink: #29382d;
  --body: 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans CJK SC', sans-serif;
  --serif: 'Songti SC', 'STSong', 'SimSun', 'Noto Serif CJK SC', serif;
  --shadow: 0 8px 23px #4f4a3010;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.65 var(--body); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex: none; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { padding-inline-start: 1.35em; }
:focus-visible { outline: 3px solid #966845; outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 10; left: 15px; top: 12px; padding: 7px 14px; background: var(--white); }
.site-width { width: min(1256px, calc(100% - 96px)); margin-inline: auto; }
.site-header { background: #fffcf7; border-bottom: 1px solid #eae4d7; }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 21px; }
.brand { color: var(--green); display: flex; align-items: center; gap: 11px; width: fit-content; }
.brand strong, .brand small { display: block; white-space: nowrap; }
.brand strong { font-size: 17px; line-height: 1.32; letter-spacing: .055em; }
.brand small { color: #657264; font-size: 11px; margin-top: 3px; letter-spacing: .04em; }
.main-nav { display: flex; gap: 7px; align-items: center; }
.main-nav a { padding: 9px 19px; border-radius: 11px; font-size: 14px; white-space: nowrap; color: #4c574b; }
.main-nav a[aria-current] { font-weight: 700; color: var(--green); background: #e8eee1; }
.main-nav a:hover, .header-practice:hover { background: var(--mist); }
.header-practice { justify-self: end; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; border: 1px solid #d8e0d1; color: var(--green); font-size: 13px; white-space: nowrap; }
.header-practice span { display: flex; }
.header-practice svg { width: 17px; height: 17px; }
.main-content { padding-block: 29px 45px; min-height: calc(100vh - 150px); outline: none; }
.site-footer { border-top: 1px solid #e3dccf; padding-block: 17px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; color: #626c60; }
.site-footer a { margin-left: auto; }
.site-footer a + a { margin-left: 22px; }
.site-footer a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 56% 44%; position: relative; overflow: hidden; min-height: 308px; background: var(--sage); border: 1px solid #dce2d2; border-radius: 25px; }
.hero-copy { position: relative; z-index: 1; padding: 31px 12px 28px clamp(30px, 4vw, 60px); align-self: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: #43624e; font-size: 13px; font-weight: 700; letter-spacing: .10em; margin-bottom: 12px; }
.hero-kicker svg { width: 18px; height: 18px; }
.hero h1 { font: 900 clamp(31px, 3.42vw, 53px)/1.23 var(--serif); letter-spacing: .035em; color: #243e31; }
.hero-copy > p { margin-top: 13px; color: #455b4b; font-size: 15px; }
.hero-media { position: relative; min-width: 0; isolation: isolate; background: #bdab90; }
.hero-media img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 51% 57%; }
.hero-media::after { position: absolute; content: ''; inset: 0; background: linear-gradient(90deg,#dfe7d6 0%,#dfe7d600 21%); pointer-events: none; }
.hero-photo-link { position: absolute; right: 18px; bottom: 18px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 24px; color: var(--green); background: #fffcf2eb; font-size: 12px; box-shadow: var(--shadow); }
.hero-photo-link svg { width: 15px; height: 15px; }
.search-form { padding: 5px 5px 5px 13px; display: flex; align-items: center; gap: 10px; min-width: 0; width: min(100%, 590px); border: 1px solid #dde2d6; border-radius: 11px; background: var(--white); }
.search-form:focus-within { border-color: #738d73; box-shadow: 0 0 0 3px #7f9c7529; }
.search-form input { min-width: 0; flex: 1; color: var(--green); width: 100%; border: 0; outline: 0; background: transparent; padding: 8px 0; }
.search-form input::placeholder { color: #677264; }
.search-form button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: fit-content; max-width: 100%; min-height: 40px; padding: 8px 15px; border-radius: 10px; border: 1px solid transparent; color: white; background: var(--green-mid); font-weight: 700; white-space: nowrap; }
.search-form svg { color: #58735f; }
.search-form button:hover, .button:hover:not(:disabled) { background: var(--green); }
.search-form button:focus-visible { outline-offset: 1px; }
.hero-search { margin-top: 23px; width: min(100%, 507px); }
.hero-lesson { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 17px; margin-top: 13px; }
.hero-lesson .lesson-button { min-height: 43px; background: #8a422d; font-size: 15px; }
.hero-lesson .lesson-button:hover { background: #733622; }
.hero-lesson .text-link { color: #294538; font-size: 14px; }
.button-secondary { background: transparent; border-color: #d5dfd1; color: var(--green); }
.button-secondary:hover:not(:disabled) { background: var(--mist); }
.button svg { width: 17px; height: 17px; }
.module-strip { margin-block: 22px 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.module-tile { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px 12px; border: 1px solid #ebe4d8; border-radius: 15px; background: var(--white); transition: border-color .15s, transform .15s; }
.module-tile:hover { transform: translateY(-2px); border-color: #a1b39b; }
.module-tile h2 { color: var(--green); font-size: 15px; line-height: 1.5; }
.module-tile p { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.tile-arrow { margin-left: auto; width: 14px; height: 14px; color: #7e8c78; }
.tile-icon { display: inline-grid; place-items: center; width: 43px; height: 43px; border-radius: 11px; color: #3a6049; background: #e9eee1; flex: none; }
.tile-icon svg { width: 23px; height: 23px; }
.tile-icon.peach { color: #995434; background: #f5e5d8; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 14px; margin-bottom: 13px; flex-wrap: wrap; }
.section-heading h2 { font: 800 25px/1.3 var(--serif); letter-spacing: .03em; color: var(--green); }
.section-heading .support { color: var(--muted); font-size: 12px; }
.text-link { color: var(--green-mid); display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.text-link svg { width: 16px; height: 16px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.recommend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.food-card { display: block; overflow: hidden; border-radius: 19px; border: 1px solid #ebe4d5; background: var(--white); box-shadow: var(--shadow); }
.food-card img { width: 100%; height: clamp(140px, 14.25vw, 212px); object-fit: cover; object-position: center 53%; transition: transform .25s ease; }
.food-card .food-image { overflow: hidden; background: #dfd2bf; }
.food-card:hover img { transform: scale(1.035); }
.food-card.peach-cookie img { object-position: center 63%; }
.food-card-body { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; min-height: 87px; padding: 12px 16px 14px; }
.food-card-body h3 { color: var(--green); font-size: 19px; line-height: 1.4; }
.food-card-body > svg { width: 19px; height: 19px; color: var(--green-mid); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips span, .badge { padding: 2px 8px; border-radius: 6px; background: #edf1e7; color: #46614f; font-size: 11.5px; white-space: nowrap; }
.food-card.peach-cookie .chips span, .badge-warm { color: #8b4b2d; background: #f5e6d8; }
.panel { background: var(--white); border: 1px solid #ebe4d6; border-radius: 19px; box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.evaluation-card { min-height: 285px; padding: 15px 17px 9px; }
.evaluation-top { display: flex; align-items: center; gap: 11px; }
.evaluation-top h3 { color: var(--green); font-size: 16px; line-height: 1.4; }
.evaluation-top p { color: #536356; font-size: 13px; margin-top: 3px; }
.evaluation-top .badge, .score-number { margin-left: auto; align-self: center; }
.score-number { color: var(--orange); font: 800 34px/1 var(--body); white-space: nowrap; }
.score-number small { font-size: 12px; font-weight: 400; margin-left: 3px; }
.evaluation-tip { margin-block: 13px 12px; padding: 9px 11px; background: #f7eee2; color: #674d3b; border-radius: 9px; font-size: 12px; }
.evaluation-tip ul { margin: 0; }
.evaluation-tip li + li { margin-top: 4px; }
.chart-title { margin-top: 11px; display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--green); }
.chart-title h3 { font-size: 16px; }
.chart-title > span { font-size: 13px; color: #4c5f50; }
.chart-wrap { position: relative; }
.chart { height: 268px; width: 100%; }
.chart.small { height: 145px; }
.chart svg { width: 100%; height: 100%; }
.chart-empty { position: absolute; inset: 20% 12% auto 12%; color: #657666; text-align: center; font-size: 12px; pointer-events: none; }
.chart-keys { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }
.chart-keys a { text-decoration: underline; text-underline-offset: 3px; }
.page-heading { margin-block: 2px 20px; }
.page-heading h1 { font: 800 clamp(31px, 3.1vw, 46px)/1.2 var(--serif); color: var(--green); letter-spacing: .045em; }
.page-heading p { margin-top: 7px; color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 13px; color: #526c57; font-size: 13px; }
.breadcrumb svg { width: 14px; height: 14px; }
.breadcrumb a:hover { text-decoration: underline; }
.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e0ded0; border-radius: 10px; background: var(--white); color: var(--green-mid); padding: 8px 14px; }
.tabs a[aria-current] { background: var(--green-mid); border-color: var(--green-mid); color: #fffcf5; font-weight: 700; }
.tabs a:not([aria-current]):hover { background: #edf0e5; }
.tabs svg { width: 17px; height: 17px; }
.catalog-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 17px; align-items: start; }
.catalog-group { padding: 19px 22px; }
.catalog-group h2 { color: var(--green); font: 800 23px/1.36 var(--serif); margin-bottom: 12px; }
.catalog-section + .catalog-section { margin-top: 16px; }
.catalog-section h3 { margin-bottom: 7px; font-size: 13px; color: #596753; }
.category-row { display: grid; grid-template-columns: minmax(95px, 135px) minmax(0, 1fr); gap: 7px; border-top: 1px solid #efe9dc; padding-block: 10px; }
.category-row > strong { color: var(--green); align-self: start; padding-top: 4px; }
.category-row > .muted { padding-top: 4px; }
.directory-links { display: flex; flex-wrap: wrap; gap: 6px; }
.directory-links a { border-radius: 7px; padding: 4px 8px; background: #f4f1e9; font-size: 13px; }
.directory-links a.available { color: #385f46; background: #e7eee1; font-weight: 700; }
.directory-links a:hover { box-shadow: inset 0 0 0 1px #a7b79f; }
.muted { color: var(--muted); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .37fr); gap: 20px; align-items: start; }
.detail-text { min-width: 0; }
.detail-text h2 { color: var(--green); font: 800 23px/1.4 var(--serif); margin-bottom: 10px; }
.detail-text ol, .detail-text ul { margin-block: 8px 0; }
.detail-text li + li { margin-top: 5px; }
.detail-aside img { aspect-ratio: 1.22; object-fit: cover; }
.detail-aside p { margin-top: 9px; color: var(--muted); font-size: 13px; }
.detail-aside .text-link { margin-top: 10px; }
.scroll-table { margin-top: 13px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #eae4d8; }
thead th { background: #eaf0e4; color: var(--green); }
tbody th { font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.recipe th:nth-child(2) { width: 24%; }
.recipe th:first-child { width: 28%; }
.safety-item + .safety-item { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee8dc; }
.safety-item h3 { color: var(--green); font-size: 16px; }
.safety-item p { margin-top: 5px; }
.source-note, .notice { padding: 10px 13px; margin-block: 11px; border-radius: 9px; background: #f6ebdc; color: #6c472e; }
.notice:last-child { margin-bottom: 0; }
.source-note { font-size: 13px; }
.photo-button { position: relative; display: block; padding: 0; border: 0; width: 100%; overflow: hidden; border-radius: 13px; background: #f3eee3; }
.photo-button img { width: 100%; object-fit: contain; max-height: 460px; }
.expand-icon { position: absolute; display: grid; place-items: center; right: 10px; bottom: 10px; background: #fffcf5eb; color: var(--green); width: 29px; height: 29px; border-radius: 7px; }
.expand-icon svg { width: 16px; height: 16px; }
.photo-dialog { max-width: min(850px, 93vw); width: fit-content; padding: 13px; border: 1px solid #e1ddcf; border-radius: 15px; background: var(--white); color: var(--green); }
.photo-dialog::backdrop { background: #222e26bc; }
.photo-dialog form { display: flex; justify-content: end; }
.photo-dialog img { max-height: 76vh; width: auto; height: auto; margin-inline: auto; object-fit: contain; border-radius: 9px; }
.photo-dialog p { text-align: center; margin: 8px 22px 0; }
.icon-button { color: var(--green); background: #eef0e6; border: 0; border-radius: 8px; font-size: 23px; line-height: 1; width: 33px; height: 32px; margin-bottom: 8px; }
.results { display: grid; gap: 11px; margin-top: 15px; }
.search-result { display: flex; gap: 13px; align-items: center; padding: 13px; }
.search-result h2 { font-size: 16px; }
.search-result img { width: 56px; height: 48px; object-fit: cover; border-radius: 8px; }
.search-result .muted { font-size: 12px; }
.search-result > svg { margin-left: auto; }
.search-result:hover { border-color: #99b095; }
.archives { display: grid; grid-template-columns: 1.18fr .82fr; align-items: start; gap: 18px; }
.exercise-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.exercise { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border: 1px solid #ebe6da; border-radius: 10px; min-height: 65px; }
.exercise:hover, .exercise[aria-current] { border-color: #9bb098; background: #f5f7ef; }
.exercise img, .exercise .tile-icon { flex: none; width: 58px; height: 49px; border-radius: 7px; object-fit: cover; }
.exercise strong { display: block; color: var(--green); }
.exercise small { font-size: 11px; color: var(--muted); }
.exercise .badge, .exercise .score-number { margin-left: auto; }
.exercise .score-number { font-size: 23px; }
.exercise > svg { width: 15px; height: 15px; color: #617966; }
.archive-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 13px; }
.score-quality { margin: 0 0 15px; }
.score-quality p { margin-top: 5px; }
.recovery-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; margin-bottom: 13px; }
.recovery-notice .button { min-height: 36px; }
.archive-detail { margin-top: 16px; }
.result-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 18px; align-items: start; }
.result-grid .photo-button img { max-height: 350px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 11px; color: var(--green); }
.result-head h3 { font-size: 18px; }
.result-dimensions { margin-block: 12px; display: grid; gap: 5px; }
.result-dimensions div { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.result-dimensions meter { grid-column: 1 / -1; height: 9px; width: 100%; display: block; accent-color: var(--green-mid); }
.result-dimensions meter::-webkit-meter-optimum-value { background: #708d6e; }
.result-dimensions span { color: var(--muted); font-size: 13px; }
.result-list { padding-inline-start: 18px; margin-top: 5px; }
.result-list li::marker { color: var(--orange); }
.result-block + .result-block { margin-top: 10px; }
.result-meta { color: var(--muted); font-size: 12px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 9px; }
.upload-layout { display: grid; grid-template-columns: 1.18fr .82fr; align-items: start; gap: 19px; }
.upload-layout h2 { font: 800 23px/1.35 var(--serif); color: var(--green); margin-bottom: 10px; }
.dropzone { min-height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 17px; border: 1.5px dashed #a7b9a2; border-radius: 14px; background: #f1f3e9; color: var(--green); text-align: center; cursor: pointer; }
#upload-file:focus-visible + .dropzone { outline: 3px solid #966845; outline-offset: 4px; }
.dropzone:hover, .dropzone.dragging { background: #e4ecdc; border-color: #779476; }
.dropzone svg { width: 29px; height: 29px; margin-bottom: 7px; }
.dropzone small { color: var(--muted); margin-top: 6px; }
.upload-preview { margin-top: 13px; }
.upload-preview img { max-height: 280px; width: 100%; border-radius: 10px; background: #f1eadc; object-fit: contain; }
.upload-preview p, .field-note { font-size: 12px; color: var(--muted); margin-top: 5px; }
.upload-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 13px; }
.field { flex: 1 1 150px; min-width: 130px; color: var(--green); font-weight: 600; font-size: 13px; }
.field input { display: block; width: 100%; min-height: 42px; border-radius: 9px; border: 1px solid #dbddcc; padding: 7px 10px; background: #fffdf8; color: var(--ink); margin-top: 3px; }
.feedback { margin-top: 10px; min-height: 24px; font-size: 13px; color: var(--green-mid); }
.feedback[data-error=true] { color: #8d3b29; }
.center-empty { text-align: center; padding-block: 31px; }
.center-empty p { margin-block: 6px 12px; color: var(--muted); }
.loading { padding: 28px; color: var(--muted); }
.history-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; align-items: start; }
.history-list li + li { margin-top: 7px; }
@media (max-width: 1100px) {
  .site-width { width: min(100% - 58px, 1256px); }
  .module-strip { gap: 8px; }
  .module-tile { gap: 8px; padding-inline: 9px; }
  .tile-arrow { display: none; }
  .tile-icon { width: 40px; height: 40px; }
  .hero { min-height: 280px; }
}
@media (max-width: 880px) {
  .site-width { width: calc(100% - 34px); }
  .hero-copy { padding-inline-start: 24px; }
  .header-inner { grid-template-columns: 1fr auto; gap: 5px; padding-top: 11px; }
  .header-practice { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; justify-content: center; padding-block: 4px 8px; }
  .home-grid { grid-template-columns: 1.38fr 1fr; gap: 15px; }
  .module-tile { flex-direction: column; align-items: start; justify-content: start; }
  .module-tile p { white-space: normal; }
  .evaluation-tip { margin-block: 8px; }
  .evaluation-top p { font-size: 12px; }
}
@media (max-width: 690px) {
  .main-content { padding-top: 17px; }
  .main-nav { justify-content: start; gap: 1px; overflow-x: auto; }
  .main-nav a { padding: 7px 10px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 20px 18px 18px; }
  .hero h1 { font-size: clamp(23px, 5.8vw, 35px); }
  .hero-copy > p { margin-top: 7px; font-size: 13px; }
  .hero-search { margin-top: 13px; }
  .hero-media { height: 158px; }
  .hero-media img { object-position: center 57%; }
  .hero-media::after { background: linear-gradient(180deg,#dfe7d6 0%,#dfe7d600 18%); }
  .module-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 14px 17px; }
  .module-tile { align-items: center; padding: 8px 5px; text-align: center; }
  .module-tile h2 { font-size: 13px; }
  .home-grid, .catalog-grid, .detail-layout, .result-grid, .archives, .upload-layout, .history-layout { grid-template-columns: 1fr; }
  .recommend-grid { gap: 9px; }
  .food-card-body { padding-inline: 10px; }
  .food-card-body h3 { font-size: 15px; }
  .category-row { grid-template-columns: 1fr; }
  .recipe { min-width: 520px; }
  .site-footer { gap: 8px; }
  .site-footer a + a { margin-left: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
