:root {
  --primary: #45c094;
  --primary-dark: #2e8b6e;
  --primary-light: #6ee2b3;
  --accent: #0059ab;
  --accent-light: #6faad4;
  --text: #333;
  --muted: #666;
  --light: #999;
  --bg: #f5f5f5;
  --card: #fff;
  --border: #e5e5e5;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --radius: 6px;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 15px; line-height: 1.7; color: var(--text); background: var(--bg);
}
a { color: var(--text); text-decoration: none; transition: .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* Header */
.header-top {
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
}
.header-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 8px 0;
}
.header-bar .container {
  display: flex; align-items: center; justify-content: space-between;
}
.header-bar-links a {
  color: rgba(255,255,255,.85);
  margin-left: 18px;
  font-size: 13px;
}
.header-bar-links a:hover { color: #fff; }
.header-main {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
}
.logo { display: flex; align-items: center; gap: 16px; }
.logo img { height: 78px; border-radius: 4px; }
.logo-text h1 {
  font-size: 22px; color: var(--primary-dark); letter-spacing: 1px; font-weight: 700;
  line-height: 1.3;
}
.logo-text p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.header-contacts {
  display: flex; align-items: center; gap: 28px;
}
.header-contacts .contact-item {
  display: flex; align-items: center; gap: 12px;
}
.header-contacts .contact-item .icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(69,192,148,.25);
}
.header-contacts .contact-item span {
  display: block; font-size: 12px; color: var(--light); line-height: 1.4;
}
.header-contacts .contact-item strong {
  display: block; font-size: 18px; color: var(--accent); font-weight: 700; line-height: 1.3;
}

/* Nav */
.navbar {
  background: var(--primary);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.nav-menu { display: flex; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 0 28px; line-height: 56px;
  color: #fff; font-size: 15px; font-weight: 500;
}
.nav-menu > li > a:hover, .nav-menu > li > a.active {
  background: rgba(255,255,255,.15); color: #fff;
}
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* Footer */
.footer {
  background: #2b2b2b; color: #aaa; padding: 50px 0 0;
}
.footer a { color: #aaa; }
.footer a:hover { color: var(--primary-light); }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 40px; padding-bottom: 40px;
}
.footer-brand img { height: 80px; margin-bottom: 15px; }
.footer-brand p { font-size: 13px; line-height: 1.9; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-links h4 { font-size: 14px; color: #fff; margin-bottom: 14px; font-weight: 600; }
.footer-links li { font-size: 13px; line-height: 2; }
.footer-qr { display: flex; gap: 14px; }
.footer-qr img { width: 90px; height: 90px; border-radius: 4px; background: #fff; padding: 4px; }
.footer-qr p { text-align: center; font-size: 12px; margin-top: 6px; }
.footer-bottom {
  border-top: 1px solid #3d3d3d; padding: 18px 0; text-align: center; font-size: 13px; color: #888;
}

/* Common page */
.page-banner {
  height: 220px; background-size: cover; background-position: center;
  position: relative; display: flex; align-items: center;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35);
}
.page-banner h2 {
  position: relative; color: #fff; font-size: 32px; font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.page-banner h2 span {
  display: block; font-size: 14px; font-weight: 400; opacity: .9; margin-top: 6px;
}
.page-body { padding: 40px 0 60px; }
.page-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 28px;
}

/* Sidebar */
.sidebar .widget { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 22px; overflow: hidden; }
.widget-title {
  background: var(--primary); color: #fff; padding: 14px 18px; font-size: 16px; font-weight: 600;
}
.widget-title::before {
  content: ""; display: inline-block; width: 4px; height: 16px; background: rgba(255,255,255,.5);
  margin-right: 10px; vertical-align: middle; border-radius: 2px;
}
.widget-menu li { border-bottom: 1px dashed var(--border); }
.widget-menu li:last-child { border-bottom: none; }
.widget-menu a {
  display: block; padding: 13px 18px; font-size: 14px; color: var(--muted);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='10' viewBox='0 0 6 10'%3E%3Cpath fill='%23999' d='M1 0l5 5-5 5V0z'/%3E%3C/svg%3E") no-repeat 190px center;
}
.widget-menu a:hover, .widget-menu a.active { color: var(--primary); background-color: #f8fdfb; padding-left: 22px; }
.widget-contact { padding: 18px; font-size: 14px; line-height: 2; color: var(--muted); }
.widget-contact strong { color: var(--accent); font-size: 18px; }

/* Main content box */
.main-box {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; min-height: 520px;
}
.breadcrumb { font-size: 13px; color: var(--light); margin-bottom: 18px; }
.breadcrumb a { color: var(--light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }
.page-title {
  font-size: 22px; font-weight: 700; color: var(--text);
  border-left: 4px solid var(--primary); padding-left: 14px; margin-bottom: 24px;
}
.page-title small { font-size: 13px; color: var(--light); font-weight: 400; margin-left: 10px; }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 26px; border-radius: var(--radius);
  font-size: 14px; cursor: pointer; transition: .2s; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Slideshow */
.hero-slider { position: relative; height: 460px; overflow: hidden; background: #e8e8e8; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; color: #fff; z-index: 2; max-width: 800px; padding: 0 20px;
}
.slide-caption h2 { font-size: 42px; font-weight: 700; margin-bottom: 16px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.slide-caption p { font-size: 18px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.slider-dots { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; z-index: 3; }
.slider-dots span {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.5); margin: 0 6px; cursor: pointer;
}
.slider-dots span.active { background: var(--primary); }

/* Section */
.section { padding: 60px 0; }
.section-title {
  text-align: center; margin-bottom: 40px;
}
.section-title h2 { font-size: 30px; font-weight: 700; color: var(--text); }
.section-title h2 span { color: var(--primary); }
.section-title p { color: var(--light); font-size: 14px; margin-top: 8px; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px;
  border-bottom: 1px solid var(--border); padding-bottom: 12px;
}
.section-head h3 { font-size: 22px; font-weight: 700; }
.section-head h3 span { font-size: 13px; color: var(--light); margin-left: 10px; font-weight: 400; }
.section-head a { font-size: 13px; color: var(--muted); }
.section-head a:hover { color: var(--primary); }

/* Category quick links */
.cat-bar { background: var(--card); border-bottom: 1px solid var(--border); padding: 18px 0; }
.cat-bar .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cat-bar a {
  padding: 8px 22px; border: 1px solid var(--border); border-radius: 30px;
  font-size: 14px; color: var(--muted); background: #fff;
}
.cat-bar a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.product-card .thumb { position: relative; height: 220px; overflow: hidden; background: #f8f8f8; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .info { padding: 18px; }
.product-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.product-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.product-card .meta { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.product-card .tag { font-size: 12px; color: var(--primary); background: #eaf9f2; padding: 2px 10px; border-radius: 20px; }

/* News list */
.news-list li { border-bottom: 1px dashed var(--border); padding: 16px 0; display: flex; gap: 16px; }
.news-list li:last-child { border-bottom: none; }
.news-date {
  width: 60px; height: 60px; background: var(--primary); color: #fff; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.news-date strong { font-size: 20px; line-height: 1; }
.news-date span { font-size: 12px; margin-top: 2px; }
.news-info h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.news-info p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.product-gallery { background: #f8f8f8; border-radius: var(--radius); overflow: hidden; }
.product-summary h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.product-summary .spec { margin: 20px 0; }
.product-summary .spec li {
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--muted);
}
.product-summary .spec li strong { color: var(--text); display: inline-block; width: 90px; }
.product-content { margin-top: 30px; line-height: 1.9; color: var(--muted); }
.product-content p { margin-bottom: 14px; }
.product-content img { border-radius: 4px; }
.product-content video,
.product-content iframe { max-width: 100%; border-radius: 8px; display: block; }
.product-content video { height: auto; }
.product-content .media-wrap { margin: 18px 0; border-radius: 8px; overflow: hidden; background: #000; }
.product-content .media-wrap iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: none; }
.pager { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; }

/* 产品视频角标 */
.product-card { position: relative; }
.product-card .video-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(0,0,0,.65); color: #fff; font-size: 12px;
  padding: 4px 10px; border-radius: 20px; display: flex; align-items: center; gap: 4px;
}
.product-card .video-badge::before { content: "▶"; font-size: 10px; }

/* 分页组件 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span.current, .pagination span.ellipsis {
  display: inline-block; min-width: 34px; padding: 7px 11px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; color: var(--text); text-align: center; transition: all .2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination span.current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pagination span.ellipsis { border: none; color: var(--light); }

/* About page */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-bottom: 40px; }
.about-intro img { border-radius: var(--radius); }
.about-intro p { margin-bottom: 16px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-item { background: #f8fdfb; padding: 24px 18px; border-radius: var(--radius); text-align: center; }
.feature-item .icon {
  width: 56px; height: 56px; background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 12px;
}
.feature-item h4 { font-size: 16px; margin-bottom: 8px; }
.feature-item p { font-size: 13px; color: var(--muted); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-info li { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-info .icon { width: 44px; height: 44px; background: #eaf9f2; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-info h5 { font-size: 15px; margin-bottom: 2px; }
.contact-info p { font-size: 13px; color: var(--muted); }
.map-placeholder {
  height: 280px; background: #e8e8e8; border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center; color: #999; font-size: 14px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px;
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group .req { color: #d33; margin-left: 3px; }

/* Contact page - optimized layout */
.contact-single { display: grid; gap: 24px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.contact-card h3 {
  font-size: 17px;
  color: var(--primary-dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-list h5 { font-size: 14px; margin-bottom: 4px; color: var(--text); }
.contact-list p { font-size: 14px; color: var(--muted); }
.work-time { color: var(--text); font-size: 15px; font-weight: 500; }

/* Message page */
.message-intro {
  background: #f8fdfb;
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}
.message-form-wrap { background: #fff; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.notice-list { list-style: decimal; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 2; }
.message-query {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.query-form { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.query-form .form-group { flex: 1; min-width: 220px; margin-bottom: 0; }
.query-form .form-group input { max-width: 360px; }
.my-message-list { display: grid; gap: 14px; }
.my-message-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}
.my-message-card .time { font-size: 12px; color: var(--light); margin-bottom: 8px; }
.my-message-card .q { color: var(--text); line-height: 1.7; margin-bottom: 10px; }
.my-message-card .a {
  background: #f6faf9;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: #334;
  border-left: 3px solid var(--primary);
}
.my-message-card .a strong { color: var(--primary-dark); }
.no-result { color: var(--muted); font-size: 14px; }

/* Split section on homepage */
.split-section { background: var(--card); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.video-box { border-radius: var(--radius); overflow: hidden; background: #000; }
.video-box video { width: 100%; display: block; }

/* Responsive */
@media (max-width: 991px) {
  .header-main { flex-wrap: wrap; gap: 14px; padding: 14px 20px; }
  .logo img { height: 64px; }
  .logo-text h1 { font-size: 18px; }
  .header-contacts { width: 100%; justify-content: flex-start; gap: 20px; }
  .header-contacts .contact-item strong { font-size: 16px; }
  .header-bar .container { flex-direction: column; gap: 4px; text-align: center; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: var(--primary); flex-direction: column;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero-slider { height: 320px; }
  .slide-caption h2 { font-size: 26px; }
  .slide-caption p { font-size: 15px; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail, .about-intro, .contact-grid, .split-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .product-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .hero-slider { height: 260px; }
  .slide-caption h2 { font-size: 22px; }
}
