/*
 * 全芯联储 — PC 子页面样式（产品中心、商品详情、内容页、表单）
 * 视觉沿用 pc.css 的设计语言：#ff761a 主色、10px 卡片圆角、浅阴影。
 */

/* 子页面只有 PC 版（手机访问会被跳转到 H5），窄窗口下保持可读的最小宽度 */
.pc-page { min-width: 1080px; background: #f6f7fb; }
.pc-page .new_index { background: #f6f7fb; }
.pc-page .site_header { background: #fff; }

.new_index .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 22px; border-radius: 6px;
  font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: opacity .15s ease, background .15s ease;
}
.new_index .btn:hover { opacity: .9; }
.new_index .btn.ghost { color: #555; background: #fff; border: 1px solid #e3e3e3; }

/* 面包屑 */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 18px 0 14px; color: #999; font-size: 13px; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #ff761a; }
.breadcrumb em { font-style: normal; color: #333; }

/* ------------------------------------------------ 产品中心 */

.cat_page { padding-bottom: 40px; }
.cat_layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 20px; align-items: start; }

.cat_sidebar {
  position: sticky; top: 184px;
  padding: 8px 0; border-radius: 10px; background: #fff;
  box-shadow: 1px 4px 6px rgba(0, 0, 0, .05);
}
.cat_sidebar_title { margin: 0; padding: 12px 20px 10px; color: #111; font-size: 16px; font-weight: 800; }
.cat_group_title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 20px; color: #333; font-size: 14px; font-weight: 600;
}
.cat_group_title:hover, .cat_group_title.active { color: #ff761a; background: #fff6f0; }
.cat_group_arrow { width: 14px; height: 14px; color: #bbb; transition: transform .15s ease; }
.cat_group.is_open .cat_group_arrow { transform: rotate(90deg); color: #ff761a; }
.cat_children { padding: 2px 0 8px; }
.cat_children a { display: block; padding: 7px 20px 7px 34px; color: #666; font-size: 13px; }
.cat_children a:hover, .cat_children a.active { color: #ff761a; }
.cat_children a.active { font-weight: 600; }

.cat_content { min-width: 0; padding: 20px 24px 28px; border-radius: 10px; background: #fff; box-shadow: 1px 4px 6px rgba(0, 0, 0, .05); }
.cat_head { display: flex; align-items: baseline; gap: 14px; }
.cat_head h1 { margin: 0; color: #111; font-size: 24px; font-weight: 800; }
.cat_count { color: #999; font-size: 13px; }

.sort_bar { display: flex; gap: 6px; margin: 16px 0 18px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
.sort_bar a { padding: 6px 14px; border-radius: 5px; color: #555; font-size: 14px; }
.sort_bar a:hover { color: #ff761a; }
.sort_bar a.active { color: #ff761a; background: #fff4ed; font-weight: 600; }

.goods_grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.goods_grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.goods_card {
  display: block; overflow: hidden; border: 1px solid #f0f0f0; border-radius: 8px; background: #fff;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.goods_card:hover { border-color: #ffd0b3; box-shadow: 0 8px 24px rgba(255, 118, 26, .12); transform: translateY(-2px); }
.goods_image { aspect-ratio: 1 / 1; background: #f5f5f5; }
.goods_image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.goods_body { padding: 12px 14px 14px; }
.goods_name {
  display: -webkit-box; height: 42px; margin: 0; overflow: hidden;
  color: #222; font-size: 14px; line-height: 21px; font-weight: 600;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.goods_price { margin: 10px 0 0; color: #ff5a0f; font-size: 20px; font-weight: 800; }
.goods_price small { margin-left: 6px; color: #999; font-size: 12px; font-weight: 400; }
.goods_meta { margin: 6px 0 0; color: #999; font-size: 12px; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.pager a { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #e8e8e8; border-radius: 6px; color: #555; font-size: 14px; line-height: 34px; text-align: center; }
.pager a:hover { border-color: #ff761a; color: #ff761a; }
.pager a.active { border-color: #ff761a; color: #fff; background: #ff761a; }

.cat_empty { padding: 60px 20px 56px; text-align: center; }
.cat_empty--page { margin: 40px 0 60px; border-radius: 10px; background: #fff; }
.cat_empty img { display: block; width: 64px; height: 64px; margin: 0 auto; opacity: .9; }
.cat_empty_title { margin: 18px 0 8px; color: #222; font-size: 18px; font-weight: 700; }
.cat_empty_desc { margin: 0 auto; max-width: 420px; color: #888; font-size: 14px; line-height: 1.7; }
.cat_empty_actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }

/* ------------------------------------------------ 商品详情 */

.goods_page { padding-bottom: 40px; }
.goods_page .panel { margin-top: 0; margin-bottom: 20px; }
.goods_main { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 36px; padding: 28px; }

.goods_gallery_main { aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid #f0f0f0; border-radius: 10px; background: #f5f5f5; }
.goods_gallery_main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.goods_gallery_thumbs { display: flex; gap: 10px; margin-top: 12px; }
.goods_gallery_thumbs button { width: 72px; height: 72px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: #f5f5f5; cursor: pointer; }
.goods_gallery_thumbs button.active { border-color: #ff761a; }
.goods_gallery_thumbs img { width: 100%; height: 100%; object-fit: cover; }

.goods_info h1 { margin: 4px 0 0; color: #111; font-size: 26px; line-height: 1.35; font-weight: 800; }
.goods_subtitle { margin: 10px 0 0; color: #888; font-size: 14px; line-height: 1.6; }
.goods_price_box { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 0; padding: 18px 22px; border-radius: 8px; background: linear-gradient(90deg, #fff5ee, #fffaf6); }
.goods_price_label { color: #999; font-size: 14px; }
.goods_price_value { color: #ff5a0f; font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.goods_price_unit { color: #999; font-size: 14px; }

.goods_meta_list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 22px 0 0; }
.goods_meta_list div { display: flex; gap: 14px; font-size: 14px; }
.goods_meta_list dt { flex: 0 0 42px; color: #999; }
.goods_meta_list dd { margin: 0; color: #333; }

.goods_actions { display: flex; gap: 12px; margin-top: 28px; }
.goods_actions .btn { height: 46px; padding: 0 30px; font-size: 16px; }
.goods_tip { margin: 16px 0 0; color: #aaa; font-size: 12px; line-height: 1.6; }

.goods_detail { padding: 0; overflow: hidden; }
.goods_detail_tabs { display: flex; padding: 0 28px; border-bottom: 1px solid #f0f0f0; }
.goods_detail_tabs span { padding: 16px 4px; margin-right: 28px; color: #333; font-size: 16px; font-weight: 700; }
.goods_detail_tabs span.active { color: #ff761a; box-shadow: inset 0 -3px 0 #ff761a; }
.goods_detail_body { padding: 24px 28px 32px; color: #333; font-size: 14px; line-height: 1.8; overflow-x: auto; }
.goods_detail_body img { display: block; max-width: min(100%, 790px); height: auto; margin: 0 auto; }
.goods_detail_empty { color: #aaa; text-align: center; }

.goods_related { padding: 22px 28px 28px; }
.goods_related .section_title { margin-bottom: 16px; }
.goods_related .section_title h2 { font-size: 22px; line-height: 30px; }

/* 电脑端商城框：H5 页面放在手机尺寸的框里 */
.h5_page { padding-top: 24px; padding-bottom: 48px; }
.h5_wrap { display: flex; align-items: flex-start; justify-content: center; gap: 32px; }
.h5_phone { flex: none; width: 414px; height: calc(100vh - 170px); min-height: 640px; max-height: 880px; overflow: hidden; border: 10px solid #1f2329; border-radius: 38px; background: #fff; box-shadow: 0 24px 60px rgba(17, 24, 39, .18); }
.h5_phone iframe { display: block; width: 100%; height: 100%; border: 0; }
.h5_side { flex: none; width: 340px; padding: 28px 26px; }
.h5_side h1 { margin: 0; color: #111; font-size: 22px; font-weight: 800; }
.h5_lead { margin: 10px 0 18px; color: #666; font-size: 14px; line-height: 1.7; }
.h5_links { display: grid; gap: 8px; }
.h5_links a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid #f0f0f0; border-radius: 8px; color: #333; font-size: 15px; transition: border-color .2s, color .2s; }
.h5_links a:hover { border-color: #ffc9a3; color: #ff761a; }
.h5_links svg { width: 14px; height: 14px; color: #bbb; }
.h5_tips { margin: 18px 0 0; padding: 14px 16px 14px 32px; border-radius: 8px; background: #fff8f2; color: #666; font-size: 13px; line-height: 1.8; }
.h5_tips a { color: #ff761a; }
.h5_qr { display: flex; flex-direction: column; align-items: center; margin-top: 18px; color: #888; font-size: 13px; }
.h5_qr img { width: 150px; height: 150px; margin-bottom: 8px; padding: 6px; border: 1px solid #eee; border-radius: 8px; }
.h5_back { display: inline-block; margin-top: 18px; color: #999; font-size: 14px; }
.h5_back:hover { color: #ff761a; }
