/* ==========================================================================
   CMCE MARINE – 主样式表
   纯手写 CSS，无第三方框架依赖（加载快、利于 SEO）
   ========================================================================== */

:root {
  --navy: #0a2342;
  --navy-2: #123356;
  --blue: #14487f;
  --accent: #2f8fc4;
  --accent-2: #48b3e3;
  --ink: #16202c;
  --muted: #5b6b7c;
  --line: #dde5ee;
  --bg: #f6f8fb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(10, 35, 66, .09);
  --shadow-hover: 0 16px 38px rgba(10, 35, 66, .16);
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.2rem; }
ul { padding-left: 1.2em; }
.container { width: min(1160px, 92%); margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 6px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .22s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eaf3fa; color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { padding: .55em 1em; font-size: .85rem; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 12px rgba(10, 35, 66, .05);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand img.brand-logo { height: 40px; width: auto; object-fit: contain; border-radius: 6px; }
.brand-footer img.brand-logo { height: 30px; }
.brand .brand-text { display: none; }
.brand-text {
  font-weight: 800; font-size: 1.15rem; color: var(--navy); letter-spacing: .04em; line-height: 1;
  display: flex; flex-direction: column;
}
.brand-text em {
  font-style: normal; font-size: .62rem; font-weight: 600; letter-spacing: .22em;
  color: var(--muted); text-transform: uppercase; margin-top: 3px;
}
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a {
  color: #34495e; font-size: .93rem; font-weight: 500; padding: .35rem 0; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--navy); font-weight: 700; }
.header-cta { margin-left: .5rem; }
.nav-toggle {
  display: none; background: none; border: 0; font-size: 1.5rem; color: var(--navy);
  cursor: pointer; padding: .2rem .4rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  color: #fff; background: var(--navy) center/cover no-repeat; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 24, 45, .94) 0%, rgba(9, 37, 68, .82) 45%, rgba(10, 35, 66, .45) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 5rem 0; max-width: 720px; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid rgba(72, 179, 227, .45); border-radius: 100px;
  padding: .35rem .9rem; margin-bottom: 1.4rem; background: rgba(47, 143, 196, .1);
}
.hero h1 { color: #fff; font-size: 2.9rem; margin-bottom: .6em; }
.hero h1 span { color: var(--accent-2); }
.hero-sub { font-size: 1.1rem; color: rgba(255, 255, 255, .85); max-width: 620px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.4rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.65rem; color: #fff; }
.hero-stats span { font-size: .82rem; color: rgba(255, 255, 255, .7); letter-spacing: .05em; }

/* ---------- 标准条 ---------- */
.standard-bar { background: var(--navy-2); color: rgba(255, 255, 255, .85); }
.standard-bar .container {
  display: flex; align-items: center; gap: 2rem; padding: 1.1rem 0; flex-wrap: wrap;
  font-size: .85rem;
}
.standard-bar b { color: var(--accent-2); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; }
.standard-bar span { padding: .1rem .7rem; border-left: 1px solid rgba(255, 255, 255, .18); }

/* ---------- 通用 section ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 720px; margin-bottom: 2.8rem; }
.section-head h2 { margin-bottom: .5rem; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- 产品卡 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #c9dcec; }
.product-card figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; background: #eef2f7; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover img { transform: scale(1.04); }
.product-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.tag {
  display: inline-block; align-self: flex-start; font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700; color: var(--blue);
  background: #e8f2fa; padding: .25rem .6rem; border-radius: 4px; margin-bottom: .7rem;
}
.product-card h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.product-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.link-arrow { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 特点 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; transition: box-shadow .25s ease;
}
.feature:hover { box-shadow: var(--shadow); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--accent)); color: #fff;
  font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem;
}
.feature .ico svg { width: 24px; height: 24px; display: block; }
.feature-media {
  margin: -1.7rem -1.5rem 1rem; border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden; aspect-ratio: 16 / 9; background: var(--line);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature h3 { font-size: 1.02rem; }
.feature p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- 使命 / 愿景 两栏 ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.mv-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.mv-card > p { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; }

/* ---------- 应用场景 ---------- */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.app-item {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 170px;
  background: linear-gradient(150deg, var(--navy), var(--blue)) center/cover no-repeat; color: #fff;
  padding: 1.4rem; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .25s ease;
}
.app-item::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 24, 45, .30) 0%, rgba(6, 24, 45, .82) 100%);
}
.app-item:hover { transform: translateY(-3px); }
.app-item b, .app-item span { position: relative; z-index: 1; }
.app-item b { display: block; font-size: 1.05rem; margin-bottom: .25rem; }
.app-item span { font-size: .82rem; color: rgba(255, 255, 255, .72); }
.app-item::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%;
}

/* ---------- 新闻卡 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.news-card figure { margin: 0; aspect-ratio: 16/9; background: #eef2f7; overflow: hidden; }
.news-card img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: .78rem; color: var(--muted); letter-spacing: .04em; margin-bottom: .5rem; }
.news-card h3 { font-size: 1.05rem; }
.news-card p { color: var(--muted); font-size: .88rem; flex: 1; }

/* ---------- CTA 条 ---------- */
.cta-band { background: linear-gradient(105deg, var(--navy), var(--blue)); color: #fff; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 3rem 0; flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; font-size: 1.6rem; margin-bottom: .3rem; }
.cta-inner p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.site-footer { background: #071a30; color: rgba(255, 255, 255, .72); font-size: .9rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding: 3.2rem 0 2.4rem;
}
.brand-footer .brand-text { color: #fff; }
.brand-footer .brand-text em { color: rgba(255, 255, 255, .5); }
.footer-about { margin-top: 1rem; font-size: .86rem; color: rgba(255, 255, 255, .6); max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: rgba(255, 255, 255, .72); }
.footer-col a:hover { color: var(--accent-2); }
.footer-contact li { font-size: .86rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.2rem 0; font-size: .78rem;
  color: rgba(255, 255, 255, .5);
}
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: rgba(255, 255, 255, .55); }

/* ---------- 内页通用 ---------- */
.page-hero {
  background: linear-gradient(105deg, var(--navy), var(--blue)); color: #fff; padding: 3.4rem 0;
}
.page-hero h1 { color: #fff; font-size: 2.1rem; margin-bottom: .4rem; }
.page-hero p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 700px; }
.breadcrumb { font-size: .82rem; color: var(--muted); padding: 1rem 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--ink); }

/* 产品详情 */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.detail-media { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.detail-info h1 { font-size: 1.9rem; }
.detail-summary { color: var(--muted); font-size: 1rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.8rem; font-size: .9rem; }
.spec-table dt, .spec-table th { text-align: left; }
.spec-table th {
  background: #f1f6fb; color: var(--navy); font-weight: 600; width: 38%;
  padding: .65rem .9rem; border: 1px solid var(--line);
}
.spec-table td { padding: .65rem .9rem; border: 1px solid var(--line); color: #34495e; }
.spec-table tr:nth-child(even) td { background: #fafcfd; }
.article-body { font-size: 1.02rem; color: #2c3947; }
.article-body h2 { font-size: 1.5rem; margin-top: 2rem; }
.article-body h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body blockquote {
  border-left: 3px solid var(--accent); background: #f4f9fd; margin: 1.5rem 0;
  padding: .9rem 1.2rem; color: #34495e;
}
.article-body img { border-radius: 8px; margin: 1rem 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.article-body table th, .article-body table td { border: 1px solid var(--line); padding: .6rem .8rem; }
.article-body table th { background: #f1f6fb; }

/* 侧边栏 */
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.2rem; }
.sidebar-card h3 { font-size: 1rem; margin-bottom: .8rem; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.sidebar-card li { padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.sidebar-card li:last-child { border-bottom: 0; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password],
select, textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid #cfdbe7; border-radius: 6px;
  font: inherit; font-size: .93rem; color: var(--ink); background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 143, 196, .14);
}
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .8rem; color: var(--muted); }
.alert { padding: .9rem 1.1rem; border-radius: 6px; font-size: .9rem; margin-bottom: 1.2rem; }
.alert-success { background: #e8f6ee; color: #1e6b42; border: 1px solid #bfe6cf; }
.alert-error { background: #fdeced; color: #a3272f; border: 1px solid #f7c9cd; }

/* 关于页 */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: #fff; }
.stat strong { display: block; font-size: 1.5rem; color: var(--blue); }
.stat span { font-size: .82rem; color: var(--muted); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.7rem; margin-bottom: .65rem; color: #34495e; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700;
}

/* 分页 */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 .6rem;
  border: 1px solid var(--line); border-radius: 6px; font-size: .88rem; background: #fff; color: #34495e;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .cur { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .app-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.4rem; }
}

@media (max-width: 780px) {
  .header-inner { height: 64px; }
  .main-nav {
    position: absolute; top: 64px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: .5rem 0 1rem; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 20px rgba(10, 35, 66, .1); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 5%; border-bottom: 1px solid #f2f5f9; }
  .main-nav a::after { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .hero { min-height: 480px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.4rem; }
  .section { padding: 3rem 0; }
  .product-grid, .news-grid, .feature-grid, .app-grid,
  .detail-layout, .split, .form-grid, .stat-row, .mv-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.4rem 0 1.6rem; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .page-hero { padding: 2.4rem 0; }
}

/* 打印 */
@media print {
  .site-header, .cta-band, .site-footer, .nav-toggle { display: none; }
}

/* ---------- 多语言切换 ---------- */
.header-right { display: flex; align-items: center; gap: .8rem; margin-left: .4rem; flex-shrink: 0; }
.lang-switch {
  font-size: .82rem; font-weight: 700; color: var(--navy); border: 1px solid var(--line);
  border-radius: 100px; padding: .28rem .75rem; letter-spacing: .04em; white-space: nowrap;
  background: #f7fafd;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); background: #fff; }

/* ---------- 资料下载 ---------- */
.dl-list { display: grid; gap: .9rem; }
.dl-row {
  display: flex; align-items: center; gap: 1.2rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; transition: box-shadow .22s ease, transform .22s ease;
}
.dl-row:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.dl-ico {
  width: 44px; height: 54px; flex-shrink: 0; border-radius: 6px; display: grid; place-items: center;
  background: #fdeced; color: #a3272f; font-weight: 800; font-size: .7rem; letter-spacing: .04em;
  border: 1px solid #f6c9cd;
}
.dl-main { flex: 1; min-width: 0; }
.dl-main h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.dl-main p { color: var(--muted); font-size: .86rem; margin: 0 0 .3rem; }
.dl-meta { font-size: .78rem; color: var(--muted); }
.dl-row .btn { flex-shrink: 0; }

@media (max-width: 780px) {
  .header-right { margin-left: auto; }
  .header-right .header-cta { display: none; }
  .lang-switch { font-size: .76rem; padding: .24rem .6rem; }
  .dl-row { align-items: flex-start; flex-wrap: wrap; }
  .dl-row .btn { width: 100%; justify-content: center; }
}
