/* ===========================================================
   深蓝重工 · 官网共享样式
   配色：深蓝主色 #1a3a5c / #0f2840 · 强调红 #e63946
   =========================================================== */

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2840;
  --primary-light: #2c527a;
  --accent: #e63946;
  --accent-hover: #c1121f;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --text-muted: #9aa3ad;
  --border: #e6eaef;
  --gold: #d4a017;
  --shadow-sm: 0 2px 10px rgba(15, 40, 64, 0.06);
  --shadow: 0 6px 24px rgba(15, 40, 64, 0.10);
  --shadow-lg: 0 16px 48px rgba(15, 40, 64, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

/* ===== Header / Nav ===== */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(15, 40, 64, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: 1px; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900;
}
.logo .name { font-size: 19px; }
.logo .sub { font-size: 10px; font-weight: 500; opacity: 0.6; letter-spacing: 3px; display: block; margin-top: -3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: rgba(255,255,255,0.82); font-size: 14.5px; font-weight: 500;
  padding: 8px 16px; border-radius: 8px; transition: all 0.22s ease; position: relative;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav a.active { color: #fff; }
.nav a.active::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2.5px; background: var(--accent); border-radius: 2px;
}
.btn-header {
  margin-left: 12px; background: var(--accent); color: #fff !important;
  padding: 9px 20px !important; border-radius: 100px !important; font-weight: 600;
  transition: all 0.22s ease;
}
.btn-header:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(230,57,70,0.4); }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 100px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.25s ease; line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(230,57,70,0.35); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--primary); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); }

/* ===== Section heading ===== */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 3px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: 34px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.section-head p { color: var(--text-light); font-size: 15px; margin-top: 12px; max-width: 600px; margin-inline: auto; }
.section-head .bar {
  width: 56px; height: 4px; background: var(--accent); border-radius: 4px;
  margin: 18px auto 0;
}

/* ===== Breadcrumb ===== */
.breadcrumb { background: var(--primary-dark); padding: 14px 0; }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .cur { color: #fff; font-weight: 600; }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  position: relative; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 72px 0 80px; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.03) 0%, transparent 40%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: 40px; font-weight: 900; letter-spacing: 2px; margin-bottom: 12px; }
.page-hero p { opacity: 0.7; font-size: 15px; max-width: 520px; }
/* 首页 hero 去掉默认上下内边距（由内部 grid 的 min-height 控制高度）；背景图由 ve_bg 注入 */
.page-hero.home-hero { padding-top: 0; padding-bottom: 0; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 32px 24px;
  text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-num { font-size: 40px; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-num span { font-size: 20px; }
.stat-label { margin-top: 10px; color: var(--text-light); font-size: 14px; }

/* ===== Cards / Grid ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.feature-card {
  background: var(--card); border-radius: var(--radius); padding: 36px 28px;
  box-shadow: var(--shadow-sm); transition: all 0.3s ease; border: 1px solid transparent;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(230,57,70,0.25); }
.feature-icon {
  width: 58px; height: 58px; border-radius: 14px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--primary); }
.feature-card p { color: var(--text-light); font-size: 14px; }

/* ===== Product card ===== */
.product-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.3s ease; border: 1px solid transparent;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(230,57,70,0.2); }
.product-thumb {
  height: 200px; background: linear-gradient(135deg, #e8edf3, #d9e2ec);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.product-thumb .badge {
  position: absolute; top: 14px; left: 14px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 100px;
}
.product-thumb svg { width: 78%; height: 78%; }
.product-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 17px; color: var(--text); margin-bottom: 8px; }
.product-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { color: var(--accent); font-weight: 800; font-size: 20px; }
.product-price small { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.product-link {
  font-size: 13px; font-weight: 600; color: var(--primary); display: inline-flex;
  align-items: center; gap: 4px; transition: gap 0.2s;
}
.product-link:hover { gap: 9px; color: var(--accent); }

/* ===== Tables ===== */
.spec-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table th, .spec-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-table th { background: var(--primary); color: #fff; font-weight: 600; width: 200px; }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: none; }
.spec-table tbody tr:nth-child(even) { background: #fafbfc; }
.spec-table td { color: var(--text); }
.spec-table .val { color: var(--accent); font-weight: 600; }

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.form-group label .req { color: var(--accent); margin-left: 3px; }
.form-control {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font); transition: all 0.2s; background: #fff; color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,58,92,0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* ===== Filter tabs ===== */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-tab {
  padding: 9px 22px; border-radius: 100px; background: #fff; border: 1.5px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text-light); cursor: pointer; transition: all 0.2s;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== News list ===== */
.news-card {
  display: flex; gap: 24px; background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.3s ease; border: 1px solid transparent;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border); }
.news-thumb {
  width: 280px; flex-shrink: 0; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  position: relative; display: flex; align-items: center; justify-content: center;
}
.news-thumb .date {
  position: absolute; top: 16px; left: 16px; background: var(--accent); color: #fff;
  padding: 6px 12px; border-radius: 8px; text-align: center; line-height: 1.1;
}
.news-thumb .date .d { font-size: 22px; font-weight: 900; }
.news-thumb .date .m { font-size: 11px; }
.news-body { padding: 26px 28px; flex: 1; }
.news-cat { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: #fef2f2; padding: 3px 12px; border-radius: 100px; margin-bottom: 12px; }
.news-body h3 { font-size: 19px; color: var(--text); margin-bottom: 10px; transition: color 0.2s; }
.news-card:hover .news-body h3 { color: var(--accent); }
.news-body p { color: var(--text-light); font-size: 14px; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { font-size: 13px; font-weight: 600; color: var(--primary); }

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 20px 40px; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-dot { position: absolute; top: 28px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(230,57,70,0.2); z-index: 2; }
.tl-item:nth-child(odd) .tl-dot { right: -8px; }
.tl-item:nth-child(even) .tl-dot { left: -8px; }
.tl-year { font-size: 22px; font-weight: 900; color: var(--primary); margin-bottom: 6px; }
.tl-item h4 { font-size: 16px; margin-bottom: 6px; color: var(--text); }
.tl-item p { font-size: 13.5px; color: var(--text-light); }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: 24px; padding: 56px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(230,57,70,0.2), transparent 50%); }
.cta h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; position: relative; }
.cta p { opacity: 0.78; margin-bottom: 28px; position: relative; }
.cta .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===== Footer ===== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer .logo { margin-bottom: 18px; }
.footer-about { font-size: 13.5px; line-height: 1.8; max-width: 280px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--accent); }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 13.5px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { font-size: 13.5px; margin-bottom: 12px; display: flex; gap: 10px; }
.footer-contact .ic { color: var(--accent); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 13px; opacity: 0.6; }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a {
  min-width: 42px; height: 42px; padding: 0 14px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: #fff; border: 1.5px solid var(--border); font-size: 14px; font-weight: 600;
  color: var(--text-light); transition: all 0.2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== Two column layout ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-reverse .split-text { order: 2; }

/* ===== Contact info cards ===== */
.contact-item {
  display: flex; gap: 16px; padding: 22px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.contact-item .ci {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.contact-item h4 { font-size: 15px; color: var(--primary); margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--text-light); }

/* ===== Info box (assembly) ===== */
.info-box { background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }

/* ===== Map embed ===== */
/* 地图嵌入板块的样式由通用 partial（resources/views/partials/map-embeds.blade.php）
   统一注入，无需在各主题重复定义；新主题只要在 theme.json 声明 map_embed 模块即自动获得。 */

/* ===== Success alert ===== */
.alert-success {
  display: none; background: #ecfdf5; border: 1.5px solid #6ee7b7; color: #065f46;
  padding: 16px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; margin-bottom: 24px;
  align-items: center; gap: 10px;
}
.alert-success.show { display: flex; }

/* ===== Tags / chips ===== */
.chip { display: inline-block; font-size: 12px; padding: 5px 14px; border-radius: 100px; background: #eef2f8; color: var(--primary); font-weight: 600; margin: 0 6px 6px 0; }

/* ===== Related list ===== */
.related-list { display: grid; gap: 14px; }
.related-item { display: flex; gap: 14px; align-items: center; padding: 14px; background: #fafbfc; border-radius: var(--radius-sm); transition: background 0.2s; }
.related-item:hover { background: #f0f4f8; }
.related-thumb { width: 72px; height: 54px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.related-item h5 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.related-item .rd { font-size: 12px; color: var(--text-muted); }

/* ===== Article body ===== */
.article { max-width: 800px; margin: 0 auto; }
.article p { font-size: 15.5px; color: #374151; margin-bottom: 20px; line-height: 1.9; }
.article h3 { font-size: 22px; color: var(--primary); margin: 32px 0 16px; }
.article blockquote { border-left: 4px solid var(--accent); padding: 14px 22px; background: #fef2f2; border-radius: 0 10px 10px 0; color: var(--text-light); font-style: italic; margin-bottom: 20px; }

/* ===== Mobile nav ===== */
@media (max-width: 980px) {
  .nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--primary-dark); flex-direction: column; padding: 16px; gap: 2px; transform: translateY(-120%); transition: transform 0.3s ease; box-shadow: var(--shadow); }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 12px 16px; }
  .nav a.active::after { display: none; }
  .btn-header { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-reverse .split-text { order: 0; }
  .news-card { flex-direction: column; }
  .news-thumb { width: 100%; height: 180px; }
  .timeline::before { left: 20px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding-left: 56px; padding-right: 0; }
  .tl-item:nth-child(odd) { text-align: left; }
  .tl-item:nth-child(odd) .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 12px; right: auto; }
}
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 26px; }
  .page-hero h1 { font-size: 30px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 40px 24px; }
  .cta h2 { font-size: 24px; }
}

/* ===== 富文本（修复 *{margin:0;padding:0} 压扁 CMS 后台富文本/详情内容） ===== */
.rich-text { margin: 0; padding: 0; }
.rich-text p { margin: 0 0 1em; }
.rich-text ul, .rich-text ol { margin: 0 0 1em 1.5em; padding: 0; list-style: revert; }
.rich-text li { margin: 0 0 .4em; }
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 { margin: 1em 0 .5em; line-height: 1.3; }
.rich-text blockquote { margin: 1em 0; }
