/* landing/style.css —— 官网登记转化页(电脑+手机自适应) */
:root {
  --tomato: #FF6B5A;
  --tomato-d: #E85A4A;
  --cream: #FFF9F3;
  --green: #59B85C;
  --ink: #222222;
  --ink2: #555555;
  --ink3: #8A8A8A;
  --line: rgba(0,0,0,0.08);
  --shadow: 0 8px 24px rgba(0,0,0,0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* 重置链接默认蓝色下划线 —— 修复"按钮显示成蓝色超链接"问题 */
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* 通用按钮 —— 用 class 强制覆盖 a 标签默认样式 */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.4;
  text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--tomato); color: #fff !important; box-shadow: 0 6px 18px rgba(255,107,90,0.32); }
.btn-primary:hover { background: var(--tomato-d); }
.btn-outline { background: #fff; color: var(--tomato) !important; border: 1.5px solid var(--tomato); }
.btn-outline:hover { background: #FFF1ED; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }

/* 导航 */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,249,243,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 920px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 17px; font-weight: 700; }
.nav-cta { background: var(--tomato); color: #fff !important; padding: 8px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; }

/* Hero */
.hero { padding: 56px 20px 44px; text-align: center; background: radial-gradient(120% 80% at 50% 0%, #FFE9E3 0%, var(--cream) 60%); }
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-title { font-size: 34px; line-height: 1.25; font-weight: 800; letter-spacing: -0.5px; }
.hl { color: var(--tomato); }
.hero-sub { font-size: 16px; color: var(--ink2); margin-top: 14px; }
.hero-actions { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-tags { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-tags li { font-size: 13px; color: var(--ink2); background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }

/* 区块通用 */
.sec-title { font-size: 24px; font-weight: 800; text-align: center; }
.sec-sub { font-size: 14px; color: var(--ink3); text-align: center; margin-top: 8px; margin-bottom: 30px; }

/* 真实识别效果 */
.shots { max-width: 920px; margin: 0 auto; padding: 44px 20px; }
.shots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.shot-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.shot-res { padding: 14px 16px 16px; }
.shot-dish { font-size: 16px; font-weight: 700; }
.shot-cal { color: var(--tomato); margin: 4px 0 8px; font-size: 14px; }
.shot-cal b { font-size: 26px; font-weight: 800; }
.shot-nutri { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ink2); margin-bottom: 8px; }
.shot-nutri span { color: var(--green); font-weight: 600; }
.shot-verdict { background: #FFE9E3; color: var(--tomato); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; display: inline-block; }
.shot-note { text-align: center; color: var(--ink3); font-size: 12px; margin-top: 18px; }

/* 提交餐食 */
.meal { max-width: 920px; margin: 0 auto; padding: 44px 20px; }
.meal-card { background: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--shadow); max-width: 520px; margin: 0 auto; }
.meal-form .field { display: block; margin-bottom: 18px; }
.meal-form .field > span { display: block; font-size: 14px; font-weight: 600; color: var(--ink2); margin-bottom: 8px; }
.meal-form input[type=text], .meal-form input[type=file] { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px; background: var(--cream); color: var(--ink); }
.meal-form input:focus { outline: none; border-color: var(--tomato); }
.meal-hint { font-size: 12px; color: var(--ink3); margin-top: 6px; }
.meal-tip { display: block; min-height: 18px; font-size: 13px; margin-top: 10px; }
.meal-result { text-align: center; }
.meal-result img { width: 100%; max-width: 300px; border-radius: 16px; margin: 0 auto 16px; }
.res-dish { font-size: 20px; font-weight: 700; }
.res-cal { font-size: 16px; color: var(--tomato); margin: 8px 0; }
.res-cal b { font-size: 38px; font-weight: 800; }
.res-nutri { display: flex; gap: 18px; justify-content: center; margin: 14px 0; font-size: 14px; color: var(--ink2); }
.res-nutri b { color: var(--green); font-size: 17px; }
.res-verdict { background: #FFE9E3; color: var(--tomato); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; display: inline-block; margin: 14px 0; }

/* 登记 */
.signup { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); padding: 44px 20px; }
.signup-inner { max-width: 840px; margin: 0 auto; text-align: center; }
.signup-row { display: flex; gap: 36px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.signup-form { flex: 1; max-width: 420px; min-width: 280px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.signup-form input { padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px; background: #fff; color: var(--ink); }
.signup-form input:focus { outline: none; border-color: var(--tomato); }
.signup-source { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--ink2); }
.signup-source span { width: 100%; }
.signup-source label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.signup-tip { font-size: 13px; min-height: 18px; text-align: center; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.qr-img { width: 150px; height: 150px; border-radius: 16px; object-fit: cover; background: #fff; box-shadow: var(--shadow); }
.qr-text { font-size: 13px; color: var(--ink2); line-height: 1.6; }

/* 页脚 */
.footer { background: #1f1f1f; color: #bbb; padding: 40px 20px 22px; }
.foot-cols { max-width: 920px; margin: 0 auto; display: flex; gap: 40px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid #333; }
.foot-col { display: flex; flex-direction: column; gap: 8px; min-width: 120px; }
.foot-col h4 { color: #fff; font-size: 14px; margin-bottom: 4px; }
.foot-col a, .foot-col span { font-size: 13px; color: #999; cursor: pointer; }
.foot-col a:hover { color: #fff; }
.foot-bottom { max-width: 920px; margin: 0 auto; padding-top: 18px; font-size: 12px; color: #666; text-align: center; }

/* 政策弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { display: flex; }
.modal-card { background: #fff; border-radius: 20px; padding: 26px; max-width: 480px; width: 100%; max-height: 80vh; overflow-y: auto; }
.modal-title { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.modal-body { font-size: 14px; color: var(--ink2); margin-bottom: 20px; line-height: 1.7; }
.modal-body p { margin-bottom: 10px; }

/* ===== 响应式:手机 ===== */
@media (max-width: 640px) {
  .hero { padding: 40px 18px 32px; }
  .hero-title { font-size: 25px; }
  .hero-sub { font-size: 14px; }
  .hero-tags li { font-size: 12px; padding: 5px 11px; }
  .sec-title { font-size: 20px; }
  .shots-grid { grid-template-columns: 1fr; gap: 14px; }
  .shot-card img { aspect-ratio: 16/10; }
  .meal-card { padding: 20px; }
  .foot-cols { gap: 20px; }
  .btn { padding: 12px 22px; font-size: 14px; }
}

/* ===== 平板 ===== */
@media (min-width: 641px) and (max-width: 900px) {
  .shots-grid { grid-template-columns: repeat(2, 1fr); }
}
