/* ============================================================
   宝鸡隆盛有色金属 — 全站样式
   作者原创代码，无任何第三方依赖
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --color-primary: #1a365d;
  --color-primary-light: #2d5f8a;
  --color-primary-dark: #0f2340;
  --color-accent: #e8a838;
  --color-accent-light: #f0c060;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-bg: #ffffff;
  --color-bg-light: #f5f7fa;
  --color-bg-dark: #1a202c;
  --color-border: #e2e8f0;
  --color-success: #38a169;
  --color-danger: #e53e3e;
  --color-warning: #dd6b20;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 6px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
}

p {
  margin-bottom: 1em;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ---------- 容器 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

/* ---------- 语言切换 ---------- */
.lang-switch {
  position: fixed;
  top: 12px;
  right: 20px;
  z-index: 1001;
  display: flex;
  gap: 8px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  transition: all var(--transition);
  border: 2px solid transparent;
  overflow: hidden;
}

.lang-switch a:hover,
.lang-switch a.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: scale(1.1);
}

.lang-switch a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ============================================================
   头部导航
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-md);
}

.site-header.scrolled .logo img {
  filter: none;
}

.site-header.scrolled .nav-link {
  color: var(--color-text) !important;
}

.site-header.scrolled .nav-link:hover {
  color: var(--color-accent) !important;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}

/* 主导航 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition);
  border-radius: var(--radius);
}

.nav-link:hover {
  color: var(--color-accent);
  background: rgba(255,255,255,0.08);
}

.site-header.scrolled .nav-link:hover {
  background: rgba(26,54,93,0.06);
}

/* 当前页高亮 */
.nav-link.active {
  color: var(--color-accent);
}

/* 二级导航 */
.sub-nav {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 160px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 100;
}

.sub-nav::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}

.nav-item:hover .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.sub-nav a {
  display: block;
  padding: 8px 20px;
  color: var(--color-text);
  font-size: 14px;
  transition: all var(--transition);
}

.sub-nav a:hover {
  color: var(--color-accent);
  background: var(--color-bg-light);
  padding-left: 24px;
}

/* 汉堡菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.site-header.scrolled .menu-toggle span {
  background: var(--color-primary);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   Banner / Hero
   ============================================================ */
.hero-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15,35,64,0.7) 0%,
    rgba(26,54,93,0.4) 50%,
    rgba(0,0,0,0.3) 100%
  );
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 90%;
  max-width: 800px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease 0.6s both;
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-btn {
  display: inline-block;
  padding: 12px 36px;
  background: var(--color-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  animation: fadeInUp 1s ease 0.9s both;
  text-shadow: none;
}

.hero-btn:hover {
  background: var(--color-accent-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232,168,56,0.35);
}

/* Banner 控制按钮 */
.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.hero-prev { left: 30px; }
.hero-next { right: 30px; }

.hero-prev:hover, .hero-next:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.1);
}

/* Banner 指示器 */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.hero-dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* 向下滚动提示 */
.scroll-down {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}

.scroll-down svg {
  width: 30px;
  height: 30px;
  fill: rgba(255,255,255,0.6);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================================
   子页面 Banner
   ============================================================ */
.page-banner {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15,35,64,0.8), rgba(45,95,138,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner-content {
  text-align: center;
  color: #fff;
}

.page-banner-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-banner-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
}

/* ============================================================
   通用区块
   ============================================================ */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--color-bg-dark);
  color: #fff;
}

.section-gray {
  background: var(--color-bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-dark .section-title {
  color: #fff;
}

.section-line {
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-desc {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   公司简介（首页）
   ============================================================ */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.about-text p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 24px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: var(--color-bg-light);
  border-radius: var(--radius);
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border: 4px solid var(--color-accent);
  border-top: none;
  border-left: none;
  border-radius: 0 0 var(--radius-lg) 0;
}

/* ============================================================
   产品展示
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  group: true;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.08);
}

.product-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26,54,93,0.85), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

.product-card-overlay a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.product-card-body {
  padding: 16px 20px;
}

.product-card-body h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.product-card-body p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   新闻列表
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 20px;
}

.news-card-date {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.news-card-body h4 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-card-body h4 a {
  color: var(--color-text);
}

.news-card-body h4 a:hover {
  color: var(--color-accent);
}

.news-card-body p {
  font-size: 14px;
  color: var(--color-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ============================================================
   联系方式
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.contact-item {
  padding: 30px 20px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.contact-item h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.contact-item p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* ============================================================
   子页面布局
   ============================================================ */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--color-border);
}

.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}

/* 侧栏 */
.sidebar {
  min-width: 0;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  padding: 14px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.sidebar-nav {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.sidebar-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--color-text);
  font-size: 15px;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
}

.sidebar-nav a:last-child {
  border-bottom: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--color-accent);
  background: var(--color-bg-light);
  padding-left: 28px;
}

.sidebar-nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--color-accent);
}

.sidebar-contact {
  margin-top: 24px;
  background: var(--color-bg-light);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-contact h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.sidebar-contact p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-contact svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

/* 主内容区 */
.main-content {
  min-width: 0;
}

.page-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.page-title-bar h2 {
  font-size: 22px;
  color: var(--color-primary);
}

/* ============================================================
   产品列表
   ============================================================ */
.product-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-list-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.product-list-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-list-item-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.product-list-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-list-item:hover .product-list-item-img img {
  transform: scale(1.06);
}

.product-list-item-info {
  padding: 14px 16px;
}

.product-list-item-info h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.product-list-item-info h4 a {
  color: var(--color-text);
}

.product-list-item-info h4 a:hover {
  color: var(--color-accent);
}

.product-list-item-info p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   新闻列表（子页面）
   ============================================================ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-list-item {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  padding: 20px;
}

.news-list-item:hover {
  box-shadow: var(--shadow-md);
}

.news-list-item-img {
  flex-shrink: 0;
  width: 220px;
  height: 150px;
  border-radius: var(--radius);
  overflow: hidden;
}

.news-list-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-list-item:hover .news-list-item-img img {
  transform: scale(1.05);
}

.news-list-item-body {
  flex: 1;
  min-width: 0;
}

.news-list-item-body h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.news-list-item-body h4 a {
  color: var(--color-text);
}

.news-list-item-body h4 a:hover {
  color: var(--color-accent);
}

.news-list-item-body .desc {
  font-size: 14px;
  color: var(--color-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.news-list-item-body .date {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ============================================================
   内容详情页
   ============================================================ */
.detail-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.detail-header h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.detail-meta {
  font-size: 14px;
  color: var(--color-text-muted);
  display: flex;
  justify-content: center;
  gap: 20px;
}

.detail-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text);
}

.detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 16px 0;
}

.detail-body p {
  margin-bottom: 16px;
}

/* 产品图片轮播 */
.product-gallery {
  margin-bottom: 30px;
}

.gallery-main {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-light);
  margin-bottom: 12px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-main .hero-prev,
.gallery-main .hero-next {
  width: 40px;
  height: 40px;
  font-size: 16px;
  background: rgba(0,0,0,0.4);
  border-color: transparent;
}

.gallery-main .hero-prev { left: 12px; }
.gallery-main .hero-next { right: 12px; }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  opacity: 0.6;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--color-accent);
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 上下篇导航 */
.detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.detail-nav a {
  font-size: 14px;
  color: var(--color-text-light);
}

.detail-nav a:hover {
  color: var(--color-accent);
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.pagination a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.pagination .active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ============================================================
   留言板
   ============================================================ */
.msg-list {
  margin-bottom: 40px;
}

.msg-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.msg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.msg-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-primary);
}

.msg-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.msg-meta span {
  background: var(--color-bg-light);
  padding: 2px 8px;
  border-radius: 3px;
}

.msg-reply {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--color-bg-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
}

.msg-reply strong {
  color: var(--color-primary);
}

/* 表单 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
  color: var(--color-text);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(45,95,138,0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.form-row .form-input {
  flex: 1;
}

.code-img {
  height: 40px;
  cursor: pointer;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  gap: 6px;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--color-accent-light);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

/* ============================================================
   评论
   ============================================================ */
.comment-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--color-border);
}

.comment-section h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-primary);
}

.comment-date {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: 10px;
}

.comment-text {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 6px;
  line-height: 1.7;
}

.comment-reply-btn {
  font-size: 12px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--color-bg-light);
  border: none;
  transition: all var(--transition);
}

.comment-reply-btn:hover {
  color: var(--color-accent);
  background: rgba(232,168,56,0.1);
}

.comment-children {
  margin-left: 52px;
}

/* 评论弹窗 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
}

.modal-box h5 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-text);
}

/* ============================================================
   分类标签导航
   ============================================================ */
.tag-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-size: 14px;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: #fff;
  transition: all var(--transition);
  text-decoration: none;
  gap: 6px;
}

.tag-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.tag-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 12px;
  border-radius: 50px;
  background: var(--color-bg-light);
  color: var(--color-text-muted);
}

.tag-btn.active .tag-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ============================================================
   搜索
   ============================================================ */
.search-bar {
  display: flex;
  max-width: 600px;
  margin: 0 auto 30px;
  box-shadow: var(--shadow-sm);
  border-radius: 50px;
  overflow: hidden;
  border: 2px solid var(--color-border);
  transition: border-color var(--transition);
}

.search-bar:focus-within {
  border-color: var(--color-primary-light);
}

.search-bar input {
  flex: 1;
  padding: 12px 24px;
  border: none;
  font-size: 15px;
  background: #fff;
}

.search-bar button {
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.search-bar button:hover {
  background: var(--color-primary-light);
}

.search-keyword {
  text-align: center;
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 30px;
}

.search-keyword strong {
  color: var(--color-accent);
}

/* 搜索结果列表 */
.search-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.search-item:hover {
  box-shadow: var(--shadow-md);
}

.search-item-img {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
}

.search-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-item-body h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.search-item-body h4 a {
  color: var(--color-text);
}

.search-item-body h4 a:hover {
  color: var(--color-accent);
}

.search-item-body .desc {
  font-size: 14px;
  color: var(--color-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.search-item-body .date {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ============================================================
   招聘
   ============================================================ */
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.job-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
  border-top: 3px solid var(--color-primary);
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.job-card-header {
  padding: 16px 20px;
  background: var(--color-bg-light);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-primary);
}

.job-card-body {
  padding: 16px 20px;
}

.job-card-body p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   会员页面
   ============================================================ */
.member-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  padding: 40px 0 80px;
}

.member-sidebar {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.member-sidebar a {
  display: block;
  padding: 12px 20px;
  color: var(--color-text);
  font-size: 15px;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition);
}

.member-sidebar a:last-child {
  border-bottom: none;
}

.member-sidebar a:hover,
.member-sidebar a.active {
  color: var(--color-accent);
  background: var(--color-bg-light);
}

.member-dropdown {
  display: none;
}

.info-table {
  width: 100%;
}

.info-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.info-table td:first-child {
  width: 120px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.8);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 60px 0 40px;
}

.footer-brand h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-accent);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer-col ul a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* ============================================================
   返回顶部
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* ============================================================
   标签列表页
   ============================================================ */
.tag-list-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--color-border);
  gap: 10px;
}

.tag-list-item svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

.tag-list-item a {
  flex: 1;
  color: var(--color-text);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tag-list-item a:hover {
  color: var(--color-accent);
}

.tag-list-date {
  font-size: 13px;
  color: var(--color-text-muted);
}

.tag-list-badges {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 3px;
  font-weight: normal;
}

.badge-top {
  background: #fed7d7;
  color: var(--color-danger);
}

.badge-rec {
  background: #fefcbf;
  color: var(--color-warning);
}

.badge-headline {
  background: #bee3f8;
  color: var(--color-primary-light);
}

/* ============================================================
   空状态
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ============================================================
   加载动画
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   浮动客服
   ============================================================ */
.floating-bar {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  position: relative;
  border: none;
}

.floating-btn:hover {
  background: var(--color-accent);
  transform: scale(1.1);
}

.floating-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.floating-tip {
  position: absolute;
  right: 54px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: #fff;
  color: var(--color-text);
  padding: 8px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.floating-btn:hover .floating-tip {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-layout {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  /* 导航移动端 */
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 0 30px;
    gap: 0;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
    z-index: 1001;
  }

  .main-nav.open {
    right: 0;
  }

  .nav-link {
    color: var(--color-text) !important;
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .nav-link:hover {
    background: var(--color-bg-light);
  }

  .sub-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0;
    display: none;
  }

  .sub-nav::before {
    display: none;
  }

  .nav-item.open .sub-nav {
    display: block;
  }

  .sub-nav a {
    padding: 10px 40px;
    font-size: 13px;
    border-bottom: 1px solid var(--color-border);
  }

  .sub-nav a:hover {
    padding-left: 44px;
  }

  /* 移动遮罩 */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  /* Logo 移动端 */
  .logo img {
    height: 34px;
  }

  /* Banner */
  .hero-banner {
    min-height: 500px;
    height: 100vh;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-prev, .hero-next {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .hero-prev { left: 12px; }
  .hero-next { right: 12px; }

  /* 区块 */
  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image img {
    height: 280px;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card-img {
    height: 160px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-card {
    display: flex;
  }

  .news-card-img {
    width: 140px;
    height: auto;
    min-height: 120px;
    flex-shrink: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 子页面 */
  .page-banner {
    height: 240px;
  }

  .page-banner-title {
    font-size: 24px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 20px 0 60px;
  }

  .sidebar {
    margin-bottom: 24px;
  }

  .product-list-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-list-item-img {
    height: 160px;
  }

  .news-list-item {
    flex-direction: column;
    gap: 12px;
  }

  .news-list-item-img {
    width: 100%;
    height: 180px;
  }

  .search-item {
    flex-direction: column;
  }

  .search-item-img {
    width: 100%;
    height: 180px;
  }

  .job-grid {
    grid-template-columns: 1fr;
  }

  /* 产品详情 */
  .gallery-main {
    height: 280px;
  }

  /* 会员 */
  .member-layout {
    grid-template-columns: 1fr;
    padding: 20px 0 60px;
  }

  .member-dropdown {
    display: block;
    margin-bottom: 16px;
  }

  .member-sidebar-pc {
    display: none;
  }

  /* 页脚 */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0 30px;
  }

  /* 语言切换 */
  .lang-switch {
    top: 14px;
    right: 70px;
  }

  .lang-switch a {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .floating-bar {
    right: 12px;
    bottom: 80px;
  }

  .floating-btn {
    width: 38px;
    height: 38px;
  }

  .back-to-top {
    right: 12px;
    bottom: 24px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-btn {
    padding: 10px 28px;
    font-size: 14px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card-body {
    padding: 10px 12px;
  }

  .product-card-body h4 {
    font-size: 13px;
  }

  .product-card-img {
    height: 130px;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .stat-num {
    font-size: 24px;
  }
}
