:root {
    --lake-deep: #0b3d4c;
    --lake: #10576b;
    --lake-light: #1a7d94;
    --gold: #d9a441;
    --gold-deep: #b8842a;
    --crab-red: #c9502e;
    --paper: #f7f3ea;
    --paper-2: #efe8d8;
    --ink: #22303a;
    --ink-soft: #5c6b76;
    --ok: #2e8b57;
    --bad: #c0392b;
    --radius: 16px;
    /* 立体阴影体系：环境光 + 投影 + 内高光 */
    --sh-sm: 0 1px 2px rgba(11,40,50,.10), 0 4px 12px rgba(11,40,50,.10), inset 0 1px 0 rgba(255,255,255,.85);
    --sh-md: 0 2px 4px rgba(11,40,50,.10), 0 12px 28px rgba(11,40,50,.14), inset 0 1px 0 rgba(255,255,255,.85);
    --sh-lg: 0 4px 8px rgba(11,40,50,.12), 0 24px 56px rgba(11,40,50,.20), inset 0 1px 0 rgba(255,255,255,.9);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    color: var(--ink);
    line-height: 1.7;
    /* 底色：分层径向渐变，避免"平" */
    background:
      radial-gradient(900px 500px at 12% 4%, rgba(26,125,148,.10), transparent 60%),
      radial-gradient(1100px 600px at 92% 30%, rgba(217,164,65,.08), transparent 60%),
      radial-gradient(800px 500px at 30% 78%, rgba(201,80,46,.05), transparent 60%),
      linear-gradient(180deg, #f9f6ef 0%, #f3ecdd 48%, #efe7d5 100%);
    background-attachment: fixed;
  }
  /* 细颗粒噪点，增加材质质感 */
  body::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  body > * { position: relative; z-index: 1; }
  .container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

  /* ===== 导航 ===== */
  header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 243, 234, .78);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    transition: box-shadow .5s cubic-bezier(.16,1,.3,1), background .5s;
  }
  header.scrolled {
    background: rgba(247, 243, 234, .88);
    box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 24px rgba(11,61,76,.10);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--lake-deep); }
  .brand svg { width: 34px; height: 34px; filter: drop-shadow(0 3px 6px rgba(11,61,76,.35)); }
  .nav-links { display: flex; gap: 26px; font-size: 15px; }
  .nav-links a { color: var(--ink-soft); text-decoration: none; transition: color .2s; }
  .nav-links a:hover { color: var(--lake); }
  @media (max-width: 720px) { .nav-links { display: none; } }

  /* ===== Hero：实拍氛围背景 + 透明蟹主视觉 ===== */
  .hero {
    position: relative;
    color: #fff;
    padding: 96px 0 120px;
    overflow: hidden;
  }
  .hero .bg {
    position: absolute; inset: 0;
    background: url("../assets/crab-scene.jpg") center/cover no-repeat;
    filter: brightness(.9);
  }
  /* 多层叠加：深青压暗 + 底部渐隐 + 暗角，营造纵深 */
  .hero .bg::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(105deg, rgba(7,38,48,.94) 0%, rgba(7,38,48,.82) 38%, rgba(11,61,76,.45) 62%, rgba(16,87,107,.25) 100%),
      radial-gradient(1200px 600px at 78% 30%, rgba(217,164,65,.12), transparent 55%),
      radial-gradient(140% 100% at 50% 100%, rgba(247,243,234,.9) 0%, rgba(247,243,234,0) 42%);
  }
  .hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  }
  @media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
  .hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
    box-shadow: 0 8px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.25);
    padding: 6px 14px; border-radius: 999px; font-size: 13px; letter-spacing: 2px;
    margin-bottom: 22px;
  }
  .hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; letter-spacing: 2px; line-height: 1.3; text-shadow: 0 4px 24px rgba(0,0,0,.45); }
  .hero h1 em { font-style: normal; color: var(--gold); }
  .hero p.sub { margin: 18px 0 30px; color: rgba(255,255,255,.85); font-size: 16px; max-width: 520px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
  .hero-verify {
    background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius); padding: 20px; max-width: 560px;
    box-shadow: 0 18px 44px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.3);
    backdrop-filter: blur(6px);
  }
  .hero-verify label { font-size: 13px; color: rgba(255,255,255,.85); letter-spacing: 1px; }
  .verify-row { display: flex; gap: 10px; margin-top: 10px; }
  .verify-row input {
    flex: 1; padding: 12px 16px; border-radius: 10px; border: none; outline: none;
    font-size: 15px; letter-spacing: 1px; color: var(--ink);
    box-shadow: inset 0 2px 6px rgba(11,40,50,.25);
  }
  .btn {
    border: none; cursor: pointer; border-radius: 10px; font-size: 15px;
    padding: 12px 26px; font-weight: 600; transition: transform .15s, box-shadow .2s;
  }
  .btn:active { transform: scale(.97); }
  .btn-gold {
    background: linear-gradient(160deg, #e6b558 0%, var(--gold) 40%, var(--gold-deep) 100%);
    color: #3a2a05;
    box-shadow: 0 2px 4px rgba(0,0,0,.25), 0 10px 24px rgba(217,164,65,.4), inset 0 1px 0 rgba(255,255,255,.5);
  }
  .btn-gold:hover { box-shadow: 0 2px 4px rgba(0,0,0,.25), 0 14px 32px rgba(217,164,65,.55), inset 0 1px 0 rgba(255,255,255,.5); }
  /* 主视觉蟹：光晕托底 + 立体投影 + 悬浮动画 */
  .hero-art { text-align: center; position: relative; }
  .hero-art .glow {
    position: absolute; left: 50%; top: 50%; width: 420px; height: 420px;
    transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(circle, rgba(217,164,65,.35) 0%, rgba(217,164,65,.10) 45%, transparent 70%);
    filter: blur(8px); pointer-events: none;
  }
  .hero-art img {
    position: relative; width: min(430px, 86%);
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)) drop-shadow(0 30px 50px rgba(0,0,0,.5));
    animation: floaty 9s ease-in-out infinite;
    will-change: transform;
  }
  @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
  /* 地面投影与蟹联动：蟹升得越高（远离地面），投影越小、越淡 */
  .hero-art .floor-shadow {
    width: 62%; height: 34px; margin: -26px auto 0; border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,.5) 0%, rgba(0,0,0,.22) 45%, transparent 72%);
    filter: blur(6px);
    transform-origin: 50% 50%;
    animation: shadowSync 9s ease-in-out infinite;
    will-change: transform, opacity;
  }
  @keyframes shadowSync {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(.78,.62); opacity: .45; }
  }

  /* ===== 区块通用 ===== */
  section { padding: 84px 0; position: relative; }
  .sec-head { text-align: center; margin-bottom: 50px; position: relative; }
  .sec-head .kicker { color: var(--gold-deep); letter-spacing: 4px; font-size: 13px; font-weight: 700; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
  .sec-head h2 { font-size: clamp(24px, 3vw, 34px); color: var(--lake-deep); margin-top: 8px; letter-spacing: 2px; }
  .sec-head p { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }

  /* ===== Apple 风格动效系统 ===== */
  .reveal {
    opacity: 0;
    transform: translateY(28px) scale(.985);
    filter: blur(8px);
    transition: opacity .9s cubic-bezier(.16,1,.3,1),
                transform .9s cubic-bezier(.16,1,.3,1),
                filter .9s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
  }
  .reveal.in { opacity: 1; transform: none; filter: blur(0); }
  .icon {
    width: 24px; height: 24px; stroke: currentColor; fill: none;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; filter: none; transition: none; }
    .hero-art img { animation: none; }
    .hero-art .floor-shadow { animation: none; }
  }

  /* ===== 产地 ===== */
  .origin-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: stretch; }
  @media (max-width: 860px) { .origin-grid { grid-template-columns: 1fr; } }
  .origin-card {
    border-radius: var(--radius); color: #fff; padding: 38px; position: relative; overflow: hidden;
    background: url("../assets/crab-scene.jpg") center/cover no-repeat;
    box-shadow: var(--sh-lg);
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 420px;
  }
  .origin-card::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7,38,48,.30) 0%, rgba(7,38,48,.62) 45%, rgba(6,32,41,.94) 100%);
  }
  .origin-card > * { position: relative; z-index: 1; }
  .origin-card .en { color: var(--gold); font-size: 13px; letter-spacing: 3px; margin: 6px 0 14px; }
  .origin-card h3 { font-size: 26px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
  .origin-card p { color: rgba(255,255,255,.88); font-size: 15px; }
  .origin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
  .stat {
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px; padding: 14px; text-align: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.22);
    backdrop-filter: blur(4px);
  }
  .stat b { display: block; font-size: 22px; color: var(--gold); }
  .stat span { font-size: 12px; color: rgba(255,255,255,.78); }
  .feature-list { display: grid; gap: 18px; align-content: stretch; }
  .feature {
    background: linear-gradient(165deg, #fffefb, #f6f0e2);
    border-radius: var(--radius); padding: 22px 24px;
    display: flex; gap: 16px; align-items: flex-start;
    border-left: 4px solid var(--gold);
    box-shadow: var(--sh-md);
    transition: transform .25s, box-shadow .25s;
  }
  .feature:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--sh-lg); }
  .feature .ico {
    flex: none; width: 46px; height: 46px; border-radius: 12px;
    background: linear-gradient(150deg, #fff, var(--paper-2));
    display: grid; place-items: center; color: var(--lake);
    box-shadow: 0 4px 10px rgba(11,40,50,.15), inset 0 1px 0 #fff;
  }
  .feature h4 { color: var(--lake-deep); font-size: 16px; margin-bottom: 4px; }
  .feature p { color: var(--ink-soft); font-size: 14px; }

  /* ===== 产品 ===== */
  .products {
    background:
      radial-gradient(700px 400px at 85% 12%, rgba(26,125,148,.10), transparent 60%),
      linear-gradient(180deg, #ece4d2, #e4dac4);
    box-shadow: inset 0 12px 30px rgba(11,40,50,.08), inset 0 -12px 30px rgba(11,40,50,.06);
  }
  .prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
  .prod-card {
    background: linear-gradient(170deg, #fffefb, #f8f3e7);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--sh-md);
    transition: transform .25s, box-shadow .25s;
  }
  .prod-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: var(--sh-lg); }
  .prod-top {
    height: 170px; display: grid; place-items: center; position: relative; overflow: hidden;
    box-shadow: inset 0 -18px 30px rgba(0,0,0,.22), inset 0 2px 0 rgba(255,255,255,.25);
  }
  .prod-top.male   { background: radial-gradient(120% 120% at 30% 0%, #2b8ba3 0%, #10576b 55%, #093644 100%); }
  .prod-top.female { background: radial-gradient(120% 120% at 30% 0%, #e0704a 0%, #c9502e 55%, #7c2c14 100%); }
  .prod-top.pair   { background: radial-gradient(120% 120% at 30% 0%, #f0c877 0%, #d9a441 55%, #8a6414 100%); }
  .prod-top img {
    width: 150px; height: 150px; object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.45));
  }
  .prod-badge {
    position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94);
    color: var(--lake-deep); font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
  }
  .prod-body { padding: 20px 22px 24px; }
  .prod-body h4 { font-size: 18px; color: var(--lake-deep); }
  .prod-body .spec { color: var(--crab-red); font-weight: 700; margin: 6px 0; font-size: 15px; }
  .prod-body p { color: var(--ink-soft); font-size: 14px; }
  .prod-body ul { list-style: none; margin-top: 12px; }
  .prod-body li { font-size: 13px; color: var(--ink-soft); padding: 4px 0 4px 20px; position: relative; }
  .prod-body li::before { content: "✦"; position: absolute; left: 0; color: var(--gold-deep); }

  /* ===== 防伪体系 ===== */
  .anti-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
  .anti-card {
    background: linear-gradient(170deg, #fffefb, #f5efe1);
    border-radius: var(--radius); padding: 30px 24px; text-align: center;
    border-top: 4px solid var(--lake-light);
    box-shadow: var(--sh-md);
    transition: transform .25s, box-shadow .25s;
  }
  .anti-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--sh-lg); }
  .anti-card .num {
    width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
    background: radial-gradient(120% 120% at 30% 20%, #3596ae 0%, var(--lake) 55%, var(--lake-deep) 100%);
    color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800;
    box-shadow: 0 8px 18px rgba(16,87,107,.45), inset 0 2px 3px rgba(255,255,255,.4);
  }
  .anti-card h4 { color: var(--lake-deep); margin-bottom: 8px; font-size: 17px; }
  .anti-card p { color: var(--ink-soft); font-size: 14px; text-align: left; }

  /* ===== 查询 ===== */
  .check-section {
    background: url("../assets/crab-scene.jpg") center/cover no-repeat fixed;
    color: #fff; overflow: hidden;
  }
  .check-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(165deg, rgba(7,38,48,.92), rgba(11,61,76,.85)); }
  .check-section > .container { position: relative; z-index: 1; }
  .check-section .sec-head h2 { color: #fff; }
  .check-section .sec-head p { color: rgba(255,255,255,.78); }
  .check-box {
    max-width: 640px; margin: 0 auto;
    background: linear-gradient(160deg, rgba(255,255,255,.15), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.22); border-radius: 20px; padding: 36px;
    box-shadow: 0 30px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.28);
    backdrop-filter: blur(8px);
  }
  .check-box .verify-row input { background: rgba(255,255,255,.96); }
  .result { margin-top: 18px; border-radius: 12px; padding: 18px 20px; font-size: 14px; display: none; }
  .result.show { display: block; animation: fadeUp .4s ease; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: none;} }
  .result.ok { background: rgba(46,139,87,.18); border: 1px solid rgba(46,139,87,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
  .result.bad { background: rgba(192,57,43,.18); border: 1px solid rgba(192,57,43,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
  .result h5 { font-size: 17px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
  .result.ok h5 { color: #7ee2a8; }
  .result.bad h5 { color: #ff9d8f; }
  .result dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; color: rgba(255,255,255,.9); }
  .result dt { color: rgba(255,255,255,.6); }

  /* ===== 溯源流程 ===== */
  .flow-wrap { position: relative; }
  .flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative; }
  @media (max-width: 900px) { .flow { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 560px) { .flow { grid-template-columns: repeat(2, 1fr); } }
  .flow-item { text-align: center; position: relative; z-index: 2; transition: transform .25s; }
  .flow-item:hover { transform: translateY(-6px); }
  .flow-item .dot {
    width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
    background: radial-gradient(120% 120% at 30% 20%, #ffffff 0%, #f2ecdd 70%, #e2d6bc 100%);
    border: 2px solid var(--lake-light);
    display: grid; place-items: center; color: var(--lake-deep);
    box-shadow: 0 4px 8px rgba(11,40,50,.15), 0 14px 26px rgba(11,40,50,.18), inset 0 2px 3px #fff;
  }
  .flow-item .dot .icon { width: 26px; height: 26px; }
  .flow-item h5 { color: var(--lake-deep); font-size: 15px; margin-bottom: 4px; }
  .flow-item p { font-size: 12.5px; color: var(--ink-soft); }
  .flow-line {
    position: absolute; top: 32px; left: 8%; right: 8%; height: 3px; z-index: 1; border-radius: 3px;
    background: repeating-linear-gradient(90deg, var(--lake-light) 0 10px, transparent 10px 18px);
    opacity: .5; filter: drop-shadow(0 2px 2px rgba(11,40,50,.25));
  }
  @media (max-width: 900px) { .flow-line { display: none; } }

  /* ===== 页脚 ===== */
  footer {
    background: linear-gradient(180deg, #0e4a5b, #082e3a);
    color: rgba(255,255,255,.7); padding: 36px 0; text-align: center; font-size: 13px;
    box-shadow: inset 0 10px 24px rgba(0,0,0,.3);
  }
  footer b { color: var(--gold); letter-spacing: 2px; }
  .notice { text-align: center; color: rgba(255,255,255,.6); font-size: 13px; margin-top: 14px; }

  /* ===== 手机竖屏：防伪查询「输入框 + 按钮」整体不溢出、居中 ===== */
  @media (max-width: 600px) {
    html, body { overflow-x: hidden; }
    .container { padding: 0 16px; }
    .hero-verify,
    .check-box { margin-left: auto; margin-right: auto; width: 100%; }
    .hero-verify { padding: 16px; }
    .check-box   { padding: 18px; }
    .verify-row {
      display: flex;
      flex-wrap: nowrap;
      align-items: stretch;
      gap: 8px;
      width: 100%;
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
    }
    .verify-row input {
      flex: 1 1 auto;
      min-width: 0;          /* 关键：允许输入框收缩，避免被默认宽度撑爆 */
      width: 100%;
      padding: 12px 12px;
      font-size: 14px;
    }
    .verify-row .btn {
      flex: 0 0 auto;        /* 按钮固定自身宽度，不被压缩 */
      white-space: nowrap;
      padding: 12px 16px;
      font-size: 14px;
    }
  }
  @media (max-width: 370px) {
    /* 更窄的屏：改为上下堆叠，输入框与按钮各占一行，绝无溢出 */
    .verify-row { flex-wrap: wrap; }
    .verify-row input { flex: 1 1 100%; }
    .verify-row .btn { flex: 1 1 100%; text-align: center; }
  }