/* ============================================================
   微足购 WFOOT 官网样式
   设计基调：高端 / 简约 / 大气
   配色取自品牌 Logo：深青蓝 + 浅雾青 + 米白
   ============================================================ */

:root {
  --teal: #174751;
  --teal-2: #2e6b74;
  --teal-3: #3e7c84;
  --mint: #b8dcd8;
  --mint-light: #eaf1ed;
  --cream: #f9f7f2;
  --sand: #ede5d6;
  --ink: #22363b;
  --muted: #6b7a7c;
  --line: #e3e8e4;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 71, 81, 0.10);
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 4px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 999;
  background: var(--teal); color: var(--white); padding: 10px 18px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

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

/* 待补充标记：便于后续检索替换（上线前请全部处理） */
.todo, .placeholder {
  color: #9a6a21;
  background: #fbf3e4;
  border-bottom: 1px dashed #c79a4e;
  border-radius: 3px;
  padding: 0 6px;
  font-size: .92em;
  white-space: nowrap;
}
.placeholder { font-style: normal; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249, 247, 242, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(23, 71, 81, .08); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 94px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-crop { display: block; width: 62px; height: 62px; overflow: hidden; flex-shrink: 0; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; transform: scale(1.55); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-size: 2.43rem; letter-spacing: .08em; color: var(--teal); }
.brand-text small { font-size: 1.2rem; letter-spacing: .06em; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
.nav-link { position: relative; font-size: .92rem; color: #46595c; padding: 8px 0; white-space: nowrap; transition: color .2s ease; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--teal-2); transform: scaleX(0); transform-origin: right; transition: transform .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--teal); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta {
  flex-shrink: 0; padding: 10px 18px; border: 1px solid var(--teal);
  border-radius: 999px; color: var(--teal); font-size: .85rem; transition: all .2s ease;
}
.header-cta:hover { background: var(--teal); color: var(--white); }
.header-cta span { margin-left: 4px; }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--teal); margin: 5px 0; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }

/* ---------------- Hero ---------------- */
.hero { position: relative; background: linear-gradient(180deg, var(--cream) 0%, #f3f6f3 100%); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.02fr .98fr; align-items: center;
  gap: clamp(32px, 5vw, 80px); padding-block: clamp(56px, 8vw, 104px);
}
.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal-2); font-weight: 600; margin-bottom: 20px;
}
.eyebrow span { color: var(--mint); margin-inline: 4px; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 4.15rem); line-height: 1.3;
  letter-spacing: .01em; color: var(--teal); margin-bottom: 24px;
}
.hero h1 .dot { color: var(--teal-3); }
.hero-lead { max-width: 34em; color: #54686b; font-size: clamp(.96rem, 1.3vw, 1.06rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; font-size: .92rem; font-weight: 500; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 10px 24px rgba(23, 71, 81, .18); }
.btn-primary:hover { background: var(--teal-2); box-shadow: 0 14px 28px rgba(23, 71, 81, .24); }
.btn-ghost { border: 1px solid #c9d5d1; color: var(--teal); background: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: var(--teal-2); background: var(--white); }
.btn-block { width: 100%; }

.hero-meta { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px); margin-top: 46px; padding-top: 26px; border-top: 1px solid #dfe6e1; }
.hero-meta li { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--serif); font-size: 1.65rem; color: var(--teal); line-height: 1.2; }
.hero-meta span { font-size: .78rem; color: var(--muted); letter-spacing: .06em; margin-top: 4px; }

.hero-visual { position: relative; }
.hero-frame {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 46% 46% 20px 20px / 34% 34% 20px 20px;
  box-shadow: var(--shadow); background: var(--mint-light);
}
.hero-frame svg { width: 100%; height: 100%; }
.hero-badge {
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  border-radius: 12px; padding: 12px 18px; box-shadow: 0 8px 24px rgba(23,71,81,.12);
}
.hero-badge span { display: block; font-size: .62rem; letter-spacing: .2em; color: var(--teal-2); }
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1rem; color: var(--teal); margin-top: 2px; }
.hero-caption { margin-top: 12px; text-align: right; font-size: .72rem; color: var(--muted); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  font-size: .66rem; letter-spacing: .22em; color: var(--teal-2);
  display: flex; align-items: center; gap: 8px;
}
.scroll-hint span { font-size: 1rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------------- Promise strip ---------------- */
.promise-strip { background: var(--white); border-block: 1px solid var(--line); }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.promise-item { display: flex; align-items: center; gap: 14px; padding: 26px 20px; border-right: 1px solid var(--line); }
.promise-item:last-child { border-right: 0; }
.promise-item .ico { width: 30px; height: 30px; flex-shrink: 0; color: var(--teal-2); }
.promise-item strong { display: block; font-family: var(--serif); font-size: 1.02rem; color: var(--teal); }
.promise-item span { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; }

/* ---------------- Section common ---------------- */
.section { padding-block: clamp(70px, 9vw, 118px); }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.42; color: var(--teal); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.section-desc { max-width: 34em; color: var(--muted); font-size: .92rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: .9rem; color: var(--teal); border-bottom: 1px solid var(--teal-2); padding-bottom: 4px; }
.text-link:hover { color: var(--teal-2); gap: 12px; }

/* ---------------- About ---------------- */
.about { background: var(--cream); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-copy p:not(.eyebrow) { color: #53666a; margin-top: 18px; max-width: 36em; }
.about-visual { position: relative; min-height: 400px; }
.about-card { position: absolute; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow); background: var(--mint-light); }
.about-card svg { width: 100%; height: 100%; }
.about-card-main { width: 82%; aspect-ratio: 4 / 3.4; top: 0; left: 0; z-index: 1; }
.about-card-sub { width: 52%; aspect-ratio: 4 / 3; right: 0; bottom: 0; z-index: 2; border: 6px solid var(--cream); }
.about-stamp {
  position: absolute; right: 2%; top: 4%; z-index: 3;
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--teal); color: var(--white); display: grid; place-content: center; text-align: center;
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .1em; line-height: 1.4;
  box-shadow: 0 10px 24px rgba(23,71,81,.22);
}
.about-stamp span { font-family: var(--sans); font-size: .56rem; letter-spacing: .12em; color: var(--mint); }

/* ---------------- Products ---------------- */
.products { background: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  padding: 9px 18px; border: 1px solid #d8e0dc; border-radius: 999px;
  background: var(--white); color: #4e6164; font-size: .84rem; transition: all .2s ease;
}
.filter:hover { border-color: var(--teal-2); color: var(--teal); }
.filter.is-active { background: var(--teal); border-color: var(--teal); color: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfdcd7; }
.product-card[hidden] { display: none; }
.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mint-light); }
.product-media svg { width: 100%; height: 100%; transition: transform .5s ease; }
.product-card:hover .product-media svg { transform: scale(1.05); }
.product-tag { position: absolute; top: 14px; left: 14px; background: var(--teal); color: var(--white); font-size: .7rem; padding: 5px 12px; border-radius: 999px; letter-spacing: .05em; }
.product-body { padding: 24px 24px 26px; }
.product-cat { font-size: .72rem; letter-spacing: .16em; color: var(--teal-2); margin-bottom: 8px; }
.product-body h3 { font-family: var(--serif); font-size: 1.22rem; color: var(--teal); font-weight: 600; }
.product-body p { font-size: .86rem; color: var(--muted); margin-top: 8px; }
.product-body a { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .84rem; color: var(--teal); }
.product-body a:hover { gap: 10px; }
.products-note { margin-top: 24px; font-size: .8rem; color: var(--muted); }

/* ---------------- Advantage ---------------- */
.advantage { background: var(--teal); color: var(--white); }
.advantage .eyebrow { color: var(--mint); }
.advantage .eyebrow span { color: rgba(255,255,255,.35); }
.advantage .section-title { color: var(--white); }
.advantage-head { margin-bottom: 52px; }
.advantage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 34px; }
.advantage-item { position: relative; padding: 30px 0 34px; border-top: 1px solid rgba(255,255,255,.22); }
.adv-no { position: absolute; right: 0; top: 26px; font-family: var(--serif); font-size: 1.05rem; color: rgba(255,255,255,.4); }
.advantage-item .ico { width: 32px; height: 32px; color: var(--mint); margin-bottom: 14px; }
.advantage-item h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.advantage-item p { font-size: .88rem; color: rgba(255,255,255,.72); max-width: 26em; }

/* ---------------- Company ---------------- */
.company { background: #f4f1e9; }
.company-inner { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.company-copy p:not(.eyebrow) { color: #53666a; margin-top: 18px; }
.company-hint { font-size: .84rem !important; color: #7a8481 !important; }
.company-info { margin: 0; background: var(--white); border-radius: 16px; padding: 12px 30px; box-shadow: 0 12px 36px rgba(23,71,81,.06); }
.company-info > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.company-info > div:last-child { border-bottom: 0; }
.company-info dt { font-size: .82rem; color: var(--muted); }
.company-info dd { margin: 0; font-size: .9rem; color: var(--ink); }
.company-info .info-wide { display: block; }
.company-info .info-wide dt { margin-bottom: 4px; }
.company-info .info-wide dd { font-size: .84rem; line-height: 1.75; color: #4e6164; }

/* ---------------- Inquiry ---------------- */
.inquiry { background: var(--white); }
.inquiry-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.inquiry-copy p { margin-top: 16px; font-size: .92rem; line-height: 1.9; color: #4e6164; }
.inquiry-copy .inquiry-hint { margin-top: 10px; font-size: .76rem; color: #9aa5a4; }
.contact-form { background: var(--cream); border-radius: 18px; padding: clamp(24px, 4vw, 40px); }
.contact-form h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--teal); margin-bottom: 24px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: .82rem; color: #4e6164; margin-bottom: 8px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #dbe2de; border-radius: 10px;
  background: var(--white); outline: none; transition: border-color .2s ease, box-shadow .2s ease; resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(46,107,116,.12); }
.form-row input::placeholder, .form-row textarea::placeholder { color: #a7b1af; }
.form-message { min-height: 22px; margin-top: 14px; font-size: .86rem; color: var(--teal-2); }
.form-note { margin-top: 6px; font-size: .74rem; color: #9aa5a4; }

/* ---------------- Footer ---------------- */
.site-footer { background: #10353d; color: rgba(255,255,255,.78); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 68px 54px; }
.site-footer .brand-logo { filter: brightness(0) invert(1); opacity: .92; }
.site-footer .brand-text strong { color: var(--white); }
.site-footer .brand-text small { color: rgba(255,255,255,.55); }
.footer-brand p { margin-top: 20px; font-size: .86rem; color: rgba(255,255,255,.62); }
.footer-col h4 { font-family: var(--serif); font-size: 1rem; color: var(--white); margin-bottom: 18px; font-weight: 600; }
.footer-col a { display: block; font-size: .85rem; margin-bottom: 10px; color: rgba(255,255,255,.68); }
.footer-col a:hover { color: var(--mint); }
.footer-col p { font-size: .85rem; margin-bottom: 10px; color: rgba(255,255,255,.68); }
.footer-col .todo { color: #f0d9a6; background: rgba(255,255,255,.08); border-color: #a98b54; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; font-size: .76rem; color: rgba(255,255,255,.55); }
.filing { display: flex; flex-wrap: wrap; gap: 10px; }
.filing a:hover { color: var(--mint); text-decoration: underline; }
.filing .todo { color: #f0d9a6; background: rgba(255,255,255,.08); border-color: #a98b54; font-size: inherit; }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--teal); color: var(--white);
  font-size: 1.1rem; box-shadow: 0 8px 22px rgba(23,71,81,.25);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--teal-2); }

/* ---------------- 滚动入场动画（JS 启用时才隐藏） ---------------- */
.js-enabled .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js-enabled .reveal.is-visible { opacity: 1; transform: none; }
.js-enabled .reveal:nth-child(2) { transition-delay: .06s; }
.js-enabled .reveal:nth-child(3) { transition-delay: .12s; }
.js-enabled .reveal:nth-child(4) { transition-delay: .18s; }
.js-enabled .reveal:nth-child(5) { transition-delay: .24s; }
.js-enabled .reveal:nth-child(6) { transition-delay: .3s; }

/* ---------------- 响应式：平板 ---------------- */
@media (max-width: 1024px) {
  .header-cta { display: none; }
  .hero-inner { gap: 32px; }
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-item:nth-child(2) { border-right: 0; }
  .promise-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .about-visual { min-height: 340px; }
}

/* ---------------- 响应式：手机 ---------------- */
@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .container { width: min(100% - 36px, var(--container)); }
  .header-inner { min-height: 80px; gap: 12px; }
  .logo-crop { width: 52px; height: 52px; }
  .brand-text strong { font-size: 2.16rem; }
  .brand-text small { font-size: .95rem; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 18px 16px;
    box-shadow: 0 16px 30px rgba(23,71,81,.10);
  }
  .nav.is-open { display: flex; }
  .nav-link { padding: 13px 6px; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--teal-2); }

  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 54px 76px; gap: 44px; }
  .hero h1 { font-size: clamp(2.15rem, 9vw, 3rem); }
  .hero-meta { margin-top: 34px; gap: 20px 28px; }
  .hero-meta strong { font-size: 1.4rem; }
  .hero-caption { display: none; }
  .scroll-hint { display: none; }

  .promise-grid { grid-template-columns: 1fr 1fr; }
  .promise-item { padding: 18px 12px; gap: 10px; }
  .promise-item .ico { width: 26px; height: 26px; }
  .promise-item strong { font-size: .92rem; }
  .promise-item span { font-size: .7rem; }

  .section-head { flex-direction: column; align-items: start; gap: 16px; margin-bottom: 30px; }
  .about-inner, .company-inner, .inquiry-inner { grid-template-columns: 1fr; }
  .about-visual { min-height: 320px; }
  .about-stamp { width: 80px; height: 80px; font-size: .86rem; }

  .filters { gap: 8px; }
  .filter { padding: 8px 14px; font-size: .8rem; }
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .advantage-grid { grid-template-columns: 1fr; }
  .advantage-item { padding: 24px 0; }
  .adv-no { top: 22px; }

  .company-info { padding: 6px 20px; }
  .company-info > div { grid-template-columns: 1fr; gap: 2px; padding: 13px 0; }
  .contact-form { padding: 24px 20px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 48px 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom-inner { justify-content: flex-start; }
  .back-to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
  .about-visual { min-height: 270px; }
  .about-card-main { width: 88%; }
  .about-card-sub { width: 56%; }
  .about-stamp { right: 0; top: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-col { grid-column: 1 / -1; }
}

/* ---------------- 无障碍：减少动态效果 ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js-enabled .reveal { opacity: 1; transform: none; }
}
