/* =========================================================
   苏州帕堤亚塑胶贸易有限公司 — 商务企业站 (中化塑料风格)
   主色:中化红 #c8102e | 深色 #1c2530 | 浅灰 #f5f6f8
   ========================================================= */
:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --red-light: #e23a4f;
  --ink: #1c2530;
  --ink-2: #2b3642;
  --text: #3a3f47;
  --muted: #8a929c;
  --line: #e6e8ec;
  --bg-alt: #f5f6f8;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(20, 30, 45, .08);
  --radius: 10px;
  --maxw: 1200px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 700; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 6px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent; transition: .2s; white-space: nowrap;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { background: #ffe9ec; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--ghost-light { border-color: #fff; color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.15); }
.btn--block { width: 100%; }

/* ---------- 顶部工具条 ---------- */
.topbar { background: var(--ink); color: #cdd2d8; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar__right a:hover { color: #fff; }
.topbar__sep { margin: 0 10px; color: #555c66; }
@media (max-width: 720px) { .topbar__left { display: none; } .topbar__inner { justify-content: flex-end; } }

/* ---------- 主导航 ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: .25s; }
.nav.scrolled { box-shadow: var(--shadow); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 8px; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; letter-spacing: .5px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.brand__sub { font-size: 10px; color: var(--muted); letter-spacing: .5px; }
.brand__logo-img { height: 38px; width: auto; max-width: 200px; object-fit: contain; }
.footer .brand__logo-img { height: 32px; }
.nav__menu { display: flex; gap: 30px; }
.nav__menu a { font-size: 15px; color: var(--ink-2); font-weight: 500; position: relative; padding: 6px 0; transition: color .2s; }
.nav__menu a:hover, .nav__menu a.is-active { color: var(--red); }
.nav__menu a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--red); transition: width .2s; }
.nav__menu a:hover::after, .nav__menu a.is-active::after { width: 100%; }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); display: block; transition: .3s; }

/* ---------- Banner 轮播 ---------- */
.banner { position: relative; }
.banner__track { position: relative; }
.banner__slide {
  display: none; min-height: 520px; align-items: center;
  background: linear-gradient(120deg, var(--bg1), var(--bg2));
  color: #fff; padding: 80px 0;
}
.banner__slide.is-active { display: flex; animation: fade .6s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.banner__inner { max-width: 720px; }
.banner__eyebrow { display: inline-block; font-size: 13px; letter-spacing: 2px; color: rgba(255,255,255,.85); border-left: 3px solid #fff; padding-left: 10px; margin-bottom: 18px; }
.banner__title { font-size: 52px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 14px rgba(0,0,0,.18); }
.banner__sub { font-size: 17px; margin: 20px 0 30px; color: rgba(255,255,255,.92); max-width: 580px; }
.banner__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.banner__dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.banner__dot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: .2s; }
.banner__dot.is-active { background: #fff; width: 26px; border-radius: 6px; }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.eyebrow { display: inline-block; color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: 2px; margin-bottom: 12px; }
.section__head h2 { font-size: 34px; position: relative; padding-bottom: 16px; }
.section__head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 56px; height: 3px; background: var(--red); border-radius: 2px; }
.section__head p { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; } }

/* ---------- 卡片 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; transition: .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 54px; height: 54px; border-radius: 12px; background: linear-gradient(135deg, var(--red), var(--red-light)); color: #fff; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- 产品展示(数据驱动) ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod-loading { color: var(--muted); padding: 20px 0; }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; animation: prodIn .5s ease both; }
@keyframes prodIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.prod-card__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #eef2f7, #dde6f1); display: grid; place-items: center; overflow: hidden; }
.prod-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-card__ph { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #9aa6b5; }
.prod-card__ph svg { width: 54px; height: 54px; opacity: .6; }
.prod-card__ph span { font-size: 12px; letter-spacing: .5px; }
.prod-card__tag { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.prod-card__body { padding: 16px 18px 20px; }
.prod-card__name { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.prod-card__desc { font-size: 14px; color: var(--muted); line-height: 1.65; }
@media (max-width: 920px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .prod-grid { grid-template-columns: 1fr; } }

/* ---------- 关于我们 ---------- */
.about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.about__photo { background: linear-gradient(135deg, var(--red), var(--red-dark)); border-radius: var(--radius); min-height: 340px; display: grid; place-items: center; color: #fff; text-align: center; }
.about__photo span { font-size: 22px; font-weight: 700; }
.about__photo small { display: block; margin-top: 8px; opacity: .8; font-weight: 400; }
.about__text h2 { font-size: 30px; margin: 12px 0 16px; }
.about__text p { color: var(--text); margin-bottom: 20px; }
.checklist { list-style: none; margin-bottom: 26px; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--ink-2); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--red); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
@media (max-width: 820px) { .about__inner { grid-template-columns: 1fr; } }

/* ---------- 数据条 ---------- */
.stats { background: var(--ink); color: #fff; padding: 50px 0; }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats__item strong { display: block; font-size: 42px; font-weight: 800; color: #fff; }
.stats__item span { color: #aeb6c0; font-size: 15px; }
@media (max-width: 600px) { .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 26px; } }

/* ---------- 核心优势 ---------- */
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; border-top: 3px solid var(--red); transition: .25s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.feature h3 { font-size: 19px; margin-bottom: 10px; color: var(--red); }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- 应用行业 ---------- */
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: .25s; }
.case:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.case__tag { display: inline-block; background: var(--red); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 4px; margin-bottom: 14px; }
.case h3 { font-size: 19px; margin-bottom: 8px; }
.case p { color: var(--muted); font-size: 15px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 46px; }
.logos span { border: 1px solid var(--line); border-radius: 30px; padding: 10px 22px; color: var(--ink-2); font-size: 14px; background: #fff; }

/* ---------- 新闻资讯 ---------- */
.news { list-style: none; max-width: 860px; margin: 0 auto; }
.news__item { border-bottom: 1px solid var(--line); }
.news__item a { display: flex; align-items: baseline; gap: 18px; padding: 18px 6px; transition: .2s; }
.news__item a:hover { padding-left: 16px; }
.news__date { color: var(--red); font-weight: 700; font-size: 14px; flex-shrink: 0; width: 90px; }
.news__title { color: var(--ink-2); font-size: 16px; }
.news__item a:hover .news__title { color: var(--red); }

/* ---------- 联系我们 ---------- */
.contact { background: var(--bg-alt); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact__intro h2 { font-size: 30px; margin: 12px 0 14px; }
.contact__intro p { color: var(--muted); margin-bottom: 24px; }
.contact__info { list-style: none; }
.contact__info li { padding: 12px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.contact__info b { display: inline-block; width: 56px; color: var(--red); font-weight: 700; }
.contact__info--card a { color: var(--ink); text-decoration: none; }
.contact__info--card a:hover { color: var(--red); }
.contact__btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.btn--ghost-dark {
  display: inline-block; padding: 12px 22px; border: 1px solid var(--red); color: var(--red);
  border-radius: 8px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s;
}
.btn--ghost-dark:hover { background: var(--red); color: #fff; }
.contact__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact__card h3 { font-size: 20px; margin-bottom: 10px; }
.contact__card > p { color: var(--muted); margin-bottom: 18px; }
.contact__note { margin-top: 18px; font-size: 13px; color: var(--muted); }


/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: #cdd2d8; padding: 56px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer .brand__name { color: #fff; }
.footer__brand p { margin-top: 14px; font-size: 14px; }
.footer__addr { color: #8a929c !important; }
.footer__col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; position: relative; padding-left: 12px; }
.footer__col h4::before { content: ""; position: absolute; left: 0; top: 4px; width: 3px; height: 16px; background: var(--red); }
.footer__col a { display: block; color: #aeb6c0; font-size: 14px; padding: 6px 0; transition: .2s; }
.footer__col a:hover { color: #fff; padding-left: 5px; }
.footer__bottom { border-top: 1px solid #2c3540; padding: 18px 20px; display: flex; justify-content: space-between; font-size: 13px; color: #8a929c; flex-wrap: wrap; gap: 8px; }

/* ---------- 滚动入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 10px 0; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .3s; z-index: 49;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a { padding: 14px 24px; }
  .nav__menu a::after { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .banner__title { font-size: 36px; }
  .banner__slide { min-height: 420px; padding: 60px 0; }
  .section__head h2 { font-size: 27px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer__inner { grid-template-columns: 1fr; }
  .stats__item strong { font-size: 34px; }
}
