:root {
  --primary: #0f766e;       /* 青绿主题色 */
  --primary-dark: #115e59;
  --accent: #f59e0b;        /* 琥珀金点缀 */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 基础重置 */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Microsoft YaHei", sans-serif; color: var(--text-main); background: var(--bg-body); line-height: 1.6; overflow-x: hidden; }
a { color: var(--text-main); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; border: 0; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 20px; }

/* 头部品牌 */
.header-top { background: #fff; border-bottom: 1px solid var(--border); padding: 15px 0; }
.header-top-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 60px; max-width: 200px; object-fit: contain; }
.brand-name { font-size: 28px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.lang-switch { font-size: 14px; color: var(--text-muted); }
.lang-switch a { padding: 0 5px; font-weight: bold; }
.lang-switch a.active, .lang-switch a:hover { color: var(--primary); }
.search-form { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: #f8fafc; height: 38px; }
.search-form input { border: 0; background: transparent; padding: 0 15px; outline: none; width: 200px; font-size: 14px; }
.search-form button { border: 0; background: var(--primary); color: #fff; padding: 0 16px; height: 100%; cursor: pointer; }

/* 导航 */
.nav-main { background: var(--primary); position: relative; }
.nav-main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-main li { position: relative; }
.nav-main a { display: block; color: #fff; padding: 15px 25px; font-size: 16px; font-weight: 500; }
.nav-main a:hover { background: var(--primary-dark); color: #fff; }
.nav-main li > ul { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 160px; z-index: 99; box-shadow: var(--shadow); border-radius: 0 0 8px 8px; border: 1px solid var(--border); border-top: none; }
.nav-main li:hover > ul { display: block; }
.nav-main li > ul a { color: var(--text-main); padding: 12px 20px; font-size: 14px; border-bottom: 1px solid #f1f5f9; }
.nav-main li > ul a:hover { background: #f8fafc; color: var(--primary); }
.nav-sub { background: #fff; border-bottom: 1px solid var(--border); }
.nav-sub ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-sub a { display: block; padding: 10px 20px; color: var(--text-muted); font-size: 14px; }

/* 轮播图 */
.slider-container { margin-top: 24px; }
.slider { position: relative; width: 100%; height: 500px; overflow: hidden; border-radius: var(--radius); background: #eee; box-shadow: var(--shadow); }
.slider .slide { display: none; position: absolute; inset: 0; }
.slider .slide.active { display: block; }
.slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.slider .dots { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; z-index: 5; }
.slider .dots span { display: inline-block; width: 12px; height: 12px; background: rgba(255,255,255,.6); border-radius: 50%; margin: 0 6px; cursor: pointer; transition: .2s; }
.slider .dots span.active { background: var(--accent); transform: scale(1.2); }

/* ================= 核心：宽屏左中右三栏布局 ================= */
.page-layout {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  max-width: 1440px;
  margin: 30px auto;
  padding: 0 20px;
}
.layout-left {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
}
.layout-main {
  flex: 1;
  min-width: 0;
}

/* 左侧栏卡片 */
.side-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.side-box h3 {
  font-size: 16px;
  margin: 0 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  position: relative;
}
.side-box h3::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 30px; height: 2px; background: var(--accent);
}
.contact-box { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; }
.contact-box h3 { color: #fff; border-bottom-color: rgba(255,255,255,0.2); }
.contact-box h3::after { background: var(--accent); }
.contact-box ul { list-style: none; margin: 0; padding: 0; }
.contact-box li { font-size: 14px; margin-bottom: 10px; opacity: 0.9; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li { font-size: 14px; padding: 8px 0; border-bottom: 1px dashed #f1f5f9; }
.side-box li:last-child { border-bottom: none; }
.side-box li a { color: var(--text-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-box li a:hover { color: var(--primary); padding-left: 4px; }

/* 右侧固定二维码 */
.fixed-qr {
  width: 110px;
  flex-shrink: 0;
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qr-item {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: 0.3s;
}
.qr-item:hover { border-color: var(--primary); transform: translateX(-4px); }
.qr-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; background: #f8fafc; margin-bottom: 5px; }
.qr-item span { font-size: 12px; color: var(--text-muted); display: block; font-weight: 600; }

/* 中间内容区卡片 */
.main-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  min-height: 500px;
}
.block-title, .page-title {
  font-size: 24px;
  margin: 0 0 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  font-weight: 800;
}
.page-title { font-size: 26px; margin-bottom: 20px; }
.breadcrumb { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* 列表网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
  display: block; padding: 20px; border: 1px solid var(--border); border-radius: 8px;
  background: #f8fafc; color: var(--text-main); font-weight: 600; transition: 0.3s;
}
.card:hover { background: #fff; border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--primary); }

/* 新闻/归档列表 */
.news-list, .archive-list { display: flex; flex-direction: column; }
.news-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 0; border-bottom: 1px dashed var(--border); color: var(--text-main);
}
.news-item:last-child { border-bottom: none; }
.news-title { font-size: 15px; font-weight: 500; }
.news-item:hover .news-title { color: var(--primary); }
.news-arrow { color: var(--text-muted); font-weight: bold; transition: 0.3s; }
.news-item:hover .news-arrow { color: var(--primary); transform: translateX(5px); }

/* 文章内容 */
.article-content, .page-content, .product-content { font-size: 16px; line-height: 1.9; color: #333; }
.article-content img, .page-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 15px 0; }
.product-price { color: var(--accent); font-size: 20px; font-weight: bold; margin-bottom: 20px; }

/* 产品图集 */
.gallery { display: flex; flex-wrap: wrap; gap: 15px; margin: 15px 0 30px; }
.gallery img { width: 200px; height: 200px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.pagination a { display: inline-block; padding: 8px 16px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text-main); font-size: 14px; }
.pagination a:hover, .pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 底部 */
.footer { background: #0f172a; color: #94a3b8; text-align: center; padding: 30px 0; font-size: 14px; margin-top: 40px; }
.footer a { color: #94a3b8; }
.footer a:hover { color: #fff; }

/* 返回顶部 */
.back-to-top {
  position: fixed; right: 20px; bottom: 80px; width: 44px; height: 44px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); }

/* 移动端底栏 */
.mobile-bottom-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 60px;
  background: #fff; border-top: 1px solid var(--border); z-index: 1000;
}
.mobile-bottom-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); font-size: 12px; }
.mobile-bottom-bar svg { margin-bottom: 3px; }

/* ================= 响应式 (平板/手机) ================= */
@media (max-width: 992px) {
  body { padding-bottom: 60px; }
  .container { padding: 0 15px; }
  
  .header-top-inner { flex-direction: column; gap: 15px; }
  .brand-name { font-size: 24px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .search-form { flex: 1; }
  .search-form input { width: 100%; }

  /* 手机端菜单折叠 */
  .nav-main { padding-top: 45px; }
  .mobile-menu-btn {
    position: absolute; top: 5px; right: 15px; padding: 6px 15px;
    background: transparent; color: #fff; border: 1px solid #fff;
    border-radius: 4px; font-size: 14px; cursor: pointer; z-index: 10;
  }
  .nav-main .container { display: none; }
  .nav-main.menu-open .container { display: block; }
  .nav-main ul { display: block; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-main li { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-main a { padding: 15px 20px; font-size: 15px; }
  .nav-main li.has-sub > a::after {
    content: ''; position: absolute; right: 20px; top: 50%; margin-top: -3px;
    width: 8px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(45deg); transition: transform 0.3s;
  }
  .nav-main li.has-sub.active > a::after { transform: rotate(-135deg); margin-top: 1px; }
  .nav-main li > ul { display: none !important; position: static !important; background: var(--primary-dark); box-shadow: none; border: none; }
  .nav-main li.active > ul { display: block !important; }
  .nav-main li > ul a { padding: 12px 20px 12px 40px; color: #cbd5e1; border-bottom: none; }
  .nav-main li > ul a:hover { color: #fff; background: transparent; }

  .mobile-menu-btn .text-zh { display: inline; }
  .mobile-menu-btn .text-en { display: none; }
  body.lang-en .mobile-menu-btn .text-zh { display: none; }
  body.lang-en .mobile-menu-btn .text-en { display: inline; }

  /* 布局变为单栏，隐藏左右侧边栏 */
  .page-layout { flex-direction: column; margin: 20px auto; gap: 20px; }
  .layout-left, .fixed-qr { display: none; }
  .layout-main { width: 100%; }
  .main-card { padding: 20px; }

  .slider { height: 220px; }
  .slider-container { margin-top: 15px; }
  .grid { grid-template-columns: 1fr; }
  .footer { margin-top: 20px; }
  
  .mobile-bottom-bar { display: flex; }
  .back-to-top { bottom: 75px; right: 15px; }
}