:root {
  --brand-green: #2EAD4E;
  --brand-green-dark: #1F8A3A;
  --brand-blue: #1E6FDB;
  --brand-blue-dark: #1557B0;
  --brand-red: #D92222;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --border: #E5E8ED;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --radius: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* 顶部导航 */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 14px 32px; display: flex; align-items: center; gap: 24px;
  position: sticky; top: 0; z-index: 50;
}
.site-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.site-logo img { height: 42px; width: auto; display: block; }
.site-logo-text { font-size: 15px; font-weight: 700; line-height: 1.3; }
.site-logo-text small { display: block; font-size: 10px; font-weight: 400; color: var(--text-secondary); }
.site-nav { display: flex; gap: 24px; margin-left: 10px; }
.site-nav a {
  font-size: 14px; color: var(--text-secondary); padding: 4px 0;
  border-bottom: 2px solid transparent; transition: all .15s;
}
.site-nav a:hover, .site-nav a.active { color: var(--brand-green); border-color: var(--brand-green); }
.header-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.btn {
  padding: 8px 16px; border-radius: 6px; font-size: 13px;
  border: 1px solid var(--border); background: var(--surface); transition: all .15s;
}
.btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.btn-primary { background: var(--brand-green); color: #fff; border-color: var(--brand-green); }
.btn-primary:hover { background: var(--brand-green-dark); color: #fff; }
.btn-danger { color: var(--brand-red); border-color: #FECACA; }
.btn-danger:hover { background: #FEF2F2; border-color: var(--brand-red); }

/* 通用页面容器 */
.page-container { max-width: 1000px; margin: 0 auto; padding: 40px 32px; }
.page-hero {
  background: linear-gradient(135deg, #F0FDF4 0%, #EFF6FF 100%);
  padding: 50px 32px; text-align: center;
}
.page-hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.page-hero p { font-size: 14px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.8; }
.section-title {
  font-size: 19px; font-weight: 600; margin-bottom: 20px;
  padding-left: 12px; border-left: 4px solid var(--brand-green);
}
.section-text { font-size: 14px; line-height: 2; color: var(--text); white-space: pre-line; }
#homeIntro { white-space: pre-line; }
/* 公司介绍段落：首行缩进2字 + 段间距 */
.intro-para { text-indent: 2em; margin: 0 0 14px 0; }
.intro-para:last-child { margin-bottom: 0; }

/* 公司介绍页：主图文字环绕 */
.about-wrap { overflow: hidden; }
.about-img {
  float: right; width: 420px; max-width: 55%; margin: 4px 0 12px 24px;
  border-radius: 8px; box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .about-img { float: none; display: block; width: 100%; max-width: 100%; margin: 0 0 16px; }
}

/* 页脚 */
.site-footer {
  text-align: center; padding: 24px; font-size: 12px;
  color: var(--text-light); border-top: 1px solid var(--border); margin-top: 40px;
}
.site-footer .icp-link { color: var(--text-light); text-decoration: none; }
.site-footer .icp-link:hover { color: var(--primary); text-decoration: underline; }

/* 产品卡片 */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all .2s; cursor: pointer;
}
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--brand-green); }
.product-card .p-img {
  width: 100%; height: 140px; background: #F0F4F8;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 13px;
}
.product-card .p-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .p-body { padding: 14px 16px; }
.product-card .cat-tag {
  display: inline-block; font-size: 11px; color: var(--brand-blue);
  background: #EFF6FF; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
}
.product-card .p-name { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.product-card .p-meta { font-size: 12px; color: var(--text-secondary); line-height: 1.9; }
.product-card .p-meta .label { color: var(--text-light); display: inline-block; min-width: 48px; }
.product-card .p-price {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border);
  font-size: 15px; font-weight: 700; color: var(--brand-red);
}

/* 侧边分类 */
.store-body { display: flex; gap: 24px; max-width: 1400px; margin: 0 auto; padding: 24px 32px; }
.store-sidebar { width: 200px; flex-shrink: 0; }
.store-sidebar h3 { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; padding-left: 12px; }
.cat-list { list-style: none; }
.cat-item {
  padding: 9px 12px; border-radius: 6px; cursor: pointer; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center; transition: all .15s;
}
.cat-item:hover { background: #F0FDF4; color: var(--brand-green-dark); }
.cat-item.active { background: var(--brand-green); color: #fff; }
.cat-item .count { font-size: 11px; background: rgba(0,0,0,.08); padding: 1px 7px; border-radius: 10px; }
.cat-item.active .count { background: rgba(255,255,255,.25); }
.store-main { flex: 1; min-width: 0; }
.store-main-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.store-main-header h2 { font-size: 18px; font-weight: 600; }
.store-main-header .result-count { font-size: 13px; color: var(--text-secondary); }
.store-search {
  flex: 1; max-width: 360px; position: relative;
}
.store-search input {
  width: 100%; padding: 9px 16px 9px 38px;
  border: 1px solid var(--border); border-radius: 20px;
  font-size: 14px; outline: none;
}
.store-search input:focus { border-color: var(--brand-green); }
.store-search::before {
  content: "🔍"; position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%); font-size: 13px;
}

/* Toast */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  background: #1F2937; color: #fff; padding: 10px 20px;
  border-radius: 6px; font-size: 14px; z-index: 300;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* 响应式 */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .store-body { flex-direction: column; padding: 16px; }
  .store-sidebar { width: 100%; }
  .cat-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .cat-item { padding: 6px 12px; font-size: 13px; }
  .site-header { padding: 12px 16px; flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .page-container { padding: 24px 16px; }
}
