/* ============================================
   Вело OEM — 白牌自行车OEM工厂站 共享设计系统
   深蓝工业风 + 高对比转化区 + 俄语排版
   ============================================ */
:root {
  --bg: #f5f7fa;
  --white: #ffffff;
  --navy: #0e2a47;
  --navy-2: #16406b;
  --accent: #e8562a;
  --accent-2: #ff8a3d;
  --text: #1c2836;
  --muted: #5c6b7a;
  --line: #e3e8ef;
  --green: #2e9e5b;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(14, 42, 71, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "PT Sans", Roboto, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部信息条 ===== */
.topbar {
  background: var(--navy);
  color: #cdd8e4;
  font-size: 13.5px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar .contacts span { margin-right: 18px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--accent-2); }

/* ===== 导航 ===== */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(14,42,71,.06);
  position: sticky; top: 0; z-index: 100;
}
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.logo { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: .3px; }
.logo span { color: var(--accent); }
.logo small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); letter-spacing: .2px; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { font-weight: 600; font-size: 15px; color: var(--text); padding: 6px 2px; border-bottom: 2px solid transparent; transition: .2s; }
.nav a:hover, .nav a.active { color: var(--accent); border-color: var(--accent); }
.nav .btn {
  background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 8px;
  font-weight: 700; border: none; cursor: pointer; font-size: 14.5px; transition: .2s;
}
.nav .btn:hover { background: #d64a20; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 3px; background: var(--navy); border-radius: 2px; }

/* ===== Hero 首屏 ===== */
.hero {
  background: linear-gradient(135deg, rgba(14,42,71,.62) 0%, rgba(22,64,107,.48) 100%), url('../images/hero-ride.jpg') center/cover no-repeat;
  color: #fff;
  padding: 110px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,42,71,.62) 0%, rgba(22,64,107,.48) 100%), url('../images/factory/factory_01.jpg') center/cover no-repeat;
  animation: heroCrossfade 8s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes heroCrossfade {
  0%, 45% { opacity: 1; }
  55%, 100% { opacity: 0; }
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border: 60px solid rgba(255,255,255,.05); border-radius: 50%;
  z-index: 1;
}
.hero .container { display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; position: relative; z-index: 2; max-width: 780px; }
.hero h1 { font-size: 38px; line-height: 1.25; margin-bottom: 20px; font-weight: 800; }
.hero h1 .hl { color: var(--accent-2); }
.hero .sub { font-size: 17px; color: #c9d6e4; margin-bottom: 28px; max-width: 560px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-tags .tag {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  padding: 8px 16px; border-radius: 30px; font-size: 13.5px; font-weight: 600;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 28px; border-radius: 8px; font-weight: 700; font-size: 15.5px; transition: .2s; cursor: pointer; border: none; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #d64a20; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-badges { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges .b { font-size: 13px; color: #aebfcf; display: flex; align-items: center; gap: 7px; }
.hero-badges .b strong { color: #fff; font-size: 15px; }

/* ===== 区块通用 ===== */
.section { padding: 62px 0; }
.section.alt { background: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.section-head h2 { font-size: 29px; color: var(--navy); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 16px; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 8px; display: block; }

/* ===== 卡片网格 ===== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: .22s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(14,42,71,.12); }
.card .ic { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 17.5px; color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-media video, .about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-list li { display: flex; gap: 12px; margin-bottom: 12px; font-size: 15.5px; }
.about-list li::before { content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px; text-align: center;
}
.stat .num { font-size: 30px; font-weight: 800; color: var(--accent); }
.stat .lbl { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ===== 地图区块 ===== */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ===== 产品 ===== */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.gallery { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.gallery-main { position: relative; }
.gallery-main img { width: 100%; height: auto; }
.gallery-thumbs { display: flex; gap: 10px; padding: 12px; }
.gallery-thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active { border-color: var(--accent); }
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border: none; }
.spec-table td { padding: 11px 18px; font-size: 14.5px; }
.spec-table td:first-child { color: var(--muted); width: 42%; background: #f8fafc; font-weight: 600; }
.oem-note {
  background: #fff7ee; border: 1px solid #ffd9b8; border-radius: var(--radius);
  padding: 16px 20px; margin-top: 20px; font-size: 15px; color: #7a4a1d;
}
.oem-note strong { color: var(--accent); }
.video-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 26px; background: #000; }
.video-wrap video { width: 100%; }
.part-name { margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: .2px; line-height: 1.4; }

/* ===== OEM流程 ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { text-align: center; padding: 24px 16px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; }
.step .n {
  width: 38px; height: 38px; margin: 0 auto 12px; background: var(--navy); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
}
.step h4 { font-size: 15.5px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 13.5px; }

/* ===== 询盘/联系 ===== */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; border: 1px solid var(--line); }
.form-card h3 { font-size: 20px; color: var(--navy); margin-bottom: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fbfcfe; transition: .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--navy-2); outline: none; background: #fff;
}
.form-group textarea { min-height: 96px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.form-msg { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 8px; font-size: 14.5px; font-weight: 600; }
.form-msg.ok { background: #e8f7ee; color: #1d7a43; border: 1px solid #bfe8cd; }
.form-msg.err { background: #fdeeee; color: #b33636; border: 1px solid #f3c1c1; }
.contact-channels { display: grid; gap: 14px; }
.channel {
  display: flex; align-items: center; gap: 16px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line); padding: 20px 24px; transition: .2s;
}
.channel:hover { transform: translateX(4px); border-color: var(--accent); }
.channel .ic { font-size: 28px; width: 52px; height: 52px; background: #f0f4f9; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.channel .t { font-weight: 700; font-size: 16.5px; }
.channel .d { color: var(--muted); font-size: 13.5px; }

/* ===== 页脚 ===== */
.footer { background: var(--navy); color: #b9c8d8; padding: 42px 0 26px; margin-top: 40px; }
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
.footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.footer a { display: block; margin-bottom: 8px; font-size: 14px; transition: .2s; }
.footer a:hover { color: var(--accent-2); }
.footer p { font-size: 14px; }
.footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; margin-top: 10px; font-size: 12.5px; text-align: center; color: #7e93a8; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero .container, .about-grid, .product-hero, .contact-grid { grid-template-columns: 1fr !important; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer .container { grid-template-columns: 1fr; }
  .nav { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 90px 30px; gap: 22px; box-shadow: -6px 0 30px rgba(0,0,0,.12); transition: .3s; z-index: 99; }
  .nav.open { right: 0; }
  .burger { display: flex; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 70px 0 60px; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .container { padding: 0 18px; }
  /* product.html 平板适配 */
  .product-hero { gap: 24px; }
  #productTabs { flex-direction: column !important; }
  #productTabs .btn { width: 100%; text-align: center; }
  .spec-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .steps, .form-row, .stats { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .hero h1 { font-size: 24px; }
  .hero .sub { font-size: 15px; }
  .hero { padding: 56px 0 48px; }
  .hero-tags .tag { font-size: 12px; padding: 6px 12px; }
  .hero-badges { gap: 14px 18px; margin-top: 24px; }
  .hero-badges .b { font-size: 12px; }
  .map-wrap iframe { height: 280px; }
  .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gallery-thumbs img { flex: 0 0 76px; }
  .card img[style*="height:340px"] { height: 260px !important; }
  .brand-bar { gap: 16px; overflow-x: auto; padding-bottom: 6px; }
  /* product.html 手机适配 */
  #productTitle { font-size: 22px !important; }
  .spec-table { font-size: 13px; }
  .video-wrap video { height: auto; }
  .gallery-main img { max-width: 100%; height: auto; }
  .product-hero > div { min-width: 0; }
  .grid-4 .card img { height: 150px !important; object-fit: contain !important; }
  .part-name { font-size: 12px; margin-top: 8px; }
}
