/* ==========================================================================
   宠物大百科 PetBreedGuide 独立站 — 样式
   设计语言：暖橘主色 + 奶油背景 + 大圆角卡片，呼应 App 的物种双色体系
   ========================================================================== */

:root {
  --brand: #FF8A3D;
  --brand-dark: #E6701F;
  --brand-soft: #FFF1E6;
  --mint: #4CAF93;
  --mint-soft: #E4F5EF;
  --cat: #E8A87C;
  --cat-soft: #F9E7DA;
  --dog: #5B8FB9;
  --dog-soft: #DFEBF5;

  --ink: #2B2118;
  --ink-2: #6B5B4E;
  --ink-3: #9C8C7E;
  --line: #F1E5DA;
  --bg: #FFFBF7;
  --surface: #FFFFFF;
  --surface-2: #FDF4EC;

  --star: #F5A623;
  --ok: #34A853;
  --danger: #E5484D;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(120, 80, 45, 0.06);
  --shadow: 0 10px 30px rgba(120, 80, 45, 0.09);
  --shadow-lg: 0 24px 60px rgba(120, 80, 45, 0.14);

  --font: 'Nunito', 'Noto Sans SC', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --header-h: 68px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid rgba(255, 138, 61, 0.55); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; }

/* ------------------------------ 顶部进度条 ------------------------------ */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--mint));
  z-index: 60; transition: width 0.1s linear;
}

/* -------------------------------- 页头 -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 247, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(230, 112, 31, 0.32);
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-cn { font-size: 15px; font-weight: 900; letter-spacing: 0.02em; }
.brand-en { font-size: 10.5px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; min-width: 0; overflow: hidden; }
.nav a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; color: var(--ink-2);
  transition: background 0.18s, color 0.18s;
}
.nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* 语言切换 */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-2);
  font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.lang-menu button:hover { background: var(--brand-soft); color: var(--brand-dark); }
.lang-menu button.active { background: var(--brand); color: #fff; }

/* -------------------------------- 按钮 -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 800; font-size: 15px; line-height: 1;
  padding: 12px 22px; transition: transform 0.16s, box-shadow 0.16s, background 0.16s, color 0.16s, border-color 0.16s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; box-shadow: 0 8px 20px rgba(230, 112, 31, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(230, 112, 31, 0.34); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* -------------------------------- 徽标 -------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 13px; font-weight: 800; letter-spacing: 0.02em;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.section-badge {
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  background: var(--mint-soft); color: #2E8168;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}

/* -------------------------------- HERO -------------------------------- */
.hero { position: relative; padding: 72px 0 84px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.blob-1 { width: 460px; height: 460px; background: #FFD9BC; top: -140px; right: -80px; }
.blob-2 { width: 380px; height: 380px; background: #CFEDE3; bottom: -160px; left: -110px; opacity: 0.45; }
.blob-3 { width: 260px; height: 260px; background: #FFE7C9; top: 240px; left: 34%; opacity: 0.4; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.06fr 0.94fr;
  gap: 56px; align-items: center;
}
.hero-title { font-size: clamp(34px, 4.6vw, 56px); font-weight: 900; margin: 20px 0 18px; }
.hero-title .highlight {
  background: linear-gradient(135deg, var(--brand), #FFB067 60%, var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 17.5px; color: var(--ink-2); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 20px; }
.hero-note { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-3); font-weight: 700; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }

/* 手机模型 */
.hero-visual { display: flex; justify-content: center; }
.phone-stage { position: relative; width: 100%; max-width: 340px; }
.stage-glow {
  position: absolute; inset: 6% -6% 8% -6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 138, 61, 0.28), transparent 68%);
  filter: blur(24px);
}
.phone {
  position: relative; width: 100%; aspect-ratio: 300 / 610;
  background: #1E1A17; border-radius: 42px;
  padding: 11px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  background: #FFFBF7; border-radius: 33px; overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 20px; background: #1E1A17; border-radius: 999px; z-index: 3;
}
.screen-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 6px; font-size: 10.5px; font-weight: 800; color: var(--ink-2);
}
.screen-title {
  padding: 4px 18px 10px; font-size: 15px; font-weight: 900;
  display: flex; align-items: center; gap: 7px;
}
.screen-photo {
  margin: 0 14px; border-radius: 18px; overflow: hidden; position: relative;
  box-shadow: var(--shadow);
  flex: 1 1 auto; min-height: 0;
}
.screen-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.scan-line {
  position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 14px 3px rgba(255, 255, 255, 0.85);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 12%; opacity: 0.15; }
  50% { top: 86%; opacity: 0.95; }
}
.screen-result {
  margin: 12px 14px 14px; padding: 13px 14px;
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.result-top { display: flex; align-items: center; gap: 10px; }
.result-thumb {
  width: 40px; height: 40px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(120, 80, 45, 0.18);
}
.result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.result-name { font-size: 14.5px; font-weight: 900; line-height: 1.2; }
.result-latin { font-size: 10.5px; color: var(--ink-3); font-weight: 700; }
.result-score { margin-left: auto; font-size: 15px; font-weight: 900; color: var(--brand); }
.result-bar { margin-top: 10px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.result-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--mint)); animation: fill 1.6s 0.4s ease-out forwards; }
@keyframes fill { to { width: 98%; } }
.result-cands { display: flex; gap: 6px; margin-top: 11px; flex-wrap: wrap; }
.cand {
  font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2);
  /* 长语言（法/德）的单标签也要保持一行：整体换行交给 .result-cands 的 flex-wrap */
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.cand b { color: var(--brand-dark); }

.float-chip {
  position: absolute; z-index: 6;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 800; color: var(--ink);
  border: 1px solid var(--line);
  animation: floaty 4.5s ease-in-out infinite;
}
.float-chip small { display: block; font-size: 10px; font-weight: 700; color: var(--ink-3); }
.chip-1 { top: 152px; left: -40px; animation-delay: 0s; }
.chip-2 { top: 50%; right: -30px; animation-delay: 1.4s; }
.chip-3 { bottom: 74px; left: -46px; animation-delay: 2.6s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* ------------------------------- 数据条 ------------------------------- */
.stats { padding: 8px 0 64px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 20px; box-shadow: var(--shadow-sm);
}
.stat { text-align: center; padding: 0 8px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value {
  font-size: clamp(24px, 3vw, 32px); font-weight: 900;
  color: var(--brand-dark); line-height: 1.15;
}
.stat-label { font-size: 13.5px; color: var(--ink-2); font-weight: 700; }

/* -------------------------------- 通用区块 -------------------------------- */
.section { padding: 74px 0; }
.section-alt { background: linear-gradient(180deg, #FFF7F0, var(--bg)); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 14px 0 12px; }
.section-head p { color: var(--ink-2); font-size: 16.5px; }

/* ------------------------------- 功能卡片 ------------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 24px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #F6D9C2; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18.5px; margin-bottom: 9px; }
.feature-card p { color: var(--ink-2); font-size: 15px; }

/* -------------------------------- 流程 -------------------------------- */
.steps-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; font-weight: 900; font-size: 16px;
  box-shadow: 0 6px 16px rgba(230, 112, 31, 0.26);
}
.step h3 { font-size: 18px; margin-bottom: 9px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* ------------------------------ 品种展示 ------------------------------ */
.breed-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.breed-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 15px; font-weight: 800; color: var(--ink-2);
  transition: all 0.18s;
}
.breed-tab:hover { border-color: var(--cat); color: var(--ink); }
.breed-tab.active { color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.breed-tab.active[data-species="cat"] { background: linear-gradient(135deg, var(--cat), #D98F5F); }
.breed-tab.active[data-species="dog"] { background: linear-gradient(135deg, var(--dog), #46749B); }

.breed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.breed-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.breed-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #F6D9C2; }
.breed-avatar {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.breed-avatar[data-species="cat"] { background: var(--cat-soft); }
.breed-avatar[data-species="dog"] { background: var(--dog-soft); }
.breed-info { display: block; min-width: 0; }
.breed-name { display: block; font-size: 15.5px; font-weight: 900; line-height: 1.3; }
.breed-latin { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.02em; }
.breed-origin { display: block; font-size: 11.5px; color: var(--ink-2); font-weight: 700; margin-top: 3px; }
.breed-note { text-align: center; margin-top: 24px; font-size: 14px; color: var(--ink-3); font-weight: 700; }

/* -------------------------------- 会员 -------------------------------- */
/* 左右两栏等高：左侧表格行自动补足高度，与右侧解锁卡片底部齐平 */
.member-wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 24px; align-items: stretch; }
.member-table {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.member-table table { width: 100%; border-collapse: collapse; flex: 1 1 auto; }
.member-table th, .member-table td { padding: 15px 18px; text-align: left; font-size: 15px; }
.member-table thead th { background: var(--surface-2); font-size: 13.5px; font-weight: 900; color: var(--ink-2); letter-spacing: 0.02em; }
.member-table tbody tr + tr td { border-top: 1px solid var(--line); }
.member-table td:not(:first-child), .member-table th:not(:first-child) { text-align: center; width: 26%; }
.member-table .col-pro { background: linear-gradient(180deg, rgba(255, 241, 230, 0.85), rgba(255, 241, 230, 0.35)); }
.member-table .yes { color: var(--ok); font-weight: 900; }
.member-table .no { color: var(--ink-3); font-weight: 800; }

.price-card {
  background: linear-gradient(150deg, #FF9A54, #E6701F 72%);
  border-radius: var(--radius-lg); padding: 30px 26px; color: #fff;
  box-shadow: 0 20px 44px rgba(230, 112, 31, 0.28);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.price-card::after {
  content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); top: -90px; right: -70px;
}
.price-crown {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.2); border-radius: 999px;
  padding: 5px 13px; font-size: 12.5px; font-weight: 900;
}
.price-title { font-size: 26px; font-weight: 900; margin: 14px 0 4px; }
.price-sub { font-size: 13.5px; opacity: 0.92; font-weight: 700; }
.price-amount { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; margin: 20px 0 2px; line-height: 1.15; }
.price-amount small { font-size: 13px; font-weight: 700; opacity: 0.9; display: block; margin-top: 8px; line-height: 1.5; }
.price-list { margin: 20px 0 22px; position: relative; z-index: 1; }
.price-list li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; padding: 6px 0; }
.price-list li svg { width: 17px; height: 17px; flex-shrink: 0; }
.price-card .btn { position: relative; z-index: 1; margin-top: auto; }
.price-card .btn-ghost { background: rgba(255, 255, 255, 0.96); color: var(--brand-dark); border-color: transparent; }

/* ------------------------------- 下载 ------------------------------- */
.download-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 44px 40px;
  box-shadow: var(--shadow); display: grid;
  grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.download-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 10%, rgba(255, 138, 61, 0.12), transparent 55%);
  pointer-events: none;
}
.download-copy { position: relative; z-index: 1; }
.download-copy h2 { font-size: clamp(24px, 3vw, 34px); margin: 14px 0 12px; }
.download-copy p { color: var(--ink-2); font-size: 16px; max-width: 520px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #1B1B1F; color: #fff; border-radius: var(--radius);
  padding: 13px 24px; margin-top: 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; z-index: 1;
}
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28); }
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge span { display: block; line-height: 1.2; text-align: left; }
.store-badge small { font-size: 11px; opacity: 0.82; font-weight: 700; letter-spacing: 0.03em; }
.store-badge strong { font-size: 17px; font-weight: 900; }
.download-meta { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); font-weight: 700; position: relative; z-index: 1; }
.qr-box {
  position: relative; z-index: 1; text-align: center;
  background: var(--surface-2); border: 1px dashed #EBD8C6;
  border-radius: var(--radius-lg); padding: 22px;
}
.qr-box .qr-art {
  width: 132px; height: 132px; margin: 0 auto 12px;
  background: #fff; border-radius: var(--radius); padding: 10px;
  box-shadow: var(--shadow-sm);
}
.qr-box p { font-size: 12.5px; color: var(--ink-2); font-weight: 800; }

/* -------------------------------- 表单 -------------------------------- */
.form-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
/* 订阅 / 反馈各自独立成组：单列居中，避免表单卡片被拉得过宽 */
.form-layout--single { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin: 0 auto; }
.form-layout--single .form-card { padding: 32px 30px; }
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.form-card h3 { font-size: 21px; margin-bottom: 6px; }
.form-card > p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13.5px; font-weight: 800;
  color: var(--ink-2); margin-bottom: 7px;
}
.field label .optional { font-weight: 700; color: var(--ink-3); }
.text-input, .text-area, .select-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 15px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.text-area { resize: vertical; min-height: 118px; line-height: 1.65; }
.select-input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239C8C7E' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 16px; padding-right: 38px; }
.text-input::placeholder, .text-area::placeholder { color: #B9AA9D; }
.text-input:focus, .text-area:focus, .select-input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 13.5px; font-weight: 800; color: var(--ink-2);
  transition: all 0.16s;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 14px rgba(230, 112, 31, 0.24); }

.stars { display: flex; align-items: center; gap: 6px; }
.star {
  border: 0; background: transparent; cursor: pointer;
  font-size: 27px; line-height: 1; padding: 2px 3px;
  color: #E6D8CB; transition: transform 0.14s, color 0.14s;
}
.star:hover { transform: scale(1.14); }
.star.active { color: var(--star); }
.rating-hint { margin-left: 10px; font-size: 13px; font-weight: 800; color: var(--ink-3); }

.form-msg { margin-top: 14px; font-size: 14px; font-weight: 800; min-height: 21px; }
.form-msg.success { color: var(--ok); }
.form-msg.error { color: var(--danger); }

/* -------------------------------- 页脚 -------------------------------- */
.site-footer {
  background: #2B2118; color: #E9DED4; padding: 56px 0 26px; margin-top: 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-brand .brand-cn { color: #fff; font-size: 16px; }
.footer-brand .brand-en { color: #A79789; }
.footer-tagline { font-size: 14.5px; color: #B7A79A; max-width: 300px; }
.footer-col h4 { font-size: 14px; font-weight: 900; color: #fff; margin-bottom: 14px; letter-spacing: 0.03em; }
.footer-col li { margin-bottom: 9px; }
.footer-col a, .footer-col span { font-size: 14px; color: #B7A79A; font-weight: 700; transition: color 0.16s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #9C8C7E; font-weight: 700;
}

/* -------------------------------- Toast -------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 24px);
  background: #2B2118; color: #fff;
  padding: 13px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 800;
  box-shadow: var(--shadow-lg); z-index: 80;
  opacity: 0; visibility: hidden;
  transition: opacity 0.24s, transform 0.24s, visibility 0.24s;
  max-width: min(90vw, 480px);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.success { background: linear-gradient(135deg, #3FAE6E, #2E8168); }
.toast.error { background: linear-gradient(135deg, #E5484D, #C2353A); }

/* ------------------------------ 滚动动效 ------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1024px) {
  /* 顶部导航在窄屏收起：德语 / 法语标签较长，1024 以下会挤爆页头 */
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { order: -1; }
  .phone-stage { max-width: 300px; }
  .features-grid, .breed-grid, .steps-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-wrap { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; }
  .qr-box { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* 页脚是 5 列（品牌 + 产品 / 支持 / 法律 / 联系）：窄屏落到两列时让品牌独占一行，
     否则最后「联系我们」会单挂一行，视觉上不平衡。 */
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .hero { padding: 46px 0 60px; }
  .chip-1 { top: 40px; left: -18px; }
  .chip-2 { top: 52%; right: -16px; }
  .chip-3 { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; padding: 22px 14px; }
  .stat:nth-child(3) { border-left: 0; }
  .section { padding: 56px 0; }
  .features-grid, .breed-grid, .steps-wrap { grid-template-columns: minmax(0, 1fr); }
  .download-card { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .member-table th, .member-table td { padding: 12px 10px; font-size: 14px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .float-chip { font-size: 12px; padding: 7px 11px; }
  .brand-text { display: none; }
  /* 长语言（法/德）在窄屏下数据条会顶到 3 行：缩小字号并允许按语言断词 */
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 12px; }
  .stat-value, .stat-label { hyphens: auto; overflow-wrap: break-word; }
  /* 窄屏会员对比表列变窄：缩字号 + 收窄内边距 + 给右侧两列更多宽度，避免「全部高清美图」被折成单字行 */
  .member-table th, .member-table td { padding: 11px 8px; font-size: 13.5px; }
  .member-table td:not(:first-child), .member-table th:not(:first-child) { width: 29%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================ 图片参考（图库） ============================ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-tile {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px 18px 16px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.gallery-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #F6D9C2; }

.tile-stack { position: relative; aspect-ratio: 4 / 3; margin-bottom: 14px; }
.stack-layer {
  position: absolute; inset: 0; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
}
.stack-layer:nth-child(1) { transform: rotate(-5deg) translate(-8px, 6px); }
.stack-layer:nth-child(2) { transform: rotate(3.6deg) translate(8px, 5px); }
.stack-front {
  position: absolute; inset: 0; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stack-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stack-emoji { font-size: 54px; line-height: 1; filter: drop-shadow(0 6px 12px rgba(120, 80, 45, 0.14)); }
.gallery-tile[data-species="cat"] .stack-front { background: linear-gradient(150deg, var(--cat-soft), #F5DAC6); }
.gallery-tile[data-species="dog"] .stack-front { background: linear-gradient(150deg, var(--dog-soft), #C9DEEE); }

.tile-tag, .tile-hint {
  position: absolute; z-index: 2; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap;
}
.tile-tag { left: 10px; bottom: 10px; padding: 5px 11px; background: rgba(43, 33, 24, 0.82); color: #fff; }
.tile-hint { right: 10px; top: 10px; padding: 4px 10px; background: rgba(255, 255, 255, 0.92); color: var(--brand-dark); border: 1px solid var(--line); }

.gallery-tile figcaption { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gallery-tile figcaption strong { font-size: 15.5px; font-weight: 900; line-height: 1.3; }
.gallery-tile figcaption span { font-size: 11.5px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.02em; }
.gallery-note { text-align: center; margin-top: 24px; font-size: 14px; color: var(--ink-3); font-weight: 700; }

/* ---------------------------- 用户上传 ---------------------------- */
.upload-card {
  margin-top: 34px; display: grid; grid-template-columns: 232px 1fr; gap: 34px; align-items: center;
  background: linear-gradient(135deg, #FFF4EA, #FDF0F4);
  border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px 36px;
}
.upload-visual { position: relative; display: flex; align-items: center; justify-content: center; height: 152px; }
.upload-visual::before, .upload-visual::after {
  content: ''; position: absolute; width: 116px; height: 116px; border-radius: 22px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.82);
}
.upload-visual::before { transform: rotate(-8deg) translateX(-30px); }
.upload-visual::after { transform: rotate(6deg) translateX(26px); background: rgba(255, 255, 255, 0.95); }
.upload-plus {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; font-size: 34px; font-weight: 900; line-height: 1;
  box-shadow: 0 14px 30px rgba(230, 112, 31, 0.3);
}
.upload-copy h3 { font-size: 22px; margin-bottom: 10px; }
.upload-copy p { color: var(--ink-2); font-size: 15px; }
.upload-steps { margin: 18px 0 14px; display: grid; gap: 9px; counter-reset: upstep; }
.upload-steps li { position: relative; padding-left: 32px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.upload-steps li::before {
  counter-increment: upstep; content: counter(upstep);
  position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.upload-note { font-size: 13px; color: var(--ink-3); font-weight: 700; }

/* ---------------------------- 备案号 ---------------------------- */
.footer-icp {
  display: inline-flex; align-items: center; gap: 7px;
  color: #9C8C7E; font-size: 13px; font-weight: 700; transition: color 0.16s;
}
.footer-icp:hover { color: var(--brand); }
.footer-icp svg { width: 15px; height: 15px; flex-shrink: 0; }

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .upload-card { grid-template-columns: 1fr; gap: 20px; padding: 28px 26px; }
  .upload-visual { height: 132px; }
}

@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .upload-card { padding: 24px 20px; }
  .stack-emoji { font-size: 46px; }
  .upload-copy h3 { font-size: 19.5px; }
}
