@charset "UTF-8";

:root {
  --paper: #f6f1e8;
  --paper-deep: #ece3d6;
  --surface: #fffdf8;
  --ink: #25211c;
  --muted: #746b61;
  --line: #dcd1c3;
  --coffee: #7b3f2a;
  --coffee-dark: #52291e;
  --accent: #d97548;
  --sage: #596c56;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(66, 42, 27, .10);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", SimSun, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-sans); line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; }
button, select, input[type="range"] { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 96px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 16px; color: white; background: var(--coffee-dark); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(123, 63, 42, .12); background: rgba(246, 241, 232, .90); backdrop-filter: blur(16px); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--coffee); flex-shrink: 0; }
.brand > span { color: var(--ink); font-size: 20px; font-weight: 800; line-height: 1.1; letter-spacing: -.04em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .18em; }
.site-header nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.site-header nav a { position: relative; color: #554c43; font-size: 14px; font-weight: 600; }
.site-header nav a::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--coffee); transform: scaleX(0); transition: transform .2s ease; }
.site-header nav a:hover::after { transform: scaleX(1); }
.nav-cta { padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255, 255, 255, .4); font-size: 13px; font-weight: 700; }
.nav-cta span { margin-left: 8px; color: var(--coffee); }

.hero { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; min-height: 680px; padding-block: 72px 88px; }
.eyebrow { margin: 0 0 18px; color: var(--coffee); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; letter-spacing: .09em; }
.hero .eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(217, 117, 72, .12); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 26px; font-family: var(--font-serif); font-size: clamp(40px, 4.6vw, 65px); font-weight: 700; line-height: 1.25; letter-spacing: -.055em; }
h1 em { color: var(--coffee); font-style: normal; }
.hero-lead { max-width: 510px; margin-bottom: 32px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 50px; padding: 12px 24px; border: 0; border-radius: 100px; font-size: 14px; font-weight: 750; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fffaf3; background: var(--coffee); box-shadow: 0 10px 24px rgba(123, 63, 42, .18); }
.button-primary:hover { background: var(--coffee-dark); box-shadow: 0 14px 28px rgba(123, 63, 42, .24); }
.text-link { display: inline-flex; align-items: center; gap: 16px; padding-block: 5px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.text-link span { color: var(--coffee); }
.hero-points { display: flex; gap: 25px; margin: 36px 0 0; padding: 0; color: var(--muted); font-size: 12px; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points li::before { content: "✓"; color: var(--sage); font-weight: 900; }
.hero-visual { position: relative; margin: 0; padding: 12px 12px 0 0; }
.hero-visual::before { content: ""; position: absolute; z-index: -1; top: -12px; right: -12px; width: 62%; height: 62%; border: 1px solid rgba(123, 63, 42, .28); border-radius: 30px; }
.hero-visual img { width: 100%; aspect-ratio: 1.06 / 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-visual figcaption { position: absolute; right: -22px; bottom: -34px; width: 270px; padding: 21px 25px; border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius-md); background: rgba(255, 253, 248, .95); box-shadow: 0 16px 45px rgba(56, 35, 23, .16); backdrop-filter: blur(10px); }
.hero-visual figcaption > span { display: block; color: var(--muted); font-size: 11px; }
.hero-visual figcaption .recipe-label { margin-bottom: 8px; color: var(--coffee); font-weight: 800; letter-spacing: .12em; }
.hero-visual figcaption strong { display: block; margin-bottom: 4px; font-family: var(--font-serif); font-size: 27px; line-height: 1.3; }
.hero-visual figcaption strong small { color: var(--muted); font-family: var(--font-sans); font-size: 11px; font-weight: 500; }
.visual-note { position: absolute; top: 32px; left: -28px; display: grid; place-items: center; width: 86px; height: 86px; color: #fff9ef; background: var(--coffee); border: 5px solid var(--paper); border-radius: 50%; font-family: var(--font-serif); font-size: 13px; line-height: 1.5; text-align: center; transform: rotate(-9deg); }

.calculator-section { background: #eae0d2; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.section-heading .eyebrow { margin-bottom: 10px; }
h2 { margin-bottom: 0; font-family: var(--font-serif); font-size: clamp(29px, 3.2vw, 42px); line-height: 1.4; letter-spacing: -.04em; }
.section-heading > p { max-width: 390px; margin-bottom: 5px; color: var(--muted); font-size: 14px; }
.calculator-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid rgba(123, 63, 42, .10); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.controls { display: flex; flex-direction: column; gap: 30px; padding: 44px; }
.field > label, .label-row label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 750; }
.field > label span { margin-left: 6px; color: var(--muted); font-size: 11px; font-weight: 500; }
.number-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s; }
.number-input:focus-within { border-color: var(--coffee); }
.number-input input { width: 100%; min-width: 0; padding: 13px 16px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 22px; font-weight: 750; }
.number-input > span { padding-right: 17px; color: var(--muted); }
.field-hint { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.label-row output { color: var(--coffee); font-family: var(--font-serif); font-size: 22px; font-weight: 800; }
input[type="range"] { --range-progress: 25%; width: 100%; height: 24px; margin: 8px 0 2px; appearance: none; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 10px; background: linear-gradient(to right, var(--coffee) var(--range-progress), var(--line) var(--range-progress)); }
input[type="range"]::-moz-range-track { height: 5px; border-radius: 10px; background: linear-gradient(to right, var(--coffee) var(--range-progress), var(--line) var(--range-progress)); }
input[type="range"]::-webkit-slider-thumb { width: 21px; height: 21px; margin-top: -8px; appearance: none; border: 4px solid var(--surface); border-radius: 50%; background: var(--coffee); box-shadow: 0 0 0 1px var(--coffee); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 4px solid var(--surface); border-radius: 50%; background: var(--coffee); box-shadow: 0 0 0 1px var(--coffee); }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
select { width: 100%; padding: 13px 42px 13px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; font-size: 13px; }
.brew-tip { display: flex; gap: 12px; margin-top: auto; padding: 14px 16px; border-radius: 12px; color: var(--sage); background: #eef0e8; }
.brew-tip > span { font-size: 18px; }
.brew-tip p { margin: 0; font-size: 12px; line-height: 1.7; }
.recipe-result { padding: 34px 40px; color: #fff8ed; background: var(--coffee-dark); }
.result-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .15); font-size: 13px; font-weight: 700; }
.result-badge { padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 30px; color: #ddcabb; font-size: 10px; font-weight: 500; }
.water-result { padding: 22px 0 18px; text-align: center; }
.water-result > span { color: #d8c2b2; font-size: 12px; }
.water-result > div { display: flex; align-items: baseline; justify-content: center; gap: 8px; line-height: 1; }
.water-result strong { font-family: var(--font-serif); font-size: 72px; font-weight: 600; letter-spacing: -.05em; }
.water-result > div span { color: #d8c2b2; font-size: 20px; }
.water-result p { margin: 9px 0 0; color: #d8c2b2; font-size: 11px; }
.water-result p b { color: #fff8ed; }
.result-meta { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 0; border-block: 1px solid rgba(255, 255, 255, .13); }
.result-meta > div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.result-meta > div + div { border-left: 1px solid rgba(255, 255, 255, .13); }
.result-meta span { color: #d8c2b2; font-size: 10px; }
.result-meta strong { font-size: 14px; }
.pour-list { margin: 12px 0 18px; padding: 0; list-style: none; }
.pour-list li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.pour-time { color: #c8aa96; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.pour-list li div { display: flex; flex-direction: column; }
.pour-list li strong { font-size: 12px; }
.pour-list li small { color: #c8aa96; font-size: 10px; }
.pour-list li > b { font-size: 14px; }
.result-actions { display: flex; gap: 10px; }
.button-light { flex: 1; min-height: 43px; color: var(--coffee-dark); background: #f7ede0; font-size: 12px; box-shadow: none; }
.button-light:hover { background: #fff; }
.icon-button { display: grid; place-items: center; width: 45px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #fff8ed; background: transparent; }
.icon-button:hover { background: rgba(255, 255, 255, .1); }
.copy-status { min-height: 16px; margin: 8px 0 -13px; color: #d8c2b2; font-size: 10px; text-align: center; }

.align-start { align-items: start; }
.guide-layout { display: grid; grid-template-columns: 1.35fr .8fr; gap: 80px; }
.guide-steps { margin: 0; padding: 0; list-style: none; }
.guide-steps > li { display: grid; grid-template-columns: 48px 1fr; gap: 22px; padding: 28px 0; border-top: 1px solid var(--line); }
.guide-steps > li:first-child { padding-top: 5px; border-top: 0; }
.guide-steps > li > span { color: var(--coffee); font-family: var(--font-serif); font-size: 21px; font-style: italic; }
.guide-steps h3 { margin-bottom: 8px; font-size: 18px; }
.guide-steps p { margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.guide-steps small { color: var(--coffee); font-size: 11px; font-weight: 700; }
.aside-card { align-self: start; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 253, 248, .58); }
.aside-card h3 { margin-bottom: 12px; font-family: var(--font-serif); font-size: 23px; line-height: 1.5; }
.aside-card > p:not(.eyebrow) { margin-bottom: 25px; color: var(--muted); font-size: 13px; }
.taste-row { display: grid; grid-template-columns: 38px 1fr; gap: 13px; padding: 16px 0; border-top: 1px solid var(--line); }
.taste-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--coffee); background: var(--paper-deep); font-family: var(--font-serif); font-size: 13px; }
.taste-row strong { font-size: 12px; }
.taste-row p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

.knowledge-section { color: #f7f0e5; background: #292d27; }
.knowledge-section .eyebrow { color: #c6a887; }
.article-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.article-intro { align-self: start; position: sticky; top: 120px; }
.article-intro h2 { margin-bottom: 22px; }
.article-intro > p:not(.eyebrow) { margin-bottom: 27px; color: #b7b8ae; font-size: 14px; }
.article-intro .text-link { border-color: #53564e; font-size: 12px; }
.knowledge-list section { display: grid; grid-template-columns: 40px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid #454940; }
.knowledge-list section:first-child { padding-top: 0; border-top: 0; }
.knowledge-list section > span { color: #c6a887; font-family: var(--font-serif); font-size: 16px; font-style: italic; }
.knowledge-list h3 { margin-bottom: 10px; font-size: 18px; }
.knowledge-list p { margin-bottom: 0; color: #b7b8ae; font-size: 13px; line-height: 1.9; }
.troubleshooting { display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; align-items: start; margin-top: 80px; padding-top: 55px; border-top: 1px solid #454940; }
.troubleshooting h2 { font-size: 29px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
th, td { padding: 14px 16px; border-bottom: 1px solid #454940; }
th { color: #c6a887; font-size: 10px; letter-spacing: .06em; }
td { color: #c8cbc1; }
td:first-child { color: #f7f0e5; }

.faq-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; }
.faq-heading h2 { margin-bottom: 20px; }
.faq-heading > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 23px 45px 23px 0; font-size: 15px; font-weight: 700; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; top: 50%; right: 4px; width: 13px; height: 1px; background: var(--coffee); transition: transform .2s; }
.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list details p { margin: -5px 0 23px; padding-right: 30px; color: var(--muted); font-size: 13px; }

.closing-section { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 90px; padding: 48px 55px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #eee4d5; }
.closing-section .eyebrow { margin-bottom: 8px; }
.closing-section h2 { font-size: 32px; }
.closing-section p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.closing-section .button { flex-shrink: 0; }
.site-footer { padding: 55px 0 20px; color: #dfd7ca; background: #25211c; }
.footer-main { display: grid; grid-template-columns: 1fr auto 1fr; gap: 50px; align-items: start; padding-bottom: 45px; }
.footer-brand { color: #c6a887; }
.footer-brand > span { color: #f4eee4; }
.footer-brand small { color: #9c9184; }
.footer-main nav { display: flex; gap: 25px; font-size: 12px; }
.footer-main nav a:hover { color: #c6a887; }
.footer-main > p { margin: 0; color: #b3a99b; font-size: 11px; text-align: right; }
.footer-main > p span { color: #776f65; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid #3c3730; color: #776f65; font-size: 10px; }

@media (max-width: 980px) {
  .site-header nav { gap: 18px; }
  .site-header nav a { font-size: 12px; }
  .nav-cta { display: none; }
  .hero { grid-template-columns: 1fr 1fr; gap: 35px; }
  .hero-visual figcaption { right: -5px; }
  .guide-layout, .article-layout, .faq-section { gap: 50px; }
  .article-layout { grid-template-columns: .85fr 1.15fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main nav { justify-content: end; }
  .footer-main > p { display: none; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 620px); }
  .section { padding-block: 68px; }
  .nav-wrap { min-height: 70px; gap: 18px; }
  .site-header nav { overflow-x: auto; gap: 18px; padding-block: 8px; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { flex-shrink: 0; }
  .brand > span { font-size: 17px; }
  .brand small { font-size: 8px; }
  .brand svg { width: 27px; }
  .hero { grid-template-columns: 1fr; gap: 62px; min-height: auto; padding-block: 55px 80px; }
  .hero-copy { max-width: 580px; }
  h1 { font-size: clamp(35px, 8vw, 52px); }
  .hero-lead { font-size: 15px; }
  .hero-visual { width: calc(100% - 10px); margin-left: 10px; }
  .hero-visual img { aspect-ratio: 1.2 / 1; }
  .visual-note { left: -17px; }
  .hero-visual figcaption { right: -4px; bottom: -35px; }
  .section-heading { flex-direction: column; align-items: start; gap: 15px; }
  .section-heading > p { max-width: 100%; }
  .calculator-card { grid-template-columns: 1fr; }
  .controls { padding: 30px; }
  .recipe-result { padding: 28px 30px; }
  .guide-layout, .article-layout, .faq-section, .troubleshooting { grid-template-columns: 1fr; }
  .guide-layout { gap: 35px; }
  .article-layout { gap: 40px; }
  .article-intro { position: static; }
  .troubleshooting { gap: 30px; margin-top: 50px; }
  .faq-section { gap: 25px; }
  .closing-section { align-items: start; padding: 35px; }
  .closing-section h2 { font-size: 28px; }
  .footer-main { gap: 25px; }
  .footer-main nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(30px, 9.4vw, 40px); }
  .site-header nav a:nth-child(3), .site-header nav a:nth-child(4) { display: none; }
  .hero-actions { align-items: start; flex-direction: column; gap: 15px; }
  .hero-points { flex-wrap: wrap; gap: 10px 18px; }
  .hero-visual figcaption { width: 245px; padding: 17px 20px; }
  .visual-note { width: 72px; height: 72px; font-size: 11px; }
  .controls, .recipe-result { padding: 25px 22px; }
  .water-result strong { font-size: 64px; }
  .guide-steps > li { grid-template-columns: 35px 1fr; gap: 13px; }
  .aside-card { padding: 25px; }
  .knowledge-list section { grid-template-columns: 28px 1fr; gap: 13px; }
  th, td { padding: 12px 10px; white-space: nowrap; }
  .closing-section { flex-direction: column; margin-bottom: 60px; padding: 28px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-main nav { justify-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  body { background: white; }
  .site-header, .hero, .controls, .guide-section, .knowledge-section, .faq-section, .closing-section, .site-footer, .section-heading, .result-actions, .copy-status { display: none !important; }
  .calculator-section { padding: 0; background: white; }
  .calculator-card { display: block; border: 0; box-shadow: none; }
  .recipe-result { color: #222; background: white; }
  .result-top, .result-meta, .result-meta > div + div { border-color: #ccc; }
  .water-result p, .water-result > span, .water-result > div span, .result-meta span, .pour-time, .pour-list li small { color: #555; }
  .water-result p b { color: #222; }
}
