/* ============================================================
   Pro-Tek (Guangdong) Technology Co., LTD — ptkgd.com
   共享样式表 / Shared stylesheet
   深海军蓝 + 电光蓝 · 现代精密制造风
   ============================================================ */

:root {
  /* 色彩 / Colors */
  --navy-950: #060F1F;
  --navy-900: #081527;
  --navy-800: #0B1F3A;
  --navy-700: #12305C;
  --blue: #1E6FEB;
  --blue-bright: #3B82F6;
  --cyan: #22D3EE;
  --white: #FFFFFF;
  --bg: #F6F8FB;
  --bg-soft: #EEF3F9;
  --line: #DCE4EE;
  --text: #1A2433;
  --text-muted: #5B6B80;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(8, 21, 39, .06);
  --shadow-md: 0 10px 30px rgba(8, 21, 39, .10);
  --shadow-lg: 0 24px 60px rgba(8, 21, 39, .16);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --header-h: 72px;
}

/* ---------- 基础 / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-bright); }

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; color: var(--navy-800); font-weight: 700; }
h1 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: .5px; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--gray { background: var(--bg); }
.section--dark {
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(30,111,235,.28), transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #C9D6E8;
}
.section--dark h2, .section--dark h3 { color: var(--white); }

/* 区块标题 */
.sec-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.sec-head .kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.sec-head p { color: var(--text-muted); font-size: 17px; }
.section--dark .sec-head p { color: #9FB2CC; }

/* ---------- 图片占位块 / Image placeholder ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(30,111,235,.14), rgba(34,211,238,.10)),
    repeating-linear-gradient(45deg, #E8EEF6 0 14px, #F1F5FA 14px 28px);
  border: 1.5px dashed #B9C8DC;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--text-muted); font-size: 14px; line-height: 1.6; padding: 24px;
  min-height: 180px;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-100%); animation: ph-sweep 3.6s ease-in-out infinite;
}
@keyframes ph-sweep { 60%, 100% { transform: translateX(100%); } }
.ph .ph-label { position: relative; z-index: 1; background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; backdrop-filter: blur(2px); }
.ph--dark { background: repeating-linear-gradient(45deg, #10294B 0 14px, #0C2140 14px 28px); border-color: #2B4A77; color: #8FA6C6; }
.ph--dark .ph-label { background: rgba(8,21,39,.8); border-color: #2B4A77; }

/* ---------- 按钮 / Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer; transition: all .25s ease;
  font-family: var(--font); letter-spacing: .5px;
}
.btn--primary { background: linear-gradient(120deg, var(--blue), var(--blue-bright)); color: #fff; box-shadow: 0 8px 22px rgba(30,111,235,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30,111,235,.45); color: #fff; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--sm { padding: 10px 22px; font-size: 14px; }

/* ---------- 页头 / Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(8, 21, 39, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.site-header__inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.logo:hover { color: #fff; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 14px rgba(30,111,235,.5);
}
.logo__mark svg { width: 18px; height: 18px; }
.logo small { display: block; font-size: 11px; font-weight: 500; color: #8FA6C6; letter-spacing: 1px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: #C9D6E8; font-size: 15px; padding: 8px 14px; border-radius: 8px; position: relative;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.header-cta { display: flex; align-items: center; gap: 14px; }
.lang-switch { font-size: 13px; color: #8FA6C6; border: 1px solid rgba(255,255,255,.2); padding: 6px 12px; border-radius: 999px; }
.lang-switch:hover { color: #fff; border-color: #fff; background: transparent; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero / 首屏 ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 0%, rgba(34,211,238,.16), transparent 55%),
    radial-gradient(1100px 600px at 10% 100%, rgba(30,111,235,.30), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
}
.hero__inner {
  position: relative; max-width: var(--container); margin: 0 auto; padding: 96px 24px 110px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
}
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 2px;
  color: var(--cyan); border: 1px solid rgba(34,211,238,.35); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 26px; background: rgba(34,211,238,.06);
}
.hero .badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--blue-bright), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: #AEC2DE; max-width: 520px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__visual { position: relative; }
.hero__visual .ph { aspect-ratio: 4 / 3; min-height: 320px; border-color: #2B4A77; }
.hero__card {
  position: absolute; left: -22px; bottom: -22px; background: rgba(10, 26, 49, .9);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm);
  padding: 14px 20px; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg);
}
.hero__card strong { display: block; color: #fff; font-size: 15px; }
.hero__card span { font-size: 12.5px; color: #8FA6C6; }

/* 首页底部信息条 */
.hero-strip { background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.06); }
.hero-strip__inner { max-width: var(--container); margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 18px 48px; justify-content: center; }
.hero-strip span { color: #8FA6C6; font-size: 14px; display: inline-flex; align-items: center; gap: 9px; }
.hero-strip svg { width: 17px; height: 17px; color: var(--cyan); flex: none; }

/* ---------- 卡片网格 / Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #B9CCF5; }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(30,111,235,.12), rgba(34,211,238,.12));
  border: 1px solid rgba(30,111,235,.22);
  display: grid; place-items: center; color: var(--blue);
}
.card__icon svg { width: 26px; height: 26px; }
.card p { color: var(--text-muted); font-size: 15px; margin-bottom: 0; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 600; }
.card .more svg { width: 15px; height: 15px; transition: transform .25s ease; }
.card:hover .more svg { transform: translateX(4px); }

/* 产品分类大卡 */
.pcat { padding: 0; display: flex; flex-direction: column; }
.pcat__img { aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0; border: 0; border-bottom: 1.5px dashed #B9C8DC; }
.pcat__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.pcat__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.tag {
  font-size: 12.5px; font-weight: 600; color: var(--navy-700);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px;
}
.tag--soon { color: #B07D10; background: #FCF6E6; border-color: #EBD9A6; }

/* 产品型号面板（产品中心页） */
.model-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-sm); }
.model-panel h3 { display: flex; align-items: center; gap: 10px; }
.model-panel h3 .dot { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  font-size: 14px; font-weight: 600; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px;
  transition: all .2s ease;
}
.chip:hover { color: #fff; background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }

/* 认证徽章 */
.cert-strip { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.cert-badge {
  display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm);
  padding: 14px 22px; color: #fff; min-width: 200px;
}
.cert-badge svg { width: 30px; height: 30px; color: var(--cyan); flex: none; }
.cert-badge strong { display: block; font-size: 15px; }
.cert-badge span { font-size: 12.5px; color: #8FA6C6; }
.cert-card { text-align: center; }
.cert-card .ph { aspect-ratio: 3 / 4; margin-bottom: 16px; }
.cert-card p { font-size: 14px; color: var(--text-muted); }

/* 步骤/流程 */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 14px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 44px; font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 14px;
}
.step h3 { font-size: 17px; }
.step p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* 新闻列表 */
.news-item {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 18px; transition: all .25s ease;
}
.news-item:hover { box-shadow: var(--shadow-md); border-color: #B9CCF5; transform: translateY(-3px); }
.news-item__date { text-align: center; border-right: 1px solid var(--line); padding-right: 22px; }
.news-item__date strong { display: block; font-size: 28px; color: var(--blue); line-height: 1.1; }
.news-item__date span { font-size: 13px; color: var(--text-muted); }
.news-item h3 { font-size: 18px; margin-bottom: 6px; }
.news-item p { font-size: 14.5px; color: var(--text-muted); margin: 0; }
.news-item .arrow { color: var(--blue); }
.news-item .arrow svg { width: 22px; height: 22px; }
.news-tag { display: inline-block; font-size: 12px; color: #B07D10; background: #FCF6E6; border: 1px solid #EBD9A6; border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy-800); margin-bottom: 7px; }
.field label .req { color: #D94B4B; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--text);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 15px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30,111,235,.12);
}
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.form-success {
  display: none; background: #EAF7EE; border: 1px solid #BCE5C8; color: #1E7A3C;
  border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 16px; font-size: 14.5px;
}
.form-success.show { display: block; }

/* 联系信息卡 */
.info-card { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.info-card .card__icon { width: 46px; height: 46px; margin: 0; flex: none; }
.info-card .card__icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 16px; margin-bottom: 5px; }
.info-card p { font-size: 15px; color: var(--text-muted); margin: 0; }
.info-card p a { color: var(--text); font-weight: 600; }
.info-card p a:hover { color: var(--blue); }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* CTA 横幅 */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #9FB2CC; max-width: 560px; margin: 0 auto 34px; }

/* 页脚 / Footer */
.site-footer { background: var(--navy-950); color: #8FA6C6; font-size: 14px; }
.site-footer__main { max-width: var(--container); margin: 0 auto; padding: 64px 24px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: 1px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #8FA6C6; }
.site-footer a:hover { color: #fff; }
.site-footer li svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 7px; color: var(--cyan); flex: none; }
.site-footer .logo { margin-bottom: 16px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.site-footer__bottom-inner { max-width: var(--container); margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; font-size: 13px; }
.site-footer__bottom a { color: var(--cyan); }

/* 页面小 Hero（内页） */
.page-hero {
  position: relative; color: #fff; padding: 76px 0 68px; overflow: hidden;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(34,211,238,.14), transparent 55%),
    linear-gradient(150deg, var(--navy-950), var(--navy-800));
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 46px 46px;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: #AEC2DE; font-size: 17px; max-width: 640px; margin: 0; }
.crumbs { font-size: 13.5px; color: #8FA6C6; margin-bottom: 18px; }
.crumbs a { color: #AEC2DE; }
.crumbs a:hover { color: #fff; }

/* 分栏图文 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .ph { aspect-ratio: 4 / 3; }
.split ul.tick { list-style: none; padding: 0; margin: 20px 0 0; }
.split ul.tick li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text-muted); }
.split ul.tick li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(30,111,235,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E6FEB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* 动效 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ph::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 / Responsive ---------- */
@media (max-width: 1199px) {
  .container { padding: 0 20px; }
  .hero__inner { gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --header-h: 62px; }
  body { font-size: 15px; }
  .section { padding: 60px 0; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--navy-900); flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; gap: 2px; border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 13px 14px; font-size: 16px; border-radius: 10px; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { background: rgba(30,111,235,.18); }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }

  .hero__inner { grid-template-columns: 1fr; padding: 64px 20px 84px; }
  .hero__card { left: 12px; bottom: -18px; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .steps { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 12px; padding: 20px 22px; }
  .news-item__date { text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px; display: flex; gap: 8px; align-items: baseline; }
  .news-item__date strong { font-size: 20px; }
  .news-item .arrow { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .cert-strip { flex-direction: column; align-items: stretch; }
  .site-footer__main { grid-template-columns: 1fr; gap: 30px; }
  .model-panel { padding: 24px 20px; }
}

/* 产品图（后台可替换；无图时沿用 .ph 占位） */
.prod-media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #EAF1FA; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.prod-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
