/* =========================================================
   全站基础
   ========================================================= */
:root {
  --brand-dark: #1b120a;
  --brand-brown: #3a2518;
  --brand-orange: #e85d04;
  --brand-redorange: #f3722c;
  --text-main: #222;
  --text-sub: #666;
  --radius: 12px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f5f5;
  color: var(--text-main);
}

/* 全站链接：默认 #3a3a3a，所有状态统一 */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: #3a3a3a;
  text-decoration: none;
  -webkit-text-decoration-line: none;
}

@media (min-width: 750px) {
  .container { width: 750px; margin: 0 auto; background: #fff; }
}

/* =========================================================
   头部
   ========================================================= */
.header-bg { width: 100%; background: #1D1610; }
.header {
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 750px) {
  .header { width: 750px; margin: 0 auto; }
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo-img { height: 28px; width: auto; display: block; }
.sologo { font-size: 14px; opacity: 0.9; }

.main { padding-bottom: 1px; }

/* =========================================================
   Banner 轮播
   ========================================================= */
.banner-slider { position: relative; overflow: hidden; }
.slides { display: flex; transition: transform 0.5s ease-in-out; }
.slides img { width: 100%; flex-shrink: 0; display: block; }
.slide-link { display: block; width: 100%; flex-shrink: 0; }

.slider-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
}
.slider-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.6); cursor: pointer;
}
.slider-dots span.active { background: #fff; }

/* =========================================================
   搜索框
   ========================================================= */
.search-wrapper { padding: 12px 16px; position: relative; }
.search-wrapper input {
  width: 100%; padding: 10px 60px 10px 14px;
  border-radius: 999px; border: 1px solid #ddd;
  font-size: 14px; box-sizing: border-box; outline: none;
}
.search-btn {
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--brand-redorange), var(--brand-orange));
  color: #fff; border: none; font-size: 13px;
  padding: 6px 14px; border-radius: 999px;
  cursor: pointer; line-height: 1;
}

/* =========================================================
   Tabs
   ========================================================= */
.tabs {
  display: flex; overflow-x: auto; gap: 8px;
  padding: 10px 16px; background: #fff; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  white-space: nowrap; padding: 8px 14px;
  border-radius: 999px; border: none;
  background: #f2f2f2; color: #444;
  font-size: 13px; cursor: pointer;
}
.tabs button.active { background: var(--brand-brown); color: #fff; }

/* =========================================================
   产品列表
   ========================================================= */
.product-section { padding: 12px 16px; }
.product-card {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-radius: var(--radius);
  padding: 14px; margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.product-title { font-size: 15px; font-weight: 600; }
.product-emoji { margin-top: 6px; font-size: 12px; line-height: 1; letter-spacing: 2px; }

/* =========================================================
   通用按钮（颜色由按钮自身定义）
   ========================================================= */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-redorange), var(--brand-orange));
  color: #fff !important;
  font-weight: 600;
}
.btn-primary:hover { opacity: 0.92; color: #fff !important; }

.btn-buy {
  background: linear-gradient(135deg, var(--brand-redorange), var(--brand-orange));
  color: #fff !important; border: none; padding: 10px 16px;
  border-radius: 999px; font-size: 13px;
  white-space: nowrap; cursor: pointer;
}

/* =========================================================
   信息卡 / 关键词 / 空状态
   ========================================================= */
.info-card {
  background: #fff; margin: 5px 16px 10px;
  padding: 10px; border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.info-card h3 {
  margin: 0 0 8px; font-size: 16px; text-align: center;
  padding: 0 0 10px; border-bottom: 1px dashed #dcdcdc;
}
.info-card p, .info-card ul { font-size: 13px; color: var(--text-sub); line-height: 1.8; }
.info-card ul { padding-left: 18px; }

.empty-tip { text-align: center; color: #999; padding: 30px 0; font-size: 13px; }
.empty-state {
  background: #fff;
  margin: 16px;
  padding: 40px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h2 { font-size: 18px; margin: 0 0 6px; color: var(--text-main); }
.empty-state p  { font-size: 13px; color: var(--text-sub); margin: 0 0 18px; }

.hl,
mark.hl {
  background: #fff3cd;
  color: #d9480f;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
}

/* =========================================================
   搜索结果页 / 分页
   ========================================================= */
.search-result-head { padding: 14px 16px 4px; }
.search-result-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  line-height: 1.5;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 16px 18px;
  font-size: 13px;
}
.pg-link {
  display: inline-block;
  min-width: 32px;
  padding: 6px 10px;
  text-align: center;
  border-radius: 8px;
  background: #fff;
  color: var(--text-main);
  border: 1px solid #e5e5e5;
  line-height: 1.2;
}
.pg-link:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}
.pg-link.is-active {
  background: linear-gradient(135deg, var(--brand-redorange), var(--brand-orange));
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}
.pg-link.is-disabled {
  color: #ccc;
  background: #fafafa;
  cursor: not-allowed;
  pointer-events: none;
}
.pg-ellipsis { color: var(--text-sub); padding: 0 4px; }
.pg-summary { margin-left: auto; color: var(--text-sub); font-size: 12px; }

/* =========================================================
   底部
   ========================================================= */
.footer-bg { width: 100%; background: linear-gradient(135deg, var(--brand-dark), var(--brand-brown)); }
.footer { color: #ccc; text-align: center; padding: 20px 16px; font-size: 12px; }
.footer a{ color: #ccc;}
/* =========================================================
   面包屑
   ========================================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-sub);
}
.breadcrumb .separator { color: #ccc; }
.breadcrumb .current  { color: var(--text-main); font-weight: 500; }

/* =========================================================
   产品介绍页 (i.php)
   ========================================================= */
.ask-wrapper {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 0 24px;
}

.buy-card {
  background: linear-gradient(135deg, #fff7ef 0%, #ffffff 60%);
  margin: 0 16px 12px;
  padding: 18px 16px 16px;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(232, 93, 4, .08);
  border: 1px solid #ffe7d2;
}
.buy-card-head { display: flex; align-items: flex-start; gap: 12px; }
.buy-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-redorange), var(--brand-orange));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(232, 93, 4, .25);
}
.buy-info { flex: 1; min-width: 0; }
.buy-title {
  font-size: 17px; font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px;
  line-height: 1.45;
  word-break: break-word;
}
.buy-company {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px;
  color: var(--brand-orange);
  background: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #ffe2c4;
}
.company-icon { line-height: 1; }
.company-name { color: var(--brand-orange); font-weight: 500; }
.buy-desc {
  font-size: 13px; color: var(--text-sub);
  line-height: 1.8;
  margin: 12px 0 14px;
}
.buy-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; box-sizing: border-box;
  padding: 12px 16px;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 6px 14px rgba(232, 93, 4, .25);
}
.buy-btn .btn-icon { font-size: 16px; line-height: 1; }

.features-card {
  background: #fff;
  margin: 0 16px 12px;
  padding: 14px 12px;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.features-title {
  font-size: 14px; font-weight: 600;
  color: var(--text-main);
  margin: 0 0 10px;
  padding: 0 4px 8px;
  border-bottom: 1px dashed #ececec;
  text-align: center;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.feature-item {
  display: flex; align-items: center; gap: 8px;
  background: #fafafa;
  border-radius: 10px;
  padding: 10px;
}
.feature-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.feature-text h4 {
  font-size: 13px; font-weight: 600;
  color: var(--text-main);
  margin: 0 0 1px;
  line-height: 1.3;
  word-break: break-word;
}
.feature-text p {
  font-size: 11px; color: var(--text-sub);
  margin: 0;
  line-height: 1.3;
}

.tips-card {
  background: #fff;
  margin: 0 16px 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.tips-header {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #ececec;
}
.tips-icon  { font-size: 16px; line-height: 1; }
.tips-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
.tips-list {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.9;
}
.tips-list li { margin-bottom: 0; }
.tips-list b  { color: var(--brand-orange); font-weight: 600; }

@media (min-width: 750px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   通用表格卡（.table_card / .table_list）
   ========================================================= */
.table_card {
  background: #fff;
  margin: 5px 16px 10px;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(27, 18, 10, 0.08);
  overflow: hidden;
  border: 1px solid #f0e6dc;
  position: relative;
}
.table_card::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-brown), var(--brand-orange), var(--brand-redorange));
}
.table_card h1 {
  font-size: 18px; font-weight: 700;
  color: var(--text-main);
  text-align: center;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table_list {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  color: var(--text-main);
  background: #fff;
}
.table_list thead th,
.table_list tr th {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-brown) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 12px 10px;
  text-align: left;
  border: none;
  position: relative;
}
.table_list thead th + th,
.table_list tr th + th {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.table_list thead th strong,
.table_list tr th strong { color: #fff; font-weight: 600; }

.table_list tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #f1ece7;
  vertical-align: middle;
  color: var(--text-main);
  line-height: 1.5;
  word-break: break-word;
  background: #fff;
  transition: background 0.18s ease, color 0.18s ease;
}
.table_list tbody tr:last-child td { border-bottom: none; }
.table_list tbody tr:nth-child(even) td { background: #faf7f4; }
.table_list tbody tr:hover td { background: #fff3e6; }

.table_list td.tc,
.table_list th.tc { text-align: center; }

.table_list td.title-cell { font-weight: 500; color: #3a3a3a; }

.table_list td.url-cell a {
  font-family: "SF Mono", "Menlo", "Consolas", "Courier New", monospace;
  font-size: 12px;
  color: var(--text-sub);
  word-break: break-all;
}

/* 表格内的链接按钮（橙色胶囊，hover/visited 保持白色） */
.table_list .link-btn {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand-redorange), var(--brand-orange));
  box-shadow: 0 3px 8px rgba(232, 93, 4, 0.22);
  letter-spacing: 1px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.table_list .link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(232, 93, 4, 0.32);
  color: #fff !important;
  opacity: 0.95;
}

.table_card .pagination {
  border-top: 1px dashed #ececec;
  background: #fdfaf6;
  margin: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* =========================================================
   问答页内嵌表（id.php / mid.php）—— .wenda-table
   ========================================================= */
.wenda-table-wrap {
  margin: 10px 0 6px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f0e6dc;
  background: #fff;
  box-shadow: 0 4px 12px rgba(27, 18, 10, 0.05);
  position: relative;
}
.wenda-table-wrap::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-brown), var(--brand-orange), var(--brand-redorange));
}

.wenda-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  color: var(--text-main);
  table-layout: fixed;
  background: #fff;
}
.wenda-table thead th,
.wenda-table tr.header-row th {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-brown) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 11px 10px;
  text-align: left;
  border: none;
  line-height: 1.4;
}
.wenda-table thead th strong,
.wenda-table tr.header-row th strong { color: #fff; font-weight: 600; }
.wenda-table thead th + th,
.wenda-table tr.header-row th + th { border-left: 1px solid rgba(255, 255, 255, 0.1); }

.wenda-table tbody td {
  padding: 11px 10px;
  border: none;
  border-bottom: 1px solid #f1ece7;
  vertical-align: middle;
  color: var(--text-main);
  line-height: 1.55;
  word-break: break-word;
  background: #fff;
  transition: background 0.18s ease;
}
.wenda-table tbody tr:last-child td { border-bottom: none; }
.wenda-table tbody tr:nth-child(even) td { background: #faf7f4; }
.wenda-table tbody tr:hover td { background: #fff3e6; }

.wenda-table td.tc,
.wenda-table th.tc { text-align: center; }
.wenda-table td.title-cell { font-weight: 500; color: #3a3a3a; }

.wenda-table td.url-cell a {
  font-family: "SF Mono", "Menlo", "Consolas", "Courier New", monospace;
  font-size: 12px;
  color: var(--text-sub);
  word-break: break-all;
}

.wenda-table .badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.5px;
}
.wenda-table .badge-online {
  color: #0d6efd; background: #e7f1ff; border: 1px solid #cfe2ff;
}
.wenda-table .badge-offline {
  color: #b35900; background: #fff4e5; border: 1px solid #ffe2c4;
}

/* 列宽 */
.w-20 { width: 20%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }

@media (max-width: 480px) {
  .wenda-table { font-size: 12px; }
  .wenda-table thead th,
  .wenda-table tr.header-row th { padding: 9px 6px; font-size: 12px; }
  .wenda-table tbody td { padding: 9px 6px; }
  .wenda-table .link-btn { padding: 4px 10px; font-size: 11px; }
}

/* 强调链接（预约顾问） */
.consultant-link {
  color: #4C33E5;
  font-weight: 600;
}

/* =========================================================
   问答详情页 (post.php) — .wenda
   ========================================================= */
.wenda {
  background: #fff;
  margin: 8px 16px 12px;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(27, 18, 10, 0.08);
  border: 1px solid #f0e6dc;
  overflow: hidden;
  position: relative;
}
.wenda::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-brown), var(--brand-orange), var(--brand-redorange));
}
.wenda > h1 {
  font-size: 19px; font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0;
  padding: 18px 16px 14px;
  word-break: break-word;
}

.wenda .avatar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-top: 1px dashed #ececec;
  border-bottom: 1px dashed #ececec;
  background: linear-gradient(135deg, #fdfaf6 0%, #ffffff 100%);
}
.wenda .avatar img {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}
.wenda .avatar-info {
  display: flex; flex-direction: column;
  flex: 1; min-width: 0;
  line-height: 1.3;
  justify-content: center;
}
.wenda .avatar h3 {
  font-weight: 600; font-size: 14px;
  line-height: 1.3;
  color: var(--text-main);
  margin: 0;
}
.wenda .avatar .date {
  color: #999; display: block;
  font-size: 11px; margin-top: 2px;
  line-height: 1.2;
}

.wenda .huida {
  margin: 0;
  padding: 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-main);
}
.wenda .huida img {
  max-width: 100%; height: auto;
  border-radius: 8px;
  margin: 10px 0;
  display: block;
  vertical-align: top;
}

.wenda .wenda-pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-main);
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

/* 问答正文里的链接：蓝色带下划线（与全站 #3a3a3a 区分） */
.wenda .huida pre a,
.wenda .wenda-pre a {
  font-size: 16px;
  color: #0000D1;
  text-decoration: underline;
  word-break: break-all;
}
.wenda .huida pre a:hover,
.wenda .wenda-pre a:hover {
  color: #0000D1;
  text-decoration: underline;
}

.wenda h1 { font-size: 19px; }
.wenda h2 { font-size: 17px; }
.wenda h3 { font-size: 15px; }
.wenda h2, .wenda h3 {
  font-weight: 600;
  color: var(--text-main);
  margin: 14px 0 8px;
  line-height: 1.5;
}
