/*
Theme Name: Miaosheng CN
Template: generatepress
Author: 浙江淼盛汽车有限公司
Description: 国内站（miaosheng-auto.com）品牌子主题：本土字体栈、备案号页脚、AI 标识声明、无外部字体请求。
Version: 1.0.0
*/

:root {
  --ms-ink: #14212e;
  --ms-ink-2: #3d4d5c;
  --ms-brand: #0d3a63;
  --ms-brand-2: #17527f;
  --ms-accent: #c0392b;
  --ms-line: #e3e8ee;
  --ms-bg-soft: #f5f7fa;
  --ms-radius: 4px;
}

body,
button,
input,
select,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
  color: var(--ms-ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ms-brand-2); }
a:hover { color: var(--ms-accent); }

/* ---------- 站点头部 ---------- */
.site-header {
  border-bottom: 1px solid var(--ms-line);
  background: #fff;
}
.main-navigation .main-nav ul li a {
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--ms-ink);
}
.main-navigation .main-nav ul li a:hover { color: var(--ms-brand-2); }

/* ---------- 首页 Hero ---------- */
.ms-hero {
  background: linear-gradient(135deg, #0d3a63 0%, #17527f 60%, #1d6191 100%);
  color: #fff;
  padding: 72px 0 64px;
}
.ms-hero-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.ms-hero h1 {
  font-size: 40px;
  line-height: 1.28;
  margin: 0 0 18px;
  color: #fff;
  font-weight: 600;
  letter-spacing: .01em;
}
.ms-hero p.ms-sub {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .88);
  max-width: 780px;
  margin: 0 0 26px;
}
.ms-hero .ms-kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  border-left: 3px solid var(--ms-accent);
  padding-left: 10px;
  margin-bottom: 20px;
}
.ms-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.ms-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--ms-radius);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
}
.ms-btn-primary { background: var(--ms-accent); color: #fff; }
.ms-btn-primary:hover { background: #a5301f; color: #fff; }
.ms-btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.ms-btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- 通用区块 ---------- */
.ms-section { padding: 64px 0; }
.ms-section.alt { background: var(--ms-bg-soft); }
.ms-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.ms-section-title { margin: 0 0 8px; font-size: 26px; font-weight: 600; letter-spacing: .01em; }
.ms-section-desc { color: var(--ms-ink-2); font-size: 15px; line-height: 1.8; margin: 0 0 32px; }

/* ---------- 产品卡 ---------- */
.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ms-card {
  background: #fff;
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius);
  padding: 26px 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.ms-card:hover { box-shadow: 0 8px 24px rgba(13, 58, 99, .10); transform: translateY(-2px); }
.ms-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: var(--ms-brand); }
.ms-card h3 a { text-decoration: none; color: inherit; }
.ms-card p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--ms-ink-2); }
.ms-card .ms-tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 2px;
  background: #eef3f8;
  color: var(--ms-brand-2);
  margin-bottom: 12px;
}

/* ---------- 可信区 ---------- */
.ms-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ms-trust-item { border-left: 3px solid var(--ms-brand); padding-left: 18px; }
.ms-trust-item strong { display: block; font-size: 16px; margin-bottom: 8px; color: var(--ms-brand); }
.ms-trust-item p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--ms-ink-2); }

/* ---------- 正文 ---------- */
.entry-content { font-size: 16px; line-height: 1.95; color: var(--ms-ink-2); }
.entry-content h2 {
  font-size: 24px;
  color: var(--ms-ink);
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ms-line);
}
.entry-content h3 { font-size: 18px; color: var(--ms-brand); margin: 30px 0 10px; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content li { margin: 6px 0; }
.entry-content blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  background: var(--ms-bg-soft);
  border-left: 3px solid var(--ms-brand);
  font-size: 15px;
  color: var(--ms-ink-2);
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 20px 0;
}
.entry-content th, .entry-content td {
  border: 1px solid var(--ms-line);
  padding: 10px 12px;
  text-align: left;
}
.entry-content th { background: var(--ms-bg-soft); font-weight: 600; }
.entry-content strong { color: var(--ms-ink); }

/* ---------- 页脚 ---------- */
.ms-footer-bar {
  background: #10212f;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 2;
  padding: 26px 0;
  text-align: center;
}
.ms-footer-bar a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.ms-footer-bar a:hover { color: #fff; text-decoration: underline; }
.ms-footer-bar .ms-filing { margin-top: 6px; font-size: 13px; }
.ms-footer-bar .ms-ai-note { margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .5); }
.ms-copyright { font-size: 12px; color: rgba(255, 255, 255, .45); margin-top: 10px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .ms-cards, .ms-trust { grid-template-columns: 1fr; }
  .ms-hero { padding: 52px 0 44px; }
  .ms-hero h1 { font-size: 28px; }
  .ms-section { padding: 44px 0; }
}

/* 首页不重复显示页面标题（Hero 自带 H1） */
.home .entry-header, .page-template-home .entry-header { display: none; }
.home .inside-article > header { display: none; }
.ms-card h3 { margin-top: 0; }
