/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  font-family:
    Inter,
    -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Microsoft YaHei",
    "Source Han Sans CN", sans-serif;
  padding-top: 70px;
}

/* 左侧遮罩 */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 33.333%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}
.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* 导航栏固定顶部 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  background-color: #B82525;
  color: white;
  z-index: 999;
  transition: background-color 0.3s ease;
}

/* 滚动后变黑 */
.header.header-scrolled {
  background-color: #212121 !important;
}

/* Logo 悬停 */
.logo a {
  display: block;
  transition: all 0.2s ease;
}
.logo a:hover {
  opacity: 0.85;
  transform: scale(0.96);
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* 电脑端导航 */
.desktop-nav {
  display: flex;
  gap: 40px;
}
.nav a {
  color: white;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: -0.3px;
  transition: all 0.3s ease;
  position: relative;
}
.nav a span.en {
  font-weight: 600;
}
.nav a span.cn {
  font-weight: 300;
  opacity: 0.9;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.3s ease;
}
.nav a:hover::after {
  width: 100%;
}

/* 汉堡按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
}

/* 手机端菜单 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 66.666%;
  max-width: 400px;
  height: 100%;
  background: #fff;
  padding: 90px 40px 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 999;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-header {
  position: absolute;
  top: 0;
  right: 0;
  padding: 22px 24px;
}
.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #222;
  cursor: pointer;
}

/* 菜单项 */
.menu-item {
  padding: 12px 0;
}
.menu-link {
  text-decoration: none;
  display: block;
}
.menu-title {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}
.menu-desc {
  font-size: 12px;
  color: #777;
  font-weight: 400;
}

/* 菜单悬停变红 */
.menu-link:hover .menu-title,
.menu-link:hover .menu-desc {
  color: #B82525 !important;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: #eee;
  margin-top: 12px;
}

/* 首屏 */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f8f8;
  text-align: center;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #B82525;
  font-weight: 600;
}
.hero-content p {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto;
  color: #666;
}

/* ====================== */
/*        底部 Footer     */
/* ====================== */
.footer {
  background-color: #212121;
  color: #fff;
  padding: 26px 10%;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* 左侧版权与备案 */
.footer-copyright {
  display: flex;
  gap: 20px;
  opacity: 0.85;
}
.footer-record a {
  color: #fff;
  text-decoration: none;
}
.footer-record a:hover {
  opacity: 1;
}

/* 右侧链接 */
.footer-right {
  display: flex;
  align-items: center;
  gap: 26px;
}
.footer-link {
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.footer-link:hover {
  opacity: 1;
}

/* 微信图标 */
.wechat-popup {
  position: relative;
  cursor: pointer;
}
.wechat-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  opacity: 0.9;
}
.wechat-icon:hover {
  opacity: 1;
}

/* 弹出二维码 */
.wechat-qrcode {
  position: absolute;
  bottom: 140%;
  right: 0;
  background: #fff;
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  z-index: 100;
}
.wechat-qrcode img {
  width: 130px;
  height: auto;
  display: block;
}
.wechat-popup:hover .wechat-qrcode {
  display: block;
}

/* 响应式 */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .header {
    padding: 12px 20px;
  }
  .logo-img {
    height: 32px;
  }
  .hero {
    height: auto;
    min-height: 60vh;
    padding: 60px 20px;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-content p {
    font-size: 16px;
  }

  /* 手机端 Footer 居中 */
  .footer-inner {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .footer-copyright {
    flex-direction: column;
    gap: 8px;
  }
}/* ====================== */
/*      新增页面样式       */
/* ====================== */

/* 内容容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* 文章网格布局 */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 文章卡片 */
.article-card {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}
.article-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
}
.article-card h2 a {
    color: #333;
    text-decoration: none;
}
.article-card h2 a:hover {
    color: #B82525;
}
.article-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 12px;
}
.read-more {
    color: #B82525;
    text-decoration: none;
    font-weight: 500;
}
.read-more:hover {
    text-decoration: underline;
}

/* 文章详情页 */
.article-detail h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #222;
}
.article-content {
    margin: 30px 0;
    line-height: 1.8;
}
.article-content p {
    margin-bottom: 20px;
}
.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #B82525;
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 28px;
    }
    .article-detail h1 {
        font-size: 24px;
    }
    .container {
        padding: 40px 20px;
    }
}/* 红底横幅 */
.red-banner {
    background-color: #B82525;
    padding: 100px 0 50px;
    margin-top: -55px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* 辅助图形 */
.red-banner::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(5% + 50px);
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background-image: url('../images/p08.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* 直接设置内容区域的左内边距，与导航栏Logo对齐 */
.red-banner-content {
    padding-left: 10%;
    text-align: left;
    position: relative;
    z-index: 1;
}

.red-banner-content h2 {
    font-size: 48px;
    color: #fff;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.05;
    margin-bottom: 30px;
    animation: slideInLeft 0.6s ease-out 0.2s both;
}

.red-banner-content h2 span {
    display: block;
    transition: transform 0.3s ease, letter-spacing 0.3s ease;
    cursor: default;
}

.red-banner-content h2 span:hover {
    transform: translateX(8px);
    letter-spacing: 2px;
}

/* 文字区域布局 */
.red-banner-text {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    top: -20px;
    animation: slideInLeft 0.6s ease-out 0.4s both;
}

/* 竖线 */
.vertical-line {
    width: 1px;
    background-color: #fff;
    align-self: stretch;
    margin: 2px 0;
}

/* 文字组 */
.text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-group p {
    font-size: 18px;
    color: #fff;
    opacity: 0.85;
    margin-bottom: 0;
    font-weight: 300;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.15;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.text-group p:hover {
    opacity: 1;
    transform: translateX(5px);
}

.text-group .chinese {
    font-size: 16px;
    opacity: 0.75;
    font-weight: 300;
    line-height: 1.15;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.text-group .chinese:hover {
    opacity: 1;
    transform: translateX(5px);
}

/* 进场动画定义 */
@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
    }
    to {
        transform: translateX(0);
    }
}
/* 响应式 */
@media (max-width: 768px) {
    .red-banner {
        padding: 80px 0 30px;
        margin-top: -60px;
    }
    .red-banner-content {
        padding-left: 20px;
    }
    .red-banner-content h2 {
        font-size: 32px;
    }
    .red-banner-text {
        gap: 6px;
        top: -15px;
    }
    .text-group p {
        font-size: 14px;
    }
    .text-group .chinese {
        font-size: 13px;
    }
}/* ========== 首页内容区块 ========== */
.home-section {
    padding: 60px 0;
}
.home-section.alt-bg {
    background-color: #fafafa;
}

/* 与导航栏对齐 - 使用相同的 10% 左内边距 */
.home-container {
    padding-left: 10%;
    padding-right: 10%;
    text-align: left;
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 24px;
    color: #212121;
    font-weight: 500;
    margin: 0;
}
.section-header h2 span {
    font-size: 16px;
    font-weight: 300;
    color: #212121;
}
.more-link {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    font-weight: 300;
}
.more-link:hover {
    color: #B82525;
}

/* 见解列表 */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.insight-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.insight-item a {
    text-decoration: none;
    display: block;
}
.insight-item h3 {
    font-size: 20px;
    color: #212121;
    margin-bottom: 6px;
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.insight-item h4 {
    font-size: 15px;
    color: #212121;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.insight-item:hover h3,
.insight-item:hover h4 {
    color: #B82525;
}
.insight-meta {
    font-size: 12px;
    color: #999;
}
.insight-meta .tags {
    color: #999;
}

/* 最新动态 - 图文 */
.dynamic-feature {
    display: flex;
    gap: 30px;
    align-items: stretch;
}
.dynamic-image {
    flex-shrink: 0;
    width: 280px;
    overflow: hidden;
    border-radius: 8px;
}
.dynamic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dynamic-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.dynamic-content a {
    text-decoration: none;
}
.dynamic-content h3 {
    font-size: 22px;
    color: #212121;
    margin-bottom: 6px;
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.dynamic-content h4 {
    font-size: 16px;
    color: #212121;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.dynamic-content:hover h3,
.dynamic-content:hover h4 {
    color: #B82525;
}
.dynamic-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}
.dynamic-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

/* 客户展示 - 横向滚动 */
.clients-section {
    padding: 40px 0;
    overflow: hidden;
}
.clients-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.clients-list {
    display: inline-flex;
    gap: 50px;
    padding: 10px 0;
    animation: scrollClients 30s linear infinite;
}
.clients-list:hover {
    animation-play-state: paused;
}
.client-name {
    font-size: 16px;
    color: #999;
    letter-spacing: 1px;
    display: inline-block;
    white-space: nowrap;
}

/* 客户横向滚动动画 */
@keyframes scrollClients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 响应式 */
@media (max-width: 992px) {
    .dynamic-image {
        width: 220px;
    }
}
@media (max-width: 768px) {
    .home-section {
        padding: 40px 0;
    }
    .home-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .section-header h2 {
        font-size: 20px;
    }
    .section-header h2 span {
        font-size: 14px;
    }
    .insight-item h3 {
        font-size: 18px;
    }
    .insight-item h4 {
        font-size: 14px;
    }
    .dynamic-feature {
        flex-direction: column;
    }
    .dynamic-image {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    .dynamic-content h3 {
        font-size: 18px;
    }
    .dynamic-content h4 {
        font-size: 14px;
    }
    .clients-list {
        gap: 30px;
    }
    .client-name {
        font-size: 14px;
    }
}