/* 基础 */
:root {
  --brand: #0c66ff;
  --brand-600: #225dff;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
  
  /* 响应式断点 */
  --mobile-max: 767px;
  --tablet-min: 768px;
  --tablet-max: 1023px;
  --desktop-min: 1024px;
  
  /* 响应式字体大小 */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  padding-top: calc(4rem + env(safe-area-inset-top)); /* 预留头部与 iOS 顶部安全区 */
  font-size: var(--font-size-base);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { 
  width: 100%; 
  margin: 0 auto; 
  padding: 0 1rem;
  max-width: 100%;
}
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; background: #000; color: #fff; padding: 0.5rem 0.75rem; border-radius: 0.375rem; }

/* 头部 */
.site-header { 
  position: fixed; 
  left: 0; 
  right: 0; 
  top: 0; 
  z-index: 100; 
  background: rgba(255,255,255,0.95); 
  backdrop-filter: saturate(180%) blur(12px); 
  border-bottom: 1px solid var(--border); 
  box-shadow: 0 2px 10px rgba(0,0,0,0.04); 
  height: calc(4rem + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
}
.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 0.75rem 1rem; 
  height: 100%;
  max-width: 100%;
}
.brand { 
  display: flex; 
  align-items: center; 
  gap: 0.625rem; 
  color: inherit; 
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.logo { 
  width: 2.25rem; 
  height: 2.25rem; 
  flex-shrink: 0;
}
.brand-name { 
  font-weight: 700; 
  letter-spacing: 0.02em; 
  font-size: var(--font-size-lg);
  white-space: nowrap;
}
.nav-toggle { 
  display: none; 
  background: transparent; 
  border: 1px solid var(--border); 
  padding: 0.5rem; 
  border-radius: 0.5rem; 
  min-width: 3rem;
  min-height: 3rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.nav-toggle:hover { background: var(--bg-alt); }
.nav-toggle:active { transform: translateY(1px); }
.site-nav ul { 
  display: flex; 
  list-style: none; 
  gap: 1.125rem; 
  margin: 0; 
  padding: 0; 
  align-items: center;
}
.site-nav a { 
  color: var(--text); 
  padding: 0.75rem 1rem; 
  border-radius: 0.625rem; 
  transition: background 0.2s, color 0.2s; 
  font-size: var(--font-size-base);
  white-space: nowrap;
  min-height: 3rem;
  display: flex;
  align-items: center;
}
.site-nav li:hover > a, .site-nav a:hover { 
  background: var(--brand); 
  color: #fff; 
  text-decoration: none; 
}

/* 横幅 */
.hero { 
  padding: 3.5rem 1rem; 
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%); 
  min-height: 50vh;
  display: flex;
  align-items: center;
}
.hero-inner { 
  display: grid; 
  grid-template-columns: 1.2fr 1fr; 
  gap: 2rem; 
  align-items: center; 
  width: 100%;
  max-width: 100%;
}
.hero h1 { 
  margin: 0 0 0.625rem; 
  font-size: var(--font-size-4xl); 
  line-height: 1.25; 
  font-weight: 700;
}
.hero p { 
  color: var(--muted); 
  margin: 0 0 1.125rem; 
  font-size: var(--font-size-lg);
  line-height: 1.6;
}
.hero-actions { 
  display: flex; 
  gap: 0.75rem; 
  flex-wrap: wrap;
}
.hero-media { 
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-media img { 
  border-radius: 1rem; 
  box-shadow: var(--shadow); 
  background: #eef2ff; 
  max-width: 100%;
  height: auto;
}

/* 区块 */
.section { 
  padding: 3.5rem 1rem; 
  width: 100%;
}
.section-alt { background: var(--bg-alt); }
.section h2 { 
  margin: 0 0 0.75rem; 
  font-size: var(--font-size-3xl); 
  font-weight: 700;
  text-align: center;
}
.section-intro { 
  color: var(--muted); 
  margin-bottom: 1.5rem; 
  font-size: var(--font-size-lg);
  text-align: center;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.section-actions { 
  margin-top: 1.125rem; 
  text-align: center;
}

/* 栅格与卡片 */
.grid { 
  display: grid; 
  gap: 1.125rem; 
  width: 100%;
}
.cards-4 { 
  grid-template-columns: repeat(4, 1fr); 
}
.cards-3 { 
  grid-template-columns: repeat(3, 1fr); 
}
.card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 0.875rem; 
  padding: 1.5rem; 
  box-shadow: var(--shadow); 
  transition: transform 0.2s, box-shadow 0.2s;
  height: fit-content;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.card h3 { 
  margin: 0.625rem 0 0.375rem; 
  font-size: var(--font-size-xl); 
  font-weight: 600;
}
.card p { 
  margin: 0; 
  color: var(--muted); 
  line-height: 1.6;
}
.card .card-body { 
  padding-top: 0.625rem; 
}
.project img { 
  border-radius: 0.625rem; 
  width: 100%;
  height: auto;
}

/* 列表 */
.list-news { 
  display: grid; 
  gap: 0.625rem; 
  width: 100%;
}
.news-item { 
  display: grid; 
  grid-template-columns: 7.5rem 1fr; 
  gap: 0.75rem; 
  align-items: baseline; 
  padding: 0.75rem; 
  border-radius: 0.625rem; 
  border: 1px solid var(--border); 
  transition: background-color 0.2s;
}
.news-item:hover { 
  background: var(--bg-alt); 
}
.news-item time { 
  color: var(--muted); 
  font-size: var(--font-size-sm);
  white-space: nowrap;
}
.news-item a { 
  color: var(--text); 
  font-weight: 500;
  line-height: 1.5;
}

/* 联系我们 */
.contact-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 1.25rem; 
  width: 100%;
}
.contact-info p { 
  margin: 0.375rem 0; 
  line-height: 1.6;
}
.contact-actions { 
  margin-top: 0.625rem; 
  display: flex; 
  gap: 0.625rem; 
  flex-wrap: wrap;
}
.contact-form { 
  display: grid; 
  gap: 0.75rem; 
}
.contact-form label { 
  display: grid; 
  gap: 0.375rem; 
  font-weight: 600; 
  font-size: var(--font-size-sm);
}
.contact-form input, .contact-form textarea { 
  width: 100%; 
  padding: 0.75rem; 
  border: 1px solid var(--border); 
  border-radius: 0.625rem; 
  outline: none; 
  font-size: var(--font-size-base);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { 
  border-color: var(--brand); 
  box-shadow: 0 0 0 3px rgba(12,102,255,0.12); 
}
.form-tip { 
  color: var(--muted); 
  font-size: var(--font-size-xs); 
}

/* 按钮 */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  padding: 0.75rem 1.5rem; 
  border-radius: 0.625rem; 
  border: 1px solid var(--border); 
  color: var(--text); 
  background: #fff; 
  text-decoration: none; 
  transition: background 0.2s, transform 0.05s, box-shadow 0.2s; 
  font-size: var(--font-size-base);
  font-weight: 500;
  min-height: 3rem;
  min-width: 3rem;
  cursor: pointer;
}
.btn:hover { 
  background: #fafafa; 
  text-decoration: none; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn:active { 
  transform: translateY(1px); 
}
.btn-primary { 
  background: var(--brand); 
  color: #fff; 
  border-color: var(--brand); 
}
.btn-primary:hover { 
  background: var(--brand-600); 
  box-shadow: 0 4px 12px rgba(12,102,255,0.3);
}
.btn-outline { 
  background: transparent; 
  border-color: var(--brand);
  color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

/* 页脚 */
.site-footer { 
  background: #0b1220; 
  color: #d1d5db; 
  margin-top: 2rem; 
}
.footer-inner { 
  display: grid; 
  grid-template-columns: 1.2fr 1fr 1fr; 
  gap: 1.25rem; 
  padding: 1.75rem 1rem; 
  width: 100%;
}
.site-footer a { 
  color: #e5e7eb; 
  transition: color 0.2s;
}
.site-footer a:hover {
  color: #fff;
}
.footer-col h4 { 
  margin: 0 0 0.625rem; 
  color: #fff; 
  font-size: var(--font-size-lg);
  font-weight: 600;
}
.footer-col ul { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: grid; 
  gap: 0.5rem; 
}
.footer-col li {
  line-height: 1.5;
}
.footer-bottom { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 0.875rem 1rem; 
  border-top: 1px solid rgba(255,255,255,0.1); 
  color: #9ca3af; 
  font-size: var(--font-size-sm);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 返回顶部 */
.back-to-top { 
  position: fixed; 
  right: 1.125rem; 
  bottom: 1.125rem; 
  width: 3rem; 
  height: 3rem; 
  border-radius: 50%; 
  border: none; 
  background: var(--brand); 
  color: #fff; 
  box-shadow: var(--shadow); 
  cursor: pointer; 
  display: none; 
  z-index: 50;
  transition: transform 0.2s, box-shadow 0.2s;
}
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12,102,255,0.3);
}
.back-to-top.show { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
}

/* 轮播 */
.carousel .container { 
  width: 100%;
  max-width: 100%;
}
.carousel-view { 
  position: relative; 
  overflow: hidden; 
  border-radius: 0.875rem; 
  border: 1px solid var(--border); 
  box-shadow: var(--shadow); 
  width: 100%;
}
.carousel-track { 
  display: flex; 
  transition: transform 0.4s ease; 
}
.carousel-slide { 
  min-width: 100%; 
  user-select: none; 
  flex-shrink: 0;
}
.carousel-slide img { 
  width: 100%; 
  height: auto; 
  display: block; 
  object-fit: cover;
}
.carousel-btn { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  width: 2.5rem; 
  height: 2.5rem; 
  border-radius: 50%; 
  border: none; 
  background: rgba(0,0,0,0.45); 
  color: #fff; 
  cursor: pointer; 
  display: grid; 
  place-items: center; 
  transition: background-color 0.2s;
  z-index: 10;
}
.carousel-btn:hover { 
  background: rgba(0,0,0,0.6); 
}
.carousel-btn.prev { 
  left: 0.75rem; 
}
.carousel-btn.next { 
  right: 0.75rem; 
}
.carousel-dots { 
  position: absolute; 
  left: 0; 
  right: 0; 
  bottom: 0.625rem; 
  display: flex; 
  gap: 0.5rem; 
  justify-content: center; 
  z-index: 10;
}
.carousel-dots .dot { 
  width: 0.625rem; 
  height: 0.625rem; 
  border-radius: 50%; 
  border: none; 
  background: rgba(255,255,255,0.6); 
  cursor: pointer; 
  transition: background-color 0.2s;
}
.carousel-dots .dot.is-active { 
  background: #fff; 
}

/* 地图容器 */
.amap-container { 
  width: 100%; 
  height: 22.5rem; 
  border: 1px solid var(--border); 
  border-radius: 0.75rem; 
  box-shadow: var(--shadow); 
  background: #f8fafc; 
}
.map-panel { 
  display: grid; 
  gap: 0.5rem; 
  width: 100%;
}

/* 导航动画指示器 */
.site-nav { 
  position: relative; 
}
.nav-indicator { 
  position: absolute; 
  bottom: 0; 
  height: 2.125rem; 
  border-radius: 0.5rem; 
  background: var(--brand); 
  transform: translateY(110%); 
  opacity: 0; 
  transition: left 0.25s ease, width 0.25s ease, transform 0.25s ease, opacity 0.2s; 
  pointer-events: none; 
  color: #fff; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: 600; 
  padding: 0 0.5rem; 
  z-index: 1;
}
.site-nav.hovering .nav-indicator { 
  transform: translateY(0); 
  opacity: 1; 
}
.site-nav ul li { 
  position: relative; 
}

/* 搜索框 */
.searchbar { 
  position: sticky; 
  top: calc(4rem + env(safe-area-inset-top)); 
  z-index: 90; 
  background: #f8fafc; 
  border-bottom: 1px solid var(--border); 
  padding: 0.625rem 1rem; 
}
.searchbar-inner { 
  display: flex; 
  gap: 0.625rem; 
  max-width: 100%; 
  margin: 0 auto; 
  width: 100%;
}
#global-search { 
  flex: 1; 
  padding: 0.75rem; 
  border: 1px solid var(--border); 
  border-radius: 0.625rem; 
  outline: none; 
  font-size: var(--font-size-base);
  transition: border-color 0.2s, box-shadow 0.2s;
}
#global-search:focus { 
  border-color: var(--brand); 
  box-shadow: 0 0 0 3px rgba(12,102,255,0.12); 
}
.search-results { 
  max-width: 100%; 
  margin: 0.5rem auto 0; 
  display: none; 
  background: #fff; 
  border: 1px solid var(--border); 
  border-radius: 0.75rem; 
  box-shadow: var(--shadow); 
  width: 100%;
}
.search-results.show { 
  display: block; 
}
.search-results .item { 
  display: grid; 
  gap: 0.25rem; 
  border-bottom: 1px solid var(--border); 
  padding: 0.75rem; 
}
.search-results .item:last-child { 
  border-bottom: none; 
}
.search-results .item a { 
  color: var(--text); 
  font-weight: 500;
}
.search-results .item small { 
  color: var(--muted); 
  font-size: var(--font-size-sm);
}

/* ========================================
   响应式设计 - 媒体查询断点
   ======================================== */

/* 大屏幕桌面端 (≥1024px) */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    padding: 0 2rem;
  }
  
  .hero-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .section h2 {
    font-size: 2.5rem;
  }
  
  .cards-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  
  .amap-container {
    height: 26.25rem;
  }
}

/* 平板端 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    max-width: 100%;
    padding: 0 1.5rem;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section h2 {
    font-size: 2rem;
  }
  
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .news-item {
    grid-template-columns: 8rem 1fr;
  }
  
  .amap-container {
    height: 24rem;
  }
  
  .carousel-btn {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* 手机端 (≤767px) */
@media (max-width: 767px) {
  /* 基础布局调整 */
  body {
    padding-top: 3.5rem;
    font-size: 0.9rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* 头部导航 */
  .site-header {
    height: calc(3.5rem + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }
  
  .header-inner {
    padding: 0.5rem 1rem;
  }
  
  .brand-name {
    font-size: 1rem;
    display: none; /* 手机端隐藏公司全名，节省空间 */
  }
  
  .logo {
    width: 2rem;
    height: 2rem;
  }
  
  .nav-toggle {
    display: inline-flex;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.375rem;
  }
  
  .site-nav {
    position: static;
  }
  
  .site-nav ul {
    display: none;
  }
  
  .site-nav.open ul {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    top: 3.5rem;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow);
    z-index: 99;
    max-height: calc(100vh - 3.5rem);
    overflow-y: auto;
  }
  
  /* 移动端导航指示器 */
  .site-nav .nav-indicator {
    position: fixed;
    bottom: auto;
    top: 3.5rem;
    left: 1rem;
    right: 1rem;
    height: 3rem;
    border-radius: 0.625rem;
    transform: none;
    opacity: 0;
    transition: top 0.25s ease, height 0.25s ease, left 0.25s ease, width 0.25s ease, opacity 0.2s;
    color: transparent;
  }
  
  .site-nav.hovering .nav-indicator {
    opacity: 1;
  }
  
  .site-nav.open ul a {
    padding: 1rem;
    font-size: 1.125rem;
    min-height: 3rem;
    border-radius: 0.625rem;
  }
  
  .site-nav.open ul li a:hover {
    background: var(--bg-alt);
    color: var(--text);
  }
  
  /* 搜索栏调整 */
  .searchbar {
    top: calc(3.5rem + env(safe-area-inset-top));
    padding: 0.5rem 1rem;
  }
  
  /* 主要内容区域 */
  .hero {
    padding: 2rem 1rem;
    min-height: 40vh;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 1.875rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .section-intro {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* 卡片布局 */
  .cards-4,
  .cards-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .card h3 {
    font-size: 1.125rem;
  }
  
  /* 新闻列表 */
  .news-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: left;
  }
  
  .news-item time {
    font-size: 0.75rem;
    order: 2;
  }
  
  .news-item a {
    order: 1;
    font-size: 1rem;
  }
  
  /* 联系我们 */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-actions {
    justify-content: center;
  }
  
  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  /* 轮播图 */
  .carousel-btn {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }
  
  .carousel-btn.prev {
    left: 0.5rem;
  }
  
  .carousel-btn.next {
    right: 0.5rem;
  }
  
  .carousel-dots {
    bottom: 0.5rem;
  }
  
  .carousel-dots .dot {
    width: 0.5rem;
    height: 0.5rem;
  }
  
  /* 地图 */
  .amap-container {
    height: 20rem;
  }
  
  /* 按钮优化 */
  .btn {
    min-height: 3rem;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }
  
  .hero-actions .btn {
    flex: 1;
    min-width: 0;
  }
  
  /* 返回顶部按钮 */
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* 超小屏幕 (≤480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .section h2 {
    font-size: 1.25rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .contact-actions {
    flex-direction: column;
  }
  
  .contact-actions .btn {
    width: 100%;
  }
}

/* 导航展开动画 */
@media (max-width: 767px) {
  .site-nav ul {
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: top center;
    transform: scaleY(0.98);
    opacity: 0;
  }
  
  .site-nav.open ul {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* 横屏手机优化 */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 30vh;
    padding: 1.5rem 1rem;
  }
  
  .section {
    padding: 1.5rem 1rem;
  }
  
  .site-nav.open ul {
    max-height: calc(100vh - 3.5rem);
  }
}

/* ========================================
   友情链接样式
   ======================================== */

/* 屏幕阅读器专用 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 友情链接区域 */
.friendship-links {
  background: #ffffff;
  padding: 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.links-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  white-space: nowrap;
}

.links-label {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text);
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.link-banner {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
  max-width: 200px;
  height: 60px;
  overflow: hidden;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.link-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.link-banner:active {
  transform: translateY(0);
}

.link-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.link-banner:hover img {
  opacity: 0.9;
}

.separator {
  font-size: var(--font-size-lg);
  color: var(--muted);
  margin: 0 0.25rem;
  flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 1023px) {
  .links-banner {
    gap: 0.4rem;
  }
  
  .link-banner {
    max-width: 180px;
    height: 50px;
  }
  
  .separator {
    font-size: var(--font-size-base);
  }
}

@media (max-width: 767px) {
  .friendship-links {
    padding: 0.75rem;
  }
  
  .links-banner {
    gap: 0.3rem;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .links-label {
    font-size: var(--font-size-sm);
    margin-right: 0.25rem;
  }
  
  .link-banner {
    max-width: 160px;
    height: 50px;
  }
  
  .separator {
    font-size: var(--font-size-sm);
    margin: 0 0.2rem;
  }
}

@media (max-width: 480px) {
  .links-banner {
    gap: 0.25rem;
  }
  
  .link-banner {
    max-width: 140px;
    height: 45px;
  }
  
  .links-label {
    font-size: var(--font-size-xs);
  }
  
  .separator {
    font-size: var(--font-size-xs);
    margin: 0 0.15rem;
  }
}

/* ========================================
   新闻详情页样式
   ======================================== */

.news-detail {
  max-width: 900px;
  margin: 0 auto;
}

.news-detail-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

/* 目录导航模块 */
.news-toc {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.news-toc-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.news-toc-header h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text);
}

.news-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-item {
  display: block;
  padding: 0.625rem 0.875rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s;
  line-height: 1.5;
  word-break: break-word;
}

.toc-item:hover {
  background: var(--card);
  color: var(--brand);
  text-decoration: none;
  transform: translateX(4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.toc-item-level1 {
  font-weight: 600;
  font-size: var(--font-size-base);
  color: var(--brand);
  padding-left: 0.875rem;
}

.toc-item-level2 {
  font-weight: 500;
  font-size: var(--font-size-sm);
  color: var(--muted);
  padding-left: 1.75rem;
  position: relative;
}

.toc-item-level2::before {
  content: '•';
  position: absolute;
  left: 1rem;
  color: var(--muted);
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: var(--font-size-sm);
  transition: color 0.2s;
}

.news-back-link:hover {
  color: var(--brand);
  text-decoration: none;
}

.news-detail-header h1 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.3;
  color: var(--text);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: var(--font-size-sm);
}

.news-meta time {
  color: var(--muted);
}

.news-detail-content {
  line-height: 1.8;
  color: var(--text);
  font-size: var(--font-size-base);
}

.news-content-title {
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  color: var(--text);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  line-height: 1.4;
  scroll-margin-top: 100px; /* 锚点跳转时的偏移 */
  transition: background-color 0.3s ease;
}

.news-content-title:target,
.news-content-title.highlight {
  background-color: rgba(12, 102, 255, 0.1);
  animation: highlightFade 2s ease-out;
}

@keyframes highlightFade {
  0% {
    background-color: rgba(12, 102, 255, 0.3);
  }
  100% {
    background-color: rgba(12, 102, 255, 0.1);
  }
}

.news-content-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.news-title-level1 {
  font-size: var(--font-size-2xl);
  color: var(--brand);
}

.news-title-level2 {
  font-size: var(--font-size-xl);
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.news-title-level3 {
  font-size: var(--font-size-lg);
  color: var(--text);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.news-content-paragraph {
  margin: 1rem 0;
  text-align: justify;
  line-height: 1.8;
  color: var(--text);
}

.news-content-paragraph br {
  line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 1023px) {
  .news-detail-header h1 {
    font-size: var(--font-size-2xl);
  }
  
  .news-title-level1 {
    font-size: var(--font-size-xl);
  }
  
  .news-title-level2 {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 767px) {
  .news-detail {
    max-width: 100%;
  }
  
  .news-detail-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
  
  .news-detail-header h1 {
    font-size: var(--font-size-xl);
    margin-bottom: 0.75rem;
  }
  
  .news-title-level1 {
    font-size: var(--font-size-lg);
  }
  
  .news-title-level2 {
    font-size: var(--font-size-base);
  }
  
  .news-title-level3 {
    font-size: var(--font-size-sm);
  }
  
  .news-content-title {
    margin: 1.5rem 0 0.75rem 0;
    padding-top: 0.75rem;
  }
  
  .news-content-paragraph {
    margin: 0.75rem 0;
    font-size: var(--font-size-sm);
    line-height: 1.7;
  }
  
  .news-toc {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .news-toc-header h3 {
    font-size: var(--font-size-base);
  }
  
  .toc-item {
    padding: 0.5rem 0.75rem;
    font-size: var(--font-size-sm);
  }
  
  .toc-item-level1 {
    padding-left: 0.75rem;
    font-size: var(--font-size-sm);
  }
  
  .toc-item-level2 {
    padding-left: 1.5rem;
    font-size: var(--font-size-xs);
  }
  
  .toc-item-level2::before {
    left: 0.875rem;
  }
}

/* 目录项激活状态 */
.toc-item.active {
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
}

.toc-item.active:hover {
  background: var(--brand-600);
  color: #ffffff;
}

/* ========================================
   公司风采画廊样式
   ======================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
}

.gallery-item {
  position: relative;
  border-radius: 0.875rem;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

/* 占位符样式 */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f7ff 100%);
  color: var(--brand);
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.gallery-item-large .gallery-placeholder {
  min-height: 320px;
}

.gallery-icon {
  font-size: 3rem;
  line-height: 1;
  filter: grayscale(0.1);
}

.gallery-item-large .gallery-icon {
  font-size: 4.5rem;
}

.gallery-text {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text);
  opacity: 0.8;
}

.gallery-item-large .gallery-text {
  font-size: var(--font-size-lg);
}

/* 公司风采 - 响应式设计 */
@media (min-width: 1024px) {
  .gallery-grid {
    gap: 1.25rem;
  }
  
  .gallery-icon {
    font-size: 3.5rem;
  }
  
  .gallery-item-large .gallery-icon {
    font-size: 5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
  }
  
  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .gallery-item {
    aspect-ratio: 3/2;
  }
  
  .gallery-placeholder {
    min-height: 140px;
  }
  
  .gallery-item-large .gallery-placeholder {
    min-height: 140px;
  }
  
  .gallery-icon {
    font-size: 2.5rem;
  }
  
  .gallery-item-large .gallery-icon {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 0.75rem;
  }
  
  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .gallery-item {
    aspect-ratio: 4/3;
  }
  
  .gallery-placeholder {
    min-height: 100px;
    padding: 1rem;
    gap: 0.5rem;
  }
  
  .gallery-item-large .gallery-placeholder {
    min-height: 140px;
  }
  
  .gallery-icon {
    font-size: 2rem;
  }
  
  .gallery-item-large .gallery-icon {
    font-size: 2.5rem;
  }
  
  .gallery-text {
    font-size: var(--font-size-sm);
  }
  
  .gallery-item-large .gallery-text {
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: 0.5rem;
  }
  
  .gallery-placeholder {
    min-height: 80px;
    padding: 0.75rem;
    gap: 0.375rem;
  }
  
  .gallery-item-large .gallery-placeholder {
    min-height: 120px;
  }
  
  .gallery-icon {
    font-size: 1.5rem;
  }
  
  .gallery-item-large .gallery-icon {
    font-size: 2rem;
  }
  
  .gallery-text {
    font-size: var(--font-size-xs);
  }
  
  .gallery-item-large .gallery-text {
    font-size: var(--font-size-sm);
  }
}

/* 公司风采 - 可点击链接样式 */
.gallery-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.gallery-link:hover {
  text-decoration: none;
}

.gallery-link:hover .gallery-placeholder {
  background: linear-gradient(135deg, #e0eaff 0%, #d4e4fe 50%, #eef4ff 100%);
}

.gallery-link:hover .gallery-text {
  color: var(--brand);
}

/* ========================================
   公司风采 - 分类导航卡片
   ======================================== */

.gallery-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-align: center;
  overflow: hidden;
}

.gallery-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-color: var(--brand);
  text-decoration: none;
}

.gallery-category-featured {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border-color: var(--brand);
}

.gallery-category-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.gallery-category-thumb .gallery-category-icon {
  font-size: 2.5rem;
  line-height: 1;
  z-index: 1;
}

.gallery-category-thumb.has-image .gallery-category-icon {
  display: none;
}

.gallery-category-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.gallery-category-info h3 {
  margin: 0 0 0.5rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text);
}

.gallery-category-preview {
  margin: 0;
  font-size: var(--font-size-xs);
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 最新动态展示 */
.gallery-latest {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.gallery-latest-header {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff;
}

.gallery-latest-header h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.gallery-latest-content {
  padding: 1.5rem;
}

.gallery-latest-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: 0.625rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s, transform 0.2s;
}

.gallery-latest-item:last-child {
  margin-bottom: 0;
}

.gallery-latest-item:hover {
  background: #e8f0fe;
  transform: translateX(4px);
  text-decoration: none;
}

.gallery-latest-item.has-image {
  grid-template-columns: 120px 1fr;
}

.gallery-latest-thumb {
  width: 120px;
  height: 80px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--bg-alt);
  flex-shrink: 0;
}

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

.gallery-latest-icon {
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gallery-latest-info {
  min-width: 0;
}

.gallery-latest-info h4 {
  margin: 0 0 0.25rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.gallery-latest-info p {
  margin: 0 0 0.25rem;
  font-size: var(--font-size-sm);
  color: var(--muted);
}

.gallery-latest-info .gallery-latest-date {
  display: inline-block;
  font-size: var(--font-size-xs);
  color: var(--muted);
  background: var(--card);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}

.gallery-latest-date {
  font-size: var(--font-size-xs);
  color: var(--muted);
  background: var(--card);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  white-space: nowrap;
}

.gallery-latest-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

/* 分类卡片响应式 */
@media (min-width: 1024px) {
  .gallery-categories {
    gap: 1.25rem;
  }
  
  .gallery-category-card {
    padding: 2rem 1.25rem;
  }
  
  .gallery-category-icon {
    font-size: 3rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-categories {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .gallery-category-card {
    padding: 1.25rem 1rem;
  }
  
  .gallery-category-icon {
    font-size: 2rem;
  }
  
  .gallery-latest-item {
    grid-template-columns: auto 1fr;
  }
  
  .gallery-latest-date {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.5rem;
  }
}

@media (max-width: 767px) {
  .gallery-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .gallery-category-card {
    padding: 0.75rem;
  }
  
  .gallery-category-featured {
    grid-column: span 2;
  }
  
  .gallery-category-thumb {
    aspect-ratio: 16/9;
    margin-bottom: 0.5rem;
  }
  
  .gallery-category-thumb .gallery-category-icon {
    font-size: 1.75rem;
  }
  
  .gallery-category-info h3 {
    font-size: var(--font-size-sm);
  }
  
  .gallery-category-preview {
    font-size: 0.7rem;
    -webkit-line-clamp: 1;
  }
  
  .gallery-latest-header {
    padding: 0.875rem 1rem;
  }
  
  .gallery-latest-header h3 {
    font-size: var(--font-size-base);
  }
  
  .gallery-latest-content {
    padding: 1rem;
  }
  
  .gallery-latest-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.875rem;
  }
  
  .gallery-latest-item.has-image {
    grid-template-columns: 1fr;
  }
  
  .gallery-latest-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
  
  .gallery-latest-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .gallery-latest-info h4 {
    font-size: var(--font-size-sm);
    -webkit-line-clamp: 3;
  }
  
  .gallery-latest-info p {
    font-size: var(--font-size-xs);
  }
}

@media (max-width: 480px) {
  .gallery-categories {
    gap: 0.5rem;
  }
  
  .gallery-category-card {
    padding: 0.875rem 0.5rem;
  }
  
  .gallery-category-icon {
    font-size: 1.5rem;
  }
  
  .gallery-category-info h3 {
    font-size: var(--font-size-xs);
  }
}

/* ========================================   公司风采详情页 - 分类区块   ======================================== */

/* 展示空间样式 - 优化UI以突出最新内容 */
.gallery-showcase {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #dee2e6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-showcase:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* 展示空间中的项目样式 */
.gallery-showcase .gallery-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.gallery-showcase .gallery-item img {
  height: 300px;
  object-fit: cover;
  border-bottom: 3px solid #007bff;
}

.gallery-showcase .gallery-item-info {
  padding: 20px;
}

.gallery-showcase .gallery-item-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.gallery-showcase .gallery-item-date {
  font-size: 16px;
  color: #007bff;
  font-weight: 500;
  margin-bottom: 10px;
}

.gallery-showcase .gallery-item-description {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

/* 图片展示样式 */
.gallery-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery-photo {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-photo:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.gallery-photo img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-photo:hover img {
  transform: scale(1.05);
}

/* 单个图片时的特殊处理 */
.gallery-photos:has(.gallery-photo:only-child) {
  display: flex;
  justify-content: center;
}

.gallery-photos:has(.gallery-photo:only-child) .gallery-photo {
  max-width: 80%;
}

.gallery-photos:has(.gallery-photo:only-child) img {
  height: auto;
  max-height: 400px;
}

/* 历史内容区域样式 */
.gallery-history {
  display: none;
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin-top: 20px;
  border: 1px solid #e9ecef;
}

.gallery-history-title {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #dee2e6;
}

.gallery-history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.gallery-history-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-history-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-history-meta {
  margin-bottom: 10px;
}

.gallery-history-meta time {
  font-size: 13px;
  color: #666;
}

.gallery-history-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.gallery-history-thumb {
  border-radius: 6px;
  overflow: hidden;
  margin-top: 10px;
}

.gallery-history-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

/* 查看历史按钮样式 */
.toggle-history-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.toggle-history-btn:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
  transform: translateY(-1px);
}

.toggle-history-btn:active {
  transform: translateY(0);
}

.toggle-icon {
  margin-left: 8px;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.gallery-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s;
}

.gallery-nav-item:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  text-decoration: none;
  transform: translateY(-2px);
}

.gallery-nav-icon {
  font-size: 1.25rem;
}

.gallery-section {
  margin-bottom: 2.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-margin-top: 100px;
}

.gallery-section-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
}

.gallery-section-header h2 {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gallery-section-icon {
  font-size: 1.5rem;
}

.gallery-section-content {
  padding: 1.5rem;
}

/* 公司风采条目样式 */
.gallery-item-card {
  padding: 1.25rem;
  background: var(--bg-alt);
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  transition: background-color 0.2s;
}

.gallery-item-card:last-child {
  margin-bottom: 0;
}

.gallery-item-card:hover {
  background: #e8f0fe;
}

.gallery-item-meta {
  margin-bottom: 0.75rem;
}

.gallery-item-meta time {
  font-size: var(--font-size-sm);
  color: var(--muted);
  background: var(--card);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.gallery-item-title {
  margin: 0.75rem 0 1rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.gallery-item-desc {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* 详情页响应式 */
@media (max-width: 767px) {
  .gallery-nav {
    gap: 0.5rem;
  }
  
  .gallery-nav-item {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
  }
  
  .gallery-nav-icon {
    font-size: 1rem;
  }
  
  .gallery-section {
    margin-bottom: 1.5rem;
    scroll-margin-top: 80px;
  }
  
  .gallery-section-header {
    padding: 1rem 1.25rem;
  }
  
  .gallery-section-header h2 {
    font-size: var(--font-size-lg);
  }
  
  .gallery-section-icon {
    font-size: 1.25rem;
  }
  
  .gallery-section-content {
    padding: 1rem;
  }
  
  .gallery-item-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .gallery-item-title {
    font-size: var(--font-size-base);
  }
}

/* 公司风采 - 详情区域 */
.gallery-detail {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 120px;
}

.gallery-detail-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brand);
}

.gallery-detail-header h3 {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text);
}

.gallery-detail-content {
  width: 100%;
}

.gallery-empty {
  color: var(--muted);
  text-align: center;
  padding: 2rem;
  font-size: var(--font-size-base);
}

/* 公司风采 - 新闻样式条目 */
.gallery-news-item {
  padding: 1rem 0;
}

.gallery-news-meta {
  margin-bottom: 0.5rem;
}

.gallery-news-meta time {
  color: var(--muted);
  font-size: var(--font-size-sm);
  background: var(--bg-alt);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.gallery-news-title {
  margin: 0.75rem 0 1.25rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

/* 公司风采 - 图片展示 */
.gallery-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
}

.gallery-photo {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.gallery-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/10;
}

/* 公司风采详情 - 响应式 */
@media (min-width: 1024px) {
  .gallery-detail {
    padding: 2rem;
  }
  
  .gallery-detail-header h3 {
    font-size: var(--font-size-2xl);
  }
  
  .gallery-news-title {
    font-size: var(--font-size-xl);
  }
  
  .gallery-photos {
    gap: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-detail {
    padding: 1.5rem;
  }
  
  .gallery-photos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .gallery-detail {
    margin-top: 1.5rem;
    padding: 1rem;
    scroll-margin-top: 100px;
  }
  
  .gallery-detail-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }
  
  .gallery-detail-header h3 {
    font-size: var(--font-size-lg);
  }
  
  .gallery-news-item {
    padding: 0.75rem 0;
  }
  
  .gallery-news-title {
    font-size: var(--font-size-base);
    margin: 0.5rem 0 1rem;
  }
  
  .gallery-news-meta time {
    font-size: var(--font-size-xs);
    padding: 0.2rem 0.5rem;
  }
  
  .gallery-photos {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .gallery-photo img {
    aspect-ratio: 16/9;
  }
  
  .gallery-empty {
    padding: 1.5rem;
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 480px) {
  .gallery-detail {
    padding: 0.75rem;
    margin-top: 1rem;
  }
  
  .gallery-detail-header h3 {
    font-size: var(--font-size-base);
  }
  
  .gallery-news-title {
    font-size: var(--font-size-sm);
  }
  
  .gallery-photos {
    gap: 0.5rem;
  }
}
