/* ===== 企业网站全局样式 ===== */
:root {
  --c-primary: #1a5fb4;
  --c-primary-dark: #0f3d7a;
  --c-accent: #f59e0b;
  --c-text: #222;
  --c-text-light: #666;
  --c-border: #e5e7eb;
  --c-bg: #fff;
  --c-bg-alt: #f7f9fc;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: var(--c-text); line-height: 1.6; background: var(--c-bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* 按钮 */
.btn { display: inline-block; padding: 10px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 500; transition: .2s; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn-outline:hover { background: var(--c-primary); color: #fff; }

/* 顶部信息栏 */
.topbar { background: var(--c-primary-dark); color: #cfe0f5; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar strong { color: #fff; margin-left: 4px; }
.topbar a { color: #cfe0f5; }
.topbar a:hover { color: #fff; }

/* 头部导航 */
.header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; font-size: 22px; font-weight: 700; color: var(--c-primary); }
.logo img { height: 44px; }
.logo-text { color: var(--c-primary); }
.nav { display: flex; gap: 8px; }
.nav a { padding: 8px 18px; border-radius: 6px; font-size: 15px; color: #333; font-weight: 500; transition: .2s; }
.nav a:hover, .nav a.active { background: var(--c-primary); color: #fff; }
.mobile-toggle { display: none; font-size: 22px; cursor: pointer; }

/* 横幅 */
.banner { position: relative; height: 480px; overflow: hidden; }
.banner-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s; display: flex; align-items: center; }
.banner-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,30,60,.7), rgba(0,30,60,.2)); }
.banner-slide.active { opacity: 1; }
.banner-content { position: relative; color: #fff; }
.banner-title { font-size: 48px; font-weight: 700; margin-bottom: 16px; }
.banner-subtitle { font-size: 20px; margin-bottom: 28px; opacity: .9; }
.banner-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; }
.banner-dots span.active { background: #fff; }

/* 通用区块 */
.section { padding: 64px 0; }
.section.alt-bg { background: var(--c-bg-alt); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 30px; color: var(--c-primary-dark); margin-bottom: 10px; }
.section-subtitle { color: var(--c-text-light); font-size: 15px; }
.section-more { text-align: center; margin-top: 32px; }
.empty { text-align: center; padding: 60px 20px; color: var(--c-text-light); }

/* 服务优势 */
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage-item { text-align: center; padding: 32px 20px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; transition: .3s; }
.advantage-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--c-primary); }
.advantage-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.advantage-num { font-size: 36px; font-weight: 700; color: var(--c-primary); margin-bottom: 8px; }
.advantage-desc { color: var(--c-text-light); font-size: 14px; }

/* Tab 导航 */
.tab-nav { display: flex; gap: 12px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.tab-btn { padding: 10px 28px; border: 1px solid var(--c-border); background: #fff; border-radius: 30px; font-size: 15px; color: #555; transition: .2s; }
.tab-btn.active, .tab-btn:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn .4s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 产品卡片 */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: .3s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--c-primary); }
.product-img { aspect-ratio: 4/3; background: #f0f2f5; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-placeholder { color: #cbd5e1; font-size: 48px; }
.product-placeholder.large { font-size: 80px; }
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 16px; margin-bottom: 8px; color: #333; }
.product-info p { color: var(--c-text-light); font-size: 13px; flex: 1; margin-bottom: 12px; }
.product-more { color: var(--c-primary); font-size: 13px; font-weight: 500; }

/* 解决方案卡片 */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solution-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .3s; }
.solution-card:hover { transform: translateY(-6px); }
.solution-img { aspect-ratio: 16/10; overflow: hidden; }
.solution-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.solution-card:hover .solution-img img { transform: scale(1.06); }
.solution-placeholder { width: 100%; height: 100%; background: #eef2f7; display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 48px; }
.solution-body { padding: 20px; }
.solution-body h3 { font-size: 18px; margin-bottom: 10px; color: var(--c-primary-dark); }
.solution-body p { color: var(--c-text-light); font-size: 14px; margin-bottom: 12px; }
.solution-more { color: var(--c-primary); font-size: 14px; }

/* 关于+新闻 */
.about-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about-block h2 { text-align: left; }
.about-content { color: var(--c-text-light); margin-bottom: 20px; line-height: 1.8; }
.news-head { display: flex; justify-content: space-between; align-items: baseline; }
.news-head .section-title { margin-bottom: 0; }
.more-link { color: var(--c-primary); font-size: 14px; }
.news-list { margin-top: 20px; }
.news-list li { border-bottom: 1px dashed var(--c-border); }
.news-list a { display: flex; align-items: center; padding: 14px 0; gap: 16px; }
.news-date { background: var(--c-primary); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 13px; min-width: 50px; text-align: center; }
.news-title { flex: 1; color: #333; transition: .2s; }
.news-list a:hover .news-title { color: var(--c-primary); }

/* 页脚 */
.footer { background: #1a2a3a; color: #b8c5d4; padding-top: 48px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-col h3 { color: #fff; font-size: 20px; margin-bottom: 16px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p { font-size: 14px; margin-bottom: 8px; }
.footer-col a { display: block; color: #b8c5d4; font-size: 14px; padding: 4px 0; transition: .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2c3e50; margin-top: 32px; padding: 16px 0; font-size: 13px; text-align: center; }
.footer-bottom .container { display: flex; justify-content: space-between; }
.footer-credit { color: #5dade2; }

/* 页面横幅 */
.page-banner { height: 240px; background-size: cover; background-position: center; display: flex; align-items: center; position: relative; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: rgba(15, 30, 50, .6); }
.page-banner .container { position: relative; color: #fff; }
.page-banner h1 { font-size: 34px; margin-bottom: 8px; }
.page-banner p { font-size: 16px; opacity: .85; }

/* 面包屑 */
.breadcrumb { padding: 16px 0; font-size: 14px; color: var(--c-text-light); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb span { color: #333; }

/* 产品详情 */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.product-detail-img img { width: 100%; border-radius: var(--radius); }
.product-detail-info h1 { font-size: 28px; margin-bottom: 16px; color: var(--c-primary-dark); }
.product-summary { color: var(--c-text-light); margin-bottom: 24px; line-height: 1.8; }
.product-contact { margin-top: 24px; padding: 20px; background: var(--c-bg-alt); border-radius: var(--radius); }
.product-contact p { margin-bottom: 12px; font-size: 15px; }
.product-contact strong { color: var(--c-primary); font-size: 18px; }

/* 富文本 */
.rich-text { line-height: 1.9; color: #444; }
.rich-text p { margin-bottom: 14px; }
.rich-text img { margin: 16px 0; border-radius: 6px; }
.rich-text ul, .rich-text ol { padding-left: 24px; margin-bottom: 14px; }
.rich-text h1, .rich-text h2, .rich-text h3 { margin: 20px 0 12px; color: var(--c-primary-dark); }

/* 相关产品 */
.related-products { margin-top: 48px; }
.related-products h2 { font-size: 22px; margin-bottom: 20px; color: var(--c-primary-dark); }

/* 新闻列表页 */
.news-list-page { display: flex; flex-direction: column; gap: 24px; }
.news-item { display: flex; gap: 24px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: .3s; }
.news-item:hover { box-shadow: var(--shadow); border-color: var(--c-primary); }
.news-item-img { width: 260px; flex-shrink: 0; }
.news-item-img img { width: 100%; height: 100%; object-fit: cover; }
.news-item-body { padding: 20px; flex: 1; }
.news-item-body h3 { font-size: 18px; margin-bottom: 10px; color: var(--c-primary-dark); }
.news-item-summary { color: var(--c-text-light); margin-bottom: 12px; }
.news-item-meta { font-size: 13px; color: #999; display: flex; gap: 20px; }

/* 新闻详情 */
.news-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; }
.detail-title { font-size: 28px; margin-bottom: 16px; color: var(--c-primary-dark); }
.detail-meta { color: #999; font-size: 14px; margin-bottom: 24px; display: flex; gap: 20px; }
.detail-hero-img { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.detail-content { margin-bottom: 32px; }
.news-prev-next { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--c-border); }
.pn { display: flex; align-items: center; gap: 8px; color: var(--c-text-light); max-width: 45%; }
.pn:hover { color: var(--c-primary); }
.pn.disabled { color: #ccc; }
.pn .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 侧边栏 */
.news-sidebar { background: var(--c-bg-alt); padding: 24px; border-radius: var(--radius); height: fit-content; }
.news-sidebar h3 { font-size: 18px; margin-bottom: 16px; color: var(--c-primary-dark); }
.side-news li { border-bottom: 1px dashed var(--c-border); }
.side-news a { display: flex; gap: 12px; padding: 12px 0; font-size: 14px; }
.side-news .date { color: var(--c-primary); font-weight: 600; }
.side-news .title { flex: 1; color: #555; }
.side-news a:hover .title { color: var(--c-primary); }

/* 联系我们 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info h2, .contact-form-wrap h2 { font-size: 24px; margin-bottom: 24px; color: var(--c-primary-dark); }
.contact-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.contact-item i { font-size: 22px; color: var(--c-primary); width: 32px; text-align: center; }
.contact-item label { color: var(--c-text-light); font-size: 13px; }
.contact-item p { font-size: 15px; color: #333; }
.contact-form { background: var(--c-bg-alt); padding: 28px; border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; margin-bottom: 6px; font-size: 14px; color: #555; }
.form-field .req { color: #e53e3e; }
.form-field input, .form-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 6px; font-size: 14px; font-family: inherit; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--c-primary); }
.form-msg { padding: 12px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.form-msg.success { background: #e6f4ea; color: #1e7e34; }
.form-msg.error { background: #fdecea; color: #c62828; }

/* 子分类 tabs */
.sub-tabs { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; border-bottom: 2px solid var(--c-border); padding-bottom: 0; }
.sub-tabs a { padding: 10px 24px; font-size: 15px; color: #555; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: .2s; }
.sub-tabs a:hover { color: var(--c-primary); }
.sub-tabs a.active { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 600; }

/* 分页 */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.pagination a { padding: 8px 14px; border: 1px solid var(--c-border); border-radius: 4px; font-size: 14px; color: #555; transition: .2s; }
.pagination a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination a.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* 响应式 */
@media (max-width: 992px) {
  .advantages-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .product-detail, .about-news-grid, .contact-grid, .news-detail-layout { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; }
  .news-item-img { width: 100%; aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .mobile-toggle { display: block; }
  .banner-title { font-size: 28px; }
  .banner-subtitle { font-size: 16px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 22px; }
  .advantages-grid, .product-grid, .solution-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 6px; }
  .form-row { grid-template-columns: 1fr; }
}
