/* ===== 维臣地坪科技有限公司 - 公共样式 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0055a5;
  --primary-dark: #003d7a;
  --primary-light: #1a73c6;
  --accent: #e8a100;
  --text: #333;
  --text-light: #666;
  --border: #e0e0e0;
  --bg: #f5f7fa;
  --white: #fff;
  --red: #d63031;
}

body { font-family: 'Microsoft YaHei', '微软雅黑', SimHei, Arial, sans-serif; color: var(--text); font-size: 14px; line-height: 1.6; background: #fff; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ===== 顶部信息栏 ===== */
.top-bar {
  background: #f0f4f8;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
  padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: var(--text-light); margin-left: 12px; }
.top-bar a:hover { color: var(--primary); }

/* ===== Header ===== */
.site-header {
  background: var(--white);
  padding: 15px 0;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-text { line-height: 1.2; }
.logo-text .cn { font-size: 26px; font-weight: 700; color: var(--primary); letter-spacing: 2px; }
.logo-text .en { font-size: 11px; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; }
.header-contact { text-align: right; }
.header-contact .phone { font-size: 24px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.header-contact .phone i { color: var(--accent); margin-right: 6px; }
.header-contact .tip { font-size: 12px; color: var(--text-light); }

/* ===== 导航 ===== */
.main-nav {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 999;
}
.main-nav ul { display: flex; }
.main-nav ul li > a {
  display: block;
  padding: 14px 22px;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  transition: background .2s, color .2s;
}
.main-nav ul li > a:hover,
.main-nav ul li.active > a {
  background: var(--primary-dark);
  color: #fff;
}
.main-nav ul li.active > a { background: rgba(0,0,0,.25); }

/* 导航下拉菜单 */
.main-nav ul li { position: relative; }
.main-nav ul li.has-dropdown > a::after { content: ' ▾'; font-size: 11px; opacity: .8; }
.main-nav ul .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1200;
  background: #fff;
  min-width: 170px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  border-top: 3px solid var(--primary);
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-nav ul .dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s, color .15s;
}
.main-nav ul .dropdown-menu li:last-child a { border-bottom: none; }
.main-nav ul .dropdown-menu li a:hover { background: #f0f6ff; color: var(--primary); }
.main-nav ul li.has-dropdown:hover .dropdown-menu { display: block; }

/* ===== 面包屑 ===== */
.breadcrumb {
  background: #f9f9f9;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ===== Banner轮播 ===== */
.banner { position: relative; overflow: hidden; background: #000; }
.banner-slides { display: flex; transition: transform .6s ease; }
.banner-slide { min-width: 100%; position: relative; }
.banner-slide img { width: 100%; height: 520px; object-fit: cover; opacity: .9; }
.banner-caption {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.banner-caption h2 { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
.banner-caption p { font-size: 16px; }
.banner-btn { display: inline-block; margin-top: 18px; padding: 11px 32px; background: var(--primary); color: #fff; border-radius: 3px; font-size: 14px; }
.banner-btn:hover { background: var(--primary-dark); }
.banner-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s; }
.banner-dots span.active { background: #fff; }
.banner-prev, .banner-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.35); color: #fff; border: none; cursor: pointer;
  width: 44px; height: 44px; font-size: 20px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.banner-prev { left: 15px; border-radius: 3px; }
.banner-next { right: 15px; border-radius: 3px; }
.banner-prev:hover, .banner-next:hover { background: rgba(0,85,165,.7); }

/* ===== 页面Banner (内页顶部) ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../案例展示/建筑涂料banner.jpg') center/cover no-repeat;
  opacity: .18;
}
.page-banner h1 { position: relative; font-size: 32px; margin-bottom: 8px; }
.page-banner p { position: relative; font-size: 15px; opacity: .85; }

/* ===== 区块标题 ===== */
.section-title {
  text-align: center;
  margin-bottom: 36px;
}
.section-title h2 {
  font-size: 26px;
  color: var(--primary);
  display: inline-block;
  padding-bottom: 12px;
  position: relative;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 3px;
  background: var(--accent);
}
.section-title .sub { font-size: 14px; color: var(--text-light); margin-top: 8px; }

/* ===== 区块通用 ===== */
.section { padding: 55px 0; }
.section-gray { background: var(--bg); }

/* ===== 标签筛选栏 ===== */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-tabs a {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  transition: all .2s;
}
.filter-tabs a:hover, .filter-tabs a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== 产品卡片 ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.product-card:hover { box-shadow: 0 6px 20px rgba(0,85,165,.15); transform: translateY(-3px); }
.product-card .thumb { width: 100%; height: 200px; object-fit: cover; }
.product-card .info { padding: 14px; }
.product-card .info h3 { font-size: 14px; color: var(--text); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .info .cate { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.product-card .actions { display: flex; justify-content: space-between; align-items: center; }
.product-card .price { font-size: 13px; color: var(--red); font-weight: 600; }
.btn-detail {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 3px;
  font-size: 12px;
  transition: background .2s;
}
.btn-detail:hover { background: var(--primary-dark); }
.btn-inquiry {
  display: inline-block;
  padding: 5px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  font-size: 12px;
  transition: opacity .2s;
}
.btn-inquiry:hover { opacity: .85; }

/* ===== 案例卡片 ===== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.case-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-3px); }
.case-card .thumb { width: 100%; height: 220px; object-fit: cover; }
.case-card .info { padding: 14px; }
.case-card .info h3 { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.case-card .info .tag { display: inline-block; padding: 2px 8px; background: #e8f0fe; color: var(--primary); font-size: 11px; border-radius: 2px; }

/* ===== 关于我们-首页 ===== */
.about-home { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 24px; color: var(--primary); margin-bottom: 16px; }
.about-text p { color: var(--text-light); line-height: 1.9; margin-bottom: 12px; font-size: 14px; }
.about-video { position: relative; background: #000; border-radius: 6px; overflow: hidden; }
.about-video img { width: 100%; opacity: .8; height: 280px; object-fit: cover; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 28px; }
.stat-item { text-align: center; padding: 18px 10px; background: var(--primary); color: #fff; border-radius: 4px; }
.stat-item .num { font-size: 30px; font-weight: 700; color: var(--accent); }
.stat-item .label { font-size: 12px; margin-top: 4px; opacity: .9; }

/* ===== 新闻列表 ===== */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.news-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 4px; background: #fff; transition: box-shadow .2s; }
.news-item:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.news-date { text-align: center; min-width: 50px; background: var(--primary); color: #fff; border-radius: 3px; padding: 8px 6px; }
.news-date .day { font-size: 22px; font-weight: 700; line-height: 1; }
.news-date .month { font-size: 11px; opacity: .85; }
.news-body h4 { font-size: 14px; color: var(--text); margin-bottom: 6px; line-height: 1.5; }
.news-body h4 a:hover { color: var(--primary); }
.news-body p { font-size: 12px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 合作伙伴 ===== */
.partners-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.partner-item { border: 1px solid var(--border); border-radius: 4px; padding: 20px 15px; text-align: center; font-size: 13px; color: var(--text-light); background: #fff; transition: border-color .2s, color .2s; }
.partner-item:hover { border-color: var(--primary); color: var(--primary); }
.partner-item strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }

/* ===== 侧边栏 ===== */
.sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 20px; overflow: hidden; }
.sidebar-card .card-title { background: var(--primary); color: #fff; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.sidebar-card .card-body { padding: 14px; }
.sidebar-list li { border-bottom: 1px dashed var(--border); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 13px; color: var(--text); transition: color .2s; }
.sidebar-list li a:hover { color: var(--primary); padding-left: 6px; }
.contact-info-card p { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-light); padding: 7px 0; border-bottom: 1px dashed var(--border); }
.contact-info-card p:last-child { border-bottom: none; }
.contact-info-card .icon { color: var(--primary); min-width: 16px; margin-top: 2px; }

/* ===== 产品详情 ===== */
.detail-layout { display: grid; grid-template-columns: 240px 1fr; gap: 25px; }
.detail-imgs { display: grid; grid-template-columns: 1fr; gap: 8px; }
.detail-main-img { width: 100%; border: 1px solid var(--border); border-radius: 4px; height: 280px; object-fit: contain; padding: 10px; }
.detail-thumbs { display: flex; gap: 8px; }
.detail-thumbs img { width: 64px; height: 64px; object-fit: cover; border: 2px solid transparent; border-radius: 3px; cursor: pointer; }
.detail-thumbs img.active, .detail-thumbs img:hover { border-color: var(--primary); }
.detail-info h1 { font-size: 22px; color: var(--text); margin-bottom: 12px; }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.detail-meta-item { font-size: 13px; color: var(--text-light); }
.detail-meta-item span { color: var(--text); }
.detail-desc { font-size: 14px; color: var(--text-light); line-height: 1.9; margin-bottom: 20px; padding: 14px; background: var(--bg); border-left: 3px solid var(--primary); border-radius: 0 4px 4px 0; }
.detail-actions { display: flex; gap: 12px; }
.btn-primary { display: inline-block; padding: 10px 28px; background: var(--primary); color: #fff; border-radius: 4px; font-size: 14px; transition: background .2s; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { display: inline-block; padding: 10px 28px; background: var(--accent); color: #fff; border-radius: 4px; font-size: 14px; transition: opacity .2s; }
.btn-accent:hover { opacity: .85; }
.detail-tabs { margin-top: 30px; }
.detail-tab-nav { display: flex; border-bottom: 2px solid var(--primary); }
.detail-tab-nav button { padding: 10px 24px; background: none; border: none; cursor: pointer; font-size: 14px; color: var(--text-light); transition: all .2s; }
.detail-tab-nav button.active { background: var(--primary); color: #fff; }
.detail-tab-content { display: none; padding: 20px; border: 1px solid var(--border); border-top: none; background: #fff; }
.detail-tab-content.active { display: block; }
.detail-tab-content p { line-height: 1.9; color: var(--text-light); margin-bottom: 10px; }

/* ===== 关于我们页 ===== */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.about-layout img { width: 100%; border-radius: 6px; }
.about-content h2 { font-size: 22px; color: var(--primary); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.about-content p { color: var(--text-light); line-height: 1.9; margin-bottom: 12px; }
.culture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.culture-item { text-align: center; padding: 28px 16px; border: 1px solid var(--border); border-radius: 6px; background: #fff; transition: all .25s; }
.culture-item:hover { border-color: var(--primary); box-shadow: 0 4px 15px rgba(0,85,165,.1); }
.culture-icon { font-size: 36px; margin-bottom: 12px; }
.culture-item h3 { font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.culture-item p { font-size: 13px; color: var(--text-light); }
.timeline { position: relative; padding-left: 30px; margin-top: 20px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before { content: ''; position: absolute; left: -24px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.timeline-item .year { font-size: 13px; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.timeline-item p { font-size: 13px; color: var(--text-light); }

/* ===== 联系我们 ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 28px; }
.contact-form h3 { font-size: 18px; color: var(--primary); margin-bottom: 20px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--text); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; font-family: inherit; outline: none; transition: border-color .2s;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--primary); }
.form-row textarea { height: 120px; resize: vertical; }
.form-submit { display: block; width: 100%; padding: 11px; background: var(--primary); color: #fff; border: none; border-radius: 4px; font-size: 14px; cursor: pointer; transition: background .2s; margin-top: 8px; }
.form-submit:hover { background: var(--primary-dark); }
.contact-map { background: var(--bg); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 340px; display: block; border: none; }
.contact-details { margin-top: 20px; }
.contact-detail-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.contact-detail-item:last-child { border-bottom: none; }
.contact-detail-item .icon { width: 36px; height: 36px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.contact-detail-item .text h4 { font-size: 13px; color: var(--text); margin-bottom: 3px; }
.contact-detail-item .text p { font-size: 13px; color: var(--text-light); }

/* ===== 底部Footer ===== */
.site-footer { background: #1a2535; color: rgba(255,255,255,.75); }
.footer-main { padding: 45px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 30px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-col p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.65); }
.footer-col ul li a { display: block; font-size: 13px; color: rgba(255,255,255,.65); padding: 4px 0; transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-col .phone { font-size: 20px; color: var(--accent); font-weight: 700; }
.footer-bottom { text-align: center; padding: 16px 0; font-size: 12px; color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.55); }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 35px; }
.pagination a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 13px; color: var(--text); background: #fff; transition: all .2s;
}
.pagination a:hover, .pagination a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-home { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .main-nav ul { flex-wrap: wrap; }
  .main-nav ul li > a { padding: 10px 14px; font-size: 13px; }
  .banner-slide img { height: 260px; }
  .banner-caption h2 { font-size: 22px; }
  .header-inner { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .culture-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
