/* =====================================================================
   农村人 / Nongcunren — 网站样式
   响应式 + 中英双语 + 无障碍
   ===================================================================== */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #1e2a24;
  --muted: #6b7a70;
  --line: #e7e4db;

  --primary: #1f7a5a;
  --primary-dark: #165c43;
  --primary-soft: #e6f1ec;
  --accent: #e8912d;
  --accent-dark: #c97a1f;
  --accent-soft: #fdf1e2;

  --star: #f5a623;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 42, 36, 0.05), 0 8px 24px rgba(30, 42, 36, 0.06);
  --shadow-lg: 0 12px 40px rgba(30, 42, 36, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-head: 'Poppins', 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--primary); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ======== 按钮 ======== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(232, 145, 45, .3); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }

/* ======== 顶部导航 ======== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-cn { font-weight: 700; font-size: 16px; }
.brand-en { font-size: 11px; color: var(--muted); letter-spacing: .4px; }

.main-nav { display: flex; gap: 26px; }
.main-nav a { font-weight: 500; font-size: 15px; color: var(--ink); position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--primary); transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink);
}
.lang-toggle .active-lang { color: var(--primary); }

.hamburger { display: none; background: none; border: none; width: 40px; height: 40px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ======== Hero ======== */
.hero { background: linear-gradient(160deg, #1f7a5a 0%, #155c43 55%, #0f4632 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 72px 20px 64px; }
.hero-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 600; color: #a9d9c3; margin-bottom: 14px; }
.hero-title { font-family: var(--font-head); font-size: clamp(32px, 5vw, 54px); line-height: 1.12; font-weight: 800; }
.hero-title .accent { display: block; color: #ffcf8a; }
.hero-sub { margin: 18px 0 26px; font-size: 17px; color: #d7ece2; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: none; }
.hero-cta .btn-primary:hover { background: #ffe9cc; }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.1); }

.hero-visual { position: relative; height: 300px; }
.hero-card {
  position: absolute; width: 130px; height: 130px; border-radius: 22px;
  display: grid; place-items: center; font-size: 56px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(4px); box-shadow: var(--shadow-lg);
}
.hero-card.card-a { top: 10px; left: 10%; animation: float 5s ease-in-out infinite; }
.hero-card.card-b { top: 40px; right: 8%; animation: float 6s ease-in-out infinite reverse; }
.hero-card.card-c { bottom: 10px; left: 28%; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* 信任条 */
.trust-bar { background: rgba(0,0,0,.15); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 18px 20px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: #eaf6f0; }
.trust-item svg { flex-shrink: 0; color: #ffcf8a; }

/* ======== 区块通用 ======== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; color: var(--ink); }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 16px; }

section { padding: 72px 20px; }

/* ======== 分类 ======== */
.categories { background: var(--surface); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  display: flex; flex-direction: column; gap: 8px; padding: 32px 28px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-emoji { font-size: 44px; }
.cat-card h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.cat-card p { color: var(--muted); font-size: 14px; }

/* ======== 商品 ======== */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink); transition: all .15s ease;
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.search-box { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; min-width: 240px; }
.search-box svg { color: var(--muted); }
.search-box input { border: none; outline: none; background: transparent; font-size: 14px; width: 100%; font-family: inherit; color: var(--ink); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-media { position: relative; aspect-ratio: 1 / 1; background: #eef1ed; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-img-ph { width: 100%; height: 100%; display: grid; place-items: center; }
.product-img-ph svg { width: 90px; height: 90px; }
.ph-puzzle { background: linear-gradient(140deg, #e8f0ec, #d4e6dc); color: #2f7a5a; }
.ph-reed { background: linear-gradient(140deg, #f4ede0, #e9dcc2); color: #9a6b1f; }
.ph-planter { background: linear-gradient(140deg, #e9efe4, #d6e2ca); color: #55743a; }
.ph-watermark { position: absolute; right: 12px; bottom: 10px; font-size: 11px; letter-spacing: 1px; color: rgba(30,42,36,.35); font-weight: 600; }

.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--accent); color: #fff; }

.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--primary); }
.product-name { font-weight: 600; font-size: 15.5px; line-height: 1.35; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.stars { color: var(--star); letter-spacing: 1px; }
.product-desc { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-size: 22px; font-weight: 800; color: var(--ink); margin-top: auto; }
.product-price small { font-size: 13px; font-weight: 500; color: var(--muted); }

.product-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.btn-buy-amazon { background: var(--primary); color: #fff; }
.btn-buy-amazon:hover { background: var(--primary-dark); }
.btn-buy-direct { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent); }
.btn-buy-direct:hover { background: var(--accent); color: #fff; }
.btn-buy-direct[hidden] { display: none; }

.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }

/* ======== 关于 ======== */
.about { background: var(--primary); color: #fff; }
.about-inner { display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; align-items: center; }
.about h2 { font-family: var(--font-head); font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; margin-bottom: 18px; }
.about p { color: #d7ece2; margin-bottom: 14px; font-size: 16px; }
.about-stats { display: flex; gap: 32px; margin-top: 24px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 30px; font-weight: 800; color: #ffcf8a; }
.stat span { font-size: 13px; color: #cde5d9; }

.about-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 36px 30px; text-align: center; }
.about-badge { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 16px; background: #fff; color: var(--primary); display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.about-quote { color: #fff !important; font-size: 17px; font-weight: 600; }
.about-quote-en { color: #ffcf8a !important; font-size: 13px; margin-top: 8px; }

/* ======== 联系 ======== */
.contact { background: var(--surface); }
.contact-inner { text-align: center; max-width: 640px; }
.contact h2 { font-family: var(--font-head); font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; }
.contact p { color: var(--muted); margin: 12px 0 24px; }
.contact .btn { margin: 4px; }
.contact-note { margin-top: 24px !important; margin-bottom: 8px !important; font-size: 14px; }

/* ======== 页脚 ======== */
.site-footer { background: #14231b; color: #cfe0d7; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; padding: 56px 20px 40px; }
.footer-brand .brand-mark { background: var(--accent); }
.footer-brand .brand-cn { color: #fff; }
.footer-desc { font-size: 14px; color: #9db7a9; margin-top: 14px; max-width: 260px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.footer-col a { color: #9db7a9; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.pay-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-icons span { padding: 5px 10px; border: 1px solid #2f473a; border-radius: 6px; font-size: 11px; font-weight: 600; color: #cfe0d7; }
.footer-bottom { border-top: 1px solid #24382e; padding: 20px; text-align: center; font-size: 13px; color: #7f9b8d; }
.disclaimer { font-size: 11px; margin-top: 6px; color: #5f786b; }

/* ======== 响应式 ======== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .main-nav {
    position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column;
    padding: 16px 20px 24px; gap: 4px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .main-nav a:last-child { border-bottom: none; }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand-en { display: none; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-name { font-size: 13.5px; }
  .product-desc { display: none; }
  .trust-grid { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 56px 16px; }
  .container { width: min(1200px, 100% - 32px); }
}

@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; }
}
