﻿/* === Hiklife Technology - English Site CSS === */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; color: #333; background: #fff; line-height: 1.6; }
a { color: #3b3b3b; text-decoration: none; font-size: 13px; }
a:hover { color: #007cd9; }
img { border: 0; max-width: 100%; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; }

/* Top Bar */
.top { margin: 0 auto; background: #f8f8f8; border-bottom: 1px solid #e5e5e5; }
.top-bar { margin: 0 auto; max-width: 1200px; display: flex; align-items: center; height: 75px; padding: 0 15px; }
.logo { flex: 0 0 292px; padding-left: 5px; }
.logo img { height: 55px; }
.top-right { flex: 1; display: flex; flex-direction: column; }
.top-row1 { display: flex; justify-content: flex-end; align-items: center; padding-top: 8px; gap: 12px; }
.top-row1 .tagline { color: #007cd9; font-size: 13px; font-weight: bold; }
.top-row1 .top-links { color: #707070; font-size: 12px; }
.top-row1 .top-links a { color: #707070; font-size: 12px; }
.top-row1 .top-links a:hover { color: #007cd9; }
.search-box { display: flex; align-items: center; }
.search-box input { width: 144px; height: 28px; border: 1px solid #ddd; padding: 0 8px; font-size: 12px; color: #999; border-radius: 3px 0 0 3px; }
.search-box button { height: 28px; border: none; background: #007cd9; color: #fff; padding: 0 12px; font-size: 13px; cursor: pointer; border-radius: 0 3px 3px 0; }
.search-box button:hover { background: #005a9e; }

/* Navigation */
.top-row2 { display: flex; justify-content: flex-end; padding-top: 8px; }
.top-row2 nav ul { display: flex; gap: 5px; align-items: center; }
.top-row2 nav ul li { padding: 8px 6px; }
.top-row2 nav ul li.sep { padding: 0; color: #ddd; font-size: 14px; }
.top-row2 nav ul li a { color: #000; font-size: 15px; font-weight: 500; padding: 6px 12px; border-radius: 3px; transition: all 0.2s; }
.top-row2 nav ul li a:hover, .top-row2 nav ul li a.active { color: #007cd9; background: #e8f4fd; }

/* Banner */
.banner { width: 100%; overflow: hidden; position: relative; }
.banner-slider { position: relative; width: 100%; height: 400px; overflow: hidden; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease; }
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 400px; object-fit: cover; }
.banner-dots { position: absolute; bottom: 20px; width: 100%; text-align: center; z-index: 10; }
.banner-dots span { display: inline-block; width: 12px; height: 12px; background: rgba(255,255,255,0.6); border-radius: 50%; margin: 0 5px; cursor: pointer; }
.banner-dots span.active { background: #007cd9; }

/* Section Titles */
.section-title { text-align: center; padding: 40px 0 20px; }
.section-title h2 { font-size: 28px; color: #0074b8; font-weight: 700; }
.section-title .line { width: 60px; height: 3px; background: #007cd9; margin: 10px auto 0; border-radius: 2px; }

/* Feature Cards */
.features { max-width: 1200px; margin: 0 auto; padding: 20px 15px 40px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 25px; text-align: center; transition: box-shadow 0.3s; }
.feature-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.feature-card img { width: 130px; height: 100px; object-fit: cover; border: 1px solid #eee; padding: 3px; border-radius: 4px; margin-bottom: 15px; }
.feature-card h3 { font-size: 18px; color: #0074b8; margin-bottom: 10px; }
.feature-card h3 a { font-size: 18px; color: #0074b8; }
.feature-card h3 a:hover { color: #ff0000; }
.feature-card p { font-size: 13px; color: #666; line-height: 1.8; }

/* Main Content Area */
.main-content { max-width: 1200px; margin: 0 auto; padding: 20px 15px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* Panel Styles */
.panel { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; }
.panel-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #f8fafc; border-bottom: 1px solid #e8e8e8; }
.panel-header h3 { font-size: 16px; color: #0074b8; display: flex; align-items: center; gap: 8px; }
.panel-header .more { font-size: 12px; color: #007cd9; }
.panel-header .more:hover { color: #ff0000; }
.panel-body { padding: 10px 18px; }
.panel-body .news-list li { padding: 8px 0; border-bottom: 1px dotted #eee; font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
.panel-body .news-list li span.date { color: #999; font-size: 11px; white-space: nowrap; margin-left: 10px; }
.panel-body .news-list li a { color: #3e3e3e; font-size: 12px; }
.panel-body .news-list li a:hover { color: #007cd9; }

/* Product Grid in Panel */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.product-grid .prod-item { text-align: center; padding: 8px; }
.product-grid .prod-item img { width: 113px; height: 89px; object-fit: contain; border: 1px solid #eee; padding: 2px; border-radius: 3px; }
.product-grid .prod-item a { font-size: 11px; color: #333; display: block; margin-top: 5px; line-height: 1.4; }
.product-grid .prod-item a:hover { color: #f00; }

/* Contact Panel */
.contact-panel .contact-info { padding: 15px 20px; line-height: 2; font-size: 14px; }
.contact-panel .contact-info .qq-link img { vertical-align: middle; margin-left: 5px; }
.contact-panel .contact-more { text-align: center; padding: 10px; }
.contact-panel .contact-more img { max-width: 180px; border-radius: 4px; }

/* Inner Page Layout */
.inner-layout { max-width: 1200px; margin: 0 auto; padding: 20px 15px; display: grid; grid-template-columns: 240px 1fr; gap: 30px; }

/* Sidebar */
.sidebar { }
.sidebar-title { background: #0074b8; color: #fff; padding: 12px 20px; font-size: 16px; font-weight: bold; border-radius: 5px 5px 0 0; }
.sidebar-menu { background: #f8fafc; border: 1px solid #e8e8e8; border-top: 0; border-radius: 0 0 5px 5px; padding: 10px 0; }
.sidebar-menu .cat-title { padding: 8px 20px; font-size: 13px; color: #007cd9; font-weight: bold; display: flex; align-items: center; gap: 6px; }
.sidebar-menu .cat-title a { color: #007cd9; font-size: 13px; }
.sidebar-menu .cat-title a:hover { color: #333; }
.sidebar-menu .sub-item { padding: 5px 20px 5px 35px; font-size: 12px; }
.sidebar-menu .sub-item a { font-size: 12px; color: #333; }
.sidebar-menu .sub-item a:hover { color: #007cd9; }
.sidebar-contact { margin-top: 20px; }
.sidebar-contact-title { background: #0074b8; color: #fff; padding: 10px 20px; font-size: 15px; font-weight: bold; border-radius: 5px 5px 0 0; }
.sidebar-contact-body { background: #f8fafc; border: 1px solid #e8e8e8; border-top: 0; border-radius: 0 0 5px 5px; padding: 15px 20px; font-size: 13px; line-height: 2; }
.sidebar-contact-body .qq-link img { vertical-align: middle; }
.sidebar-contact-body .btn-more { display: block; text-align: center; margin-top: 10px; }
.sidebar-contact-body .btn-more img { max-width: 180px; border-radius: 4px; }
.sidebar-bottom { height: 8px; background: #f0f0f0; border-radius: 0 0 5px 5px; margin-bottom: 20px; }

/* Content Area */
.content-area { }
.content-header { display: flex; justify-content: space-between; align-items: center; border: 1px solid #d2d2d2; border-radius: 5px 5px 0 0; overflow: hidden; }
.content-header .ch-title { background: #0074b8; color: #fff; padding: 8px 20px; font-size: 15px; }
.content-header .ch-breadcrumb { padding: 8px 15px; font-size: 12px; color: #666; }
.content-header .ch-breadcrumb a { font-size: 12px; color: #000; }
.content-header .ch-breadcrumb a:hover { color: #007cd9; }
.content-header .ch-breadcrumb span { color: #007cd9; }
.content-body { border: 1px solid #d2d2d2; border-top: 0; border-radius: 0 0 5px 5px; padding: 20px; line-height: 1.8; font-size: 13px; min-height: 400px; }

/* Content body inner elements */
.content-body p { margin-bottom: 12px; }
.content-body .about-imgs { margin-top: 20px; }
.content-body .about-imgs img { max-width: 100%; border-radius: 5px; margin-bottom: 10px; }

/* Product List */
.product-list-item { display: flex; gap: 20px; padding: 15px 0; border-bottom: 1px solid #eee; }
.product-list-item .pl-img { flex: 0 0 130px; }
.product-list-item .pl-img img { width: 130px; height: 110px; object-fit: contain; border: 1px solid #e0e0e0; padding: 5px; border-radius: 4px; }
.product-list-item .pl-info { flex: 1; }
.product-list-item .pl-info h3 { font-size: 14px; color: #007cd9; margin-bottom: 8px; }
.product-list-item .pl-info h3 a { font-size: 14px; color: #007cd9; }
.product-list-item .pl-info p { font-size: 12px; color: #666; line-height: 1.6; }
.product-list-item .pl-more { display: flex; align-items: flex-end; padding-bottom: 5px; }
.product-list-item .pl-more a { font-size: 12px; color: #007cd9; white-space: nowrap; }

/* Case / Solution Grid */
.item-list li { padding: 10px 20px; border-bottom: 1px dotted #ddd; font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
.item-list li span.date { color: #999; font-size: 11px; white-space: nowrap; margin-left: 10px; }
.item-list li a { font-size: 12px; color: #3b3b3b; }
.item-list li a:hover { color: #007cd9; }

/* Pagination */
.pagination { text-align: center; padding: 20px 0; }
.pagination a, .pagination span { display: inline-block; padding: 5px 12px; margin: 0 3px; border: 1px solid #ddd; font-size: 12px; color: #333; border-radius: 3px; }
.pagination span.current { background: #007cd9; color: #fff; border-color: #007cd9; }
.pagination a:hover { background: #e8f4fd; border-color: #007cd9; }

/* Footer */
.footer { background: #2c3e50; color: #aaa; text-align: center; padding: 25px 0; margin-top: 30px; font-size: 12px; }
.footer a { color: #aaa; font-size: 12px; }
.footer a:hover { color: #fff; }
.footer .footer-links { margin-top: 8px; }
.footer .footer-links a { margin: 0 8px; }

/* Detail Page Styles */
.detail-title { color: #0074b8; margin-bottom: 5px; font-size: 22px; font-weight: 700; }
.detail-date { color: #888; font-size: 13px; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.detail-back { margin-top: 30px; padding-top: 15px; border-top: 1px solid #eee; }
.detail-back a { color: #007cd9; font-size: 14px; }
.detail-content { font-size: 14px; line-height: 1.9; color: #333; }
.detail-content h3 { color: #0074b8; margin: 25px 0 12px; font-size: 17px; border-left: 3px solid #0074b8; padding-left: 12px; }
.detail-content p { margin-bottom: 14px; }
.detail-content ul { list-style: disc; padding-left: 20px; margin: 10px 0; }
.detail-content ul li { line-height: 2; padding: 3px 0; }
.detail-content .detail-img { text-align: center; margin: 20px 0; }
.detail-content .detail-img img { max-width: 500px; width: 100%; border: 1px solid #eee; padding: 10px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.detail-content .spec-table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.detail-content .spec-table td { padding: 10px 12px; border: 1px solid #e0e0e0; }
.detail-content .spec-table td:first-child { font-weight: bold; background: #f0f6fb; width: 30%; }

/* Responsive */
@media (max-width: 1024px) {
  .main-content { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .inner-layout { grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px) {
  .top-bar { flex-direction: column; height: auto; padding: 10px; }
  .top-row1 { flex-wrap: wrap; justify-content: center; }
  .top-row2 nav ul { flex-wrap: wrap; justify-content: center; }
  .main-content { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .inner-layout { grid-template-columns: 1fr; }
  .banner-slider { height: 250px; }
  .banner-slide img { height: 250px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Floating Contact Buttons */
.floating-contact { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.floating-contact a, .floating-contact .fc-btn { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.25); transition: all 0.3s ease; position: relative; }
.floating-contact a:hover, .floating-contact .fc-btn:hover { transform: scale(1.12); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.fc-whatsapp { background: #25D366; }
.fc-wechat { background: #07C160; }
.fc-label { position: absolute; right: 62px; background: #333; color: #fff; padding: 7px 14px; border-radius: 5px; font-size: 13px; font-weight: 400; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.2s ease; }
.floating-contact a:hover .fc-label, .floating-contact .fc-btn:hover .fc-label { opacity: 1; visibility: visible; }
.fc-wechat-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.55); z-index: 10000; }
.fc-wechat-overlay.show { display: flex; justify-content: center; align-items: center; }
.fc-wechat-dialog { background: #fff; border-radius: 14px; padding: 35px 30px 25px; text-align: center; max-width: 360px; width: 90%; box-shadow: 0 12px 48px rgba(0,0,0,0.35); position: relative; }
.fc-wechat-dialog .close-dlg { position: absolute; top: 8px; right: 14px; background: none; border: none; font-size: 26px; color: #aaa; cursor: pointer; line-height: 1; }
.fc-wechat-dialog h3 { color: #07C160; margin-bottom: 8px; font-size: 19px; }
.fc-wechat-dialog .wc-id { font-size: 22px; font-weight: 700; color: #333; margin: 15px 0; padding: 14px; background: #f7f7f7; border-radius: 8px; user-select: all; cursor: text; }
.fc-wechat-dialog .wc-copy { background: #07C160; color: #fff; border: none; padding: 10px 28px; border-radius: 6px; font-size: 14px; cursor: pointer; }
@media (max-width: 768px) { .floating-contact { right: 6px; gap: 6px; } .floating-contact a, .floating-contact .fc-btn { width: 44px; height: 44px; font-size: 11px; } .fc-label { display: none; } }
