/* ===== Beyond Marine Power — 工业橙黑主题 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #10151c;         /* 深炭黑底 */
  --ink-2: #1a222d;       /* 深炭黑 2 */
  --ink-3: #232d3a;       /* 深炭黑 3 */
  --accent: #ed1c24;      /* 洋马红 Yanmar red */
  --accent-2: #ff5a5f;    /* 亮红渐变 */
  --accent-dark: #c1121a; /* 红 hover */
  --text: #1d2632;
  --muted: #5c6873;
  --light: #f4f5f7;       /* 内容区浅灰底 */
  --card: #ffffff;
  --border: #e2e6ea;      /* 钢灰边框 */
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ===== 头部导航 ===== */
.site-header {
  background: #f3f4f6;
  color: var(--ink);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 1px 8px rgba(16,21,28,.08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; letter-spacing: 1px; color: #fff;
  box-shadow: 0 3px 10px rgba(237,28,36,.45);
}
.logo-text strong { font-size: 17px; letter-spacing: .5px; display: block; color: var(--ink); }
.logo-text small { font-size: 11px; color: #7a8593; }
.nav a { color: #3d4857; text-decoration: none; margin-left: 26px; font-size: 15px; }
.nav a:hover { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.nav a.active { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.lang-switch { margin-left: 26px; font-size: 14px; white-space: nowrap; }
.lang-switch a { margin-left: 6px; color: #3d4857; }
.lang-switch a.active { color: var(--accent); font-weight: 700; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: url("../images/sea-hero.svg") center/cover no-repeat;   /* 视频加载失败时的兜底 */
  color: var(--ink);
  padding: 96px 0 78px;
  text-align: center;
}
.hero-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; display: block;
  transform: scale(1.12);                 /* 更大裁边，缓解晃动 */
  filter: saturate(1.02);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16,21,28,.60) 0%, rgba(16,21,28,.44) 48%, rgba(16,21,28,.20) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero:after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 3;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.hero-tag { color: #ffffff; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.15; margin-bottom: 12px; color: #fff; text-shadow: 0 2px 16px rgba(16,21,28,.45); }
.hero .accent { color: transparent; -webkit-text-stroke: 2.5px #e2625a; text-shadow: 0 2px 14px rgba(16,21,28,.35); }
.hero-company {
  font-size: 21px; font-weight: 700; color: #e2625a;   /* 恢复实色填充，颜色调淡 */
  letter-spacing: 1px; margin-bottom: 18px;
  text-shadow: 0 1px 10px rgba(16,21,28,.35);
}
.hero-sub { font-size: 19px; color: #dbe4ec; margin-bottom: 34px; max-width: 720px; margin-left: auto; margin-right: auto; text-shadow: 0 1px 12px rgba(16,21,28,.4); }
.hero-sub strong { color: #fff; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badge { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badge-cert {
  background: #ffffff;
  border: 1px solid rgba(237,28,36,.45);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(16,21,28,.06);
  border-radius: 30px; padding: 9px 20px; font-size: 14px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: none; transition: .2s; letter-spacing: .3px;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(237,28,36,.3); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { border: none; color: #fff; background: var(--accent); box-shadow: 0 6px 18px rgba(237,28,36,.3); }
.btn-ghost:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-ghost-dark { border: 1px solid var(--border); color: var(--text); background: #fff; }
.btn-ghost-dark:hover { border-color: var(--accent); color: var(--accent); background: var(--light); }

/* ===== 区块 ===== */
.section { padding: 74px 0; }
.section-light { background: var(--light); }
.section-contact { background: var(--light); }
.section-dark { background: var(--ink); color: #fff; }
.section-title { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 16px; }
.section-title:after {
  content: ""; display: block; width: 64px; height: 4px; margin: 16px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
}
.section-dark .section-title:after { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.section-lead { text-align: center; max-width: 780px; margin: 22px auto 44px; color: var(--muted); font-size: 16px; }
.section-dark .section-lead { color: #b6c1cd; }
.section-dark .section-title { color: #fff; }
.sub-title { font-size: 20px; font-weight: 700; color: var(--ink); margin: 30px 0 12px; }

/* ===== 优势 ===== */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.adv-card { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; padding: 24px; box-shadow: 0 2px 10px rgba(16,21,28,.05); }
.adv-card h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: var(--muted); }
.adv-card ul { padding-left: 20px; }
.adv-card li { margin-bottom: 6px; }

/* ===== 关于我们 ===== */
.about-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.point { text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 26px 14px; box-shadow: 0 2px 10px rgba(16,21,28,.05); }
.point span { font-size: 30px; display: block; margin-bottom: 10px; }
.point p { font-size: 14px; font-weight: 700; }

/* ===== 联系方式 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.contact-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; box-shadow: 0 2px 10px rgba(16,21,28,.05); }
.contact-item strong { color: var(--ink); }
.contact-item a { color: var(--accent); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-wechat { background: #07C160; color: #fff; box-shadow: 0 6px 18px rgba(7,193,96,.28); }
.btn-wechat:hover { background: #06ad56; transform: translateY(-2px); }

/* ===== 页脚 ===== */
.site-footer { background: var(--ink); color: #9aa7b5; text-align: center; padding: 30px 0; font-size: 14px; border-top: 3px solid var(--accent); }
.site-footer .note { color: #6b7684; }

/* ===== 产品中心（系列入口） ===== */
.series-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.series-card { display: block; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 28px; text-decoration: none; color: var(--text); transition: .2s; box-shadow: 0 2px 10px rgba(16,21,28,.06); }
.series-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16,21,28,.14); border-left-color: var(--accent-2); }
.series-card h3 { color: var(--ink); font-size: 20px; margin-bottom: 8px; }
.series-card:hover h3 { color: var(--accent); }
.series-card p { font-size: 14px; color: var(--muted); }
.series-count { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--accent); font-weight: 700; }

/* ===== 小 Hero / 面包屑 ===== */
.hero-small { padding: 62px 0 50px; }
.hero-small h1 { font-size: 38px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ===== 产品网格 / 卡片 ===== */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(16,21,28,.06); transition: .2s; }
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16,21,28,.14); }
.prod-img { height: 180px; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-img .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; letter-spacing: 1px; background: linear-gradient(135deg, #f0f1f3, #e6e8eb); border-bottom: 1px solid var(--border); }
.prod-card h3 { padding: 16px 18px 4px; font-size: 18px; color: var(--ink); }
.prod-desc { padding: 0 18px 16px; font-size: 13px; color: var(--muted); flex: 1; }
.prod-card .btn { margin: 0 18px 18px; }

/* ===== 产品详情 ===== */
.product-img-placeholder {
  height: 220px; border: 2px dashed var(--border); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 15px; letter-spacing: 1px;
  margin-bottom: 30px; background: var(--light);
}
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 14px rgba(16,21,28,.08); }
.spec-table th { background: var(--ink-2); color: #fff; text-align: left; padding: 13px 18px; font-size: 14px; }
.spec-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 15px; }
.spec-table tr:nth-child(even) td { background: #f7f8f9; }
.spec-table tr td:first-child { font-weight: 700; color: var(--ink); width: 42%; }
.note { font-size: 13px; color: var(--muted); }
.note a { color: var(--accent); }

/* ===== 下拉菜单 ===== */
.nav-item { position: relative; display: inline-block; margin-left: 26px; }
.nav-item > a { color: #3d4857; text-decoration: none; font-size: 15px; }
.nav-item > a:hover, .nav-item > a.active { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: #ffffff; border: 1px solid var(--border); min-width: 210px; box-shadow: 0 10px 24px rgba(16,21,28,.14); border-radius: 0 0 10px 10px; z-index: 200; overflow: hidden; }
.nav-item:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 12px 20px; color: #3d4857; text-decoration: none; font-size: 14px; margin: 0; }
.dropdown a:hover { background: var(--accent); color: #fff; border: none; }

/* ===== 响应式 ===== */
@media (max-width: 820px) {
  .nav-wrap { flex-direction: column; gap: 10px; }
  .nav a { margin: 0 12px; }
  .hero h1 { font-size: 34px; }
  .contact-grid, .adv-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .series-grid { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: repeat(2, 1fr); }
}
