/* ==========================================================================
   正大兴盖板 (ZHENG DA XING) - 完整企业官网自适应设计系统与样式表
   ========================================================================== */

/* 1. 设计系统变量 (Design Tokens) */
:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* 默认明亮模式色彩体系 */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f3f5;
  --bg-glass: rgba(255, 255, 255, 0.78);
  
  --text-primary: #1a1b1e;
  --text-secondary: #495057;
  --text-muted: #868e96;
  
  --accent-color: #2b8a3e; /* 清雅墨绿，体现高级质感 */
  --accent-hover: #237032;
  --accent-light: rgba(43, 138, 62, 0.1);
  --star-color: #fab005; /* 收藏夹明亮黄色 */
  
  --border-color: #e9ecef;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 暗黑模式色彩体系 */
[data-theme="dark"] {
  --bg-primary: #101113;
  --bg-secondary: #1a1b1e;
  --bg-tertiary: #25262b;
  --bg-glass: rgba(26, 27, 30, 0.82);
  
  --text-primary: #f8f9fa;
  --text-secondary: #c1c2c5;
  --text-muted: #909296;
  
  --border-color: #2c2e33;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* 2. 基础复位 (Reset) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  padding-bottom: 60px; /* 留出手机端底部工具栏高度 */
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
}

ul, li {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

/* 辅助类 */
.trans {
  transition: all var(--transition-normal);
}

/* 3. Page Loader */
#pageloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-secondary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity var(--transition-slow) ease, visibility var(--transition-slow);
}
body:not(.loading) #pageloader {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  margin: 0 auto 20px;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  font-weight: 600;
  animation: pulse 1.5s infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* 4. 视图切换器面板 (View Panels) */
.view_panel {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}
.view_panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 5. 头部导航栏 (Header) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

/* Logo */
.logo_container {
  display: flex;
  flex-direction: column;
}
.logo_text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.logo_sub {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

/* 搜索框 */
.search_wrapper {
  position: relative;
  width: 32%;
  max-width: 400px;
  display: flex;
  align-items: center;
}
#search_input {
  width: 100%;
  height: 40px;
  background-color: var(--bg-tertiary);
  border: 1px solid transparent;
  border-radius: 50px; /* 椭圆形状，更显精致 */
  padding: 0 15px 0 45px;
  font-family: var(--font-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
#search_input:focus {
  border-color: var(--accent-color);
  background-color: var(--bg-secondary);
  box-shadow: 0 0 0 3px var(--accent-light);
  outline: none;
}
.search_icon {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}
#search_clear_btn {
  position: absolute;
  right: 15px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--text-muted);
  color: var(--bg-secondary);
  font-size: 0.75rem;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
}
#search_clear_btn:hover { opacity: 1; }

/* 动作按钮组 */
.header_actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.theme_btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.theme_btn:hover { background-color: var(--bg-tertiary); }

/* 汉堡包 */
.menu_btn {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}
.menu_btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.menu_btn:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-secondary);
}
.menu_btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu_btn.active span:nth-child(2) { opacity: 0; }
.menu_btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 侧边抽屉 */
#side_drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 320px;
  height: 100vh;
  background-color: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color);
  z-index: 1010;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
#side_drawer.active { right: 0; }

#nav_overlayer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1005;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}
#nav_overlayer.active {
  opacity: 1;
  visibility: visible;
}

.close_drawer_btn {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 2.2rem;
  color: var(--text-secondary);
}

.drawer_header { margin-bottom: 50px; }
.drawer_header h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}
.drawer_header p {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--accent-color);
  letter-spacing: 0.25em;
  font-weight: 600;
  margin-top: 5px;
}

.drawer_menu li { margin-bottom: 25px; }
.drawer_menu li a {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: 1.15rem;
}
.drawer_menu li a .en {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.drawer_menu li.active a, .drawer_menu li a:hover { color: var(--accent-color); }

.drawer_submenu {
  padding-left: 20px;
  margin-top: 15px;
  border-left: 1px solid var(--border-color);
}
.drawer_submenu li { margin-bottom: 12px; }
.drawer_submenu li a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
}
.drawer_submenu li a:hover { color: var(--accent-color); }

.drawer_footer {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 6. 首页视图专属组件 (Home Components) */

/* 6.1 幻灯片 Banner */
.banner_slider_wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background-color: #000;
  box-shadow: var(--shadow-sm);
}

.banner_slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 0 8%;
  transition: opacity 0.8s ease-in-out;
}
.banner_slide.active {
  opacity: 1;
  z-index: 2;
}

.banner_text {
  max-width: 600px;
  color: #ffffff;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}
.banner_slide.active .banner_text {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.2s;
}

.banner_text h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.banner_text p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 30px;
  font-weight: 300;
}

.banner_cta_btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 12px 35px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(43,138,62,0.4);
}
.banner_cta_btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43,138,62,0.5);
}

.banner_dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}
.banner_dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.banner_dots .dot.active {
  background-color: #ffffff;
  width: 25px; /* 激活时拉长，高逼格设计 */
  border-radius: 50px;
}

/* 6.2 快捷圆卡导航 */
.exlist_menu {
  margin: 50px 0;
}
.exlist_menu ul {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
.menu_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex: 1;
  min-width: 100px;
}
.menu_icon_bg {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}
.menu_item:hover .menu_icon_bg {
  transform: translateY(-8px) rotate(8deg);
  background-color: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 10px 25px rgba(43,138,62,0.25);
}
.menu_text {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* 6.3 首页搜索模块 */
.home_search_module {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 50px;
}
.home_search_module h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.home_search_module p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}
.home_search_box {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  overflow: hidden;
  background-color: var(--bg-primary);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
#home_search_input {
  flex: 1;
  height: 48px;
  border: none;
  background: none;
  padding: 0 25px;
  font-family: var(--font-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
}
#home_search_input:focus { outline: none; }
#home_search_submit_btn {
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 0 35px;
  font-size: 0.95rem;
  font-weight: 600;
}
#home_search_submit_btn:hover { background-color: var(--accent-hover); }

/* 6.4 主打分类 */
.index_pro_featured {
  margin-bottom: 60px;
}
.index_title {
  text-align: center;
  margin-bottom: 30px;
}
.index_title h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
}
.index_title p {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent-color);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: 500;
}

.featured_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.featured_card {
  height: 240px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-end;
}
.featured_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 80%);
  z-index: 1;
  transition: opacity var(--transition-normal);
}
.featured_card:hover::before {
  opacity: 0.9;
}
.card_inner {
  position: relative;
  z-index: 2;
  padding: 25px;
  color: #ffffff;
  transform: translateY(10px);
  transition: transform var(--transition-normal);
}
.featured_card:hover .card_inner {
  transform: translateY(0);
}
.card_inner h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.card_inner span {
  font-size: 0.8rem;
  opacity: 0.8;
  letter-spacing: 0.05em;
}

  /* 手机端主布局复位 */
  body {
    padding-top: 0;
  }
  
  #main {
    padding-top: 70px; /* 留出置顶 header 空间 */
  }

/* 6.5 产品推荐 */
.recom_section {
  margin-bottom: 50px;
}
.recom_wrapper {
  display: flex;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  align-items: center;
}
.recom_img_box {
  flex: 1;
  max-width: 50%;
  height: 380px;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.recom_img_box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}
.recom_wrapper:hover .recom_img_box img {
  transform: scale(1.05);
}
.recom_content {
  flex: 1;
  padding: 50px;
}
.recom_content h4 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}
.recom_desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 25px;
}
.recom_features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
  margin-bottom: 30px;
}
.recom_features span {
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 50px;
}
.recom_cta_btn {
  background-color: var(--text-primary);
  color: var(--bg-secondary);
  padding: 12px 30px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
}
.recom_cta_btn:hover {
  background-color: var(--accent-color);
  color: #ffffff;
}

/* 7. 产品分类网格视图专属样式 (Catalog view styles) */
#main {
  padding-top: 90px;
}

.catalog_section {
  padding: 10px 0;
}

/* 移动端图册内搜索框 (PC端默认隐藏) */
.catalog_search_wrapper {
  display: none;
}

/* 分类选项卡 */
.filter_tabs_container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.filter_tabs {
  display: flex;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 5px;
  box-shadow: var(--shadow-sm);
  gap: 2px;
}
.filter_tabs li {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter_tabs li:hover {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}
.filter_tabs li.active {
  background-color: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(43, 138, 62, 0.25);
}
.filter_tabs li.fav_tab {
  border-left: 1px solid var(--border-color);
  border-radius: 50px;
}

#filter_status {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}
#filtered_count {
  font-weight: 600;
  color: var(--accent-color);
}

/* 卡片卡槽 */
.grid_container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  padding-bottom: 50px;
}
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.card_img_wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background-color: #ffffff;
  overflow: hidden;
}
.card_img_wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  opacity: 0;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}
.card_img_wrapper img.loaded { opacity: 1; }

.card_img_wrapper.loading_skeleton::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-primary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: loading-pulse 1.5s infinite;
}
.card:hover img { transform: scale(1.06); }

.card_fav_btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-glass);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-sm);
  z-index: 5;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.card_fav_btn:hover {
  transform: scale(1.1);
  color: var(--star-color);
}
.card_fav_btn.is_fav { color: var(--star-color); }

.card_info {
  padding: 15px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  margin-top: auto;
}
.card_title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card_category {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* 8. 灯箱大图系统 */
#lightbox_modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}
#lightbox_modal.active { display: flex; }

.lightbox_backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 11, 13, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox_header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
.lightbox_title {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.lightbox_actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lightbox_btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.lightbox_btn:hover { background-color: rgba(255, 255, 255, 0.2); }
.lightbox_close_btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  padding: 0 10px;
  opacity: 0.8;
  display: flex;
  align-items: center;
}
.lightbox_close_btn:hover { opacity: 1; }

.lightbox_body {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 70px 80px;
  z-index: 5;
}
.lightbox_image_wrapper {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
#lightbox_img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}
#lightbox_img:active { cursor: grabbing; }

.nav_btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1;
}
.nav_btn:hover { background-color: rgba(255, 255, 255, 0.25); }
.prev_btn { left: 30px; }
.next_btn { right: 30px; }

.lightbox_footer {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.lightbox_index {
  color: #a0aec0;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* 9. 信息模态框 (Modal) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2500;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
}
.modal.active {
  opacity: 1;
  visibility: visible;
}
.modal_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal_container {
  position: relative;
  width: 90%;
  max-width: 500px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 35px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  z-index: 10;
  transition: transform var(--transition-normal);
}
.modal.active .modal_container { transform: scale(1); }
.modal_close_btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.8rem;
  color: var(--text-muted);
}
.modal_close_btn:hover { color: var(--text-primary); }

.info_title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 5px;
}
.info_p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 15px;
}
.info_contact_list li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}
.info_contact_list b {
  color: var(--text-primary);
  width: 80px;
}

/* 10. 页脚 (Footer) */
footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 25px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 50px;
}
footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 11. 手机端底部菜单 */
#us_panel2 {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
  z-index: 990;
  display: none;
}
#us_panel2 table {
  width: 100%;
  height: 100%;
  table-layout: fixed;
}
#us_panel2 td {
  text-align: center;
  vertical-align: middle;
}
#us_panel2 a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 500;
  gap: 3px;
}
#us_panel2 i {
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1;
}
#us_panel2 td.active a { color: var(--accent-color); }

/* 12. 响应式控制 */

@media screen and (min-width: 1200px) {
  .grid_container { grid-template-columns: repeat(5, 1fr); }
}

@media screen and (max-width: 991px) {
  .search_wrapper { width: 40%; }
  .grid_container { grid-template-columns: repeat(3, 1fr); }
  .featured_grid { gap: 15px; }
  .featured_card { height: 200px; }
  .recom_content { padding: 30px; }
  .recom_img_box { height: 320px; }
}

@media screen and (max-width: 767px) {
  header {
    height: 60px;
    padding: 0 4%;
  }
  .logo_text { font-size: 1.15rem; }
  .logo_sub { font-size: 0.55rem; letter-spacing: 0.2em; }
  
  .search_wrapper {
    display: none; /* 手机端顶部菜单中不常驻，通过首页搜索和侧栏搜索交互 */
  }
  
  #main { padding-top: 60px; }
  
  /* 幻灯片 */
  .banner_slider_wrapper { height: 260px; }
  .banner_text h2 { font-size: 1.8rem; margin-bottom: 8px; }
  .banner_text p { font-size: 0.85rem; margin-bottom: 15px; }
  .banner_cta_btn { padding: 8px 20px; font-size: 0.8rem; }
  
  /* 快捷菜单 - 手机端自适应4列等宽 */
  .exlist_menu { margin: 30px 0; }
  .exlist_menu ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .menu_icon_bg { width: 55px; height: 55px; font-size: 1.5rem; }
  .menu_text { font-size: 0.8rem; margin-top: 8px; }

  /* 手机端图册搜索框样式 */
  .catalog_search_wrapper {
    display: flex;
    position: relative;
    width: 96%;
    margin: 0 auto 20px;
    align-items: center;
  }
  #catalog_search_input {
    width: 100%;
    height: 42px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0 15px 0 45px;
    font-family: var(--font-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
  }
  #catalog_search_input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-light);
  }
  .catalog_search_icon {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
  }
  
  /* 主打推荐 */
  .featured_grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .featured_card { height: 130px; }
  
  /* 旗舰推荐 */
  .recom_wrapper { flex-direction: column; }
  .recom_img_box { max-width: 100%; width: 100%; height: 240px; }
  .recom_content { padding: 25px; width: 100%; }
  .recom_content h4 { font-size: 1.3rem; }
  .recom_desc { font-size: 0.85rem; }
  
  /* 产品分类 */
  .filter_tabs_container {
    margin-bottom: 20px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
  }
  .filter_tabs {
    border-radius: 0;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0 4%;
  }
  .filter_tabs li {
    padding: 8px 16px;
    white-space: nowrap;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
  }
  .grid_container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 2%;
  }
  .card_info { padding: 8px; }
  .card_title { font-size: 0.8rem; }
  .card_category { font-size: 0.7rem; }
  
  #us_panel2 { display: block; }
  footer { padding: 20px 0 80px; }
  footer .container { flex-direction: column; gap: 10px; text-align: center; }
  
  .lightbox_body { padding: 60px 10px; }
  .nav_btn { display: none; }
  #lightbox_img { max-width: 95vw; max-height: 70vh; }
}
