/* Orange Pack 主题样式 —— 复刻 WPPOP 原站视觉
   主色: #f60 橙 / 强调 #FE8907 / 深色文字 #2a3342 / 链接蓝 #066fc0
   字体: Roboto, Arial, Microsoft YaHei */

:root {
  --orange: #f60;
  --orange-light: #FE8907;
  --dark: #2a3342;
  --text: #333;
  --muted: #666;
  --link: #066fc0;
  --border: #e5e5e5;
  --bg-alt: #f6f7fa;
  --white: #fff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Roboto, Arial, "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--link); text-decoration: none; transition: color .25s; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.3; margin: 0 0 .6em; }

.inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部条 ---------- */
.top-bar { background: #202020; color: #ccc; font-size: 12px; }
.top-bar .inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.top-bar a { color: #ccc; margin-left: 10px; }
.top-bar a:hover { color: var(--orange-light); }
.top-bar-lt .top-item { margin-right: 18px; }
.top-bar-lt a { margin-left: 4px; }

/* ---------- Header ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--border); position: relative; z-index: 100; }
.header .inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.logo { margin: 0; }
.logo a { display: flex; align-items: center; gap: 10px; }
.logo img { height: 52px; width: auto; }
.site-name { color: var(--orange); font-size: 24px; white-space: nowrap; }

/* 导航 */
.main-nav { display: flex; align-items: center; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 26px 16px;
  color: var(--dark); font-size: 14px; font-weight: 500;
  text-transform: uppercase;
}
.nav-menu > li > a:hover, .nav-menu > li.current-menu-item > a { color: var(--orange); }
.sub-menu {
  list-style: none; margin: 0; padding: 6px 0;
  position: absolute; left: 0; top: 100%;
  background: var(--white); min-width: 200px;
  border: 1px solid var(--border); border-top: 2px solid var(--orange);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s ease; z-index: 99;
}
.nav-menu > li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 9px 18px; color: var(--dark); font-size: 13px; }
.sub-menu a:hover { color: var(--orange); background: var(--bg-alt); }

.mobi-toggle { display: none; }

/* ---------- 轮播 ---------- */
.slideshow-container { position: relative; overflow: hidden; background: #111; }
.slideshow-container .slide { position: relative; display: none; }
.slideshow-container .slide.active { display: block; }
.slideshow-container .slide > img { width: 100%; height: auto; display: block; }
.slider-dots { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; }
.slider-dots .dot {
  display: inline-block; width: 11px; height: 11px; margin: 0 5px;
  border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer;
  transition: background .25s;
}
.slider-dots .dot.active { background: var(--orange-light); }

/* ---------- 区块标题 ---------- */
.section-row { padding: 56px 0; }
.section-row.alt-bg { background: var(--bg-alt); }
.section-heading { text-align: center; margin-bottom: 36px; }
.section-heading h2, .section-heading .section-h1 { font-size: 30px; text-transform: uppercase; }
.section-heading h2 span, .section-heading .section-h1 span { position: relative; display: inline-block; padding-bottom: 14px; }
.section-heading h2 span::after, .section-heading .section-h1 span::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 52px; height: 3px; background: var(--orange);
}
.heading-sub { color: #999; font-size: 13px; margin: 10px 0 0; }
.empty-tip { text-align: center; color: var(--muted); padding: 30px 0; }

/* ---------- 产品网格 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  margin: 0; background: var(--white);
  border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden; transition: box-shadow .25s, transform .25s;
}
.product-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.1); transform: translateY(-3px); }
.product-card a { display: block; color: inherit; }
.product-cover { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--white); overflow: hidden; }
.product-cover img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .3s; }
.product-card:hover .product-cover img { transform: scale(1.05); }
.product-card figcaption { padding: 12px 14px 16px; border-top: 1px solid var(--border); }
.product-card h3 { font-size: 14px; font-weight: 500; margin: 0; color: var(--dark); text-align: center; }
.product-card:hover h3 { color: var(--orange); }

.section-more { text-align: center; margin-top: 34px; }

/* ---------- 按钮 ---------- */
.btn-orange, .btn-whatsapp {
  display: inline-block; padding: 10px 30px;
  border-radius: 3px; font-size: 14px; color: #fff;
  transition: background .25s;
}
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: var(--orange-light); color: #fff; }
.btn-whatsapp { background: #25a55a; }
.btn-whatsapp:hover { background: #1f8c4c; color: #fff; }

/* ---------- 新闻卡片 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.news-card {
  margin: 0; background: var(--white);
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.news-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.1); transform: translateY(-3px); }
.news-card a { color: inherit; display: block; }
.news-cover { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-card figcaption { padding: 14px 16px 18px; }
.news-card h3 { font-size: 15px; font-weight: 500; margin: 0 0 8px; }
.news-card time { color: #999; font-size: 12px; }
.news-card:hover h3 { color: var(--orange); }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 14px 20px; color: #999; font-size: 13px; }
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { margin: 0 6px; }

/* ---------- 产品详情 ---------- */
.product-detail { display: flex; gap: 36px; padding-top: 20px; padding-bottom: 30px; }
.product-gallery { flex: 1.1; min-width: 0; }
.gallery-main { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--white); }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gallery-thumb { width: 76px; height: 76px; border: 2px solid var(--border); border-radius: 4px; overflow: hidden; cursor: pointer; opacity: .7; transition: all .2s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border-color: var(--orange-light); }

.product-info { flex: 1; min-width: 0; }
.product-title { font-size: 26px; margin-top: 4px; }
.product-meta { margin: 8px 0; font-size: 13px; color: var(--muted); }
.product-meta span { color: var(--dark); font-weight: 500; }
.product-meta a { margin: 0 2px; text-transform: capitalize; }
.product-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.product-desc { padding-bottom: 20px; }
.product-desc h2, .product-gallery-full h2 { font-size: 22px; border-left: 4px solid var(--orange); padding-left: 12px; }
.product-gallery-full { padding-bottom: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid figure { margin: 0; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.gallery-grid img { width: 100%; height: 260px; object-fit: contain; background: #fff; }

/* ---------- 正文 ---------- */
.page-content { padding: 34px 20px 50px; }
.page-title { font-size: 28px; margin-bottom: 22px; }
.entry-content { font-size: 15px; }
.entry-content p { margin: 0 0 1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.4em 0 .6em; }
.entry-content img { border-radius: 4px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.entry-content table th { background: var(--orange-light); color: #fff; padding: 12px 16px; text-align: left; }
.entry-content table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.entry-content table tr:hover td { background: #f9f9f9; }

.post-meta { color: #999; font-size: 13px; margin-bottom: 22px; }
.post-nav { padding-bottom: 40px; color: var(--muted); }
.post-nav p { margin: 4px 0; }

/* ---------- 表单 ---------- */
.inquiry-form { max-width: 640px; }
.inquiry-form p { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.inquiry-form label { width: 110px; flex-shrink: 0; color: var(--dark); font-size: 14px; }
.inquiry-form label em { color: #d33; margin-right: 2px; font-style: normal; }
.inquiry-form input[type=text], .inquiry-form input[type=email], .inquiry-form input[type=tel], .inquiry-form textarea {
  flex: 1; min-width: 0; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 3px;
  font-size: 14px; font-family: inherit;
}
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--orange); }
.inquiry-form .radio-group { display: flex; gap: 20px; }
.inquiry-form .radio-item { width: auto; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.inquiry-form .form-submit { margin-left: 118px; }
.inquiry-form .form-submit .btn-orange { border: 0; cursor: pointer; }
.form-tip { color: var(--muted); font-size: 13px; background: var(--bg-alt); padding: 12px 16px; border-radius: 4px; max-width: 640px; }

/* ---------- 页脚 ---------- */
.footer { background: #23262d; color: #aab; margin-top: 30px; font-size: 13px; }
.footer a { color: #aab; }
.footer a:hover { color: var(--orange-light); }
.footer-widgets-area { padding: 44px 20px 30px; }
.foot-widgets { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 30px; }
.widget { margin-bottom: 18px; }
.widget-title { color: #fff; font-size: 16px; margin-bottom: 14px; position: relative; padding-bottom: 10px; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--orange); }
.textwidget p { margin: 0 0 8px; }
.friend-links { border-top: 1px solid #333742; padding: 14px 0; }
.foot-bar { background: #1c1f25; padding: 14px 0; }
.foot-bar .inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.foot-bar p { margin: 0; }
.foot-bar-rt { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-bar-rt p a { margin-right: 10px; }
.social-networks a { display: inline-block; margin-left: 10px; padding: 3px 10px; border: 1px solid #444; border-radius: 3px; font-size: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
  .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-widgets { grid-template-columns: 1fr 1fr; }
  .product-detail { flex-direction: column; }
  .nav-menu { display: none; }
  .mobi-toggle { display: block; background: none; border: 0; padding: 8px; cursor: pointer; }
  .mobi-toggle span { display: block; width: 24px; height: 3px; background: var(--dark); margin: 5px 0; border-radius: 2px; }
  .main-nav.open .nav-menu {
    display: block; position: absolute; right: 0; top: 100%;
    background: var(--white); width: 230px;
    border: 1px solid var(--border); box-shadow: 0 8px 18px rgba(0,0,0,.12);
    padding: 8px 0; z-index: 200;
  }
  .nav-menu > li > a { padding: 11px 20px; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; display: none; padding-left: 16px; }
  .nav-menu > li:hover .sub-menu { display: block; }
}
@media (max-width: 575px) {
  .product-grid, .news-grid { grid-template-columns: 1fr; }
  .foot-widgets { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .top-bar-lt .top-item:last-child { display: none; }
}
