/* ==========================================================================
   PT EVER BRIGHT NEW MATERIAL - Global Stylesheet
   Theme: deep navy + steel-blue-to-amber gradient (EVER BRIGHT light).
   ========================================================================== */

:root {
  --primary: #0b1f3a;        /* deep navy (brand core) */
  --primary-dark: #081527;
  --secondary: #e0a83c;      /* amber gold (BRIGHT highlight) */
  --accent-blue: #4a9cc9;    /* steel blue (gradient start) */
  --dark: #1c2b3a;
  --text: #3a4a5a;
  --muted: #7a8a99;
  --light: #f5f7fa;
  --line: #e6ebf0;
  --white: #ffffff;
  --green: #2e9e5b;
  --shadow: 0 8px 30px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 16px 50px rgba(11, 31, 58, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--dark); line-height: 1.25; font-weight: 700; }
.section { padding: 84px 0; }
.section-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 800; letter-spacing: 2.2px;
  text-transform: uppercase; color: var(--secondary); margin-bottom: 16px;
  padding: 7px 20px; border-radius: 999px;
  background: rgba(224,168,60,.10); border: 1px solid rgba(224,168,60,.40);
}
.section-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: 0 0 auto;
}
.section-title { font-size: 38px; margin-bottom: 16px; }
.section-desc { color: var(--muted); font-size: 17px; max-width: 720px; }
.center { text-align: center; }
.center .section-desc { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 40px;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: all .25s ease;
  border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #c8922f; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; color: var(--dark); }
.brand-logo {
  width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 20px;
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .5px; }
.brand-logo-img { height: 42px; width: 42px; border-radius: 10px; object-fit: contain; flex: 0 0 auto; }
.site-footer .brand-logo-img { background: #fff; padding: 5px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--dark); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px;
  border-radius: 3px; background: var(--secondary);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; gap: 3px; align-items: center; margin-left: 6px; }
.lang-switch a {
  font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 6px;
  color: var(--muted); transition: all .2s; white-space: nowrap;
}
.lang-switch a:hover { color: var(--primary); }
.lang-switch a.active { background: var(--primary); color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 26px; color: var(--dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 120px 0;
  background: linear-gradient(135deg, #081527 0%, #0b1f3a 55%, #1a3557 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(224,168,60,.28), transparent 70%); border-radius: 50%;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 46px; color: #fff; margin-bottom: 20px; }
.hero h1 span { color: #e8c06a; }
.hero p { font-size: 18px; color: #c7d3e0; margin-bottom: 32px; max-width: 540px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 24px; backdrop-filter: blur(6px);
}
.stat-card .num { font-size: 40px; font-weight: 800; color: #fff; }
.stat-card .num em { font-style: normal; font-size: 20px; color: #e8c06a; }
.stat-card .lbl { font-size: 14px; color: #c7d3e0; margin-top: 4px; }

/* ---------- Section blocks ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 62px; height: 62px; border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-size: 26px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(11,31,58,.07), rgba(74,156,201,.16));
  color: var(--primary); border: 1px solid rgba(11,31,58,.10);
  transition: all .25s ease;
}
.card .icon svg { width: 30px; height: 30px; }
.card:hover .icon {
  background: linear-gradient(135deg, var(--primary), #12406e);
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(11,31,58,.22);
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* product card */
.product-card { overflow: hidden; padding: 0; }
/* 原料卡片顶部：紧凑横条页眉（代号居左 + 规格居右），让卡片内容占比更大 */
.product-card .thumb {
  height: 86px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #12406e 60%, var(--accent-blue) 130%);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 26px;
  color: rgba(255,255,255,.95); font-size: 27px; font-weight: 800;
  letter-spacing: 2px;
}
.product-card .thumb::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.2px);
  background-size: 15px 15px;
}
.product-card .thumb span { position: relative; z-index: 1; text-shadow: 0 2px 12px rgba(0,0,0,.28); }
.product-card .thumb .thumb-sub {
  position: static; z-index: 1; flex: 0 1 auto;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: rgba(255,255,255,.68); text-align: right; max-width: 58%; line-height: 1.5;
}
.product-card .body { padding: 26px; }
.product-card h3 { font-size: 21px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.tag-label {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px;
  color: var(--secondary); margin-right: 2px;
}
.chip {
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 20px;
  background: rgba(15, 76, 129, 0.10); color: var(--primary);
  border: 1px solid rgba(15, 76, 129, 0.28);
}
.footer-logo-long {
  height: 46px; width: auto; background: #fff; border-radius: 10px; padding: 8px 18px;
  display: block;
}
.product-card .features { margin-bottom: 4px; }

/* 品牌墙：真实 logo 图，无缝横向滚动 */
.brand-marquee {
  margin-top: 40px; overflow: hidden; position: relative;
  background: #fff; border-radius: var(--radius); padding: 10px 0;
  box-shadow: var(--shadow);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.brand-track { display: flex; width: max-content; animation: brandScroll 48s linear infinite; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
.brand-track img { height: 300px; width: auto; display: block; flex-shrink: 0; }
@keyframes brandScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; }
  .brand-track img:last-child { display: none; }
  .brand-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* 应用领域 */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.app-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--primary-dark); box-shadow: var(--shadow);
  min-height: 268px; display: flex; align-items: flex-end;
}
.app-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s ease;
}
.app-card:hover img { transform: scale(1.07); }
.app-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,21,39,.94) 0%, rgba(8,21,39,.62) 42%, rgba(8,21,39,.08) 78%, transparent 100%);
}
.app-card .app-body { position: relative; z-index: 1; padding: 24px; width: 100%; }
.app-card h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.app-card p { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.6; }
.app-card .app-uses {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.app-card .app-uses span {
  font-size: 11.5px; font-weight: 600; color: #fff;
  padding: 4px 10px; border-radius: 14px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(4px);
}
.app-card.app-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #12406e 100%);
  align-items: center; text-align: center;
}
.app-card.app-cta .app-body { padding: 30px 26px; }
.app-card.app-cta h3 { font-size: 21px; }
.app-card.app-cta .btn { margin-top: 18px; }

/* ---------- Feature strip / image-text ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  min-height: 340px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0b1f3a, #1a3557); color: #fff; font-size: 60px;
}
.split-img.tall { min-height: 420px; }
.split-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}
.feature-list { margin-top: 24px; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--green);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; margin-top: 2px;
}
.feature-list b { color: var(--dark); display: block; }
.feature-list span { color: var(--muted); font-size: 15px; }

/* ---------- Values / culture ---------- */
.value-card { text-align: left; background: #fff; border: 1px solid var(--line); }
.value-card .icon {
  background: #fff; border: 1px solid rgba(224,168,60,.45);
  color: var(--secondary);
}
.value-card:hover .icon {
  background: linear-gradient(135deg, var(--secondary), #c8922f);
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(224,168,60,.30);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius); padding: 56px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.cta-band h2 { color: #fff; font-size: 32px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #081527, #1a3557); color: #fff; padding: 80px 0 64px;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: 42px; margin-bottom: 12px; }
.page-hero p { color: #c7d3e0; font-size: 17px; }

/* ---------- News ---------- */
.news-card .date {
  font-size: 13px; font-weight: 700; color: var(--secondary); letter-spacing: 1px; margin-bottom: 8px;
}
.news-card h3 { font-size: 19px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-info .card { margin-bottom: 20px; display: flex; gap: 18px; align-items: flex-start; }
.contact-info .icon { margin-bottom: 0; flex: 0 0 auto; }
.contact-info h4 { margin-bottom: 4px; }
.contact-info p { color: var(--muted); font-size: 15px; }
.contact-info a { color: var(--primary); font-weight: 600; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: var(--dark); margin-bottom: 8px; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--dark); background: var(--light); transition: border .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #081527; color: #8fa3b8; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin: 14px 0; font-size: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.footer-contact .fi { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: 13px;
}
.footer-bottom a { color: #dbe6ef; }

/* ---------- Responsive ----------
   断点策略（按浏览器视口宽度，与屏幕物理尺寸无关）
   ≥ 1500px 超大屏：容器放宽到 1320px，字号略放大
   1081–1499px 标准桌面：默认样式（双栏 hero、三列卡片）
   861–1080px 小笔记本 / Windows 150% 缩放：仍是桌面双栏，只收窄字号与间距
   ≤ 860px  平板竖屏 / 手机横屏：开始堆叠
   ≤ 640px  手机：汉堡菜单、单列
   注意：浏览器缩放（Ctrl +/-）会改变视口宽度，因此 125%/150% 缩放也会走到下面第 2 段。
*/
@media (min-width: 1500px) {
  .container { max-width: 1320px; }
  .hero { padding: 140px 0; }
  .hero h1 { font-size: 50px; }
  .section-title { font-size: 40px; }
}

/* 小笔记本 / 高分屏缩放：保持桌面双栏观感，不降级成单列 */
@media (max-width: 1080px) {
  .container { padding: 0 20px; }
  .hero { padding: 84px 0; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 32px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; margin-bottom: 26px; }
  .hero-stats { gap: 12px; }
  .stat-card { padding: 18px; }
  .stat-card .num { font-size: 30px; }
  .stat-card .num em { font-size: 16px; }
  .stat-card .lbl { font-size: 12.5px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 30px; }
  .section-desc { font-size: 16px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 32px; }
  .split-photo { height: 360px; }
  .brand-track img { height: 240px; }
  .cta-band { padding: 44px 32px; }
  .page-hero { padding: 64px 0 52px; }
  .page-hero h1 { font-size: 34px; }
}

/* 平板竖屏 / 手机横屏：开始堆叠 */
@media (max-width: 860px) {
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .split-photo { height: 300px; }
  .brand-track img { height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 20px 24px; gap: 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 230px; }
  .brand-track img { height: 130px; }
  .product-card .thumb { height: auto; min-height: 64px; padding: 12px 18px; font-size: 20px; letter-spacing: 1.5px; }
  .hero { padding: 80px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .section { padding: 52px 0; }
  .form-card { padding: 26px 22px; }
  .split-photo { height: 240px; }
}

/* ---------- Form status (JS 提交结果提示) ---------- */
.form-note.is-busy { color: var(--primary); }
.form-note.is-ok { color: var(--green); font-weight: 600; }
.form-note.is-warn { color: #b8842a; font-weight: 600; }
/* 蜜罐字段：真人看不见，爬虫会填 */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Floating contact buttons (WhatsApp / WeChat) ---------- */
.eb-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.eb-fab-btn {
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 10px 24px rgba(11, 31, 58, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.eb-fab-btn svg { width: 27px; height: 27px; display: block; }
.eb-fab-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 30px rgba(11, 31, 58, .34); }
.eb-fab-btn[hidden] { display: none; }
.eb-fab-wa { background: #25d366; }
.eb-fab-wc { background: #07c160; }
.eb-fab-wa:hover { background: #1ebe5a; }
.eb-fab-wc:hover { background: #06ab56; }

.eb-qr-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 21, 39, .72); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.eb-qr-modal[hidden] { display: none; }
.eb-qr-card {
  position: relative; width: 100%; max-width: 320px; background: #fff;
  border-radius: 16px; padding: 28px 24px 22px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.eb-qr-card h4 { font-size: 17px; margin-bottom: 16px; color: var(--dark); }
.eb-qr-card img {
  width: 220px; height: 220px; object-fit: contain; margin: 0 auto 12px;
  border-radius: 8px; background: var(--light);
}
.eb-qr-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.eb-qr-close {
  position: absolute; top: 6px; right: 12px; background: none; border: none;
  font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
}
.eb-qr-close:hover { color: var(--dark); }

@media (max-width: 640px) {
  .eb-fab { right: 14px; bottom: 14px; gap: 8px; }
  .eb-fab-btn { width: 48px; height: 48px; }
  .eb-fab-btn svg { width: 24px; height: 24px; }
  .eb-qr-card { padding: 24px 18px 18px; }
  .eb-qr-card img { width: 190px; height: 190px; }
}

/* ---------- 中文标题微调（中文单字更宽，避免 hero 大标题折成两行） ---------- */
html[lang="zh-CN"] .hero h1 { font-size: 42px; letter-spacing: -.5px; }
html[lang="zh-CN"] .section-title { letter-spacing: -.2px; }
@media (max-width: 1080px) {
  html[lang="zh-CN"] .hero h1 { font-size: 32px; }
}
