/* ============================================================================
   site.css —— 前台样式（落地页 + 主站）
   苔华科技 Taihua Technology Co., Ltd.
   设计基调：干净的工厂风，深墨色 + 青绿点缀，适合 B2B 与谷歌 SEO 阅读体验
   ========================================================================== */

:root {
  --ink:        #0e1726;
  --ink-soft:   #4b5768;
  --line:       #e4e9ef;
  --bg:         #ffffff;
  --bg-alt:     #f5f7fa;
  --dark:       #0b1220;
  --accent:     #0f766e;
  --accent-2:   #14b8a6;
  --wa:         #25d366;
  --radius:     14px;
  --shadow-sm:  0 2px 10px rgba(14, 23, 38, .06);
  --shadow-md:  0 14px 40px rgba(14, 23, 38, .10);
  --font: "Inter", "Helvetica Neue", "PingFang SC", "Hiragino Sans",
          "Noto Sans JP", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

img { max-width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------- 导航栏 */
.site-nav {
  padding: .85rem 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease, padding .2s ease;
  z-index: 1030;
}

.site-nav.is-stuck { box-shadow: var(--shadow-sm); padding: .55rem 0; }

.navbar-brand { display: flex; align-items: center; gap: .6rem; margin: 0; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #0b5f59);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .04em;
}

.brand-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -.01em;
}

.site-nav .nav-link {
  color: var(--ink-soft);
  font-size: .93rem;
  font-weight: 500;
  padding: .5rem .85rem !important;
}

.site-nav .nav-link:hover { color: var(--ink); }

/* 语言切换 */
.lang-switch {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-left: .6rem;
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.lang-switch a {
  padding: .22rem .6rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.4;
}

.lang-switch a.is-active { background: var(--ink); color: #fff; }

/* 按钮 */
.btn-quote,
.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .62rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-size: .9rem;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.btn-quote:hover,
.btn-primary-cta:hover {
  background: #0b5f59;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 118, 110, .25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: .6rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  background: transparent;
}

.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------------------------------------------------------------- Banner */
.hero {
  position: relative;
  padding: 7rem 0 6.5rem;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 520px at 78% 18%, rgba(20, 184, 166, .30), transparent 62%),
    radial-gradient(800px 420px at 12% 92%, rgba(15, 118, 110, .22), transparent 65%),
    linear-gradient(140deg, #0b1220 0%, #0f1b2b 45%, #0a1a22 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 60% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 30%, transparent 78%);
}

.hero-inner { position: relative; z-index: 2; color: #fff; max-width: 880px; }

.hero-badge {
  display: inline-block;
  margin: 0 0 1.2rem;
  padding: .34rem .9rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}

.hero-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.hero-sub {
  margin: 0 0 2rem;
  font-size: clamp(.95rem, 1.3vw, 1.08rem);
  color: rgba(255, 255, 255, .76);
  max-width: 720px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
}

.hero-tags li {
  padding: .28rem .8rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  font-size: .74rem;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .68);
}

/* ---------------------------------------------------------------- 通用区块 */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); }

.section-head { max-width: 720px; margin-bottom: 2.8rem; }

.section-kicker {
  margin: 0 0 .5rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 .9rem;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--ink);
}

.section-sub { margin: 0; color: var(--ink-soft); font-size: 1rem; }

.empty-state {
  padding: 2.2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-align: center;
  background: #fff;
}

/* ---------------------------------------------------------------- 产品 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

.filter-pill {
  padding: .42rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: #fff;
  transition: all .18s ease;
}

.filter-pill:hover { border-color: #cbd5e1; color: var(--ink); }

.filter-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.p-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.p-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d7dfe8;
}

.p-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  overflow: hidden;
}

.p-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.p-card:hover .p-card__media img { transform: scale(1.04); }

.p-card__media.is-empty {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #eef2f6 0%, #e2e8f0 100%);
}

.p-card__ph {
  font-size: 2.6rem;
  font-weight: 800;
  color: #b6c2d1;
  letter-spacing: .02em;
}

.p-card__body { padding: 1.1rem 1.2rem 1.3rem; }

.p-card__title {
  margin: 0 0 .4rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.p-card__desc {
  margin: 0 0 .9rem;
  font-size: .86rem;
  color: var(--ink-soft);
  min-height: 2.6em;
}

.p-card__link { font-size: .82rem; font-weight: 600; }

/* ---------------------------------------------------------------- 证书 */
.cert-card {
  margin: 0;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
  transition: box-shadow .2s ease, transform .2s ease;
}

.cert-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.cert-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  display: grid;
  place-items: center;
  padding: .8rem;
  border-bottom: 1px solid var(--line);
}

.cert-card__media img { max-height: 100%; object-fit: contain; }

.cert-card__media.is-empty { background: linear-gradient(135deg, #f1f5f9, #e6ebf1); }

.cert-card__ph {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: #b6c2d1;
}

.cert-card__zoom {
  position: absolute;
  right: .55rem; bottom: .55rem;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(14, 23, 38, .72);
  color: #fff;
  font-size: .78rem;
}

.cert-card figcaption {
  padding: .9rem 1rem 1.05rem;
  font-size: .84rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.cert-card figcaption strong { font-size: .88rem; }
.cert-card figcaption span { color: var(--ink-soft); font-size: .78rem; }

.cert-note {
  margin: 2rem 0 0;
  font-size: .84rem;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- 企业优势 */
.adv-card {
  height: 100%;
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  position: relative;
  transition: border-color .2s ease, transform .2s ease;
}

.adv-card:hover { border-color: #cbd5e1; transform: translateY(-3px); }

.adv-card__num {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--accent-2);
  margin-bottom: .9rem;
}

.adv-card__title { margin: 0 0 .5rem; font-size: 1.02rem; font-weight: 700; }

.adv-card__desc { margin: 0; font-size: .87rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------- 企业简介 */
.about-sub { color: var(--ink-soft); margin: 0 0 1.2rem; }

.about-body { font-size: .97rem; color: #2c3648; }
.about-body p { margin: 0 0 1.1rem; }
.about-body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- 合规 */
.comp-intro {
  max-width: 780px;
  color: var(--ink-soft);
  margin: -1rem 0 2.4rem;
}

.comp-card {
  display: flex;
  gap: .9rem;
  height: 100%;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.comp-card__dot {
  flex: 0 0 auto;
  width: 10px; height: 10px;
  margin-top: .55rem;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .14);
}

.comp-card__title { margin: 0 0 .35rem; font-size: .98rem; font-weight: 700; }

.comp-card__desc { margin: 0; font-size: .86rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------- 询盘表单 */
.section-dark .section-title,
.section-dark .form-sub { color: #fff; }

.form-sub { color: rgba(255, 255, 255, .72); margin-bottom: 1.6rem; }

.inquiry-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  color: rgba(255, 255, 255, .78);
  font-size: .88rem;
}

.inquiry-points li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: .5rem;
}

.inquiry-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

.wa-inline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: var(--wa);
  color: #04310f !important;
  font-weight: 700;
  font-size: .86rem;
}

.wa-inline:hover { filter: brightness(1.05); }

.inquiry-form .form-label {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  margin-bottom: .35rem;
}

.inquiry-form .form-control {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  color: #fff;
  padding: .7rem .9rem;
  font-size: .92rem;
}

.inquiry-form .form-control::placeholder { color: rgba(255, 255, 255, .35); }

.inquiry-form .form-control:focus {
  background: rgba(255, 255, 255, .1);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .18);
  color: #fff;
}

.inquiry-form .alert { border-radius: 10px; font-size: .9rem; }

.privacy-note { font-size: .78rem; color: rgba(255, 255, 255, .5); max-width: 460px; }

/* 蜜罐字段：对真人不可见 */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------- 联系 */
.contact-card {
  height: 100%;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-card__label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .55rem;
}

.contact-card__value { margin: 0; font-size: .92rem; color: var(--ink); }

.contact-card__wa {
  display: inline-block;
  margin-top: .6rem;
  font-size: .82rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------- 页脚 */
.site-footer {
  padding: 4rem 0 2rem;
  background: #080f1a;
  color: rgba(255, 255, 255, .68);
  font-size: .88rem;
}

.footer-brand { color: #fff; font-weight: 700; font-size: 1.02rem; margin: 0 0 .8rem; }

.footer-about { margin: 0; max-width: 400px; font-size: .86rem; color: rgba(255, 255, 255, .58); }

.footer-title {
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 .9rem;
}

.footer-list { list-style: none; margin: 0; padding: 0; }

.footer-list li { margin-bottom: .45rem; font-size: .84rem; }

.footer-list a { color: rgba(255, 255, 255, .62); }
.footer-list a:hover { color: #fff; }

.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .09);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255, 255, 255, .42);
}

/* ---------------------------------------------------------------- 悬浮 WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 1050;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wa);
  color: #053b13;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .38);
  transition: transform .2s ease, box-shadow .2s ease;
}

.wa-float:hover {
  transform: scale(1.06);
  color: #053b13;
  box-shadow: 0 14px 34px rgba(37, 211, 102, .5);
}

.wa-float::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .35);
  animation: waPulse 2.6s ease-out infinite;
}

@keyframes waPulse {
  0%   { transform: scale(.9); opacity: .9; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ---------------------------------------------------------------- 证书放大 */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(8, 15, 26, .9);
  backdrop-filter: blur(6px);
}

.cert-lightbox.is-open { display: flex; }

.cert-lightbox figure { margin: 0; max-width: min(1000px, 92vw); text-align: center; }

.cert-lightbox img {
  max-height: 80vh;
  width: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
}

.cert-lightbox figcaption { margin-top: 1rem; color: #fff; font-size: .92rem; }

.cert-lightbox__close {
  position: absolute;
  top: 2.2vh; right: 3vw;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.cert-lightbox__close:hover { background: rgba(255, 255, 255, .24); }

/* ============================================================================
   落地页 landing.php
   ========================================================================== */
.landing-body { background: var(--dark); }

.landing-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  background-color: #0b1220;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 未上传背景图时的默认深色渐变（后台传图后自动替换） */
.landing-hero--empty {
  background-image:
    radial-gradient(1200px 600px at 70% 20%, rgba(20, 184, 166, .32), transparent 60%),
    radial-gradient(900px 500px at 20% 85%, rgba(15, 118, 110, .26), transparent 62%),
    linear-gradient(150deg, #0b1220 0%, #12202f 50%, #0a1720 100%);
}

.landing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 12, 20, .74) 0%, rgba(6, 12, 20, .58) 45%, rgba(6, 12, 20, .82) 100%);
}

.landing-langs {
  position: absolute;
  top: 1.6rem;
  right: 1.8rem;
  z-index: 3;
  display: flex;
  gap: .35rem;
}

.landing-langs a {
  padding: .25rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: .74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
}

.landing-langs a.is-active { background: #fff; color: var(--ink); border-color: #fff; }

.landing-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 940px;
  text-align: center;
  color: #fff;
}

.landing-brand {
  margin: 0 0 2.4rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

.landing-slogans { margin-bottom: 3rem; }

.landing-slogan {
  margin: 0 auto .9rem;
  max-width: 860px;
}

.landing-slogan.is-main {
  font-size: clamp(1.35rem, 2.9vw, 2.5rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}

.landing-slogan.is-sub {
  font-size: clamp(.82rem, 1.15vw, .98rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, .5);
  max-width: 760px;
}

.landing-lang-tag {
  display: inline-block;
  margin-right: .6rem;
  padding: .05rem .45rem;
  border-radius: 4px;
  border: 1px solid currentColor;
  font-size: .62em;
  letter-spacing: .08em;
  vertical-align: middle;
  opacity: .6;
}

.enter-btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem 2.6rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink) !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.enter-btn:hover {
  transform: translateY(-2px);
  background: #f2fffd;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.enter-btn svg { transition: transform .2s ease; }
.enter-btn:hover svg { transform: translateX(4px); }

.landing-foot {
  position: absolute;
  left: 0; right: 0; bottom: 1.6rem;
  z-index: 2;
  text-align: center;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .34);
}

/* ============================================================================
   响应式
   ========================================================================== */
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    margin-top: .8rem;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }
  .lang-switch { margin: .6rem 0 0; width: fit-content; }
  .btn-quote { margin-top: .7rem; display: inline-flex; }
  .hero { padding: 8rem 0 5rem; }
  .section { padding: 4rem 0; }
  .wa-float { right: 14px; bottom: 16px; width: 52px; height: 52px; }
  .landing-langs { top: 1rem; right: 1rem; }
}

@media (max-width: 575.98px) {
  .hero-tags { margin-top: 1.8rem; }
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .3rem; }
  .filter-pill { white-space: nowrap; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
  .landing-brand { margin-bottom: 1.6rem; letter-spacing: .14em; }
  .enter-btn { padding: .9rem 1.9rem; font-size: .92rem; }
  .landing-slogan.is-main { font-size: 1.28rem; }
  .landing-slogan.is-sub { font-size: .78rem; }
}

/* 打印与无障碍 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
