:root {
  --ink: #24312d;
  --muted: #66736f;
  --line: #dce5df;
  --paper: #fbf9f3;
  --surface: #ffffff;
  --leaf: #2f6b4f;
  --petal: #c94f6d;
  --sun: #f4b942;
  --lavender: #8171b8;
  --shadow: 0 20px 60px rgba(34, 49, 45, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: url("hero-flowers.png") center / cover no-repeat;
  overflow: hidden;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 249, 243, 0.92), rgba(251, 249, 243, 0.55) 44%, rgba(251, 249, 243, 0.12)),
    linear-gradient(0deg, rgba(251, 249, 243, 0.94), rgba(251, 249, 243, 0) 38%);
}

.nav,
.hero__content {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px clamp(20px, 5vw, 72px);
  font-size: 15px;
}

.brand {
  margin-right: auto;
  font-weight: 800;
  color: var(--leaf);
}

.hero__content {
  max-width: 980px;
  padding: 12vh clamp(20px, 5vw, 72px) 22vh;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--petal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__local {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(47, 107, 79, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--leaf);
  font-size: 18px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero__content p:last-child {
  max-width: 560px;
  color: #43514c;
  font-size: 18px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: -84px auto 80px;
  position: relative;
  z-index: 2;
}

.toolbar {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.search input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  outline-color: var(--leaf);
}

.filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter {
  min-height: 38px;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.filter.is-active {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #fff;
}

.flower-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 28px 0 44px;
}

.card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(36, 49, 45, 0.08);
}

.card__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.swatch {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px var(--line);
}

.card h3 {
  margin-bottom: 2px;
  font-size: 22px;
  line-height: 1.2;
}

.latin {
  color: var(--muted);
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 16px 0;
  padding: 0 9px;
  border-radius: 99px;
  background: #eef5ef;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
}

.meaning {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 800;
  color: #9c3854;
}

.care-list {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #4b5a55;
}

.card button {
  min-height: 42px;
  margin-top: auto;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.tips {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 32px;
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
}

.tips h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.tips ol {
  margin: 0;
  padding-left: 22px;
}

.tips li {
  margin-bottom: 12px;
}

.dialog {
  width: min(680px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 28px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(21, 31, 28, 0.42);
}

.dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-box {
  padding: 14px;
  border: 1px solid var(--line);
  background: #fbfcfa;
}

.empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  background: #fff;
}

@media (max-width: 720px) {
  .hero {
    min-height: 78vh;
  }

  .nav {
    gap: 16px;
  }

  .hero__content {
    padding-top: 8vh;
  }

  main {
    margin-top: -52px;
  }

  .tips,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
