/* ===== 全局变量 ===== */
:root {
  --primary: #1a3a6b;
  --primary-light: #2356a0;
  --accent: #e8b007;
  --accent-hover: #f5c518;
  --text-dark: #1a1a2e;
  --text-gray: #6c757d;
  --bg-light: #f8f9fa;
  --bg-section: #f0f4f8;
  --border-color: #e3e8ef;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26,58,107,0.10);
  --shadow-hover: 0 8px 32px rgba(26,58,107,0.18);
  --transition: 0.3s ease;
}

/* ===== 基础重置 ===== */
* { box-sizing: border-box; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; color: var(--text-dark); }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; }

/* ===== 顶部导航 ===== */
.site-header { position: sticky; top: 0; z-index: 1000; }
.site-header .navbar {
  background: #fff;
  padding: 0.6rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.brand-text {
  font-size: 1.4rem; font-weight: 700; color: var(--primary);
  letter-spacing: 1px;
}
.site-logo { object-fit: contain; width: 100px; }
.footer-logo { width: 150px; object-fit: contain; }
.navbar-nav .nav-link {
  color: var(--text-dark) !important; font-size: 0.95rem;
  padding: 0.5rem 1rem !important; border-radius: 6px;
  transition: all var(--transition);
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
  color: var(--primary) !important; background: var(--bg-section);
}
.navbar-nav .dropdown-menu {
  border: none; border-radius: var(--radius); 
  box-shadow: var(--shadow-hover);
  padding: 0.5rem;
}
.navbar-nav .dropdown-item {
  border-radius: 6px; padding: 0.5rem 1rem;
  font-size: 0.9rem; transition: all var(--transition);
}
.navbar-nav .dropdown-item:hover {
  background: var(--bg-section); color: var(--primary);
}
.nav-phone {
  border-color: var(--primary) !important; color: var(--primary) !important;
  font-weight: 600;
}
.nav-phone:hover { background: var(--primary) !important; color: #fff !important; }

/* ===== Banner轮播 ===== */
.hero-carousel { position: relative; }
.hero-carousel .carousel-item { height: 520px; }
.hero-carousel .carousel-item img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-carousel .carousel-caption {
  bottom: auto; top: 50%; transform: translateY(-50%);
  text-align: left; padding: 0 2rem;
}
.hero-carousel .carousel-caption h2 {
  font-size: 2.4rem; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 0.8rem;
}
.hero-carousel .carousel-caption p {
  font-size: 1.1rem; text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  margin-bottom: 1.5rem;
}
.carousel-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(26,58,107,0.65) 0%, rgba(0,0,0,0.1) 70%);
}
@media (max-width: 768px) {
  .hero-carousel .carousel-item { height: 260px; }
  .hero-carousel .carousel-caption h2 { font-size: 1.4rem; }
  .hero-carousel .carousel-caption p { font-size: 0.9rem; }
}

/* ===== Section 通用样式 ===== */
.section-block { padding: 70px 0; }
.section-block.bg-section { background: var(--bg-section); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 700; color: var(--primary); position: relative; display: inline-block; }
.section-header h2::after {
  content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px; background: var(--accent); border-radius: 2px;
}
.section-header p { margin-top: 1.2rem; color: var(--text-gray); font-size: 1rem; }
.section-more { text-align: center; margin-top: 2.5rem; }

/* ===== 服务项目卡片 ===== */
.service-card {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center; border: 1px solid var(--border-color);
  transition: all var(--transition); height: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.service-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; font-size: 1.8rem; color: #fff;
}
.service-card h4 { font-size: 1.15rem; font-weight: 600; color: var(--primary); margin-bottom: 0.8rem; }
.service-card p { color: var(--text-gray); font-size: 0.9rem; line-height: 1.7; flex: 1; }
.service-card .btn-service {
  margin-top: 1.2rem; padding: 0.45rem 1.5rem;
  background: var(--primary); color: #fff; border-radius: 30px; font-size: 0.88rem;
  border: 2px solid var(--primary); transition: all var(--transition);
}
.service-card .btn-service:hover { background: transparent; color: var(--primary); }

/* ===== 广告位/案例卡片 ===== */
.ad-card, .case-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-color); transition: all var(--transition); height: 100%;
  display: flex; flex-direction: column;
}
.ad-card:hover, .case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-img-wrap { position: relative; overflow: hidden; }
.card-img-wrap img {
  width: 100%; height: 210px; object-fit: cover; transition: transform 0.4s ease;
}
.ad-card:hover .card-img-wrap img, .case-card:hover .card-img-wrap img { transform: scale(1.05); }
.card-category-badge {
  position: absolute; top: 10px; right: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 0.75rem; padding: 4px 12px;
  border-radius: 4px 0 0 4px; font-weight: 500; z-index: 1;
}
.card-body-content { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.card-body-content h5 { font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; }
.card-meta { font-size: 0.82rem; color: var(--text-gray); margin-bottom: 0.4rem; }
.card-meta i { width: 14px; margin-right: 4px; color: var(--primary); }
.card-brief { font-size: 0.85rem; color: var(--text-gray); line-height: 1.6; flex: 1; }
.card-price { 
  font-size: 0.9rem; font-weight: 600; color: #e53935; margin: 0; white-space: nowrap;
}
.card-footer-btns { padding: 0 1.2rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.btn-detail {
  display: inline-block; padding: 0.4rem 1rem; white-space: nowrap;
  background: var(--primary); color: #fff; border-radius: 6px; font-size: 0.85rem;
  border: 2px solid var(--primary); transition: all var(--transition);
}
.btn-detail:hover { background: transparent; color: var(--primary); }

/* ===== 广告位列表页 ===== */
.filter-bar {
  background: #fff; border-radius: var(--radius); padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow); margin-bottom: 2rem;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.filter-bar-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
}
.filter-bar-bottom {
  display: flex; justify-content: flex-end;
}
.filter-bar .filter-label { font-weight: 600; color: var(--primary); margin-right: 0.5rem; }
.filter-btn {
  padding: 0.35rem 1rem; border-radius: 30px; font-size: 0.85rem;
  border: 1px solid var(--border-color); background: #fff; color: var(--text-gray);
  transition: all var(--transition); cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.search-input-wrap { display: flex; gap: 0.5rem; }
.search-input-wrap input { border-radius: 30px; border: 1px solid var(--border-color); padding: 0.35rem 1rem; font-size: 0.88rem; width: 240px; }
.search-input-wrap button { border-radius: 30px; background: var(--primary); color: #fff; border: none; padding: 0.35rem 1.2rem; font-size: 0.88rem; }

/* ===== 广告详情页 ===== */
.ad-detail-header { background: var(--bg-section); padding: 2rem 0; margin-bottom: 2rem; }
.ad-detail-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ad-detail-cover img { width: 100%; height: 380px; object-fit: cover; }
.ad-specs { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.ad-specs .spec-item { padding: 0.6rem 0; border-bottom: 1px solid var(--border-color); display: flex; }
.ad-specs .spec-item:last-child { border-bottom: none; }
.spec-label { font-weight: 600; color: var(--text-gray); width: 90px; flex-shrink: 0; font-size: 0.88rem; }
.spec-value { color: var(--text-dark); font-size: 0.9rem; }
.spec-price { color: #e53935 !important; font-weight: 700; font-size: 1.05rem !important; }
.ad-content { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.ad-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 0.5rem 0; }

/* ===== 咨询问答（微信风格）===== */
.qa-section { background: #e8edf2; border-radius: var(--radius); padding: 1.5rem; }
.qa-header { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin-bottom: 1.2rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--border-color); }
.qa-messages { max-height: 500px; overflow-y: auto; padding: 0.5rem 0; }
.qa-item-q, .qa-item-a { display: flex; align-items: flex-start; margin-bottom: 1.2rem; }
.qa-item-q { flex-direction: row; }
.qa-item-a { flex-direction: row-reverse; }
.qa-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.qa-item-q .qa-avatar { background: #e3f2fd; color: var(--primary); margin-right: 10px; }
.qa-item-a .qa-avatar { background: var(--primary); color: #fff; margin-left: 10px; }
.qa-bubble {
  max-width: 75%; padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.9rem; line-height: 1.7;
  position: relative;
}
.qa-item-q .qa-bubble {
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-radius: 0 12px 12px 12px;
}
.qa-item-a .qa-bubble {
  background: #dcf8c6; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-radius: 12px 0 12px 12px;
}

/* ===== 案例卡片 ===== */
.case-date { font-size: 0.8rem; color: var(--text-gray); }

/* ===== 关于我们 ===== */
.about-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; padding: 4rem 0; text-align: center; }
.about-banner h1 { font-size: 2.2rem; font-weight: 700; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 2rem; text-align: center; border: 1px solid var(--border-color); transition: all var(--transition); height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.contact-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.contact-icon { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; margin: 0 auto 1rem; }

/* ===== 面包屑 ===== */
.page-breadcrumb {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-color);
  padding: 0.55rem 0;
}
.page-breadcrumb .breadcrumb {
  margin: 0; font-size: 0.83rem;
  align-items: center;
}
.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.55rem;
  color: var(--text-gray);
  vertical-align: middle;
}
.page-breadcrumb .breadcrumb-item a {
  color: var(--primary); text-decoration: none;
  transition: color var(--transition);
}
.page-breadcrumb .breadcrumb-item a:hover { color: var(--accent); }
.page-breadcrumb .breadcrumb-item.active { color: var(--text-gray); }
.page-breadcrumb .breadcrumb-item i { font-size: 0.78rem; margin-right: 3px; }

/* ===== 分页 ===== */
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.pagination .page-link { color: var(--primary); }

/* ===== 页脚 ===== */
.site-footer { background: #1a2035; color: rgba(255,255,255,0.85); padding: 3rem 0 0; margin-top: 4rem; }
.footer-title { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 0.8rem; }
.footer-subtitle { font-size: 0.95rem; font-weight: 600; color: var(--accent); margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-intro { color: rgba(255,255,255,0.55); font-size: 0.82rem; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: 0.7rem; font-size: 0.88rem; display: flex; align-items: flex-start; gap: 8px; }
.footer-contact i { color: var(--accent); margin-top: 2px; width: 16px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.8); }
.footer-contact a:hover { color: var(--accent); }
.footer-qrcode { text-align: center; }
.footer-qrcode img { width: 120px; border: 3px solid rgba(255,255,255,0.15); border-radius: 8px; }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 2rem 0 1rem; }
.footer-bottom { padding: 0.8rem 0 1.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.icp-link { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.icp-link:hover { color: var(--accent); }

/* ===== 回到顶部 ===== */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px; background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: all var(--transition); z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--accent); color: var(--text-dark); transform: translateY(-3px); }

/* ===== 关注我们 ===== */
.follow-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; padding: 4rem 0; text-align: center; }
.follow-section h2 { font-size: 1.8rem; font-weight: 700; }
.follow-section p { color: rgba(255,255,255,0.8); }
.follow-qrcode { width: 140px; border: 4px solid rgba(255,255,255,0.3); border-radius: 12px; margin: 1rem auto; display: block; }

/* ===== 数字统计 ===== */
.stats-section { background: var(--bg-section); padding: 3rem 0; }
.stat-item { text-align: center; padding: 1.5rem; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-unit { font-size: 1rem; color: var(--text-gray); font-weight: 600; }
.stat-label { font-size: 0.9rem; color: var(--text-gray); margin-top: 0.3rem; }

/* ===== 相关推荐 ===== */
.related-section { border-top: 1px solid var(--border-color); padding-top: 2.5rem; margin-top: 2.5rem; }
.related-title { font-size: 1.2rem; font-weight: 600; color: var(--primary); margin-bottom: 1.5rem; }

/* ===== 无图片占位 ===== */
.no-image-placeholder {
  width: 100%; height: 210px; background: linear-gradient(135deg, #e8edf5, #cdd5e0);
  display: flex; align-items: center; justify-content: center;
  color: #aab; font-size: 2.5rem;
}

/* ===== 页面内页标题 ===== */
.inner-page-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; padding: 3rem 0; margin-bottom: 0; }
.inner-page-hero h1 { font-size: 2rem; font-weight: 700; margin: 0; }
.inner-page-hero .lead { color: rgba(255,255,255,0.8); font-size: 1rem; margin-top: 0.5rem; }

/* ===== 上一篇 / 下一篇 ===== */
.prev-next-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 0;
}
.prev-next-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.prev-next-item:last-child {
  justify-content: flex-end;
  text-align: right;
}
.prev-next-label {
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}
.prev-next-title {
  font-size: 0.9rem;
  color: var(--text-dark);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
a.prev-next-title:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ===== 响应式 ===== */
@media (max-width: 991px) {
  .navbar-collapse { background: #fff; padding: 1rem; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 8px 16px rgba(0,0,0,0.08); }
  .section-block { padding: 50px 0; }
}
@media (max-width: 576px) {
  .section-header h2 { font-size: 1.5rem; }
  .stat-num { font-size: 2rem; }
  .card-img-wrap img { height: 180px; }
  .no-image-placeholder { height: 180px; }
  .filter-bar { gap: 0.6rem; }
  .filter-bar-bottom { justify-content: flex-start; }
  .search-input-wrap { width: 100%; }
  .search-input-wrap input { flex: 1; width: auto; }
}
