/**
 * 花花草草 · 图鉴风格（全站）
 * 暖米径向底；半透毛玻璃；图鉴小卡 16:9 右图溢出
 */

:root {
  --primary: #5e8d5f;
  --primary-light: #8fbc8f;
  --primary-dark: #3d5c40;
  --bg: #e8d9c2;
  --bg-radial: radial-gradient(circle at 20% 20%, #efe4d3 0%, #e8d9c2 60%, #d9c4ac 100%);
  --bg-grad: var(--bg-radial);
  --card-bg: rgba(255, 255, 255, 0.30);
  --glass: rgba(255, 255, 255, 0.30);
  --text: #4a3728;
  --text-body: #5c4836;
  --text-light: #7d6b5a;
  --border: rgba(255, 255, 255, 0.35);
  --accent: #c4a574;
  --danger: #c45c5c;
  --info: #5e8d5f;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 24px;
  --shadow:
    0 10px 30px rgba(87, 56, 32, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 1px 0 0 rgba(255, 255, 255, 0.28),
    inset -1px 0 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(87, 56, 32, 0.06),
    inset 0 -14px 22px rgba(255, 255, 255, 0.10);
  --shadow-hover:
    0 16px 40px rgba(87, 56, 32, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 1px 0 0 rgba(255, 255, 255, 0.32),
    inset -1px 0 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(87, 56, 32, 0.06),
    inset 0 -14px 22px rgba(255, 255, 255, 0.12);
  --ring: 0 0 0 3px rgba(94, 141, 95, 0.2);
  --chip: #e2f2e1;
}

html, body {
  background: var(--bg-grad) !important;
  background-attachment: fixed !important;
  background-color: #e8d9c2 !important;
  color: var(--text);
  letter-spacing: 0.01em;
}

/* ===== 线稿图标 ===== */
.ico {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -3px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
.ico-lg { width: 20px; height: 20px; }
.ico-xl { width: 28px; height: 28px; }
.btn .ico,
.btn-icon .ico { width: 15px; height: 15px; }
.btn-icon { color: var(--text-light); }
.btn-icon:hover { color: var(--text); background: rgba(255, 248, 240, 0.45) !important; }

/* ===== 顶栏 ===== */
.sidebar,
.topbar {
  background: rgba(255, 255, 255, 0.42) !important;
  color: var(--text) !important;
  box-shadow: 0 10px 32px rgba(87, 56, 32, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  max-width: 1580px !important;
}
.sidebar-header h1 { color: var(--text) !important; }
.nav-items { gap: 2px !important; flex-wrap: nowrap; }
.nav-item {
  border-radius: 999px !important;
  margin-right: 0 !important;
  background: transparent !important;
  color: var(--text) !important;
  padding: 7px 12px !important;
  gap: 5px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
}
.nav-item .icon { display: none !important; }
.nav-item .ico {
  display: inline-block !important;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.nav-item.active {
  background: #d7ead6 !important;
  color: #2f4a32 !important;
}
.topbar-search {
  width: min(280px, 24vw) !important;
  background-color: rgba(255, 255, 255, 0.78) !important;
  padding-left: 38px !important;
}
.topbar-me { display: inline-flex !important; align-items: center; }
.topbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #5e8d5f;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.refresh-btn-desktop { display: none !important; }

.main { margin-left: 0 !important; overflow: visible; }
.content {
  padding: 8px 20px 56px;
  max-width: 1580px;
  overflow: visible;
}
@media (max-width: 768px) {
  .main {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
  .content { padding-bottom: 96px !important; }
}

.gd-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 10px;
  padding: 0 4px;
}
.gd-count {
  font-size: 13px;
  color: #7d6b5a;
  font-weight: 600;
}
.gd-count em {
  font-style: normal;
  color: #5e8d5f;
  font-weight: 800;
  font-size: 15px;
  margin: 0 2px;
}
.gd-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.62);
  color: #5c4836;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(87, 56, 32, 0.06);
}
.gd-filter-btn .ico { width: 14px; height: 14px; }
.gd-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gd-filter-btn:hover,
.gd-filter-btn.is-on {
  background: #fff;
  color: #3d5c40;
}
.gd-filter-btn.is-add {
  background: #5e8d5f;
  color: #fff;
  border-color: transparent;
  font-weight: 750;
  box-shadow: 0 6px 16px rgba(61, 92, 64, 0.22);
}
.gd-filter-btn.is-add:hover {
  background: #4e7a50;
  color: #fff;
}
.gd-filter-btn.is-add .ico { stroke: #fff; }
.plant-shot {
  margin: 0 0 18px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.plant-shot-preview {
  min-height: 120px;
  border-radius: 12px;
  background: rgba(255, 248, 240, 0.35);
  border: 1px dashed rgba(94, 141, 95, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.plant-shot-preview img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  background: #f3ebe0;
}
.plant-shot-empty {
  padding: 28px 16px;
  text-align: center;
  color: #7d6b5a;
  font-size: 13px;
  line-height: 1.6;
}
.plant-shot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.plant-shot .form-hint { margin-top: 8px; }
.plant-shot-busybar {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: #5c4836;
  font-size: 13px;
}
.plant-shot.is-busy .plant-shot-busybar { display: flex; }
.plant-shot-spin {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(94, 141, 95, 0.22);
  border-top-color: #5e8d5f;
  border-radius: 50%;
  animation: plant-spin 0.7s linear infinite;
  flex-shrink: 0;
}
#plant-id-btn .plant-shot-spin {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
}
@keyframes plant-spin { to { transform: rotate(360deg); } }
.modal {
  display: flex !important;
  flex-direction: column !important;
}
.modal-header,
.modal-footer { flex-shrink: 0 !important; }
.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: transparent !important;
  box-shadow: none !important;
}
.ai-cfg-fold {
  margin: 16px 0 0;
  padding: 12px 14px 10px;
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.ai-cfg-fold > summary {
  cursor: pointer;
  font-weight: 750;
  color: #4a3728;
  list-style: none;
  padding: 2px 0 8px;
}
.ai-cfg-fold > summary::-webkit-details-marker { display: none; }
.ai-cfg-fold > summary::before {
  content: '▸ ';
  color: #5e8d5f;
}
.ai-cfg-fold[open] > summary::before { content: '▾ '; }
.ai-cfg-ta {
  min-height: 88px;
  font-size: 12px;
  line-height: 1.55;
  font-family: ui-monospace, Consolas, monospace;
}
.settings-lib {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.settings-lib-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.settings-lib-btn:hover { background: rgba(255, 255, 255, 0.7); }

.topbar-leaf {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 50%;
  background: #e4efe4;
  box-sizing: content-box;
}

/* ===== 通用毛玻璃卡片 ===== */
.card,
.stat-card,
.settings-card,
.settings-collapsible,
.mix-fold-card,
.gd-filter,
.gd-glass,
.gd-hero,
.mat-card,
.record-item {
  background: var(--card-bg) !important;
  backdrop-filter: blur(14px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow) !important;
}
.card {
  padding: 16px 18px;
  margin-bottom: 12px;
}
.card:hover,
.mat-card:hover { box-shadow: var(--shadow-hover) !important; }
.card:active { transform: none; }

.page-header { margin-bottom: 16px; }
.page-header h2 {
  color: var(--text) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-header .desc { color: var(--text-light); }
.mod-links { display: none !important; }
.mod-links a,
.mod-links button.mod-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 252, 247, 0.16);
  color: #5c4836;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.mod-links .mod-link.is-on {
  background: #5e8d5f;
  color: #fff;
  border-color: transparent;
}

/* ===== 按钮 ===== */
.btn {
  border-radius: 999px !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(94, 141, 95, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover { box-shadow: 0 8px 18px rgba(94, 141, 95, 0.28); }
.btn:active { transform: scale(0.98); }
.btn-outline {
  background: rgba(255, 252, 247, 0.22) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  color: var(--text) !important;
  box-shadow: none;
}
.btn-outline:hover {
  background: #5e8d5f !important;
  border-color: #5e8d5f !important;
  color: #fff !important;
}

/* ===== 输入 ===== */
.form-input,
.form-select,
.form-textarea,
.search-box,
.topbar-search {
  border-radius: 999px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 252, 247, 0.55) !important;
  color: var(--text);
  padding: 10px 16px;
}
.form-textarea { border-radius: 18px !important; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.search-box:focus,
.topbar-search:focus {
  outline: none;
  border-color: #c5d9c6 !important;
  box-shadow: var(--ring) !important;
}
.search-box {
  padding-left: 38px !important;
  margin-bottom: 14px;
}

/* ===== 弹窗 ===== */
.modal-overlay {
  background: rgba(61, 50, 40, 0.16) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.modal {
  background: rgba(250, 246, 238, 0.72) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px !important;
  box-shadow: 0 24px 64px rgba(87, 56, 32, 0.16) !important;
}
.modal-header,
.modal-footer {
  background: transparent !important;
  border-color: rgba(87, 56, 32, 0.06) !important;
}
.modal-header h3 { color: var(--text) !important; }
.modal .form-input,
.modal .form-select,
.modal .form-textarea,
.modal .search-box {
  background: rgba(255, 252, 247, 0.9) !important;
}
.plant-select-row,
.material-row-v2 {
  background: rgba(255, 252, 247, 0.35) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

/* ===== Badge / 筛选 / Tab ===== */
.badge,
.gd-chip,
.filter-tab,
.group-toggle .filter-tab {
  border-radius: 999px !important;
  font-weight: 600;
}
.type-chip {
  border-radius: 6px !important;
  font-weight: 600;
}
.filter-tab,
.group-toggle .filter-tab,
.type-chip {
  background: var(--chip) !important;
  border: 1px solid transparent !important;
  color: var(--text) !important;
  padding: 7px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-tab.active,
.group-toggle .filter-tab.active {
  background: #5e8d5f !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(94, 141, 95, 0.28);
}
.gd-chip {
  background: var(--chip);
  color: var(--text);
  padding: 6px 14px;
  cursor: pointer;
}
.gd-chip.active { background: #5e8d5f; color: #fff; }
.records-tab-head {
  background: rgba(255, 252, 247, 0.12) !important;
  border-radius: 18px 18px 0 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: var(--text-light) !important;
}
.records-tab-head.active {
  background: var(--card-bg) !important;
  color: var(--text) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.records-tab-body {
  background: var(--card-bg) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 0 0 22px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-top: 0 !important;
  box-shadow: var(--shadow);
}
.type-chip.active,
.mat-chip-grid .type-chip.active,
.pick-chip-grid .type-chip.active {
  background: #5e8d5f !important;
  color: #fff !important;
}
.pick-chip-grid .type-chip {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  padding: 6px 8px !important;
  line-height: 1.25;
}
.pick-chip-grid .type-chip.active .pick-sub {
  color: inherit;
  opacity: 0.82;
}
.type-chip.active.water { background: #b7d4c4 !important; color: #2f4a32 !important; }
.type-chip.active.fertilize { background: #e6d3a8 !important; color: #5c4a2e !important; }
.type-chip.active.pesticide { background: #e4c4c0 !important; color: #6a3838 !important; }
.type-chip.active.other { background: #d5c9b8 !important; color: #4a3c32 !important; }

.badge-water { background: #e8f4f0; color: #3d6b7a; }
.badge-fertilize { background: #faf3e6; color: #8a6a3a; }
.badge-pesticide { background: #faeaea; color: #8a4545; }
.badge-warn { background: #faf3e6; color: #8a6a3a; }
.badge-info { background: #efe8dc; color: #5c5046; }
.badge-ok { background: #e8f0e8; color: #3d5c40; }

/* ===== 统计 / 记录 ===== */
.stat-card {
  text-align: center;
  padding: 16px 14px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-card .ico { color: var(--primary-dark); margin-bottom: 2px; }
.stat-card .num { color: var(--primary-dark); }
.stat-card .label { color: var(--text-light); }
button.stat-card.is-link {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font: inherit;
  color: inherit;
}
button.stat-card.is-link:hover { box-shadow: var(--shadow-hover) !important; }

.care-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 28px;
}
.care-pane { padding: 20px 22px 22px !important; }
.care-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.care-pane-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.care-pane-head span { font-size: 12px; color: var(--text-light); }
.care-pane-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.care-pane-hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-light);
}
.care-empty {
  padding: 22px 8px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-light);
}
.care-todo-group { margin-bottom: 16px; }
.care-todo-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #8a7360;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.care-todo-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin: 0 0 14px;
  padding: 14px 16px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.care-todo-item:hover { background: transparent; }
.care-todo-mark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid #8a7360;
  background: transparent;
}
.care-todo-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.care-todo-body strong { font-size: 15px; color: var(--text); }
.care-todo-body em { font-style: normal; font-size: 12px; color: var(--text-light); }
.care-todo-kind {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #5e8d5f;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e4efe4;
}
.care-todo-item.is-done { opacity: 0.55; }
.care-todo-item.is-done .care-todo-body strong,
.care-todo-item.is-done .care-todo-body em { text-decoration: line-through; }
.care-todo-item.is-done .care-todo-mark {
  background: #5e8d5f;
  border-color: #5e8d5f;
}

.care-plan-card {
  padding: 18px 20px 20px;
  margin: 0 0 18px;
}
.care-plan-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.care-plan-top h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}
.care-plan-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--text-light);
}
.care-plan-ops { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.care-plan-body {
  font-size: 14px;
  line-height: 1.85;
  color: #5c4836;
}
.care-plan-body p { margin: 0 0 10px; }
.care-plan-body h3,
.care-plan-body h4 {
  margin: 16px 0 6px;
  font-size: 15px;
  color: #3d5c40;
}
.care-stat-list { display: flex; flex-direction: column; gap: 8px; max-height: 62vh; overflow: auto; }
.care-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.45);
}
.care-stat-row strong { display: block; font-size: 14px; color: var(--text); }
.care-stat-row em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--text-light); }
.record-item {
  border-left-width: 4px !important;
}
.record-item.water { border-left-color: #7fbf9a !important; }
.record-item.fertilize { border-left-color: #c4a574 !important; }
.record-item.pesticide { border-left-color: #c45c5c !important; }
.record-item.other { border-left-color: #b8a48c !important; }
.record-item .type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.record-item .date {
  color: var(--text-light);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.record-item .rc-line {
  display: flex;
  gap: 10px;
  font-size: 13px;
  margin-top: 8px;
  color: var(--text-body);
}
.record-item .rc-label {
  color: var(--text-light);
  min-width: 52px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.record-plant-group-head {
  background: rgba(255, 252, 247, 0.16) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
}

.gd-banner {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 12px 16px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.empty {
  text-align: center;
  color: var(--text-light);
  padding: 28px 12px;
}
.empty .ico { width: 32px; height: 32px; opacity: 0.45; margin-bottom: 8px; }

.section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin: 8px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== 图鉴同款毛玻璃（基质 / 养护 / 肥料 / 药剂） ===== */
.pv2-glass {
  position: relative;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 24px !important;
  overflow: visible;
}
.pv2-glass::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 90% 58% at 14% -8%, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(ellipse 58% 46% at var(--moss-x, 78%) var(--moss-y, 88%), rgba(143, 188, 143, 0.26) 0%, rgba(143, 188, 143, 0) 68%),
    radial-gradient(ellipse 42% 38% at var(--moss2-x, 24%) var(--moss2-y, 64%), rgba(176, 210, 176, 0.18) 0%, rgba(176, 210, 176, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 253, 250, 0.50) 45%, rgba(255, 252, 247, 0.46) 100%);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 30px rgba(87, 56, 32, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 1px 0 0 rgba(255, 255, 255, 0.5),
    inset -1px 0 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(87, 56, 32, 0.06),
    inset 0 -18px 28px rgba(255, 255, 255, 0.22);
  pointer-events: none;
}
.pv2-glass::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 1px;
  z-index: 2;
  border-radius: 23px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65);
}
.pv2-glass:hover::before {
  box-shadow:
    0 16px 36px rgba(87, 56, 32, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 1px 0 0 rgba(255, 255, 255, 0.55),
    inset -1px 0 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(87, 56, 32, 0.06),
    inset 0 -18px 28px rgba(255, 255, 255, 0.26);
}
.pv2-glass > * { position: relative; z-index: 4; }

.mat-grid-2col {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px !important;
  padding: 20px 8px 36px 0;
  overflow: visible;
}
@media (max-width: 1100px) {
  .mat-grid-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .mat-grid-2col { grid-template-columns: 1fr; gap: 28px !important; padding: 12px 0 8px; }
}
.mat-grid-2col .pv2-glass:nth-child(3n+1) { --moss-x: 82%; --moss-y: 90%; --moss2-x: 16%; --moss2-y: 58%; }
.mat-grid-2col .pv2-glass:nth-child(3n+2) { --moss-x: 68%; --moss-y: 76%; --moss2-x: 38%; --moss2-y: 92%; }
.mat-grid-2col .pv2-glass:nth-child(3n) { --moss-x: 90%; --moss-y: 62%; --moss2-x: 22%; --moss2-y: 84%; }
.mat-card {
  padding: 22px 22px 18px !important;
  margin-bottom: 0 !important;
  height: auto;
  min-height: 0;
}
.mat-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.mat-card-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.mat-card-ico .ico { width: 18px; height: 18px; vertical-align: 0; }
.mat-card.pest .mat-card-ico { color: #8a4545; }
.mat-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.mat-card.is-tap {
  cursor: pointer;
  padding: 20px 22px 18px !important;
}
.mat-card.is-tap:hover {
  background: rgba(255, 252, 247, 0.16);
}
.mat-card-brief {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #5c4836;
}
.mat-card-facts {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mat-card-line {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.5;
}
.mat-card-line .k {
  color: var(--text-light);
  font-weight: 600;
  font-size: 12px;
  padding-top: 1px;
}
.mat-card-line .v {
  color: #5c4836;
  min-width: 0;
}
.mat-card-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mat-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mat-detail-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
}
.mat-detail-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 14px;
  align-items: start;
  font-size: 14px;
  line-height: 1.8;
}
.mat-detail-row .k {
  color: var(--text-light);
  font-weight: 600;
}
.mat-detail-row .v { color: var(--text-body); }
@media (max-width: 767px) {
  .mat-detail-row { grid-template-columns: 1fr; gap: 4px; }
}
.mat-kv {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 6px 10px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-body);
}
.mat-kv dt { color: var(--text-light); font-weight: 600; }
.mat-kv dd { margin: 0; }
.mat-note {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 248, 240, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.55;
}
.mix-fold-card {
  padding: 16px 18px 14px;
  margin-bottom: 18px;
}
.mix-fold-head {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.mix-fold-head:hover { background: rgba(255, 252, 247, 0.18) !important; }
.mix-fold-title { font-weight: 800; color: var(--text); }
.mix-fold-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.mix-recipe-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(87, 56, 32, 0.12);
  color: var(--text-body);
}

/* ===== 图鉴小卡：16:9，左文右图，图向右溢出 ===== */
.plant-card-v2 {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: visible !important;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
  box-sizing: border-box;
  cursor: pointer;
  border-radius: 24px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
}
.plant-card-v2::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 90% 58% at 14% -8%, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(ellipse 58% 46% at var(--moss-x, 78%) var(--moss-y, 88%), rgba(143, 188, 143, 0.26) 0%, rgba(143, 188, 143, 0) 68%),
    radial-gradient(ellipse 42% 38% at var(--moss2-x, 24%) var(--moss2-y, 64%), rgba(176, 210, 176, 0.18) 0%, rgba(176, 210, 176, 0) 70%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.58) 0%,
      rgba(255, 253, 250, 0.50) 45%,
      rgba(255, 252, 247, 0.46) 100%
    );
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 30px rgba(87, 56, 32, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 1px 0 0 rgba(255, 255, 255, 0.5),
    inset -1px 0 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(87, 56, 32, 0.06),
    inset 0 -18px 28px rgba(255, 255, 255, 0.22);
  pointer-events: none;
}
.plant-card-v2::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 1px;
  z-index: 2;
  border-radius: 23px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65);
}
.plant-card-v2:hover::before {
  box-shadow:
    0 16px 36px rgba(87, 56, 32, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 1px 0 0 rgba(255, 255, 255, 0.55),
    inset -1px 0 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(87, 56, 32, 0.06),
    inset 0 -18px 28px rgba(255, 255, 255, 0.26);
}
.plant-card-v2:active { transform: none; }
.plant-grid-3col .plant-card-v2:nth-child(3n+1) { --moss-x: 82%; --moss-y: 90%; --moss2-x: 16%; --moss2-y: 58%; }
.plant-grid-3col .plant-card-v2:nth-child(3n+2) { --moss-x: 68%; --moss-y: 76%; --moss2-x: 38%; --moss2-y: 92%; }
.plant-grid-3col .plant-card-v2:nth-child(3n) { --moss-x: 90%; --moss-y: 62%; --moss2-x: 22%; --moss2-y: 84%; }
.plant-card-v2 .card-info {
  position: relative;
  z-index: 4;
  flex: 0 0 54%;
  width: 54%;
  align-self: stretch;
  padding: 26px 10px 14px 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.plant-card-v2 .pv2-head {
  display: block;
  padding-right: 8px;
}
.plant-card-v2 .pv2-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.plant-card-v2 .pv2-title {
  font-size: 22px;
  font-weight: 800;
  color: #4a3728;
  letter-spacing: -0.04em;
  line-height: 1.12;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plant-card-v2 .pv2-title.is-water-due { color: #c45c5c; }
.plant-card-v2 .pv2-no {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 650;
  color: #8a7360;
  letter-spacing: 0;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  background: #eee8e0;
}
.plant-card-v2 .pv2-sci {
  margin-top: 4px;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  color: #8a7360;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plant-card-v2 .pv2-sun {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 12;
  font-size: 13px;
  opacity: 0.42;
  color: #7d6b5a;
  background: none;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
}
.plant-card-v2 .pv2-sun .ico { width: 16px; height: 16px; }
.plant-card-v2 .pv2-sun.is-on { opacity: 1; color: #c45c5c; }
.plant-card-v2 .pv2-sun.is-on .ico { fill: currentColor; }
.plant-card-v2 .pv2-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  max-width: 96%;
}
.plant-card-v2 .pv2-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  max-width: 10em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
}
.plant-card-v2 .pv2-pill .ico {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.plant-card-v2 .pv2-pill.pill-cat {
  background: #e4efe4;
  color: #3d5c40;
}
.plant-card-v2 .pv2-pill.pill-light {
  background: #f5ead6;
  color: #8a6a3a;
}
.plant-card-v2 .pv2-pill.pill-tag {
  background: #eee8e0;
  color: #5c5046;
}
.plant-card-v2 .pv2-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  background: #eee8e0;
  color: #5c5046;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plant-card-v2 .pv2-cat-inline {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e4efe4;
  color: #3d5c40;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.plant-card-v2 .pv2-foot { margin-top: auto; padding-top: 4px; }
.plant-card-v2 .pv2-rule {
  display: block !important;
  height: 1px;
  margin: 6px 12px 6px 0;
  border: 0;
  background: linear-gradient(90deg, rgba(87, 56, 32, 0.22) 0%, rgba(255, 255, 255, 0.45) 55%, rgba(255, 255, 255, 0) 100%);
}
.plant-card-v2 .pv2-params {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
  font-size: 12px;
  color: #5c4836;
  line-height: 1.3;
}
.plant-card-v2 .pv2-params > div {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.plant-card-v2 .pv2-params span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plant-card-v2 .pv2-params em { display: none; }
.plant-card-v2 .pv2-ico {
  display: inline-flex !important;
  width: 13px;
  height: 13px;
  color: #7d6b5a;
  flex-shrink: 0;
}
.plant-card-v2 .p-light .pv2-ico { color: #c4a574; }
.plant-card-v2 .p-water .pv2-ico { color: #5a8fa8; }
.plant-card-v2 .p-humid .pv2-ico { color: #7a9bb0; }
.plant-card-v2 .p-fert .pv2-ico { color: #5e8d5f; }
.plant-card-v2 .pv2-lasts-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin-top: 0;
}
.plant-card-v2 .pv2-lastw,
.plant-card-v2 .pv2-lastf {
  margin-top: 0;
  font-size: 12px;
  font-weight: 650;
  color: #5e8d5f;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plant-card-v2 .pv2-lastf { color: #6f8f62; }
.plant-card-v2 .pv2-lasts { display: none; }
.plant-card-v2 .card-bg {
  position: absolute;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin-left: 0;
  z-index: 3;
  overflow: visible !important;
  pointer-events: none;
  clip-path: none;
}
.plant-card-v2 .card-bg .ph-icon {
  position: absolute;
  top: 50%;
  right: 28%;
  transform: translate(50%, -50%);
  font-size: 42px;
  opacity: 0.22;
  z-index: 0;
}
.plant-card-v2 .card-bg::after {
  content: "";
  position: absolute;
  right: 6%;
  left: auto;
  bottom: 7%;
  width: 38%;
  height: 22px;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(87, 56, 32, 0.32) 0%, rgba(87, 56, 32, 0.14) 45%, rgba(87, 56, 32, 0) 74%);
  filter: blur(5px);
  pointer-events: none;
}
.plant-card-v2 .card-bg .img-top {
  position: absolute !important;
  display: block;
  mix-blend-mode: normal;
  right: -10% !important;
  left: auto !important;
  top: auto !important;
  bottom: 10% !important;
  height: 110% !important;
  width: auto !important;
  max-width: none !important;
  transform: none;
  object-fit: contain;
  object-position: right bottom;
  filter:
    drop-shadow(0 2px 3px rgba(87, 56, 32, 0.08))
    drop-shadow(0 14px 10px rgba(87, 56, 32, 0.16));
  z-index: 3;
}
.plant-card-v2 .img-reflect-clip { display: none !important; }
.plant-card-v2 .water-due { display: none !important; }
.plant-card-v2 .photo-edit-hint {
  left: auto;
  right: 10px;
  top: 40px;
  background: rgba(255, 252, 247, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #5c4836;
  box-shadow: none !important;
}
.plant-card-v2 .photo-edit-hint .ico { width: 14px; height: 14px; }

/* 详情超大卡：与图鉴同宽、左右对称；图在左但不冲出页面 */
.plant-detail-wrap {
  overflow: visible;
  padding: 80px 0 16px;
}
.plant-card-v2.is-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  align-content: start;
  aspect-ratio: auto;
  width: 100%;
  margin-left: 0;
  max-width: none;
  height: auto !important;
  max-height: none !important;
  cursor: default;
  --moss-x: 18%;
  --moss-y: 88%;
  --moss2-x: 72%;
  --moss2-y: 64%;
}
.plant-card-v2.is-detail > .card-bg { grid-column: 1; grid-row: 1; }
.plant-card-v2.is-detail > .card-info { grid-column: 2; grid-row: 1; }
.plant-card-v2.is-detail > .pv2-sun,
.plant-card-v2.is-detail > .dead-corner,
.plant-card-v2.is-detail > .dead-watermark {
  grid-column: 1 / -1;
  grid-row: 1;
}
.plant-card-v2.is-detail .card-bg {
  position: relative !important;
  inset: auto !important;
  width: 110%;
  max-width: none;
  height: auto !important;
  margin-left: -10%;
  z-index: 3;
  overflow: visible !important;
}
.plant-card-v2.is-detail .pv2-foot {
  margin-top: 14px;
}
.plant-card-v2.is-detail .card-info {
  flex: none;
  width: auto;
  max-width: none;
  margin-left: 0;
  padding: 26px 36px 36px 20px;
  overflow: visible !important;
  max-height: none !important;
  z-index: 5;
}
.plant-card-v2.is-detail .pv2-title {
  font-size: 26px;
  white-space: nowrap;
}
.plant-card-v2.is-detail .pv2-no {
  font-size: 13px;
  padding: 3px 7px;
}
.plant-card-v2.is-detail .pv2-sci {
  font-size: 14px;
  margin-top: 6px;
}
.plant-card-v2.is-detail .pv2-tags {
  margin-top: 10px;
  margin-bottom: 2px;
  gap: 8px;
}
.plant-card-v2.is-detail .pv2-intro {
  font-size: 15px;
  line-height: 1.85;
  color: #5c4836;
  margin: 14px 0 22px;
  white-space: normal;
  word-break: break-word;
}
.plant-card-v2.is-detail .pv2-arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  margin-bottom: 18px;
}
.plant-card-v2.is-detail .pv2-arch-grid .pv2-arch {
  grid-template-columns: 5.4em 1fr;
  gap: 6px 12px;
}
.plant-card-v2.is-detail .pv2-archive {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2px;
}
.plant-card-v2.is-detail .pv2-arch {
  display: grid;
  grid-template-columns: 7.8em 1fr;
  gap: 6px 16px;
  align-items: start;
  min-width: 0;
}
.plant-card-v2.is-detail .pv2-arch .k {
  font-size: 13px;
  font-weight: 700;
  color: #8a7360;
  letter-spacing: 0.04em;
  padding-top: 3px;
  white-space: nowrap;
}
.plant-card-v2.is-detail .pv2-arch .v {
  font-size: 14px;
  font-weight: 500;
  color: #5c4836;
  line-height: 1.8;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.plant-card-v2.is-detail .pv2-params span {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.plant-card-v2.is-detail .card-bg::after {
  left: 22%;
  right: auto;
  bottom: 2%;
  width: 52%;
}
.plant-card-v2.is-detail .card-bg .img-top {
  position: relative !important;
  display: block;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  height: auto !important;
  max-width: none !important;
  width: 100% !important;
  transform: translateY(-10%);
  object-fit: contain;
  object-position: left bottom;
}
.plant-card-v2.is-detail .pv2-sun {
  position: static;
  top: auto;
  right: auto;
  margin-left: 6px;
}
.plant-card-v2.is-detail .photo-edit-hint { display: none; }
.gd-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 2px 0 6px;
  flex-wrap: wrap;
}
.gd-detail-top .pv2-detail-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  z-index: 14;
}
.pv2-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 40px;
  padding: 6px 7px;
  border: 0;
  background: transparent;
  color: #7d6b5a;
  cursor: pointer;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1;
}
.pv2-act .ico {
  width: 16px;
  height: 16px;
  display: block;
}
.pv2-act:hover {
  background: rgba(255, 255, 255, 0.45);
  color: #4a3728;
}
.pv2-act.is-danger { color: #c45c5c; }
.pv2-act.is-danger:hover { background: rgba(196, 92, 92, 0.1); }

.gd-detail-below {
  width: 100%;
  margin: 22px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gd-detail-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.gd-detail-duo .gd-glass {
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.gd-rec-list {
  flex: 1;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}
.gd-rec-item {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(87, 56, 32, 0.12);
}
.gd-rec-item:last-child { border-bottom: 0; }
.gd-rec-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.gd-rec-top .d {
  font-size: 12px;
  color: #8a7360;
  white-space: nowrap;
}
.gd-rec-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #5c4836;
  line-height: 1.5;
}
.gd-empty-sm {
  font-size: 13px;
  color: #8a7360;
  padding: 28px 8px;
  text-align: center;
}
.gd-life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}
.gd-life-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 252, 247, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.gd-life-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.gd-life-item .cap {
  padding: 8px 10px 10px;
  font-size: 12px;
  color: #7d6b5a;
  font-weight: 600;
}
.gd-life-item .cap em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-weight: 500;
  color: #8a7360;
}
.gd-life-del {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.85);
  color: #7d6b5a;
  cursor: pointer;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  padding: 0;
}
.gd-life-add {
  aspect-ratio: 1;
  border: 1.5px dashed rgba(87, 56, 32, 0.22);
  border-radius: 16px;
  background: transparent;
  color: #8a7360;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gd-life-add .ico { width: 22px; height: 22px; }
.gd-life-add:hover { background: rgba(255, 255, 255, 0.35); }

.plant-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: stretch;
  gap: 50px;
  padding: 56px 36px 36px 0;
  overflow: visible;
  background: transparent;
}
@media (max-width: 1100px) {
  .plant-grid-3col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gd-filter {
  padding: 20px 22px 16px !important;
  margin-bottom: 8px;
}
.gd-filter-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.gd-btn-reset, .gd-btn-apply { border-radius: 999px; cursor: pointer; font-size: 13px; padding: 7px 16px; }
.gd-btn-reset { background: transparent; border: 1px solid rgba(255,255,255,0.45); color: var(--text); }
.gd-btn-apply { background: #5e8d5f; border: 0; color: #fff; font-weight: 600; }

.gd-tab {
  background: rgba(255, 248, 240, 0.28) !important;
  color: #5c5046 !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}
.gd-tab.active { background: #3d5c40 !important; color: #fff !important; }

.gd-hero {
  overflow: visible !important;
  min-height: 188px;
}
.gd-hero-photo {
  overflow: visible;
  pointer-events: none;
}
.gd-stat {
  background: rgba(255, 252, 247, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.settings-card,
.mix-fold-card,
.detail-section .content-box {
  background: var(--card-bg) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}
.photo-picker-item { background: rgba(255, 252, 247, 0.35) !important; border-radius: 16px !important; }

#auth-screen {
  background: var(--bg-grad) !important;
}
#auth-screen > div:first-child { color: var(--text) !important; }
#auth-card {
  background: rgba(255, 252, 247, 0.55) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 28px !important;
  box-shadow: var(--shadow-hover) !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.toast {
  background: rgba(61, 92, 64, 0.92) !important;
  border-radius: 999px !important;
}

.bottom-nav {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 8px 28px rgba(87, 56, 32, 0.12) !important;
}
.bottom-nav-item { color: var(--text-light); }
.bottom-nav-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
}
.bottom-nav-item .icon .ico { width: 20px; height: 20px; }
.bottom-nav-item.active { color: #5e8d5f !important; font-weight: 700; }

.statusbar-fade {
  background: linear-gradient(to bottom, rgba(255,255,255,0.55) 0%, rgba(232, 217, 194, 0) 100%) !important;
}

@media (max-width: 1100px) {
  .nav-item .label { font-size: 11px; }
  .topbar-search { width: min(160px, 22vw); }
}

/* 桌面仍用顶栏搜索；手机用工具条内搜索 */
@media (min-width: 768px) {
  .gd-inline-search { display: none !important; }
}

@media (max-width: 767px) {
  .care-duo { grid-template-columns: 1fr; gap: 16px; }
  .content {
    padding: 8px 4px calc(78px + max(6px, env(safe-area-inset-bottom, 0px))) !important;
  }
  .sidebar.topbar,
  .topbar,
  .sidebar {
    display: none !important;
  }
  .main {
    padding-top: max(10px, env(safe-area-inset-top, 0px) + 8px) !important;
  }
  .bottom-nav {
    bottom: max(6px, env(safe-area-inset-bottom, 0px)) !important;
    padding: 6px 8px !important;
  }
  .gd-toolbar {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .gd-toolbar-actions { justify-content: flex-end; }
  .gd-filter-btn { padding: 6px 10px; font-size: 12px; }
  .content > .search-box { display: none; }
  .gd-filter { padding: 12px 16px !important; }
  .plant-grid-3col {
    grid-template-columns: 1fr !important;
    gap: 24px;
    /* 左右各留 10vw：卡片按 80% 宽等比缩小，探出的植物仍落在屏内 */
    padding: 24px 0 10px !important;
    box-sizing: border-box;
  }
  .plant-card-v2:not(.is-detail) {
    overflow: visible !important;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
  }
  .plant-card-v2:not(.is-detail) .card-info {
    width: 56%;
    flex-basis: 56%;
    padding: 16px 6px 10px 12px;
  }
  .plant-card-v2:not(.is-detail) .pv2-title { font-size: 14px; }
  .plant-card-v2:not(.is-detail) .pv2-sci { font-size: 11px; margin-top: 2px; }
  .plant-card-v2:not(.is-detail) .pv2-no { font-size: 10px; padding: 1px 5px; }
  .plant-card-v2:not(.is-detail) .pv2-tags { gap: 4px; margin-top: 4px; }
  .plant-card-v2:not(.is-detail) .pv2-pill { font-size: 10px; padding: 2px 6px; }
  .plant-card-v2:not(.is-detail) .pv2-params { gap: 2px; }
  .plant-card-v2:not(.is-detail) .pv2-params > div { font-size: 11px; }
  .plant-card-v2:not(.is-detail) .pv2-lasts-row { font-size: 10px; }
  .plant-card-v2:not(.is-detail) .card-bg .ph-icon { font-size: 32px; }
  .plant-card-v2:not(.is-detail) .pv2-sun { top: 8px; right: 8px; }
  .plant-card-v2:not(.is-detail) .pv2-sun .ico { width: 13px; height: 13px; }
  .plant-card-v2 .card-bg {
    inset: auto !important;
    left: auto !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 55% !important;
    height: 100% !important;
    margin-left: 0;
    overflow: visible !important;
  }
  .plant-card-v2:not(.is-detail) .card-bg .img-top {
    right: -8% !important;
    left: auto !important;
    top: auto !important;
    bottom: 8% !important;
    height: 112% !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    transform: none;
    object-fit: contain;
    object-position: right bottom;
  }
  .plant-card-v2 .photo-edit-hint { opacity: .7; }
  .plant-detail-wrap { padding: 40px 0 8px; }
  .plant-card-v2.is-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    width: 100%;
    margin-left: 0;
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .plant-card-v2.is-detail .card-bg {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: none;
    overflow: visible !important;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }
  .plant-card-v2.is-detail .card-bg::after {
    left: 50%;
    right: auto;
    bottom: 4%;
    width: 56%;
    transform: translateX(-50%);
  }
  .plant-card-v2.is-detail .card-bg .img-top {
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    /* 上方溢出保留；水平居中 */
    transform: translateY(-10%);
    object-fit: contain;
    object-position: center bottom;
  }
  .plant-card-v2.is-detail .card-info {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    width: auto !important;
    flex: none !important;
    margin-left: 0;
    padding: 10px 16px 22px;
    overflow: visible !important;
    max-height: none !important;
  }
  .plant-card-v2.is-detail .pv2-title {
    font-size: 20px;
    white-space: normal;
  }
  .plant-card-v2.is-detail .pv2-arch-grid { grid-template-columns: 1fr; }
  .plant-card-v2.is-detail .pv2-arch {
    grid-template-columns: 5.6em 1fr;
    gap: 4px 8px;
  }
  .plant-card-v2.is-detail .pv2-arch .k { font-size: 12px; }
  .plant-card-v2.is-detail .pv2-arch .v { font-size: 13px; line-height: 1.7; }
  .plant-card-v2.is-detail .pv2-intro { font-size: 14px; line-height: 1.8; margin: 10px 0 16px; }
  .gd-detail-top .pv2-detail-actions { justify-content: flex-end; }
  .gd-detail-below { width: 100%; margin-left: 0; }
  .gd-detail-duo { grid-template-columns: 1fr; }
  .gd-life-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal { border-radius: 28px 28px 0 0 !important; }
  .plant-shot { margin-bottom: 12px; padding: 10px; }
  .plant-shot-preview { min-height: 88px; }
  .plant-shot-preview img { max-height: 140px; }
  .plant-shot-empty { padding: 18px 12px; font-size: 12px; }
  .gd-ov-grid { grid-template-columns: 1fr; }
  .gd-related { grid-template-columns: 1fr; }
}

.plant-card-v2.is-dead:not(.is-detail) {
  overflow: hidden !important;
  opacity: .82;
}
.plant-card-v2.is-dead::before {
  background: linear-gradient(180deg, rgba(236,232,226,0.72), rgba(228,224,218,0.82)) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}
.plant-card-v2.is-dead::after { display: none !important; }
.plant-card-v2.is-dead:not(.is-detail) .card-bg {
  right: 0 !important;
  top: 0 !important;
  width: 40% !important;
  height: 100% !important;
  overflow: hidden !important;
}
.plant-card-v2.is-dead {
  opacity: .82;
}
