/* hnpoe.com 企业站样式 - 工业级网络产品 */
:root {
  --primary: #005bac;
  --primary-dark: #004080;
  --primary-light: #e8f4fd;
  --header-bg: #0a2e4d;
  --header-text: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg: #f5f5f5;
  --bg-white: #ffffff;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --font: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--text); font-size: 14px; line-height: 1.6; background: #fff; }
a { color: var(--primary); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.container {max-width: 1560px;margin: 0 auto;padding: 0 15px;}
.clearfix::after { content: ""; display: block; clear: both; }
.header-top { background: var(--header-bg); color: #fff; padding: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.header-logo { display: flex; align-items: center; }
.header-logo img { height: 40px; }
.header-logo h1 { font-size: 0; margin: 0; }
.header-logo a { display: block; }
.header-right { display: flex; align-items: center; gap: 20px; }
.header-search { display: flex; align-items: center; }
.header-search input { height: 34px; border: none; border-radius: 4px 0 0 4px; padding: 0 12px; font-size: 13px; width: 200px; outline: none; }
.header-search button { height: 34px; border: none; background: var(--primary); color: #fff; border-radius: 0 4px 4px 0; padding: 0 14px; cursor: pointer; font-size: 14px; }
.header-search button:hover { background: var(--primary-dark); }
.header-lang { display: flex; align-items: center; gap: 4px; color: rgba(255,255,255,0.7); font-size: 12px; cursor: pointer; }
.header-lang:hover { color: #fff; }
.header-nav-wrap { background: var(--primary); }
.header-nav { display: flex; max-width: 1200px; margin: 0 auto; padding: 0; list-style: none; }
.header-nav > li { position: relative; }
.header-nav > li > a { display: block; padding: 0 28px; line-height: 48px; color: #fff; font-size: 15px; font-weight: 500; transition: 0.3s; }
.header-nav > li > a:hover, .header-nav > li.active > a { background: var(--primary-dark); }
.header-nav .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 200px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); z-index: 100; border-radius: 0 0 6px 6px; padding: 8px 0; }
.header-nav > li:hover .dropdown-menu { display: block; }
.header-nav .dropdown-menu a { display: block; padding: 10px 20px; color: var(--text); font-size: 14px; transition: 0.2s; }
.header-nav .dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }
.banner-wrap { position: relative; overflow: hidden; }
.banner-wrap .swiper-slide { position: relative; }
.banner-wrap .swiper-slide img { width: 100%; display: block; }
.banner-wrap .swiper-pagination { bottom: 20px !important; }
.banner-wrap .swiper-pagination-bullet { width: 10px; height: 10px; background: rgba(255,255,255,0.5); opacity: 1; }
.banner-wrap .swiper-pagination-bullet-active { background: #fff; }
.section { padding: 60px 0; }
.section-gray { background: var(--bg); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: 1px; }
.section-title .en { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 3px; }
.section-title .line { width: 50px; height: 3px; background: var(--primary); margin: 12px auto 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: 0.3s; text-align: center; padding: 30px 20px; }
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-card .icon { width: 80px; height: 80px; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; }
.product-card .icon img { max-width: 100%; max-height: 100%; }
.product-card h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.product-card p { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.featured-product { display: flex; gap: 40px; align-items: flex-start; padding: 40px 0; }
.featured-product .fp-image { flex: 0 0 400px; }
.featured-product .fp-image img { width: 100%; border-radius: var(--radius-lg); }
.featured-product .fp-content { flex: 1; }
.featured-product .fp-content h3 { font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.featured-product .fp-content p { font-size: 14px; color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.featured-product .fp-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.featured-product .fp-links a { display: inline-block; padding: 6px 16px; background: var(--primary-light); color: var(--primary); border-radius: 20px; font-size: 13px; }
.featured-product .fp-links a:hover { background: var(--primary); color: #fff; }
.featured-product .fp-more { display: inline-block; padding: 8px 28px; background: var(--primary); color: #fff; border-radius: 4px; font-size: 14px; }
.featured-product .fp-more:hover { background: var(--primary-dark); }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.solution-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); cursor: pointer; }
.solution-card img { width: 100%; display: block; transition: 0.5s; }
.solution-card:hover img { transform: scale(1.05); }
.solution-card .label { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 20px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; font-size: 15px; font-weight: 500; }
.news-list {display: grid;grid-template-columns: repeat(1, 1fr);gap: 20px;}
.news-card { display: flex; gap: 16px; padding: 20px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); transition: 0.3s; }
.news-card:hover { box-shadow: var(--shadow); }
.news-card .thumb { flex: 0 0 160px; height: 120px; overflow: hidden; border-radius: var(--radius); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .info { flex: 1; display: flex; flex-direction: column; }
.news-card .info .date { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.news-card .info h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .info h4 a { color: var(--text); }
.news-card .info h4 a:hover { color: var(--primary); }
.news-card .info p { font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card:first-child { flex-direction: column; grid-column: 1 / -1; }
.news-card:first-child .thumb { flex: none; width: 100%; height: 240px; }
.footer { background: #1a1a2e; color: rgba(255,255,255,0.7); padding: 50px 0 0; }
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: #fff; }
.footer-grid {display: grid;grid-template-columns: 2fr 1fr 1fr 1fr 1fr;gap: 30px;padding: 0 15px;}
.footer-col h4 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--primary); }
.footer-col p { font-size: 13px; line-height: 1.8; margin-bottom: 6px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; }
.footer-col ul li a:hover { padding-left: 4px; }
.footer-col .contact-info p { display: flex; align-items: flex-start; gap: 8px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 36px; }
.footer-newsletter { display: flex; margin-top: 12px; }
.footer-newsletter input { flex: 1; height: 36px; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #fff; padding: 0 12px; font-size: 13px; outline: none; }
.footer-newsletter button { height: 36px; border: none; background: var(--primary); color: #fff; padding: 0 14px; cursor: pointer; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding: 16px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 15px; font-size: 12px; }
.page-banner { background: var(--primary); padding: 40px 0; text-align: center; color: #fff; }
.page-banner h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.page-banner .breadcrumb { font-size: 13px; opacity: 0.8; }
.page-banner .breadcrumb a { color: #fff; }
.page-banner .breadcrumb span { margin: 0 6px; }
.detail-section { padding: 40px 0; }
.detail-article { max-width: 900px; margin: 0 auto; }
.detail-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.detail-header h1 { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.detail-meta { font-size: 13px; color: var(--text-muted); }
.detail-meta span { margin-right: 20px; }
.detail-cover { margin-bottom: 24px; text-align: center; }
.detail-cover img { max-width: 100%; border-radius: var(--radius-lg); }
.detail-content { font-size: 15px; line-height: 1.9; color: var(--text); }
.detail-content p { margin-bottom: 16px; }
.page-layout { display: flex; gap: 30px; padding: 40px 0; }
.page-sidebar { flex: 0 0 240px; }
.page-sidebar .sidebar-title { background: var(--primary); color: #fff; padding: 14px 18px; font-size: 16px; font-weight: 600; }
.page-sidebar ul { list-style: none; border: 1px solid var(--border); }
.page-sidebar ul li { border-bottom: 1px solid var(--border); }
.page-sidebar ul li:last-child { border-bottom: none; }
.page-sidebar ul li a { display: block; padding: 12px 18px; color: var(--text); font-size: 14px; transition: 0.2s; }
.page-sidebar ul li a:hover, .page-sidebar ul li.active a { background: var(--primary-light); color: var(--primary); }
.page-main { flex: 1; min-width: 0; }
.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.list-item { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); transition: 0.3s; }
.list-item:hover { box-shadow: var(--shadow); }
.list-item .thumb { flex: 0 0 180px; height: 130px; overflow: hidden; border-radius: var(--radius); }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item .info { flex: 1; }
.list-item .info h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.list-item .info h3 a { color: var(--text); }
.list-item .info h3 a:hover { color: var(--primary); }
.list-item .info .date { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.list-item .info p { font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; color: var(--text); background: #fff; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .header-search input { width: 140px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .news-list { grid-template-columns: 1fr; }
  .news-card:first-child .thumb { height: 180px; }
  .featured-product { flex-direction: column; }
  .featured-product .fp-image { flex: none; width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { flex-direction: column; }
  .page-sidebar { flex: none; width: 100%; }
  .list-grid { grid-template-columns: 1fr; }
  .list-item .thumb { flex: 0 0 120px; height: 90px; }
  .news-card { flex-direction: column; }
  .news-card .thumb { flex: none; width: 100%; height: 180px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
}
