﻿:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body {
  margin: 0;
  padding: 28px 14px;
  background: #ffffff;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap, div[style*="max-width:980px"] {
  max-width: 1080px !important;
  margin: 0 auto !important;
}

.logo, .site-logo img, img[style*="max-width:240px"] {
  max-width: 220px !important;
  height: auto;
  margin-bottom: 12px;
}

.box,
.content,
main.box,
div[style*="border:1px solid #e5e5e5"] {
  background: var(--panel) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px !important;
}

h1 { margin: 0 0 14px; font-size: 28px; }
h2 { margin: 14px 0 8px; font-size: 20px; }
p { line-height: 1.75; }

.entry a,
.top-nav a {
  display: inline-block;
  margin: 6px 8px 6px 0;
  padding: 8px 12px;
  border: 1px solid #dbe4ff;
  border-radius: 10px;
  background: #f8fbff;
}

/* keep sprite nav visible on product pages */
.top-nav.home-nav a {
  margin: 0 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: url("../images/Home/nav.zh.png") no-repeat 0 0;
  height: 18px;
  text-indent: -9999px;
  overflow: hidden;
}

.top-nav.home-nav #link-home { width: 80px; background-position: 0 -18px; }
.top-nav.home-nav #link-aboutus { width: 100px; background-position: 0 -54px; }
.top-nav.home-nav #link-technology { width: 100px; background-position: 0 -90px; }
.top-nav.home-nav #link-product { width: 120px; background-position: 0 -126px; }
.top-nav.home-nav #link-news { width: 100px; background-position: 0 -198px; }
.top-nav.home-nav #link-app { width: 126px; background-position: 0 -162px; }
.top-nav.home-nav #link-home:hover, .top-nav.home-nav #link-home.active { background-position: 0 0; }
.top-nav.home-nav #link-aboutus:hover, .top-nav.home-nav #link-aboutus.active { background-position: 0 -36px; }
.top-nav.home-nav #link-technology:hover, .top-nav.home-nav #link-technology.active { background-position: 0 -72px; }
.top-nav.home-nav #link-product:hover, .top-nav.home-nav #link-product.active { background-position: 0 -108px; }
.top-nav.home-nav #link-news:hover, .top-nav.home-nav #link-news.active { background-position: 0 -180px; }
.top-nav.home-nav #link-app:hover, .top-nav.home-nav #link-app.active { background-position: 0 -144px; }

.item,
.product-list li {
  border: 1px solid #edf1f7;
  border-radius: 10px;
  padding: 12px !important;
  margin: 10px 0 !important;
  background: #fbfdff;
}

/* list page visual upgrades */
#rows {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}

#rows li[data-row],
.entry-list li,
.product-list li {
  position: relative;
  border: 1px solid #e3ebfb;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 12px 14px 12px 44px !important;
  margin: 10px 0 !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#rows li[data-row]:hover,
.entry-list li:hover,
.product-list li:hover {
  transform: translateY(-2px);
  border-color: #bfd3ff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14);
}

#rows li[data-row]::before,
.entry-list li::before,
.product-list li::before {
  content: "⛽";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: #e8f0ff;
  color: #1d4ed8;
  font-size: 13px;
}

#rows li[data-row] a,
.entry-list li a,
.product-list li a {
  color: #1f2937;
  font-weight: 600;
  text-decoration: none;
}

#rows li[data-row] a:hover,
.entry-list li a:hover,
.product-list li a:hover {
  color: #1d4ed8;
  text-decoration: none;
}

#rows li[data-row] a::after {
  content: " 产品";
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ecf3ff;
  color: #3559a6;
  font-size: 11px;
  font-weight: 500;
}

.toolbar,
.pager { margin-top: 14px !important; }

.pager {
  padding: 10px 12px;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  background: #f8fbff;
}

.pager #info {
  font-weight: 600;
  color: #1e3a8a;
}

button {
  border: 1px solid #c9d6ff !important;
  background: #f8fbff !important;
  border-radius: 8px;
  padding: 6px 12px !important;
}

button.active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.pager button:hover:not(:disabled) {
  border-color: #8fb0ff !important;
  background: #edf4ff !important;
}

.pager button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.spec {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
}

.spec th,
.spec td {
  border: 1px solid var(--border) !important;
  padding: 10px !important;
}

.spec th {
  background: #f3f6fb;
  font-weight: 600;
}

/* keep long parameter text readable on desktop and mobile */
.spec td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.spec td:first-child {
  width: 110px;
  white-space: nowrap;
}

.spec td:last-child {
  font-size: 14px;
}

.spec-toggle-btn {
  margin-top: 10px;
  display: inline-block;
  border: 1px solid #c9d6ff;
  background: #f8fbff;
  border-radius: 8px;
  padding: 6px 12px;
  color: #1e3a8a;
  cursor: pointer;
}

.spec-toggle-btn:hover {
  border-color: #8fb0ff;
  background: #edf4ff;
}

/* image-focused beautification */
.detail-image {
  margin-top: 18px;
}

.product-photo-card {
  position: relative;
  margin: 0;
  border-radius: 16px;
  border: 1px solid #dbe7ff;
  background: linear-gradient(145deg, #f8fbff, #eef4ff);
  padding: 14px;
  overflow: hidden;
}

.product-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
  pointer-events: none;
}

.product-photo-card img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.14);
  transition: transform .35s ease, box-shadow .35s ease;
}

.product-photo-card:hover img {
  transform: scale(1.03);
  box-shadow: 0 20px 36px rgba(37, 99, 235, 0.2);
}

.product-photo-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 768px) {
  .box,
  .content,
  main.box,
  div[style*="border:1px solid #e5e5e5"] {
    padding: 14px !important;
  }

  .spec th,
  .spec td {
    padding: 8px !important;
    font-size: 13px;
    vertical-align: top;
  }

  .spec td:first-child {
    width: 86px;
    font-weight: 600;
  }

  .spec td:last-child {
    font-size: 13px;
    line-height: 1.75;
  }

  .spec-toggle-btn {
    width: 100%;
    margin-top: 8px;
    padding: 8px 10px;
    font-size: 13px;
  }
}

