/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; color: #333; font-size: 14px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== 变量 ===== */
:root {
  --primary: #00a0e9;
  --green: #1daa5c;
  --dark: #333;
  --gray: #666;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
}

/* ===== 头部导航 ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: 80px; display: flex; align-items: center;
}
.header-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 30px;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.header-left { display: flex; align-items: center; }
.logo a { display: flex; align-items: center; }
.logo img { height: 55px; width: auto; }
.logo-text { margin-left: 12px; }
.logo-text .cn { font-size: 22px; font-weight: bold; color: var(--primary); letter-spacing: 1px; }
.logo-text .en { font-size: 11px; color: var(--gray); margin-top: 2px; }

.nav { display: flex; align-items: center; }
.nav ul { display: flex; align-items: center; gap: 0; }
.nav ul li a {
  display: block; padding: 0 22px; height: 80px; line-height: 80px;
  font-size: 15px; color: #333; position: relative; transition: color 0.2s;
  white-space: nowrap;
}
.nav ul li a:hover,
.nav ul li a.active {
  color: var(--primary);
}
.nav ul li a.active::after,
.nav ul li a:hover::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 3px; background: var(--primary);
}

.header-phone { display: flex; align-items: center; gap: 8px; }
.header-phone .phone-icon {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
  font-size: 16px;
}
.header-phone .phone-num { font-size: 20px; font-weight: bold; color: var(--primary); }

/* ===== 移动端菜单 ===== */
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px;
}
.mobile-menu-btn span {
  display: block; width: 24px; height: 2px; background: #333; transition: 0.3s;
}
.mobile-nav {
  display: none; position: fixed; top: 80px; left: 0; width: 100%; background: #fff;
  z-index: 999; box-shadow: 0 4px 10px rgba(0,0,0,0.1); padding: 10px 0;
}
.mobile-nav a { display: block; padding: 12px 30px; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
.mobile-nav.show { display: block; }

/* ===== 页面主体 ===== */
main { margin-top: 80px; }

/* ===== 轮播图 ===== */
.banner-section { position: relative; overflow: hidden; }
.swiper-container { position: relative; width: 100%; overflow: hidden; }
.swiper-wrapper { display: flex; transition: transform 0.6s ease; }
.swiper-slide {
  min-width: 100%; position: relative; height: 600px; overflow: hidden;
}
.swiper-slide .bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.05); transition: transform 6s ease;
}
.swiper-slide.active .bg { transform: scale(1); }
.swiper-slide .overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4);
}
.swiper-slide .text-content {
  position: absolute; bottom: 100px; left: 10%; color: #fff;
  animation: fadeInUp 0.8s ease forwards;
}
.swiper-slide .sub-title { font-size: 14px; letter-spacing: 3px; opacity: 0.9; margin-bottom: 8px; }
.swiper-slide .main-title { font-size: 42px; font-weight: bold; margin-bottom: 12px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.swiper-slide .en-title { font-size: 14px; letter-spacing: 2px; opacity: 0.8; text-transform: uppercase; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.swiper-pagination {
  position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.swiper-pagination span {
  width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5);
  cursor: pointer; transition: background 0.3s, transform 0.3s;
}
.swiper-pagination span.active { background: #fff; transform: scale(1.2); }

.swiper-prev, .swiper-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 44px; height: 44px; background: rgba(255,255,255,0.2);
  border: none; cursor: pointer; color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s; border-radius: 2px;
}
.swiper-prev { left: 20px; }
.swiper-next { right: 20px; }
.swiper-prev:hover, .swiper-next:hover { background: rgba(255,255,255,0.4); }

/* ===== 通用区块 ===== */
.section { padding: 60px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 32px; font-weight: bold; color: #000; }
.section-header .sub { font-size: 14px; color: #aaa; margin-top: 6px; letter-spacing: 3px; }
.section-header .divider {
  width: 50px; height: 3px; background: var(--primary); margin: 12px auto 0;
}

/* ===== 服务项目 ===== */
.services-section { background: #f8f8f8; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px;
}
.service-card {
  background: #fff; overflow: hidden; border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06); transition: box-shadow 0.3s, transform 0.3s;
}
.service-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.12); transform: translateY(-4px); }
.service-card .img-box { overflow: hidden; height: 200px; }
.service-card .img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service-card:hover .img-box img { transform: scale(1.06); }
.service-card .card-body { padding: 18px 20px 20px; }
.service-card h3 { font-size: 16px; font-weight: bold; color: #222; margin-bottom: 10px; }
.service-card p { font-size: 13px; color: #666; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.service-card .more-link {
  display: inline-block; margin-top: 14px; color: var(--primary);
  font-size: 13px; border: 1px solid var(--primary); padding: 4px 16px;
  border-radius: 2px; transition: all 0.3s;
}
.service-card .more-link:hover { background: var(--primary); color: #fff; }

/* ===== 企业介绍背景区 ===== */
.about-strip {
  background: linear-gradient(135deg, #1daa5c 0%, #0d8a46 100%);
  padding: 55px 0;
  color: #fff;
}
.about-strip-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center;
}
.about-strip-item h3 { font-size: 26px; font-weight: bold; margin-bottom: 10px; }
.about-strip-item p { font-size: 15px; line-height: 1.8; opacity: 0.92; }
.about-strip-item .sep { width: 40px; height: 2px; background: rgba(255,255,255,0.6); margin: 10px auto; }

/* ===== 新闻资讯首页 ===== */
.news-section { background: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.news-card { border: 1px solid #eee; border-radius: 4px; overflow: hidden; transition: box-shadow 0.3s; }
.news-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.news-card .img-box { height: 180px; overflow: hidden; }
.news-card .img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .img-box img { transform: scale(1.06); }
.news-card .card-body { padding: 16px 18px 18px; }
.news-card h3 { font-size: 15px; font-weight: bold; color: #222; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-card p { font-size: 13px; color: #666; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .date { font-size: 12px; color: #aaa; margin-top: 10px; }
.news-more { text-align: center; margin-top: 35px; }
.btn-more {
  display: inline-block; padding: 10px 35px; border: 2px solid var(--primary);
  color: var(--primary); font-size: 15px; border-radius: 2px; transition: all 0.3s;
}
.btn-more:hover { background: var(--primary); color: #fff; }

/* ===== 页脚 ===== */
.footer { background: #292929; color: #ccc; }
.footer-main {
  max-width: 1200px; margin: 0 auto; padding: 45px 20px 30px;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .f-logo { height: 45px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: #999; line-height: 1.8; }
.footer-col h4 { font-size: 16px; color: #fff; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #444; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #999; font-size: 13px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-contact p { color: #999; font-size: 13px; line-height: 2; }
.footer-contact .f-phone { font-size: 20px; color: var(--primary); font-weight: bold; margin: 8px 0; }
.footer-bottom {
  border-top: 1px solid #3d3d3d; padding: 16px 20px; text-align: center;
  font-size: 12px; color: #666;
}
.footer-bottom a { color: #666; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--primary); }

/* ===== 浮动侧边栏 ===== */
.float-sidebar {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 999; display: flex; flex-direction: column;
}
.float-btn {
  width: 56px; background: var(--green); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 5px; cursor: pointer; transition: background 0.2s; gap: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-size: 12px; text-align: center;
}
.float-btn:last-child { border-bottom: none; }
.float-btn:hover { background: #158a48; }
.float-btn svg { width: 20px; height: 20px; fill: currentColor; }
.float-btn span { line-height: 1.3; }

/* ===== 内页Banner ===== */
.inner-banner {
  height: 280px; position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.inner-banner .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.inner-banner .title-box {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  text-align: center; color: #fff; white-space: nowrap;
}
.inner-banner h1 { font-size: 32px; font-weight: bold; }
.inner-banner .breadcrumb { font-size: 14px; opacity: 0.8; margin-top: 8px; }
.inner-banner .breadcrumb a:hover { color: var(--primary); }

/* ===== 内页布局 ===== */
.inner-layout { max-width: 1200px; margin: 0 auto; padding: 40px 20px; display: flex; gap: 30px; }
.sidebar { width: 230px; flex-shrink: 0; }
.sidebar-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.sidebar-card .s-title { background: var(--primary); color: #fff; padding: 14px 18px; font-size: 16px; font-weight: bold; }
.sidebar-card ul li a {
  display: block; padding: 12px 18px; border-bottom: 1px solid #f0f0f0;
  font-size: 14px; color: #555; transition: all 0.2s;
}
.sidebar-card ul li a:hover, .sidebar-card ul li a.active { color: var(--primary); background: #f5f5f5; padding-left: 22px; }
.sidebar-card ul li:last-child a { border-bottom: none; }
.main-content { flex: 1; min-width: 0; }

/* ===== 关于我们内页 ===== */
.about-content h2 { font-size: 24px; font-weight: bold; color: #222; padding-bottom: 12px; border-bottom: 2px solid var(--primary); margin-bottom: 20px; }
.about-content .meta { font-size: 13px; color: #999; margin-bottom: 20px; }
.about-content p { font-size: 15px; color: #444; line-height: 2; text-indent: 2em; margin-bottom: 16px; }

/* ===== 服务项目内页 ===== */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  border: 1px solid #eee; border-radius: 4px; overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.product-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.1); transform: translateY(-3px); }
.product-card .img-box { height: 180px; overflow: hidden; }
.product-card .img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .img-box img { transform: scale(1.06); }
.product-card .body { padding: 16px; }
.product-card h3 { font-size: 15px; font-weight: bold; color: #222; margin-bottom: 8px; }
.product-card p { font-size: 13px; color: #666; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .more { display: inline-block; margin-top: 10px; color: var(--primary); font-size: 13px; }

/* ===== 新闻资讯内页 ===== */
.news-list { }
.news-list-item {
  display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid #eee; align-items: flex-start;
}
.news-list-item .img-box { width: 160px; height: 110px; flex-shrink: 0; overflow: hidden; border-radius: 3px; }
.news-list-item .img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-list-item:hover .img-box img { transform: scale(1.06); }
.news-list-item .info h3 { font-size: 16px; font-weight: bold; color: #222; margin-bottom: 8px; transition: color 0.2s; }
.news-list-item:hover .info h3 { color: var(--primary); }
.news-list-item .info p { font-size: 13px; color: #666; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list-item .info .date { font-size: 12px; color: #aaa; margin-top: 10px; }
.pagination { display: flex; gap: 8px; margin-top: 30px; justify-content: center; }
.pagination a {
  display: inline-block; width: 36px; height: 36px; line-height: 36px; text-align: center;
  border: 1px solid #ddd; color: #555; font-size: 14px; transition: all 0.2s;
}
.pagination a.active, .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== 联系我们内页 ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h3 { font-size: 22px; font-weight: bold; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.contact-info p { font-size: 15px; color: #444; line-height: 2.2; }
.contact-info .big-phone { font-size: 28px; color: var(--primary); font-weight: bold; margin: 10px 0; }
.contact-map { background: #f0f0f0; height: 300px; border-radius: 4px; overflow: hidden; }
.contact-map iframe { width: 100%; height: 100%; border: none; }
.contact-form { margin-top: 40px; }
.contact-form h3 { font-size: 20px; font-weight: bold; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; }
.form-group .req { color: red; }
.form-group input, .form-group textarea {
  width: 100%; border: 1px solid #ddd; border-radius: 3px; padding: 10px 14px;
  font-size: 14px; color: #333; transition: border-color 0.2s; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  background: var(--primary); color: #fff; border: none; padding: 12px 45px;
  font-size: 16px; cursor: pointer; border-radius: 3px; transition: background 0.2s;
}
.btn-submit:hover { background: #0085c5; }

/* ===== 面包屑 ===== */
.breadcrumb-bar { background: #f5f5f5; padding: 12px 0; font-size: 13px; color: #888; }
.breadcrumb-bar .inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.breadcrumb-bar a:hover { color: var(--primary); }

/* ===== 合作伙伴 ===== */
.partner-content { text-align: center; }
.partner-content img { max-width: 100%; margin: 0 auto; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .services-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .about-strip-inner { grid-template-columns: 1fr; gap: 20px; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .header-phone .phone-num { font-size: 16px; }
  .mobile-menu-btn { display: flex; }
  .swiper-slide { height: 380px; }
  .swiper-slide .main-title { font-size: 26px; }
  .services-grid, .news-grid, .products-grid { grid-template-columns: 1fr; }
  .inner-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .footer-main { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-strip-inner { grid-template-columns: 1fr; }
  .float-sidebar { display: none; }
  .news-list-item { flex-direction: column; }
  .news-list-item .img-box { width: 100%; }
}

/* 文章详情页样式 */
.article-detail {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.article-title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
  margin-bottom: 10px;
}
.article-date {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}
.article-body {
  font-size: 16px;
  line-height: 2;
  color: #444;
}
.article-body p {
  margin-bottom: 10px;
}
.article-back {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.article-back a {
  color: #2c7a2c;
  font-size: 14px;
}
.article-back a:hover {
  text-decoration: underline;
}
