/* ==========================================================================
   捷链供应链管理（广东）有限公司 - 独立站样式
   Jielian Supply Chain Management (Guangdong) Co., Ltd.
   主色：#0a66c2（蓝） | 辅助：#0f9d58（绿） | 深灰：#1f2937
   ========================================================================== */

:root {
  --blue: #0a66c2;
  --blue-dark: #084d94;
  --blue-light: #e8f1fb;
  --green: #0f9d58;
  --green-light: #e6f6ee;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --ink-faint: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 16px 48px rgba(16, 24, 40, 0.14);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   顶部信息条
   ========================================================================== */
.topbar {
  background: var(--blue-dark);
  color: #fff;
  font-size: 13.5px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.topbar .contact-group { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { opacity: 0.85; }
.topbar .social { display: flex; gap: 12px; }
.topbar .social svg { width: 16px; height: 16px; fill: #fff; }
.topbar .tagline { font-weight: 600; letter-spacing: 0.3px; }

/* ==========================================================================
   导航栏
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.logo .mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
  flex-shrink: 0;
}
.logo .sub { display: block; font-size: 11px; color: var(--ink-faint); font-weight: 500; letter-spacing: 0.5px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--blue); }
.nav-links a.active { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--blue-dark) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(8, 77, 148, 0.92) 0%, rgba(10, 102, 194, 0.88) 55%, rgba(15, 157, 88, 0.82) 130%),
    url("../images/hero-bg.jpg") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.12) 0, transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(255,255,255,0.08) 0, transparent 45%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 88px 24px 96px;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 .accent { color: #a8e6c1; }
.hero p.lead {
  font-size: 17px;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: #fff; color: var(--blue-dark); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #0c8549; }

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 22px 18px;
  backdrop-filter: blur(6px);
  text-align: center;
}
.hero-card .num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}
.hero-card .lbl { font-size: 13px; color: rgba(255,255,255,0.85); }

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat {
  padding: 24px;
  text-align: center;
  background: rgba(8, 77, 148, 0.25);
}
.hero-stat .num { font-size: 26px; font-weight: 800; }
.hero-stat .lbl { font-size: 13px; color: rgba(255,255,255,0.8); }

/* ==========================================================================
   区块通用
   ========================================================================== */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-head p { color: var(--ink-soft); font-size: 16px; }

/* ==========================================================================
   关于我们
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.about-text p { color: var(--ink-soft); margin-bottom: 16px; font-size: 16px; }
.about-points { margin-top: 24px; display: grid; gap: 14px; }
.about-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.about-point .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.about-point .ic svg { width: 20px; height: 20px; }
.about-point h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 3px; }
.about-point p { font-size: 14px; color: var(--ink-faint); margin: 0; }

.about-visual {
  position: relative;
}
.about-img-wrap {
  aspect-ratio: 4/3;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--bg-soft);
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-visual .ph {
  aspect-ratio: 4/3;
  border-radius: 18px;
  background:
    linear-gradient(135deg, var(--blue-light), var(--green-light));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  padding: 24px;
}
.about-visual .ph-icon { width: 96px; height: 96px; color: var(--blue); }
.about-visual .ph-text { color: var(--ink-faint); font-weight: 600; line-height: 1.5; }
.about-visual .badge {
  position: absolute;
  bottom: -18px;
  right: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
}
.about-visual .badge .n { font-size: 26px; font-weight: 800; color: var(--blue); }
.about-visual .badge .t { font-size: 13px; color: var(--ink-faint); }

/* ==========================================================================
   产品分类
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #c8ddf5;
}
.cat-card .ic {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.cat-card .ic svg { width: 26px; height: 26px; }
.cat-card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 10px; }
.cat-card p { font-size: 14px; color: var(--ink-faint); flex: 1; }
.cat-card .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.cat-card .tags span {
  font-size: 11.5px;
  padding: 4px 10px;
  background: var(--bg-soft);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* 可点击的分类卡片（有目录链接） */
.cat-card[data-cat-link] {
  cursor: pointer;
  border-color: #c8ddf5;
}
.cat-card[data-cat-link]:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}
.cat-card .cat-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.cat-card[data-cat-link]:hover .cat-link {
  text-decoration: underline;
}

/* ==========================================================================
   品牌 / 服务
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  text-align: center;
  padding: 32px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card .ic {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.service-card .ic svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 13.5px; color: var(--ink-faint); }

/* ==========================================================================
   联系我们
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.contact-info > p { color: var(--ink-soft); margin-bottom: 28px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item .ic {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item .ic svg { width: 21px; height: 21px; }
.contact-item h4 { font-size: 14px; color: var(--ink-faint); font-weight: 600; margin-bottom: 3px; }
.contact-item .v { font-size: 16px; font-weight: 600; }
.contact-item .v a:hover { color: var(--blue); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.contact-form .sub { color: var(--ink-faint); font-size: 14px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; }

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer p { font-size: 14px; color: #94a3b8; }
.footer .brand { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.footer .brand .mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: #94a3b8; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* ==========================================================================
   语言切换
   ========================================================================== */
.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 3px;
  margin-left: 12px;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-faint);
}
.lang-switch button.active { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }

[data-lang] { transition: opacity 0.2s; }

/* 滚动进入视口动画 */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 64px 24px 72px; }
  .hero-visual { max-width: 480px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    gap: 4px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .nav-toggle { display: flex; }
  .lang-switch { margin-left: auto; }
  .cat-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .tagline { display: none; }
}
