/* ===== 全局重置与基础样式 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif; font-size: 14px; color: #333; background: #fff; }
a { text-decoration: none; color: inherit; }
a:hover { color: #1a5ca8; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== 颜色变量 ===== */
:root {
  --blue: #1a5ca8;
  --blue-dark: #0e3d7a;
  --blue-light: #2b7de9;
  --red: #c0392b;
  --gray-bg: #f5f6fa;
  --border: #e0e5ee;
  --text-light: #666;
}

/* ===== 布局容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ===== 顶部信息栏 ===== */
.top-bar { background: #f0f4fb; border-bottom: 1px solid var(--border); padding: 6px 0; font-size: 12px; color: var(--text-light); }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar .top-left span { margin-right: 15px; }
.top-bar .top-right { display: flex; align-items: center; gap: 10px; }
.top-bar .top-right a { color: var(--text-light); }
.top-bar .top-right a:hover { color: var(--blue); }
.top-bar .search-box { display: flex; align-items: center; border: 1px solid var(--border); background: #fff; border-radius: 3px; overflow: hidden; }
.top-bar .search-box input { border: none; outline: none; padding: 3px 8px; font-size: 12px; width: 160px; }
.top-bar .search-box button { background: var(--blue); border: none; color: #fff; padding: 4px 8px; cursor: pointer; }

/* ===== Logo 头部 ===== */
.site-header { background: #fff; padding: 15px 0; border-bottom: 3px solid var(--blue); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 15px; }
.site-logo .logo-icon { width: 80px; height: 80px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.site-logo .logo-icon svg { fill: #fff; width: 50px; height: 50px; }
.site-logo .logo-text h1 { font-size: 28px; color: var(--blue); font-weight: bold; letter-spacing: 2px; }
.site-logo .logo-text p { font-size: 13px; color: var(--text-light); letter-spacing: 1px; }
.header-banner { max-width: 500px; }

/* ===== 主导航 ===== */
.main-nav { background: var(--blue); }
.main-nav .container { display: flex; }
.main-nav ul { display: flex; width: 100%; }
.main-nav ul li { flex: 1; position: relative; }
.main-nav ul li a { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 5px; color: #fff; font-size: 13px; gap: 3px; transition: background 0.2s; }
.main-nav ul li a .nav-icon { font-size: 18px; }
.main-nav ul li a:hover, .main-nav ul li.active a { background: var(--blue-dark); }
.main-nav ul li.active a { background: rgba(0,0,0,0.25); }
/* 下拉菜单 */
.main-nav ul li .dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 160px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 999; border-top: 2px solid var(--blue); }
.main-nav ul li:hover .dropdown { display: block; }
.main-nav ul li .dropdown a { color: #333; padding: 8px 15px; flex-direction: row; justify-content: flex-start; font-size: 13px; border-bottom: 1px solid #f0f0f0; }
.main-nav ul li .dropdown a:hover { background: var(--gray-bg); color: var(--blue); }

/* ===== 面包屑 ===== */
.breadcrumb { background: var(--gray-bg); padding: 8px 0; font-size: 12px; color: var(--text-light); border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 5px; }

/* ===== 区块标题 ===== */
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 8px; border-bottom: 2px solid var(--blue); }
.section-title h2 { font-size: 20px; color: #222; font-weight: bold; display: flex; align-items: center; gap: 6px; }
.section-title h2::before { content: ""; display: inline-block; width: 4px; height: 20px; background: var(--blue); border-radius: 2px; }
.section-title a.more { font-size: 12px; color: var(--text-light); }
.section-title a.more:hover { color: var(--blue); }

/* ===== 通用内容区 ===== */
.page-section { padding: 35px 0; }
.page-section.gray { background: var(--gray-bg); }

/* ===== 轮播区 ===== */
.hero-slider { position: relative; background: #111; overflow: hidden; }
.slider-inner { display: flex; transition: transform 0.6s ease; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 420px; object-fit: cover; }
.slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); padding: 30px 40px 20px; color: #fff; }
.slide-caption h3 { font-size: 22px; margin-bottom: 5px; }
.slide-caption p { font-size: 13px; opacity: 0.85; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: #fff; border: none; width: 40px; height: 40px; cursor: pointer; font-size: 18px; z-index: 10; border-radius: 3px; }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider-dots { position: absolute; bottom: 15px; right: 20px; display: flex; gap: 6px; }
.slider-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.slider-dots span.active { background: #fff; }

/* ===== 新闻动态区 ===== */
.news-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--blue); margin-bottom: 15px; }
.news-tabs .tab { padding: 7px 18px; cursor: pointer; font-size: 13px; color: var(--text-light); border: 1px solid var(--border); border-bottom: none; margin-right: 3px; }
.news-tabs .tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.news-list { }
.news-list li { display: flex; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--border); gap: 8px; }
.news-list li:last-child { border-bottom: none; }
.news-list li .news-date { color: var(--text-light); font-size: 12px; white-space: nowrap; margin-left: auto; }
.news-list li a { font-size: 13px; color: #333; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list li a:hover { color: var(--blue); }
.news-list li::before { content: "▶"; font-size: 8px; color: var(--blue); flex-shrink: 0; }

/* ===== 研究领域 ===== */
.research-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 15px; }
.research-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 15px 5px; border: 1px solid var(--border); border-radius: 5px; cursor: pointer; transition: all 0.2s; background: #fff; }
.research-item:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(26,92,168,0.15); transform: translateY(-2px); }
.research-item .ri-icon { width: 50px; height: 50px; background: var(--gray-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--blue); }
.research-item span { font-size: 12px; color: #444; text-align: center; line-height: 1.4; }

/* ===== 科技创新平台 ===== */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform-card { position: relative; overflow: hidden; border-radius: 5px; cursor: pointer; }
.platform-card img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.3s; }
.platform-card:hover img { transform: scale(1.05); }
.platform-card .card-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); padding: 20px 12px 10px; color: #fff; font-size: 13px; }

/* ===== 经典案例 ===== */
.case-feature { position: relative; background: #000; overflow: hidden; border-radius: 5px; margin-bottom: 15px; }
.case-feature img { width: 100%; height: 300px; object-fit: cover; opacity: 0.7; }
.case-feature .case-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 25px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.75)); }
.case-feature .case-info h3 { font-size: 18px; margin-bottom: 8px; }
.case-feature .case-info p { font-size: 13px; opacity: 0.85; line-height: 1.7; margin-bottom: 10px; }
.case-feature .case-info a { background: var(--blue); color: #fff; padding: 5px 12px; border-radius: 3px; font-size: 12px; }
.case-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.case-tabs .ctab { padding: 6px 15px; background: #e8edf5; border-radius: 3px; font-size: 12px; cursor: pointer; color: #444; }
.case-tabs .ctab.active, .case-tabs .ctab:hover { background: var(--blue); color: #fff; }

/* ===== 三栏新闻 ===== */
.three-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.news-col h3 { font-size: 16px; font-weight: bold; color: #222; padding-bottom: 8px; border-bottom: 2px solid var(--blue); margin-bottom: 12px; }
.news-col img { width: 100%; height: 120px; object-fit: cover; border-radius: 3px; margin-bottom: 8px; }

/* ===== 页脚 ===== */
.site-footer { background: #1a2a3a; color: #aaa; padding: 30px 0 0; }
.footer-nav { display: flex; gap: 30px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-nav a { color: #ccc; font-size: 13px; }
.footer-nav a:hover { color: #fff; }
.footer-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.footer-info-item { display: flex; align-items: flex-start; gap: 8px; }
.footer-info-item .fi-icon { font-size: 18px; color: var(--blue-light); flex-shrink: 0; margin-top: 2px; }
.footer-info-item p { font-size: 12px; line-height: 1.7; }
.footer-bottom { background: #111b27; padding: 10px 0; text-align: center; font-size: 12px; color: #666; border-top: 1px solid #263344; }
.footer-bottom a { color: #888; }
.footer-qr { display: flex; gap: 15px; align-items: center; justify-content: center; padding: 15px 0; background: #162030; }
.footer-qr img { width: 60px; height: 60px; }
.footer-qr p { font-size: 11px; color: #aaa; text-align: center; margin-top: 4px; }

/* ===== 横幅广告 ===== */
.banner-strip { background: linear-gradient(90deg, #b01c1c, #e02020); color: #fff; padding: 14px 0; text-align: center; cursor: pointer; }
.banner-strip h3 { font-size: 20px; letter-spacing: 3px; }

/* ===== 内页布局 ===== */
.inner-layout { display: grid; grid-template-columns: 220px 1fr; gap: 25px; }
.side-nav { }
.side-nav .side-title { background: var(--blue); color: #fff; padding: 12px 15px; font-size: 16px; font-weight: bold; }
.side-nav ul li a { display: block; padding: 9px 15px; border-bottom: 1px solid var(--border); font-size: 13px; color: #444; }
.side-nav ul li a:hover, .side-nav ul li.active a { background: var(--gray-bg); color: var(--blue); border-left: 3px solid var(--blue); }
.inner-content { }
.inner-content h2 { font-size: 20px; color: #222; border-bottom: 2px solid var(--blue); padding-bottom: 10px; margin-bottom: 20px; }
.inner-content p { font-size: 14px; line-height: 1.9; color: #444; margin-bottom: 15px; text-indent: 2em; }

/* ===== 卡片网格 ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--border); border-radius: 5px; overflow: hidden; background: #fff; transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.12); }
.card img { width: 100%; height: 160px; object-fit: cover; }
.card-body { padding: 12px 15px; }
.card-body h4 { font-size: 14px; color: #222; margin-bottom: 6px; font-weight: bold; }
.card-body p { font-size: 12px; color: var(--text-light); line-height: 1.6; }

/* ===== 人才招聘 ===== */
.job-table { width: 100%; border-collapse: collapse; }
.job-table th { background: var(--blue); color: #fff; padding: 10px 12px; font-size: 13px; text-align: left; }
.job-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.job-table tr:hover td { background: var(--gray-bg); }
.job-table .btn-apply { background: var(--blue); color: #fff; padding: 4px 12px; border-radius: 3px; font-size: 12px; cursor: pointer; border: none; }

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-info p { font-size: 14px; line-height: 2; color: #444; }
.contact-info p strong { color: var(--blue); }
.contact-map { background: var(--gray-bg); height: 350px; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 16px; border: 1px solid var(--border); }
.contact-form { }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 3px; font-size: 13px; margin-bottom: 12px; font-family: inherit; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); }
.contact-form button { background: var(--blue); color: #fff; padding: 10px 30px; border: none; border-radius: 3px; font-size: 14px; cursor: pointer; }
.contact-form button:hover { background: var(--blue-dark); }

/* ===== 荣誉证书 ===== */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-item { text-align: center; cursor: pointer; }
.cert-item .cert-img { width: 100%; aspect-ratio: 3/4; background: linear-gradient(135deg, #f8f0e0, #e8d5a0); border: 2px solid #c8a84b; border-radius: 5px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: #7a5c1e; padding: 15px; margin-bottom: 8px; transition: box-shadow 0.2s; }
.cert-item .cert-img:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.cert-item .cert-img span { font-size: 12px; text-align: center; line-height: 1.5; }
.cert-item p { font-size: 12px; color: var(--text-light); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .research-grid { grid-template-columns: repeat(4, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .three-cols { grid-template-columns: 1fr; }
  .inner-layout { grid-template-columns: 1fr; }
  .footer-info { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .main-nav ul li a span:not(.nav-icon) { display: none; }
  .research-grid { grid-template-columns: repeat(3, 1fr); }
  .site-logo .logo-text h1 { font-size: 20px; }
}
