/* =========================================================
   pages.css — 内页深色适配 + 统一化（覆盖层，最后加载）
   ========================================================= */

/* ---------- 1) 分类筛选条（products / coa 等页）
   styles.css:352 硬编码 background:#fff ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: flex-start;
  margin: 0 0 28px;
}
.filter-bar a {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(80, 120, 180, .26);
  background: rgba(18, 28, 46, .8);
  color: #a9bdd1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}
.filter-bar a:hover {
  border-color: rgba(34, 211, 238, .55);
  background: rgba(34, 211, 238, .1);
  color: #bdeaf5;
}
.filter-bar a.active {
  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
  border-color: transparent;
  color: #05121b;
  font-weight: 700;
  box-shadow: 0 6px 18px -8px rgba(34, 211, 238, .7);
}

/* ---------- 2) COA 报告卡
   styles.css:249 硬编码 background:#fff ---------- */
.coa-card {
  border: 1px solid rgba(80, 120, 180, .2);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(12, 19, 33, .85);
  box-shadow: 0 14px 32px -22px rgba(0, 0, 0, .9);
  transition: border-color .25s ease, transform .25s ease;
}
.coa-card:hover {
  border-color: rgba(34, 211, 238, .45);
  transform: translateY(-3px);
}
.coa-card button {
  display: grid; width: 100%; min-height: 100%;
  padding: 0; border: 0;
  background: transparent;
  color: inherit; text-align: left; cursor: pointer;
}
.coa-card img { background: rgba(8, 13, 22, .9); }
.coa-card span { color: #22d3ee; font-weight: 700; letter-spacing: .06em; }
.coa-card strong { color: #e2edf7; }

/* COA 灯箱 */
.coa-lightbox { background: rgba(3, 6, 12, .93); }
.coa-lightbox figure, .coa-lightbox img {
  background: rgba(12, 19, 33, .95);
  border-radius: 12px;
}
.coa-lightbox figcaption { color: #a9bdd1; }

/* ---------- 3) 关于页相册
   styles.css:219 硬编码 background:#fff ---------- */
.about-gallery-section { background: transparent; }
.about-gallery figure {
  background: rgba(12, 19, 33, .85);
  border: 1px solid rgba(80, 120, 180, .18);
  border-radius: 14px;
  box-shadow: 0 14px 34px -24px rgba(0, 0, 0, .9);
}
.about-gallery figcaption {
  background: linear-gradient(180deg, transparent, rgba(4, 8, 16, .9));
  color: #dbe8f4;
}

/* ---------- 4) feature-card / 特性卡 ---------- */
.feature-card {
  background: rgba(12, 19, 33, .82) !important;
  border: 1px solid rgba(80, 120, 180, .18) !important;
  border-radius: 15px;
  padding: 26px;
  transition: border-color .25s ease, transform .25s ease;
}
.feature-card:hover {
  border-color: rgba(34, 211, 238, .4);
  transform: translateY(-3px);
}
.feature-card h3 { color: #eaf3fb; }
.feature-card p { color: #9fb3c8; }

/* ---------- 5) 标签组 tag-row / pill ---------- */
.tag-row span, .pill {
  background: rgba(34, 211, 238, .1) !important;
  color: #7fd8e8 !important;
  border: 1px solid rgba(34, 211, 238, .26);
  font-weight: 600 !important;
}

/* ---------- 6) 详情页规格表 specs ---------- */
.specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid rgba(80, 120, 180, .2);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(12, 19, 33, .8);
  margin: 0 0 26px;
}
.specs > div {
  padding: 15px 18px;
  border-right: 1px solid rgba(80, 120, 180, .14);
  border-bottom: 1px solid rgba(80, 120, 180, .14);
}
.specs > div:nth-child(2n) { border-right: 0; }
.specs > div:nth-last-child(-n+2) { border-bottom: 0; }
.specs dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #7f95ad; margin-bottom: 5px;
}
.specs dd { margin: 0; font-size: 14.5px; font-weight: 600; color: #e2edf7; }

/* ---------- 7) 信息栏 info-columns ---------- */
.info-columns article {
  background: rgba(12, 19, 33, .82);
  border: 1px solid rgba(80, 120, 180, .18);
  border-radius: 15px;
  padding: 24px;
  transition: border-color .25s ease;
}
.info-columns article:hover { border-color: rgba(34, 211, 238, .35); }
.info-columns h3 { color: #eaf3fb; }
.info-columns p { color: #9fb3c8; }

/* ---------- 8) 博客网格卡 ---------- */
.blog-grid article {
  background: rgba(12, 19, 33, .82) !important;
  border: 1px solid rgba(80, 120, 180, .18) !important;
  border-radius: 15px;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.blog-grid article:hover {
  border-color: rgba(34, 211, 238, .4);
  transform: translateY(-3px);
}
.blog-grid h3, .blog-grid a { color: #eaf3fb; }
.blog-grid p { color: #9fb3c8; }
.blog-grid article > span {
  color: #22d3ee;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- 9) 分类介绍块 category-intro ---------- */
.category-intro { padding: 44px 0 12px; max-width: 820px; margin: 0; text-align: left; }
.category-intro h2 { color: #eef5fb; margin: 12px 0 10px; font-size: 32px; letter-spacing: -.02em; }
.category-intro p { color: #9fb3c8; font-size: 15px; line-height: 1.65; }

/* ---------- 10) 购物车 / 账户 / 表单 ---------- */
.cart-row, .account-card, .order-card, .form-card {
  background: rgba(12, 19, 33, .82);
  border: 1px solid rgba(80, 120, 180, .18);
  border-radius: 15px;
}
input, textarea, select {
  background: rgba(7, 12, 21, .9);
  border: 1px solid rgba(90, 130, 190, .3);
  color: #eaf3fb;
  border-radius: 10px;
}
input::placeholder, textarea::placeholder { color: #6d829a; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .16);
}
label, .form-card label { color: #a9bdd1; }

/* ---------- 11) 文档类页面（terms/privacy/shipping/returns）---------- */
.info-block, .legal-block, .doc-section {
  background: rgba(12, 19, 33, .78);
  border: 1px solid rgba(80, 120, 180, .16);
  border-radius: 15px;
  padding: 26px;
  margin-bottom: 18px;
}
.info-block h2, .legal-block h2, .doc-section h2 { color: #eaf3fb; }
.info-block p, .legal-block p, .doc-section p,
.info-block li, .legal-block li, .doc-section li { color: #9fb3c8; }
.info-block strong, .legal-block strong, .doc-section strong { color: #dbe8f4; }

/* ---------- 12) 页面头 page-hero ---------- */
.page-hero {
  background: linear-gradient(158deg, rgba(20, 30, 50, .9), rgba(8, 13, 22, .96));
  border-bottom: 1px solid rgba(80, 120, 180, .16);
  padding: 64px 24px 54px;
  text-align: left;
}
.page-hero h1 { color: #f0f6fc; margin: 12px 0 14px; }
.page-hero p { color: #9fb3c8; max-width: 760px; }
.page-hero .eyebrow { color: #22d3ee; }
@media (min-width: 1260px) {
  .page-hero { padding-left: calc((100vw - 1200px) / 2); padding-right: calc((100vw - 1200px) / 2); }
}

/* ---------- 12b) 内页 section 节奏收紧 ---------- */
.products-page { padding-top: 34px; }
.products-page .category-intro { text-align: left; padding: 20px 0 10px; max-width: 820px; margin: 0; }
.products-page .category-intro .pill { display: inline-block; }
.products-page .filter-bar { margin-top: 22px; }

/* ---------- 13) 空状态 / 提示 ---------- */
.empty-state, .notice, .hint {
  background: rgba(12, 19, 33, .78);
  border: 1px dashed rgba(80, 120, 180, .3);
  border-radius: 15px;
  color: #9fb3c8;
}

/* ---------- 14) 通用表格（内页）---------- */
table:not(.shelf-table):not(.compare-table) {
  background: rgba(12, 19, 33, .8);
  border: 1px solid rgba(80, 120, 180, .18);
  border-radius: 13px;
  overflow: hidden;
}
table:not(.shelf-table):not(.compare-table) th {
  background: rgba(18, 28, 46, .9);
  color: #a9bdd1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
table:not(.shelf-table):not(.compare-table) td { color: #c9d9e8; }
table:not(.shelf-table):not(.compare-table) tr { border-bottom: 1px solid rgba(80, 120, 180, .12); }

/* ---------- 16) logo 透明底（扫描到的 img 白底）---------- */
.brand img, .footer-logo img,
.site-header img[alt*="logo" i],
.site-footer img[alt*="logo" i] {
  background: transparent !important;
  background-color: transparent !important;
  mix-blend-mode: normal;
}
.brand, .footer-logo { background: transparent !important; }

/* ---------- 15) 响应式 ---------- */
@media (max-width: 820px) {
  .specs { grid-template-columns: 1fr; }
  .specs > div { border-right: 0; }
  .specs > div:nth-last-child(-n+2) { border-bottom: 1px solid rgba(80, 120, 180, .14); }
  .specs > div:last-child { border-bottom: 0; }
  .category-intro h2 { font-size: 25px; }
  .filter-bar { gap: 8px; }
  .filter-bar a { padding: 8px 14px; font-size: 12.5px; }
}
