/* ============================
   广西淳盈科技有限公司 - 商城网站
   全局样式 PC+H5 自适应
   ============================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #c8161d;
  --primary-dark: #a01016;
  --accent: #ff6b35;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --border: #e8e8e8;
  --bg: #f5f5f7;
  --bg-white: #fff;
  --success: #52c41a;
  --warning: #faad14;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 14px;
}

a { text-decoration: none; color: inherit; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

/* ========== 顶部条 ========== */
.top-bar {
  background: #f7f7f7;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.top-bar-left { display: flex; gap: 16px; align-items: center; }
.top-bar-left .phone { color: var(--primary); font-weight: 600; }
.top-bar-right { display: flex; gap: 16px; align-items: center; }
.top-bar-right a { color: var(--text-light); }
.top-bar-right a:hover { color: var(--primary); }
.top-bar-right .divider { color: #ddd; }

/* ========== 头部 ========== */
.header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.04); position: sticky; top: 0; z-index: 100; }
.header-main { display: flex; align-items: center; padding: 18px 0; gap: 30px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 20px;
}
.logo-text { line-height: 1.2; }
.logo-text .cn { font-size: 18px; font-weight: 700; color: var(--text); }
.logo-text .en { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; }

/* 搜索框 */
.search-box { flex: 1; max-width: 520px; display: flex; }
.search-box input {
  flex: 1; height: 42px; padding: 0 16px;
  border: 2px solid var(--primary); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none; font-size: 14px;
}
.search-box button {
  width: 90px; height: 42px; background: var(--primary); color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px; font-weight: 600; transition: background .2s;
}
.search-box button:hover { background: var(--primary-dark); }

.header-actions { display: flex; gap: 20px; align-items: center; }
.header-action { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; position: relative; }
.header-action .icon { font-size: 22px; }
.header-action .label { font-size: 12px; color: var(--text-light); }
.header-action:hover .label { color: var(--primary); }
.cart-badge {
  position: absolute; top: -4px; right: -8px;
  background: var(--primary); color: #fff;
  min-width: 18px; height: 18px; border-radius: 9px;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ========== 主导航 ========== */
.main-nav { background: #fff; border-top: 1px solid var(--border); }
.main-nav .container { display: flex; align-items: center; height: 48px; position: relative; }
.nav-list { display: flex; gap: 8px; flex: 1; }
.nav-list a {
  display: block; padding: 0 18px; line-height: 48px;
  font-size: 15px; font-weight: 500; color: var(--text);
  border-bottom: 3px solid transparent; transition: all .2s;
}
.nav-list a:hover, .nav-list a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ========== 分类侧栏 ========== */
.category-sidebar {
  width: 220px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.category-sidebar h3 {
  background: var(--primary); color: #fff; padding: 14px 16px;
  font-size: 16px; display: flex; align-items: center; gap: 8px;
}
.category-list li { position: relative; }
.category-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #f5f5f5;
  font-size: 14px; transition: all .2s;
}
.category-list a:hover { background: #fff7f7; color: var(--primary); padding-left: 20px; }
.category-list a .arrow { color: var(--text-muted); }

/* ========== 轮播图 ========== */
.banner {
  position: relative; flex: 1; height: 360px; border-radius: var(--radius);
  overflow: hidden; background: #ddd;
}
.banner-slides { position: relative; width: 100%; height: 100%; }
.banner-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  display: flex; align-items: center; padding: 0 60px;
  color: #fff;
}
.banner-slide.active { opacity: 1; }
.banner-slide h2 { font-size: 40px; margin-bottom: 12px; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.banner-slide p { font-size: 18px; margin-bottom: 24px; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.banner-slide .btn { background: #fff; color: var(--primary); font-weight: 600; }
.banner-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.banner-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all .2s; }
.banner-dots span.active { background: #fff; width: 24px; border-radius: 5px; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.3); color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 20px;
  cursor: pointer; z-index: 2; transition: background .2s;
}
.banner-arrow:hover { background: rgba(0,0,0,0.5); }
.banner-arrow.prev { left: 12px; }
.banner-arrow.next { right: 12px; }

/* ========== 按钮 ========== */
.btn {
  display: inline-block; padding: 10px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; text-align: center; cursor: pointer;
  transition: all .2s; border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-block { width: 100%; padding: 12px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ========== 通用块 ========== */
.section { padding: 32px 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title h2 { font-size: 22px; font-weight: 700; position: relative; padding-left: 14px; }
.section-title h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--primary); border-radius: 2px; }
.section-title .more { color: var(--text-muted); font-size: 14px; }
.section-title .more:hover { color: var(--primary); }

/* ========== 商品卡片 ========== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .3s; cursor: pointer;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-card .img-wrap { width: 100%; aspect-ratio: 1; overflow: hidden; background: #f5f5f5; position: relative; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .img-wrap img { transform: scale(1.08); }
.product-card .tag {
  position: absolute; top: 8px; left: 8px; background: var(--primary);
  color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px;
}
.product-card .tag.hot { background: var(--accent); }
.product-card .info { padding: 12px 14px; }
.product-card .name { font-size: 14px; line-height: 1.4; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 8px; }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; }
.product-card .price { font-size: 20px; color: var(--primary); font-weight: 700; }
.product-card .price::before { content: '¥'; font-size: 13px; }
.product-card .orig-price { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.product-card .meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-muted); }

/* ========== 公司介绍区 ========== */
.about-preview { background: #fff; border-radius: var(--radius); padding: 30px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: center; }
.about-preview .img-wrap { border-radius: var(--radius); overflow: hidden; height: 240px; }
.about-preview .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-preview h3 { font-size: 22px; margin-bottom: 12px; }
.about-preview p { color: var(--text-light); margin-bottom: 16px; line-height: 1.8; }
.about-stats { display: flex; gap: 30px; margin-top: 20px; }
.about-stats .stat .num { font-size: 28px; font-weight: 800; color: var(--primary); }
.about-stats .stat .lbl { font-size: 13px; color: var(--text-muted); }

/* ========== 商务合作横幅 ========== */
.franchise-banner {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: var(--radius); padding: 40px; color: #fff;
  display: flex; justify-content: space-between; align-items: center;
}
.franchise-banner h2 { font-size: 28px; margin-bottom: 8px; }
.franchise-banner p { opacity: .8; margin-bottom: 16px; }

/* ========== 面包屑 ========== */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; }

/* ========== 商品列表页 ========== */
.layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 20px 0; }
.filter-bar { background: #fff; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filter-bar .sort-group { display: flex; gap: 4px; }
.filter-bar .sort-btn { padding: 6px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; color: var(--text-light); }
.filter-bar .sort-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== 商品详情页 ========== */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background: #fff; border-radius: var(--radius); padding: 24px; }
.detail-gallery .main-img { width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #f5f5f5; }
.detail-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery .thumbs { display: flex; gap: 8px; margin-top: 12px; }
.detail-gallery .thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.detail-gallery .thumbs img.active { border-color: var(--primary); }
.detail-info h1 { font-size: 22px; line-height: 1.4; margin-bottom: 12px; }
.detail-info .desc { color: var(--text-light); margin-bottom: 16px; }
.detail-info .price-box { background: linear-gradient(135deg, #fff7f7, #fff0f0); padding: 20px; border-radius: var(--radius); margin-bottom: 20px; }
.detail-info .price-box .current { font-size: 32px; color: var(--primary); font-weight: 800; }
.detail-info .price-box .current::before { content: '¥'; font-size: 16px; }
.detail-info .price-box .original { color: var(--text-muted); text-decoration: line-through; margin-left: 12px; }
.detail-info .attr-row { display: flex; align-items: center; margin-bottom: 16px; gap: 12px; }
.detail-info .attr-row .label { width: 70px; color: var(--text-muted); }
.detail-info .attr-values { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-info .attr-value { padding: 6px 14px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 13px; }
.detail-info .attr-value.active { border-color: var(--primary); color: var(--primary); background: #fff7f7; }
.qty-selector { display: flex; align-items: center; }
.qty-selector button { width: 34px; height: 34px; border: 1px solid var(--border); font-size: 18px; background: #fff; }
.qty-selector input { width: 60px; height: 34px; text-align: center; border: 1px solid var(--border); border-left: none; border-right: none; outline: none; }
.detail-actions { display: flex; gap: 12px; margin-top: 24px; }
.detail-actions .btn { flex: 1; padding: 14px; font-size: 16px; }
.tabs { background: #fff; border-radius: var(--radius); margin-top: 20px; overflow: hidden; }
.tab-nav { display: flex; border-bottom: 1px solid var(--border); background: #fafafa; }
.tab-nav button { padding: 16px 28px; font-size: 15px; color: var(--text-light); border-bottom: 3px solid transparent; }
.tab-nav button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; background: #fff; }
.tab-content { padding: 28px; line-height: 1.9; }

/* ========== 购物车 ========== */
.cart-layout { padding: 20px 0; }
.cart-table { background: #fff; border-radius: var(--radius); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 40px 1fr 120px 140px 120px 80px; align-items: center; padding: 16px 20px; border-bottom: 1px solid #f5f5f5; gap: 12px; }
.cart-row.head { background: #fafafa; font-weight: 600; color: var(--text-light); font-size: 13px; }
.cart-row.head > div { text-align: center; }
.cart-row .item-info { display: flex; gap: 12px; align-items: center; text-align: left; }
.cart-row .item-info img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; }
.cart-row .item-info .name { font-size: 13px; line-height: 1.4; }
.cart-row .item-info .spec { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.cart-row .price { text-align: center; color: var(--primary); font-weight: 600; }
.cart-row .qty { display: flex; align-items: center; justify-content: center; }
.cart-row .subtotal { text-align: center; color: var(--primary); font-weight: 700; font-size: 16px; }
.cart-row .action { text-align: center; color: var(--text-muted); cursor: pointer; }
.cart-row .action:hover { color: var(--primary); }
.cart-empty { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.cart-empty .icon { font-size: 80px; margin-bottom: 16px; }
.cart-summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; background: #fff; border-radius: var(--radius);
  margin-top: 16px;
}
.cart-summary .select-all { display: flex; align-items: center; gap: 8px; }
.cart-summary .total { font-size: 14px; color: var(--text-light); }
.cart-summary .total .amount { font-size: 26px; color: var(--primary); font-weight: 800; margin-left: 8px; }
.cart-summary .total .amount::before { content: '¥'; font-size: 14px; }

/* ========== 登录注册 ========== */
.auth-page { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: linear-gradient(135deg, #f5f5f7, #eaeaf0); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 36px 32px; box-shadow: var(--shadow-hover); }
.auth-card h2 { text-align: center; margin-bottom: 8px; font-size: 24px; }
.auth-card .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: 13px; }
.auth-tabs { display: flex; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.auth-tabs button { flex: 1; padding: 12px; font-size: 16px; color: var(--text-light); border-bottom: 2px solid transparent; }
.auth-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-light); }
.form-control {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; outline: none; transition: border-color .2s;
}
.form-control:focus { border-color: var(--primary); }
.form-textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { color: var(--primary); font-size: 12px; margin-top: 4px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); }

/* ========== 结算页 ========== */
.checkout-layout { padding: 20px 0; display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.checkout-section { background: #fff; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px; }
.checkout-section h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f5f5f5; }
.address-item { border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 12px; cursor: pointer; transition: all .2s; display: flex; justify-content: space-between; align-items: center; }
.address-item.active, .address-item:hover { border-color: var(--primary); background: #fff7f7; }
.address-item .name { font-weight: 600; }
.address-item .phone { color: var(--text-light); margin-left: 12px; }
.address-item .addr { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.payment-methods { display: flex; gap: 16px; flex-wrap: wrap; }
.payment-method { flex: 1; min-width: 120px; border: 1px solid var(--border); border-radius: 8px; padding: 16px; text-align: center; cursor: pointer; }
.payment-method.active { border-color: var(--primary); background: #fff7f7; }
.payment-method .icon { font-size: 28px; margin-bottom: 6px; }
.checkout-items .ci-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.checkout-items .ci-row img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.checkout-items .ci-row .info { flex: 1; }
.checkout-items .ci-row .info .name { font-size: 13px; }
.checkout-items .ci-row .info .spec { font-size: 12px; color: var(--text-muted); }
.checkout-summary { position: sticky; top: 80px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-row.total { font-size: 16px; font-weight: 700; border-top: 1px solid #f5f5f5; padding-top: 14px; margin-top: 8px; }
.summary-row.total .amount { color: var(--primary); font-size: 24px; }

/* ========== 订单管理 ========== */
.order-tabs { display: flex; gap: 4px; background: #fff; border-radius: var(--radius); padding: 8px; margin-bottom: 16px; }
.order-tabs button { flex: 1; padding: 10px; border-radius: 6px; font-size: 14px; color: var(--text-light); }
.order-tabs button.active { background: var(--primary); color: #fff; }
.order-card { background: #fff; border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.order-card .order-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #fafafa; border-bottom: 1px solid #f0f0f0; }
.order-card .order-head .no { color: var(--text-muted); font-size: 13px; }
.order-card .order-head .status { font-weight: 600; }
.order-card .order-head .status.pending { color: var(--warning); }
.order-card .order-head .status.paid { color: var(--primary); }
.order-card .order-head .status.done { color: var(--success); }
.order-card .order-body { display: grid; grid-template-columns: 1fr 200px; gap: 16px; padding: 16px 20px; align-items: center; }
.order-card .goods-row { display: flex; gap: 12px; align-items: center; }
.order-card .goods-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.order-card .goods-row .name { font-size: 13px; line-height: 1.4; }
.order-card .goods-row .spec { font-size: 12px; color: var(--text-muted); }
.order-card .order-total { text-align: right; }
.order-card .order-total .amount { font-size: 20px; color: var(--primary); font-weight: 700; }
.order-card .order-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid #f5f5f5; }

/* ========== 公司介绍页 ========== */
.about-hero { background: linear-gradient(135deg, #1a1a2e, #16213e); color: #fff; padding: 60px 0; text-align: center; }
.about-hero h1 { font-size: 36px; margin-bottom: 12px; }
.about-hero p { opacity: .85; font-size: 16px; }
.about-content { background: #fff; border-radius: var(--radius); padding: 40px; margin: -40px auto 0; max-width: 900px; position: relative; box-shadow: var(--shadow); }
.about-content h2 { font-size: 24px; margin: 30px 0 16px; color: var(--text); }
.about-content h2:first-child { margin-top: 0; }
.about-content p { line-height: 1.9; color: var(--text-light); margin-bottom: 14px; }
.about-content ul { padding-left: 20px; margin-bottom: 14px; }
.about-content li { line-height: 1.9; color: var(--text-light); list-style: disc; }
.about-stats-big { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0; }
.about-stats-big .stat { text-align: center; padding: 24px; background: #fafafa; border-radius: var(--radius); }
.about-stats-big .stat .num { font-size: 36px; font-weight: 800; color: var(--primary); }
.about-stats-big .stat .lbl { color: var(--text-muted); margin-top: 4px; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.timeline-item .year { font-weight: 700; color: var(--primary); font-size: 16px; }
.timeline-item .event { color: var(--text-light); margin-top: 4px; }

/* ========== 商务合作页 ========== */
.franchise-hero { background: linear-gradient(135deg, #0f3460, #16213e); color: #fff; padding: 70px 0; text-align: center; }
.franchise-hero h1 { font-size: 40px; margin-bottom: 12px; }
.franchise-hero .subtitle { font-size: 18px; opacity: .85; margin-bottom: 28px; }
.franchise-hero .btn { background: var(--accent); color: #fff; font-size: 16px; padding: 14px 40px; }
.franchise-advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.franchise-advantages .adv { background: #fff; border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); transition: transform .3s; }
.franchise-advantages .adv:hover { transform: translateY(-6px); }
.franchise-advantages .adv .icon { font-size: 44px; margin-bottom: 12px; }
.franchise-advantages .adv h4 { font-size: 17px; margin-bottom: 8px; }
.franchise-advantages .adv p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.process-steps .step { background: #fff; border-radius: var(--radius); padding: 24px 16px; text-align: center; box-shadow: var(--shadow); position: relative; }
.process-steps .step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-weight: 700; font-size: 18px; }
.process-steps .step h4 { font-size: 15px; margin-bottom: 6px; }
.process-steps .step p { font-size: 12px; color: var(--text-muted); }
.process-steps .step::after { content: '→'; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 20px; font-weight: 700; }
.process-steps .step:last-child::after { display: none; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.support-grid .item { background: #fff; padding: 24px; border-radius: var(--radius); display: flex; gap: 14px; box-shadow: var(--shadow); }
.support-grid .item .icon { font-size: 32px; flex-shrink: 0; }
.support-grid .item h4 { font-size: 16px; margin-bottom: 6px; }
.support-grid .item p { font-size: 13px; color: var(--text-muted); }
.apply-form { background: #fff; border-radius: var(--radius); padding: 32px; }

/* ========== 页脚 ========== */
.footer { background: #2c2c2c; color: #aaa; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid #444; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col p, .footer-col a { font-size: 13px; line-height: 2; color: #aaa; }
.footer-col a:hover { color: #fff; }
.footer-col .contact-item { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.footer-col .contact-item .icon { color: var(--primary); }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 12px; color: #888; }

/* ========== Toast 提示 ========== */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: rgba(0,0,0,0.8); color: #fff; padding: 12px 24px; border-radius: var(--radius);
  z-index: 9999; opacity: 0; transition: all .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== 响应式 H5 ========== */
@media (max-width: 768px) {
  .top-bar-left .text { display: none; }
  .header-main { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .logo { order: 1; }
  .search-box { order: 3; width: 100%; max-width: none; }
  .header-actions { order: 2; gap: 14px; }
  .main-nav { overflow-x: auto; }
  .nav-list { min-width: max-content; }
  .nav-list a { padding: 0 14px; font-size: 14px; }

  .banner { height: 200px; }
  .banner-slide { padding: 0 30px; }
  .banner-slide h2 { font-size: 22px; }
  .banner-slide p { font-size: 13px; margin-bottom: 12px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card .price { font-size: 16px; }

  .layout { grid-template-columns: 1fr; }
  .category-sidebar { display: none; }

  .detail-layout { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .detail-info h1 { font-size: 18px; }
  .detail-info .price-box .current { font-size: 26px; }

  .cart-row { grid-template-columns: 40px 1fr 60px; gap: 8px; padding: 12px; }
  .cart-row .price, .cart-row .subtotal-label { display: none; }
  .cart-row .subtotal { grid-column: 3; }
  .cart-row .action { grid-column: 1/-1; text-align: right; }
  .cart-row.head { display: none; }
  .cart-summary { flex-direction: column; gap: 12px; align-items: stretch; }

  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }

  .about-preview { grid-template-columns: 1fr; padding: 20px; }
  .about-preview .img-wrap { height: 180px; }
  .about-stats { gap: 16px; }

  .franchise-banner { flex-direction: column; text-align: center; padding: 24px; }
  .franchise-banner h2 { font-size: 20px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-col:first-child { grid-column: 1/-1; }

  .about-content { padding: 24px 18px; }
  .about-stats-big { grid-template-columns: repeat(2, 1fr); }
  .franchise-advantages { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps .step::after { display: none; }
  .support-grid { grid-template-columns: 1fr; }
  .order-card .order-body { grid-template-columns: 1fr; }
  .order-card .order-total { text-align: left; }
  .section-title h2 { font-size: 18px; }
  .franchise-hero h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-text .cn { font-size: 15px; }
  .logo-icon { width: 36px; height: 36px; font-size: 16px; }
  .search-box input { height: 38px; }
  .search-box button { height: 38px; width: 70px; }
  .header-actions { gap: 10px; }
  .header-action .icon { font-size: 20px; }
}
