/* ========================================
   梦途流量卡企业官网模板 - 主样式表
   Version: 1.6
   ======================================== */

/* ===== 重置与基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .3s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, textarea, button { font-family: inherit; font-size: inherit; outline: none; }

:root {
  --primary: #1677ff;
  --primary-dark: #0958d9;
  --primary-light: #e6f4ff;
  --success: #52c41a;
  --warning: #faad14;
  --danger: #ff4d4f;
  --text-main: #333;
  --text-sub: #666;
  --text-light: #999;
  --border: #e8e8e8;
  --bg-gray: #f5f7fa;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.12);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .3s;
  white-space: nowrap;
}
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline-primary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: #f0f0f0; color: var(--primary-dark); }
.btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #389e0d; color: #fff; }

/* ===== 图标（使用RemixIcon class映射） ===== */
@font-face {
  font-family: 'remixicon';
  src: url('../fonts/remixicon.woff2') format('woff2'),
       url('../fonts/remixicon.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
[class^="icon-"], [class*=" icon-"] { font-family: "remixicon" !important; font-style: normal; -webkit-font-smoothing: antialiased; }
.icon-phone::before { content: "\efec"; }
.icon-clock::before { content: "\f20f"; }
.icon-wechat::before { content: "\f2b6"; }
.icon-qq::before { content: "\f03b"; }
.icon-mail::before { content: "\eef6"; }
.icon-location::before { content: "\ef14"; }
.icon-card::before { content: "\f13a"; }
.icon-wifi::before { content: "\f2c0"; }
.icon-package::before { content: "\f118"; }
.icon-device::before { content: "\eb41"; }
.icon-data::before { content: "\ec16"; }
.icon-speed::before { content: "\f177"; }
.icon-shield::before { content: "\f100"; }
.icon-money::before { content: "\ef61"; }
.icon-rocket::before { content: "\f096"; }
.icon-headset::before { content: "\ec0c"; }
.icon-check::before { content: "\eb7b"; }
.icon-arrow::before { content: "\ea4e"; display: inline-block; transition: transform .3s; }
.icon-top::before { content: "\ea76"; }
.icon-search::before { content: "\f0d1"; }
.icon-user::before { content: "\f264"; }
.icon-empty::before { content: "\ee2b"; font-size: 64px; color: #ddd; }

/* ===== 顶部信息栏 ===== */
.top-bar {
  background: #1a1a2e;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  height: 36px;
  line-height: 36px;
}
.top-bar-inner { display: flex; justify-content: center; align-items: center; }
.top-bar-center { display: flex; gap: 24px; }
.top-bar-left, .top-bar-right { display: flex; gap: 24px; }
.top-bar-item { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; position: relative; }
.top-bar-item i { font-size: 14px; }
.top-bar-item:hover { color: #fff; }
.wechat-hover .wechat-popup {
  display: none;
  position: absolute;
  top: 36px;
  right: 0;
  width: 180px;
  background: #fff;
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 100;
}
.wechat-hover .wechat-popup img { width: 160px !important; height: 160px !important; max-width: none !important; }
.wechat-hover:hover .wechat-popup { display: block; }

/* ===== 主导航 ===== */
.site-header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { flex-shrink: 0; }
.logo a { display: flex; align-items: center; gap: 8px; }
.logo img { height: 44px; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.logo-sub { font-size: 12px; color: var(--text-light); display: none; }
.main-nav { flex: 1; min-width: 0; }
.main-nav > ul { display: flex; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: block;
  padding: 0 18px;
  line-height: 72px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.sub-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  width: max-content;
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 8px 0;
  z-index: 100;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
}
.main-nav > ul > li:hover .sub-menu { display: block !important; }
.sub-menu li { display: block !important; width: 100% !important; float: none !important; flex: none !important; }
.sub-menu a { line-height: 40px; padding: 0 20px; font-size: 14px; white-space: nowrap; display: block; width: 100%; box-sizing: border-box; }
.sub-menu a:hover { background: var(--primary-light); }
.header-cta { display: flex; align-items: center; }
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--text-main); border-radius: 2px; }
.mobile-menu { display: none; background: #fff; border-top: 1px solid var(--border); }
.mobile-menu ul { padding: 10px 0; }
.mobile-menu a { display: block; padding: 12px 20px; font-size: 15px; color: var(--text-main); }
.mobile-menu a:hover { background: var(--primary-light); color: var(--primary); }

/* ===== Hero横幅 ===== */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,119,255,.85), rgba(9,88,217,.7));
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 60px 0; }
.hero-title { font-size: 44px; font-weight: 700; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.hero-subtitle { font-size: 18px; opacity: .9; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 56px; }
.hero-stats { display: flex; justify-content: center; gap: 60px; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 32px; font-weight: 700; margin-bottom: 4px; }
.stat-label { font-size: 14px; opacity: .85; }

/* ===== 产品分类快捷入口 ===== */
.category-section { padding: 50px 0; background: #fff; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.category-card {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all .3s;
  border: 1px solid transparent;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
  background: #fff;
}
.category-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
}
.category-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-main); }
.category-card p { font-size: 13px; color: var(--text-sub); margin-bottom: 12px; }
.category-more { font-size: 13px; color: var(--primary); font-weight: 500; }

/* ===== 区块通用 ===== */
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 32px; font-weight: 700; color: var(--text-main); margin-bottom: 12px; }
.section-desc { font-size: 15px; color: var(--text-sub); }
.product-section, .feature-section, .process-section, .faq-section { padding: 60px 0; }
.product-section { background: var(--bg-gray); }

/* ===== 面包屑 ===== */
.page-breadcrumb { padding: 16px 0; font-size: 13px; color: var(--text-sub); }
.page-breadcrumb a:hover { color: var(--primary); }
.page-breadcrumb-bar { background: var(--bg-gray); border-bottom: 1px solid var(--border); }
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--text-sub); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-light); }
.breadcrumb .current { color: var(--text-main); }
.breadcrumb.light { color: rgba(255,255,255,.8); }
.breadcrumb.light a { color: rgba(255,255,255,.9); }
.breadcrumb.light .current { color: #fff; }

/* ===== 产品卡片 ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .3s;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  z-index: 2;
}
.product-cover {
  height: 200px;
  overflow: hidden;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-cover img { transform: scale(1.05); }
.product-cover-placeholder { font-size: 48px; color: #ddd; }
.product-body { padding: 20px; }
.product-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.product-title a:hover { color: var(--primary); }
.tag-top {
  background: var(--warning);
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: normal;
}
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
}
.product-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { display: flex; align-items: baseline; gap: 4px; }
.price-current { font-size: 22px; font-weight: 700; color: var(--danger); }
.price-original { font-size: 13px; color: var(--text-light); text-decoration: line-through; }
.price-unit { font-size: 12px; color: var(--text-sub); }

/* ===== 分页 ===== */
.pagination { text-align: center; margin-top: 40px; }
.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-main);
  background: #fff;
  transition: all .3s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 60px 0; grid-column: 1/-1; }
.empty-state p { color: var(--text-light); margin-top: 12px; }

/* ===== 特性区块 ===== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { text-align: center; padding: 30px 20px; }
.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
}
.feature-icon.icon-1 { background: linear-gradient(135deg, var(--primary), #4096ff); }
.feature-icon.icon-2 { background: linear-gradient(135deg, #52c41a, #73d13d); }
.feature-icon.icon-3 { background: linear-gradient(135deg, #faad14, #ffc53d); }
.feature-icon.icon-4 { background: linear-gradient(135deg, #722ed1, #9254de); }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-sub); }

/* ===== 服务流程 ===== */
.process-section { background: var(--bg-gray); }
.process-steps { display: flex; align-items: flex-start; justify-content: space-between; position: relative; }
.step-item { text-align: center; flex: 1; position: relative; z-index: 2; }
.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.step-item h3 { font-size: 16px; margin-bottom: 6px; }
.step-item p { font-size: 13px; color: var(--text-sub); }
.step-line {
  flex: 0 0 60px;
  height: 2px;
  background: var(--primary);
  margin-top: 28px;
  opacity: .3;
}

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .3s;
}
.faq-question:hover { background: var(--primary-light); }
.faq-question.active .icon-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 24px;
}
.faq-answer.open { max-height: 300px; padding: 0 24px 18px; }
.faq-answer p { color: var(--text-sub); font-size: 14px; line-height: 1.8; }

/* ===== 产品详情页 ===== */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 50px 0;
  color: #fff;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,119,255,.8), rgba(9,88,217,.6));
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner-title { font-size: 32px; font-weight: 700; margin-bottom: 8px; }

.product-detail { padding: 40px 0 60px; }
.detail-top { display: grid; grid-template-columns: 420px 1fr; gap: 40px; margin-bottom: 40px; }
.detail-gallery { position: relative; }
.main-image {
  width: 100%;
  height: 360px;
  background: var(--bg-gray);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.no-image { text-align: center; color: var(--text-light); }
.no-image i { font-size: 64px; }
.detail-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
}
.detail-title { font-size: 26px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.detail-tags { margin-bottom: 20px; }
.detail-tags a {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 6px;
}
.detail-price-box {
  background: linear-gradient(135deg, #fff7e6, #fff1f0);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.detail-price-row { display: flex; align-items: baseline; gap: 8px; }
.price-label { font-size: 14px; color: var(--text-sub); }
.price-now { font-size: 36px; font-weight: 700; color: var(--danger); }
.detail-price-row .price-unit { font-size: 14px; }
.price-old { font-size: 16px; color: var(--text-light); text-decoration: line-through; }
.detail-specs { margin-bottom: 24px; }
.spec-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.spec-label { width: 100px; color: var(--text-sub); flex-shrink: 0; }
.spec-value { color: var(--text-main); font-weight: 500; }
.detail-actions { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.detail-promises { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--text-sub); }
.detail-promises span { display: inline-flex; align-items: center; gap: 4px; }
.detail-promises i { color: var(--success); }

/* ===== 详情标签页 ===== */
.detail-content-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.detail-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-gray); }
.tab-btn {
  padding: 16px 32px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .3s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: #fff; }
.tab-panel { display: none; padding: 30px; }
.tab-panel.active { display: block; }
.detail-content { font-size: 15px; line-height: 1.8; color: var(--text-main); }
.detail-content h2, .detail-content h3 { margin: 20px 0 12px; }
.detail-content p { margin-bottom: 12px; }
.detail-content img { max-width: 100%; border-radius: var(--radius); margin: 12px 0; }
.detail-content ul, .detail-content ol { padding-left: 24px; margin-bottom: 12px; }
.detail-content li { margin-bottom: 6px; list-style: disc; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; font-size: 14px; }
.spec-table th { background: var(--bg-gray); width: 140px; color: var(--text-sub); font-weight: 500; }

/* ===== 评论 ===== */
.comment-list { margin-bottom: 30px; }
.comment-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  overflow: hidden;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-header { display: flex; gap: 12px; margin-bottom: 6px; font-size: 13px; }
.comment-author { font-weight: 500; color: var(--text-main); }
.comment-date { color: var(--text-light); }
.comment-content { font-size: 14px; color: var(--text-sub); line-height: 1.6; }
.comment-empty, .comment-closed { text-align: center; padding: 30px; color: var(--text-light); }
.comment-post-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.comment-form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.form-item { margin-bottom: 12px; }
.form-item input, .form-item textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color .3s;
}
.form-item input:focus, .form-item textarea:focus { border-color: var(--primary); }
.form-captcha { display: flex; gap: 12px; align-items: center; }
.form-captcha input { flex: 1; }
.form-captcha img { height: 38px; cursor: pointer; border-radius: 4px; }

/* ===== 上下篇 ===== */
.detail-neighbor { margin-top: 30px; }
.neighbor-log { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.neighbor-prev, .neighbor-next {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .3s;
}
.neighbor-prev:hover, .neighbor-next:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.neighbor-next { text-align: right; }
.neighbor-label { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.neighbor-title { font-size: 14px; color: var(--text-main); }

/* ===== 页面内容 ===== */
.page-content-section { padding: 40px 0 60px; }
.page-content {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
}
.page-content h2, .page-content h3 { margin: 20px 0 12px; }
.page-content p { margin-bottom: 12px; }
.page-content img { max-width: 100%; border-radius: var(--radius); }
.contact-info-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.contact-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
}
.contact-card h3 { font-size: 16px; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--text-main); }
.contact-sub { font-size: 12px !important; color: var(--text-light) !important; margin-top: 4px; }
.contact-qr { width: 100px; height: 100px; margin: 10px auto 0; }

/* ===== 侧边栏 ===== */
.sidebar { width: 300px; flex-shrink: 0; }
.widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.widget-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.widget-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.widget-list li:last-child { border-bottom: none; }
.widget-list a { color: var(--text-main); display: flex; justify-content: space-between; }
.widget-list a:hover { color: var(--primary); }
.widget-views { font-size: 12px; color: var(--text-light); }
.widget-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-link {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-gray);
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-sub);
  transition: all .3s;
}
.tag-link:hover { background: var(--primary); color: #fff; }
.widget-search { display: flex; gap: 8px; }
.widget-search input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}
.widget-search button {
  width: 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}
.widget-contact p { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 14px; }
.widget-qr { width: 120px; height: 120px; margin: 10px auto 0; display: block; }

/* ===== 底部CTA ===== */
.footer-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 50px 0;
  color: #fff;
}
.footer-cta .container { display: flex; align-items: center; justify-content: space-between; }
.footer-cta-content h2 { font-size: 28px; margin-bottom: 8px; }
.footer-cta-content p { font-size: 15px; opacity: .9; }
.footer-cta-actions { display: flex; gap: 16px; }

/* ===== 页脚 ===== */
.site-footer { background: #1a1a2e; color: rgba(255,255,255,.7); padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-title { color: #fff; font-size: 16px; margin-bottom: 20px; font-weight: 600; }
.footer-desc { font-size: 13px; line-height: 1.8; margin-bottom: 16px; }
.footer-contact p { font-size: 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.7); }
.footer-links a:hover { color: #fff; }
.qrcode-wrap { display: flex; gap: 16px; }
.qrcode-item { text-align: center; }
.qrcode-item img { width: 90px; height: 90px; border-radius: 4px; margin-bottom: 6px; background: #fff; padding: 4px; }
.qrcode-item span { font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: center; align-items: center; font-size: 13px; text-align: center; }
.copyright a { color: rgba(255,255,255,.7); }
.copyright a:hover { color: #fff; }

/* ===== 浮动侧边栏 ===== */
.float-sidebar {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.float-item {
  width: 56px;
  height: 56px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-sub);
  transition: all .3s;
  position: relative;
}
.float-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.float-item:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.float-item:hover { background: var(--primary); color: #fff; }
.float-item span { font-size: 11px; margin-top: 2px; }
.float-wechat-popup {
  display: none;
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  background: #fff;
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}
.float-wechat-popup img { width: 160px !important; height: 160px !important; max-width: none !important; }
.float-wechat:hover .float-wechat-popup { display: block; }

/* ===== 弹窗 ===== */
.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal-mask.show { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  position: relative;
  max-width: 320px;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}
.modal-box h3 { font-size: 18px; margin-bottom: 16px; }
.modal-qrcode { width: 200px; height: 200px; margin: 0 auto 12px; }
.modal-box p { font-size: 13px; color: var(--text-sub); }

/* ===== 404页面 ===== */
.error-page { padding: 80px 0; text-align: center; }
.error-code { font-size: 120px; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 16px; }
.error-title { font-size: 28px; margin-bottom: 12px; }
.error-desc { font-size: 15px; color: var(--text-sub); margin-bottom: 30px; }
.error-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 40px; }
.error-search form { display: flex; gap: 12px; max-width: 500px; margin: 0 auto; }
.error-search input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}

/* ===== 编辑链接 ===== */
.edit-link {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 1px 8px;
  border-radius: 3px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .detail-top { grid-template-columns: 1fr; }
  .main-image { height: 300px; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .main-nav, .header-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-menu.open { display: block; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 24px; }
  .section-title { font-size: 24px; }
  .product-grid, .category-grid, .feature-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; gap: 20px; align-items: stretch; }
  .step-item { width: 100%; text-align: center; }
  .step-line { display: none; }
  .footer-cta .container { flex-direction: column; gap: 20px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
  .comment-form-row { grid-template-columns: 1fr; }
  .neighbor-log { grid-template-columns: 1fr; }
  .contact-info-cards { grid-template-columns: 1fr; }
  .float-sidebar { right: 10px; bottom: 60px; }
  .float-item { width: 48px; height: 48px; font-size: 18px; }
  .page-content { padding: 20px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-section { min-height: 420px; }
}
