/* ============================================
   智居云联 - 智能家居企业站 公共样式
   主题：科技绿 + 深色背景
   框架：Layui 2.13.6 覆盖
   ============================================ */

/* ---------- CSS变量 ---------- */
:root {
  --primary: #00C853;
  --primary-dark: #009624;
  --primary-light: #B9F6CA;
  --bg-dark: #0A0E17;
  --bg-card: #111827;
  --bg-surface: #1F2937;
  --text-main: #E5E7EB;
  --text-sub: #9CA3AF;
  --border: #374151;
  --radius: 8px;
  --font-heading: "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-height: 70px;
  --max-width: 1200px;
}

/* ---------- 重置与基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; vertical-align: middle; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}
h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

ul, ol { list-style: none; }

/* ---------- Layui 全局覆盖 ---------- */
/* 按钮 */
.layui-btn { background: var(--primary); border-color: var(--primary); border-radius: var(--radius); font-weight: 600; transition: all .15s; }
.layui-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: scale(1.02); }
.layui-btn-primary { background: transparent; border-color: var(--primary); color: var(--primary); }
.layui-btn-primary:hover { background: rgba(0,200,83,.1); }
.layui-btn-normal { background: var(--bg-surface); border-color: var(--border); color: var(--text-main); }
.layui-btn-normal:hover { border-color: var(--primary); color: var(--primary); }
.layui-btn-warm { background: #FF6D00; border-color: #FF6D00; }

/* 表单 */
.layui-input, .layui-textarea, .layui-select {
  background: var(--bg-surface) !important;
  border-color: var(--border) !important;
  color: var(--text-main) !important;
  border-radius: var(--radius);
  transition: border-color .2s;
}
.layui-input:focus, .layui-textarea:focus, .layui-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(0,200,83,.15);
}
.layui-form-label { color: var(--text-main); }
.layui-form-mid { color: var(--text-sub); }

/* 卡片 */
.layui-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s, border-color .25s, box-shadow .25s;
  overflow: hidden;
}
.layui-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,200,83,.4);
  box-shadow: 0 8px 24px rgba(0,200,83,.08);
}
.layui-card-header { border-bottom-color: var(--border); color: var(--text-main); }

/* 面包屑 */
.layui-breadcrumb { color: var(--text-sub); }
.layui-breadcrumb a { color: var(--text-sub); }
.layui-breadcrumb a:hover { color: var(--primary); }
.layui-breadcrumb span[lay-separator] { color: var(--border); }

/* 分页 */
.layui-laypage a, .layui-laypage span { background: var(--bg-surface); border-color: var(--border); color: var(--text-sub); border-radius: var(--radius); }
.layui-laypage a:hover { color: var(--primary); border-color: var(--primary); }
.layui-laypage .layui-laypage-curr .layui-laypage-em { background: var(--primary); border-radius: var(--radius); }

/* 导航 */
.layui-nav { background: transparent; }
.layui-nav .layui-nav-item a { color: var(--text-main); font-size: 15px; transition: color .2s; }
.layui-nav .layui-nav-item a:hover, .layui-nav .layui-nav-item.layui-this a { color: var(--primary); }
.layui-nav .layui-nav-more { border-top-color: var(--text-sub); }
.layui-nav .layui-nav-itemed > a .layui-nav-more { border-bottom-color: var(--primary); }
.layui-nav-child { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.layui-nav-child dd a { color: var(--text-sub); }
.layui-nav-child dd a:hover { color: var(--primary); background: rgba(0,200,83,.06); }

/* 轮播 */
.layui-carousel { border-radius: var(--radius); }

/* 栅格间距 */
.layui-row > [class*="layui-col-"] { margin-bottom: 16px; }

/* ---------- 自定义头部导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--header-height);
  background: rgba(10,14,23,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.site-header.scrolled { background: rgba(10,14,23,.98); }

.site-header .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

.site-header .logo { display: flex; align-items: center; gap: 10px; }
.site-header .logo img { height: 36px; }
.site-header .logo span {
  font-size: 20px; font-weight: 700; color: var(--primary);
  font-family: var(--font-heading);
}

.site-header .nav-menu { display: flex; align-items: center; gap: 4px; }
.site-header .nav-menu a {
  position: relative; padding: 8px 16px; color: var(--text-main);
  font-size: 15px; transition: color .2s;
}
.site-header .nav-menu a::after {
  content: ""; position: absolute; bottom: 2px; left: 50%; width: 0; height: 2px;
  background: var(--primary); transition: all .25s; transform: translateX(-50%);
}
.site-header .nav-menu a:hover { color: var(--primary); }
.site-header .nav-menu a:hover::after { width: 60%; }
.site-header .nav-menu a.active { color: var(--primary); }
.site-header .nav-menu a.active::after { width: 60%; }

.site-header .header-right { display: flex; align-items: center; gap: 16px; }
.site-header .header-right .cart-icon {
  position: relative; color: var(--text-main); font-size: 20px; cursor: pointer;
  transition: color .2s;
}
.site-header .header-right .cart-icon:hover { color: var(--primary); }
.site-header .header-right .cart-badge {
  position: absolute; top: -6px; right: -8px;
  min-width: 16px; height: 16px; line-height: 16px;
  background: var(--primary); color: #fff; font-size: 11px;
  text-align: center; border-radius: 8px; padding: 0 4px;
}

/* 移动端菜单按钮 */
.site-header .mobile-menu-btn {
  display: none; background: none; border: none; color: var(--text-main);
  font-size: 24px; cursor: pointer; padding: 4px;
}

/* 移动端侧边菜单 */
.mobile-nav-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.6); z-index: 1000;
}
.mobile-nav-overlay.show { display: block; }

.mobile-nav-panel {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--bg-card); z-index: 1001;
  transition: right .3s ease; padding: 20px;
  overflow-y: auto;
}
.mobile-nav-panel.show { right: 0; }
.mobile-nav-panel .close-btn {
  background: none; border: none; color: var(--text-main);
  font-size: 24px; cursor: pointer; float: right;
}
.mobile-nav-panel .nav-links { margin-top: 50px; }
.mobile-nav-panel .nav-links a {
  display: block; padding: 14px 0; color: var(--text-main);
  border-bottom: 1px solid var(--border); font-size: 16px;
  transition: color .2s, padding-left .2s;
}
.mobile-nav-panel .nav-links a:hover { color: var(--primary); padding-left: 8px; }
.mobile-nav-panel .nav-links a.active { color: var(--primary); }

/* ---------- Banner区 ---------- */
.hero-banner {
  position: relative; min-height: 600px; padding-top: var(--header-height);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-banner .hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0d1b2a 50%, #0a1628 100%);
  z-index: 0;
}
.hero-banner .hero-bg canvas { width: 100%; height: 100%; }
.hero-banner .hero-content {
  position: relative; z-index: 1; max-width: var(--max-width);
  padding: 60px 20px;
}
.hero-banner .hero-content h1 {
  font-size: 42px; margin-bottom: 20px; line-height: 1.3;
}
.hero-banner .hero-content h1 .highlight { color: var(--primary); }
.hero-banner .hero-content p {
  font-size: 18px; color: var(--text-sub); max-width: 600px; margin: 0 auto 36px;
}
.hero-banner .hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 内容区通用 ---------- */
.section { padding: 80px 20px; }
.section .section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-title {
  text-align: center; margin-bottom: 50px;
}
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--text-sub); font-size: 16px; }
.section-title .title-line {
  width: 50px; height: 3px; background: var(--primary); margin: 16px auto 0;
  border-radius: 2px;
}

/* ---------- 特色卡片 ---------- */
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,200,83,.4);
  box-shadow: 0 8px 24px rgba(0,200,83,.08);
}
.feature-card .icon-wrap {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: rgba(0,200,83,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.feature-card .icon-wrap i { font-size: 28px; color: var(--primary); }
.feature-card h3 { margin-bottom: 12px; font-size: 18px; }
.feature-card p { color: var(--text-sub); font-size: 14px; line-height: 1.8; }

/* ---------- 产品卡片 ---------- */
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,200,83,.4);
  box-shadow: 0 8px 24px rgba(0,200,83,.08);
}
.product-card .img-wrap {
  position: relative; /*padding-top: 75%;*/ overflow: hidden;
  background: var(--bg-surface);
}
.product-card .img-wrap img {
  position: relative; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s;
}
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .info { padding: 16px; }
.product-card .info h3 { font-size: 16px; margin-bottom: 8px; }
.product-card .info .desc { color: var(--text-sub); font-size: 13px; margin-bottom: 12px; line-height: 1.6; }
.product-card .info .price { color: var(--primary); font-size: 20px; font-weight: 700; }
.product-card .info .price small { font-size: 14px; font-weight: 400; }
.product-card .tag {
  position: absolute; top: auto; left: 12px;
  background: var(--primary); color: #fff; font-size: 12px;
  padding: 2px 10px; border-radius: 4px;
}

/* ---------- 文章卡片 ---------- */
.article-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; transition: transform .25s, border-color .25s;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,200,83,.4);
}
.article-card .img-wrap {
  width: 240px; min-height: 160px; flex-shrink: 0;
  overflow: hidden; background: var(--bg-surface);
}
.article-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.article-card .info { padding: 20px; flex: 1; }
.article-card .info .meta { color: var(--text-sub); font-size: 13px; margin-bottom: 8px; }
.article-card .info h3 { font-size: 18px; margin-bottom: 8px; }
.article-card .info h3 a { color: var(--text-main); transition: color .2s; }
.article-card .info h3 a:hover { color: var(--primary); }
.article-card .info .desc { color: var(--text-sub); font-size: 14px; line-height: 1.6; }

/* ---------- 数据统计区 ---------- */
.stats-section {
  background: linear-gradient(135deg, rgba(0,200,83,.08) 0%, rgba(0,150,36,.04) 100%);
  padding: 60px 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stats-section .stat-item { text-align: center; }
.stats-section .stat-num {
  font-size: 42px; font-weight: 700; color: var(--primary);
  font-family: "Courier New", monospace;
}
.stats-section .stat-label { color: var(--text-sub); font-size: 14px; margin-top: 8px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 60px 20px 0;
}
.site-footer .footer-inner {
  max-width: var(--max-width); margin: 0 auto;
}
.site-footer .footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  padding-bottom: 40px;
}
.site-footer .footer-col h4 {
  color: var(--text-main); font-size: 16px; margin-bottom: 20px;
  position: relative; padding-bottom: 10px;
}
.site-footer .footer-col h4::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: var(--primary);
}
.site-footer .footer-col p, .site-footer .footer-col a {
  color: var(--text-sub); font-size: 14px; line-height: 2;
  display: block; transition: color .2s;
}
.site-footer .footer-col a:hover { color: var(--primary); }
.site-footer .copyright {
  border-top: 1px solid var(--border); padding: 20px 0;
  text-align: center; color: var(--text-sub); font-size: 13px;
}

/* ---------- 页面通用容器 ---------- */
.page-body { padding-top: var(--header-height); min-height: calc(100vh - 200px); }
.page-container { max-width: var(--max-width); margin: 0 auto; padding: 40px 20px; }

/* 面包屑区 */
.breadcrumb-bar {
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.breadcrumb-bar .breadcrumb-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}

/* ---------- 登录/注册页 ---------- */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-dark); padding: 40px 20px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
}
.auth-card .auth-header { text-align: center; margin-bottom: 32px; }
.auth-card .auth-header h2 { margin-bottom: 8px; }
.auth-card .auth-header p { color: var(--text-sub); }
.auth-card .auth-footer { text-align: center; margin-top: 24px; color: var(--text-sub); font-size: 14px; }
.auth-card .auth-footer a { color: var(--primary); }

/* ---------- 表单通用 ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--text-main); font-size: 14px; }
.form-group .layui-input { height: 44px; }
.form-group .form-row { display: flex; gap: 12px; }
.form-group .form-row .layui-input { flex: 1; }
.form-group .form-row .layui-btn { white-space: nowrap; }

/* ---------- 支付相关 ---------- */
.payment-methods .method-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-surface); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px;
  cursor: pointer; transition: border-color .2s;
}
.payment-methods .method-item:hover { border-color: rgba(0,200,83,.4); }
.payment-methods .method-item.selected { border-color: var(--primary); }
.payment-methods .method-item .method-icon { font-size: 28px; }
.payment-methods .method-item .method-name { flex: 1; font-size: 16px; }
.payment-methods .method-item .method-check {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-radius: 50%; position: relative;
}
.payment-methods .method-item.selected .method-check {
  border-color: var(--primary);
}
.payment-methods .method-item.selected .method-check::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 10px; height: 10px; background: var(--primary); border-radius: 50%;
}

/* ---------- 订单完成 ---------- */
.order-success { text-align: center; padding: 60px 20px; }
.order-success .success-icon {
  width: 80px; height: 80px; margin: 0 auto 24px;
  background: rgba(0,200,83,.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.order-success .success-icon i { font-size: 40px; color: var(--primary); }
.order-success h2 { margin-bottom: 12px; }
.order-success p { color: var(--text-sub); margin-bottom: 8px; }

/* ---------- 购物车表格 ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left; padding: 14px 16px; background: var(--bg-surface);
  color: var(--text-sub); font-weight: 600; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.cart-table td {
  padding: 16px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cart-table .product-info { display: flex; align-items: center; gap: 16px; }
.cart-table .product-info img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius); }
.cart-table .quantity-ctrl { display: flex; align-items: center; gap: 0; }
.cart-table .quantity-ctrl button {
  width: 32px; height: 32px; border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--text-main); cursor: pointer;
  font-size: 16px; transition: all .15s;
}
.cart-table .quantity-ctrl button:hover { border-color: var(--primary); color: var(--primary); }
.cart-table .quantity-ctrl input {
  width: 48px; height: 32px; text-align: center; border: 1px solid var(--border);
  border-left: none; border-right: none; background: var(--bg-surface);
  color: var(--text-main); font-size: 14px;
}
.cart-table .remove-btn {
  background: none; border: none; color: var(--text-sub);
  cursor: pointer; font-size: 18px; transition: color .2s;
}
.cart-table .remove-btn:hover { color: #EF4444; }

/* ---------- 购物车侧边栏 ---------- */
.cart-sidebar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  position: sticky; top: calc(var(--header-height) + 20px);
}
.cart-sidebar h3 { margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.cart-sidebar .summary-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  color: var(--text-sub); font-size: 14px;
}
.cart-sidebar .summary-row.total {
  border-top: 1px solid var(--border); margin-top: 12px; padding-top: 16px;
  color: var(--text-main); font-size: 18px; font-weight: 700;
}
.cart-sidebar .summary-row.total .amount { color: var(--primary); font-size: 24px; }

/* ---------- 文章详情 ---------- */
.article-detail { max-width: 800px; margin: 0 auto; }
.article-detail .article-meta {
  display: flex; align-items: center; gap: 20px;
  color: var(--text-sub); font-size: 13px; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.article-detail .article-content { line-height: 2; color: var(--text-main); }
.article-detail .article-content p { margin-bottom: 16px; }
.article-detail .article-content img { border-radius: var(--radius); margin: 20px 0; }

/* ---------- 产品详情 ---------- */
.product-detail .gallery { background: var(--bg-surface); border-radius: var(--radius); overflow: hidden; }
.product-detail .gallery .main-img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
}
.product-detail .gallery .thumb-list { display: flex; gap: 8px; padding: 12px; }
.product-detail .gallery .thumb-list img {
  width: 60px; height: 60px; object-fit: cover; border-radius: 4px;
  border: 2px solid transparent; cursor: pointer; transition: border-color .2s;
}
.product-detail .gallery .thumb-list img.active, .product-detail .gallery .thumb-list img:hover { border-color: var(--primary); }

.product-detail .info-section { padding-left: 32px; }
.product-detail .info-section h1 { margin-bottom: 12px; }
.product-detail .info-section .price-box {
  background: rgba(0,200,83,.06); border: 1px solid rgba(0,200,83,.15);
  border-radius: var(--radius); padding: 20px; margin-bottom: 24px;
}
.product-detail .info-section .price-box .current-price { font-size: 32px; font-weight: 700; color: var(--primary); }
.product-detail .info-section .price-box .original-price {
  font-size: 16px; color: var(--text-sub); text-decoration: line-through; margin-left: 12px;
}
.product-detail .info-section .specs { margin-bottom: 24px; }
.product-detail .info-section .specs .spec-row {
  display: flex; padding: 10px 0; border-bottom: 1px solid var(--border);
}
.product-detail .info-section .specs .spec-label { width: 100px; color: var(--text-sub); flex-shrink: 0; }
.product-detail .info-section .action-btns { display: flex; gap: 12px; }
.product-detail .info-section .action-btns .layui-btn { min-width: 140px; height: 44px; line-height: 44px; font-size: 15px; }

/* ---------- 关于我们 ---------- */
.about-hero { text-align: center; padding: 80px 20px; }
.about-hero h2 { margin-bottom: 16px; }
.about-hero p { color: var(--text-sub); max-width: 700px; margin: 0 auto; font-size: 16px; line-height: 2; }

.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--border); transform: translateX(-50%);
}
.timeline-item { display: flex; justify-content: flex-end; padding: 0 0 40px; position: relative; width: 50%; }
.timeline-item:nth-child(even) { margin-left: 50%; justify-content: flex-start; }
.timeline-item .dot {
  position: absolute; width: 14px; height: 14px; background: var(--primary);
  border-radius: 50%; top: 4px; right: -7px;
}
.timeline-item:nth-child(even) .dot { left: -7px; right: auto; }
.timeline-item .content {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-right: 30px; max-width: 360px;
}
.timeline-item:nth-child(even) .content { margin-left: 30px; margin-right: 0; }

/* ---------- 联系我们 ---------- */
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; text-align: center;
  transition: transform .25s, border-color .25s;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(0,200,83,.4); }
.contact-card .icon { font-size: 32px; color: var(--primary); margin-bottom: 16px; }
.contact-card h4 { margin-bottom: 8px; }
.contact-card p { color: var(--text-sub); }

/* ---------- 响应式 ---------- */
@media screen and (max-width: 992px) {
  .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-banner .hero-content h1 { font-size: 32px; }
  .product-detail .info-section { padding-left: 0; margin-top: 24px; }
  .article-card { flex-direction: column; }
  .article-card .img-wrap { width: 100%; min-height: 180px; }
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; padding-left: 50px; justify-content: flex-start; }
  .timeline-item:nth-child(even) { margin-left: 0; }
  .timeline-item .dot { left: 13px; right: auto; }
  .timeline-item .content { margin-left: 20px; margin-right: 0; }
  .timeline-item:nth-child(even) .content { margin-left: 20px; }
}

@media screen and (max-width: 768px) {
  .site-header .nav-menu { display: none; }
  .site-header .mobile-menu-btn { display: block; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-banner { min-height: 500px; }
  .hero-banner .hero-content h1 { font-size: 26px; }
  .hero-banner .hero-content p { font-size: 15px; }
  .section { padding: 50px 16px; }
  .stats-section .stat-num { font-size: 32px; }
  .cart-table .product-info img { width: 60px; height: 60px; }
  .product-detail .info-section .action-btns { flex-direction: column; }
  .product-detail .info-section .action-btns .layui-btn { width: 100%; }
  .auth-card { padding: 28px 20px; }
}

/* ---------- 辅助类 ---------- */
.text-primary { color: var(--primary) !important; }
.text-sub { color: var(--text-sub) !important; }
.bg-card { background: var(--bg-card); }
.bg-surface { background: var(--bg-surface); }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* 绿色光效装饰 */
.glow-line {
  height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 40px 0; opacity: .5;
}
