/*
Theme Name: 恒丰保险经纪
Theme URI: https://www.bjhfbx.cn
Author: Hengfeng Insurance Brokerage
Author URI: https://www.bjhfbx.cn
Description: 恒丰保险经纪官网主题 - 1:1 还原 bjhfbx.cn，包含首页、产品展示、新闻动态、关于我们、信息披露、详情页等模板。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bjhfbx
Tags: business, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============== Reset ============== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.87);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; }

/* ============== Layout ============== */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============== Header ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
}
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: 60px;
}
.logo img {
  height: 54px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}
.main-nav a,
.main-nav .menu-item a {
  position: relative;
  padding: 0 22px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.54);
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav .menu-item a:hover { color: #2196f3; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: #2196f3; font-weight: 500; }
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: #2196f3;
}
.sub-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.sub-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.87);
  transition: color 0.2s;
}
.sub-nav a:hover { color: #2196f3; }

/* ============== Hero (Home) ============== */
.hero {
  position: relative;
  width: 100%;
  height: 525px;
  overflow: hidden;
  background: #000;
}
.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}
.hero-slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  z-index: 1;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 46px;
  font-weight: 500;
  letter-spacing: 6px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-line {
  width: 320px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  margin: 18px 0 20px;
}
.hero-content p {
  font-size: 16px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.92);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.0);
  color: #fff;
  border: 0;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
  user-select: none;
}
.hero-arrow:hover { background: rgba(0, 0, 0, 0.25); }
.hero-prev { left: 10px; }
.hero-next { right: 10px; }

/* ============== Page Banner ============== */
.page-banner {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f0f0f0;
}

/* ============== Features ============== */
.features {
  padding: 80px 0 70px;
  background: #ffffff;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.feature {
  text-align: center;
  padding: 0 20px;
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { display: block; }
.feature h3 {
  font-size: 22px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.87);
  margin-bottom: 14px;
}
.feature p {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.54);
}

/* ============== Section Title ============== */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.87);
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  padding: 0 26px;
}
.section-title h2::before,
.section-title h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38px;
  height: 1px;
  background: #d0d0d0;
}
.section-title h2::before { left: -50px; }
.section-title h2::after { right: -50px; }
.section-title p {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.54);
  letter-spacing: 1px;
}

/* ============== Products ============== */
.products {
  padding: 20px 0 80px;
  background: #ffffff;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 30px;
  row-gap: 80px;
}
.product-card {
  display: block;
  text-align: center;
  transition: transform 0.25s;
}
.product-card:hover { transform: translateY(-4px); }
.product-img {
  width: 100%;
  aspect-ratio: 266 / 333;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 22px;
}
.product-name {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.87);
  padding: 0 6px;
  line-height: 1.5;
  min-height: 42px;
}
.btn-more {
  display: inline-block;
  padding: 12px 36px;
  border: 1px solid #2196f3;
  color: #2196f3;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s;
}
.btn-more:hover {
  background: #2196f3;
  color: #fff;
}

/* ============== News (home) ============== */
.news {
  padding: 20px 0 90px;
  background: #ffffff;
}
.news-inner {
  display: grid;
  grid-template-columns: 363px 1fr;
  column-gap: 60px;
  align-items: center;
}
.news-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.news-list { width: 100%; }
.news-list li { border-bottom: 1px solid #ececec; }
.news-list li:last-child { border-bottom: 0; }
.news-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  transition: color 0.2s;
}
.news-list a:hover .news-text { color: #2196f3; }
.news-text {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.87);
  line-height: 1.5;
  flex: 1;
  margin-right: 20px;
}
.news-date {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.38);
  flex-shrink: 0;
}

/* ============== News Page (full list) ============== */
.news-page {
  padding: 60px 0 100px;
  background: #fff;
}
.news-page .news-list {
  max-width: 1200px;
  margin: 0 auto;
}
.news-page .news-list li { border-bottom: 1px solid #ececec; }
.news-page .news-list a {
  padding: 24px 0;
}
.news-page .news-text {
  font-size: 16px;
}

/* ============== About Page ============== */
.about-page {
  padding: 60px 0 100px;
  background: #fff;
}
.about-content {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.87);
  line-height: 2;
}
.about-content p {
  margin-bottom: 22px;
  text-indent: 2em;
}
.about-vision {
  margin-top: 30px;
  text-indent: 0;
}
.about-vision .label {
  font-weight: 500;
  margin-bottom: 10px;
}
.about-vision .text {
  text-indent: 2em;
}

/* ============== Info Page ============== */
.info-page {
  background: #fff;
  padding-bottom: 80px;
}
.info-tabs {
  display: flex;
  align-items: center;
  gap: 60px;
  border-bottom: 1px solid #ececec;
  margin-bottom: 50px;
}
.info-tab {
  position: relative;
  height: 56px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.87);
  transition: color 0.2s;
}
.info-tab:hover { color: #2196f3; }
.info-tab.active { color: #2196f3; }
.info-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #2196f3;
}
.info-panel { display: none; }
.info-panel.active { display: block; }
.info-panel .section-title { margin-bottom: 40px; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.87);
}
.info-table thead th {
  background: #f5f5f5;
  font-weight: 500;
  text-align: center;
  padding: 14px 12px;
  border: 1px solid #e0e0e0;
}
.info-table tbody td {
  text-align: center;
  padding: 14px 12px;
  border: 1px solid #e0e0e0;
}
.info-link {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.87);
}
.info-link a {
  color: #2196f3;
  text-decoration: underline;
  margin-left: 6px;
}

/* ============== Detail (Article) Page ============== */
.detail-page {
  padding: 60px 0 80px;
  background: #fff;
}
.detail-header {
  text-align: center;
  margin-bottom: 50px;
}
.detail-title {
  font-size: 28px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.87);
  line-height: 1.4;
  margin-bottom: 16px;
}
.detail-date {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.54);
}
.article {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.87);
  line-height: 1.95;
  max-width: 1200px;
  margin: 0 auto;
}
.article h3 {
  font-size: 15px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.87);
  margin: 28px 0 12px;
}
.article p {
  margin-bottom: 20px;
}

/* ============== Footer ============== */
.site-footer {
  background: #000000;
  color: #ffffff;
  padding: 36px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.9;
  color: #ffffff;
}
.footer-left p, .footer-right p { color: #ffffff; }
.footer-left p { text-align: left; }
.footer-right p { text-align: left; }

/* ============== Responsive ============== */
@media (max-width: 1200px) {
  .container { padding: 0 20px; }
}
@media (max-width: 960px) {
  .main-nav a,
  .main-nav .menu-item a { padding: 0 14px; }
  .sub-nav { gap: 18px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .news-inner { grid-template-columns: 1fr; row-gap: 30px; }
  .page-banner { height: 280px; }
  .info-tabs { gap: 30px; overflow-x: auto; }
}
@media (max-width: 720px) {
  .site-header { height: 64px; }
  .main-nav a,
  .main-nav .menu-item a { padding: 0 8px; font-size: 13px; }
  .sub-nav { display: none; }
  .logo { margin-right: 16px; }
  .logo img { height: 40px; }
  .hero { height: 360px; }
  .hero-content h1 { font-size: 28px; letter-spacing: 2px; }
  .hero-line { width: 200px; margin: 12px 0 12px; }
  .page-banner { height: 200px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .detail-title { font-size: 20px; }
  .info-tabs { gap: 18px; }
  .info-table { font-size: 12px; }
  .info-table thead th, .info-table tbody td { padding: 8px 6px; }
}
