/* 个人养花技巧分享 · 站点样式表 */
:root {
  --ink: #241f24;
  --ink-soft: #5b5560;
  --ink-faint: #958d97;
  --bg: #f8f5f4;
  --surface: #ffffff;
  --line: #e9e1e3;
  --accent: #b8597e;
  --accent-deep: #9b4267;
  --rose-soft: #fbeef3;
  --leaf: #3f6b52;
  --leaf-deep: #2a4b39;
  --leaf-soft: #eef3ee;
  --gold: #c9a24b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(36, 31, 36, 0.08);
  --shadow-hover: 0 18px 46px rgba(36, 31, 36, 0.16);
  --maxw: 1120px;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 64px 0; }
.section.is-tight { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head .eyebrow { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.section-head h2 { font-family: var(--serif); font-size: 30px; margin: 6px 0 0; letter-spacing: 0.02em; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 44ch; }

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 244, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 0.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--leaf));
  color: #fff;
  font-size: 18px;
  flex: 0 0 auto;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 15px; color: var(--ink-soft); font-weight: 500; transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.is-active { color: var(--accent); }

/* 首屏 */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 68px;
  background:
    radial-gradient(1100px 500px at 8% -10%, rgba(184, 89, 126, 0.16), transparent 60%),
    radial-gradient(900px 500px at 96% 4%, rgba(63, 107, 82, 0.14), transparent 62%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.hero .eyebrow { display: inline-block; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 54px); line-height: 1.2; letter-spacing: 0.02em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; z-index: 0; }
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.34em;
  background: rgba(184, 89, 126, 0.16);
  border-radius: 4px;
  z-index: -1;
}
.hero p.lead { font-size: 17px; color: var(--ink-soft); margin: 0 0 30px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(184, 89, 126, 0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(184, 89, 126, 0.42); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; }
.hero-stats .stat b { display: block; font-family: var(--serif); font-size: 30px; color: var(--accent); }
.hero-stats .stat span { font-size: 13px; color: var(--ink-faint); }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.hero-photo .badge {
  position: absolute;
  left: -14px;
  bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}

/* 卡片网格 */
.tip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(150deg, #f7eef2, #eef3ee); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media .tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(36, 31, 36, 0.72);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-faint); margin-bottom: 8px; }
.card-body .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.card-body h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 8px; line-height: 1.35; }
.card-body p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 16px; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.card-link .arrow { transition: transform 0.2s ease; }
.card:hover .card-link .arrow { transform: translateX(4px); }

/* 花期日历 */
.calendar-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-scroll { overflow-x: auto; padding-bottom: 4px; }
.calendar { min-width: 660px; }
.cal-row { display: grid; grid-template-columns: 1.5fr repeat(12, 1fr); gap: 6px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.cal-row:last-child { border-bottom: 0; }
.cal-row.cal-head { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.cal-row.cal-head span { font-size: 12px; color: var(--ink-faint); text-align: center; }
.cal-row.cal-head .cal-name { text-align: left; letter-spacing: 0.08em; }
.cal-name { font-size: 14px; font-weight: 600; }
.cal-row .cal-latin { display: block; font-size: 12px; color: var(--ink-faint); font-weight: 400; }
.cal-row i { display: block; height: 10px; border-radius: 999px; background: #f0eaec; }
.cal-row i.bloom { background: linear-gradient(90deg, var(--accent), #d18aa6); }
.cal-row i.peak { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.cal-row i.leafy { background: #d9e6dc; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 13px; color: var(--ink-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cal-legend i { width: 22px; height: 10px; border-radius: 999px; display: inline-block; }
.cal-legend .l-peak { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.cal-legend .l-bloom { background: linear-gradient(90deg, var(--accent), #d18aa6); }
.cal-legend .l-leafy { background: #d9e6dc; }
.cal-note { font-size: 13.5px; color: var(--ink-soft); margin: 18px 0 0; }

/* 小工具 */
.tool-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 24px; min-width: 0; }
.tool-grid > * { min-width: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-head h3 { font-family: var(--serif); font-size: 19px; margin: 0; }
.panel-head span { font-size: 13px; color: var(--ink-faint); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.field input {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  width: 100%;
}
.field input:focus { outline: none; border-color: var(--accent); background: #fff; }
.field .hint { font-size: 12px; color: var(--ink-faint); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.presets button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.presets button:hover, .presets button.is-active { color: var(--accent); border-color: var(--accent); background: var(--rose-soft); }
.calc-result {
  margin-top: 18px;
  background: var(--rose-soft);
  border: 1px solid #f0dbe4;
  border-radius: 14px;
  padding: 16px 18px;
}
.calc-result .lbl { font-size: 13px; color: var(--ink-soft); }
.calc-result b { font-family: var(--serif); font-size: 30px; color: var(--accent-deep); display: block; line-height: 1.3; }
.calc-result b small { font-size: 15px; color: var(--ink-soft); font-family: var(--sans); margin-left: 4px; }
.calc-result .sub { font-size: 12.5px; color: var(--ink-soft); margin: 6px 0 0; }
.table-wrap { overflow-x: auto; max-width: 100%; }
table.dilute { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
table.dilute th, table.dilute td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.dilute th { font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 600; }
table.dilute td { color: var(--ink-soft); }
table.dilute tr:last-child td { border-bottom: 0; }
table.dilute td b { color: var(--ink); }

/* 常见问题 */
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-list details[open] { border-color: var(--accent); box-shadow: var(--shadow); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 20px;
  color: var(--accent);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list .faq-body { color: var(--ink-soft); font-size: 15px; padding: 0 0 16px; margin: 0; }
.faq-list .faq-body a { color: var(--accent); border-bottom: 1px solid rgba(184, 89, 126, 0.35); }

/* 关于 */
.about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 46px; align-items: center; }
.about-photo img { border-radius: 22px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.about-text h2 { font-family: var(--serif); font-size: 30px; margin: 0 0 16px; }
.about-text p { color: var(--ink-soft); font-size: 15.5px; }
.about-cta { margin: 24px 0 0; }
.about-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.about-features .feat { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }
.about-features .feat i { font-style: normal; font-size: 24px; }
.about-features .feat span { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* 页脚 */
.site-footer { background: #262026; color: #d3ccd2; padding: 54px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand { font-family: var(--serif); font-size: 20px; color: #fff; margin-bottom: 12px; }
.footer-top p { font-size: 14px; color: #a9a1a8; max-width: 42ch; margin: 0; }
.footer-top h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-top a { color: #b8b0b7; font-size: 14px; transition: color 0.2s ease; }
.footer-top a:hover { color: #e6a8c2; }
.footer-bottom { padding-top: 26px; text-align: center; font-size: 13.5px; color: #9b939a; }
.footer-bottom.is-flush { padding-top: 0; }
.footer-bottom .beian { display: inline-flex; align-items: center; gap: 6px; color: #b8b0b7; }
.footer-bottom .beian:hover { color: #fff; }
.footer-bottom p { margin: 8px 0 0; }

/* 内页 */
.page-hero {
  padding: 52px 0 40px;
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(184, 89, 126, 0.15), transparent 60%),
    radial-gradient(800px 400px at 0% 0%, rgba(63, 107, 82, 0.12), transparent 60%);
}
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-faint); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--line); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(30px, 4.5vw, 46px); margin: 0 0 14px; line-height: 1.25; }
.page-hero .meta-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--ink-soft); font-size: 14.5px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600; }
.tip-intro { max-width: 760px; color: var(--ink-soft); font-size: 16.5px; margin: 18px 0 0; }
.cover { position: relative; margin-top: 26px; }
.cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); background: var(--surface); }
.cover .caption {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  color: #fff;
  font-family: var(--serif);
  font-size: 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  padding: 40px 4px 6px;
  border-radius: 0 0 20px 20px;
  pointer-events: none;
}

/* 步骤时间线 */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), rgba(184, 89, 126, 0.12)); }
.timeline li { position: relative; padding: 0 0 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
}
.timeline .tl-date { font-size: 13px; letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 600; }
.timeline h3 { font-family: var(--serif); font-size: 19px; margin: 4px 0 6px; }
.timeline p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.timeline p b { color: var(--ink); }

/* 参数卡 */
.care-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.care-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.care-tile .k { font-size: 12.5px; letter-spacing: 0.08em; color: var(--ink-faint); }
.care-tile .v { font-family: var(--serif); font-size: 18px; margin: 6px 0 6px; }
.care-tile .d { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* 正文 */
.prose { max-width: 780px; }
.prose h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 14px; }
.prose h3 { font-family: var(--serif); font-size: 19px; margin: 26px 0 8px; }
.prose p { color: var(--ink-soft); font-size: 16px; margin: 0 0 16px; }
.prose ul { color: var(--ink-soft); font-size: 16px; padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose b { color: var(--ink); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 46px; }
.pager a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pager a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.pager .dir { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.pager b { font-family: var(--serif); font-size: 18px; }
.pager .next { text-align: right; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 22px; }
.notfound .code { font-family: var(--serif); font-size: 90px; color: var(--accent); line-height: 1; }
.notfound h1 { font-family: var(--serif); font-size: 28px; margin: 8px 0; }
.notfound p { color: var(--ink-soft); margin: 0 0 24px; }

/* 动效 */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .hero-inner, .about-grid, .tool-grid { grid-template-columns: 1fr; }
  .tip-grid { grid-template-columns: repeat(2, 1fr); }
  .care-tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-head p { max-width: none; }
  .tip-grid, .pager, .care-tiles, .footer-top, .about-features, .calc-grid { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .hero-stats { gap: 22px; }
  .nav { gap: 10px; }
  .nav-links { gap: 16px; min-width: 0; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 14px; white-space: nowrap; }
  .brand { flex: 0 0 auto; }
  .brand span:last-child { font-size: 15px; }
  .calc-result b { font-size: 26px; }
}
