/* ===== yisong-modern.css - 益松网站内页统一样式 ===== */
/* 基于定稿版cn/index.html首页样式提取，供网站内页共用 */

/* ===== 重置与基础样式 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}
@font-face {
  font-family: 'Microsoft YaHei';
  src: url('../webfonts/msyh.ttc') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
a { color: inherit; text-decoration: none; transition: color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== 分区分割线 ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #EB7833, transparent);
  border: none;
  margin: 0;
}

/* ===== 滚动动画 ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s;
}
.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}
.nav-row1 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  margin-right: 16px;
}
.nav-logo img {
  height: 40px;
  width: auto;
}
.nav-row1-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: all 0.3s;
  font-size: 13px;
  cursor: pointer;
}
.social-icons a:hover {
  background: rgba(235,120,51,0.3);
  transform: translateY(-1px);
}
.social-icons a svg {
  width: 15px;
  height: 15px;
  fill: #ccc;
  transition: fill 0.3s;
}
.social-icons a:hover svg { fill: #EB7833; }
.lang-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-buttons a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: #ccc;
  transition: all 0.3s;
}
.lang-buttons a:hover {
  color: #EB7833;
  background: rgba(235,120,51,0.15);
}
.lang-buttons a.lang-active {
  color: #EB7833;
  background: rgba(235,120,51,0.12);
}
.lang-flag {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  object-fit: cover;
}

/* ===== 导航第二行 ===== */
.nav-row2 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  display: block;
  padding: 8px 18px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: #EB7833;
  transform: translateY(-1px);
}
.nav-menu > li.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.6;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-menu > li.has-dropdown:hover > a::after {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(0,0,50,0.96);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}
.nav-menu > li:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(8px);
}
.nav-dropdown li a {
  display: block;
  padding: 10px 22px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  transition: all 0.25s;
  white-space: nowrap;
}
.nav-dropdown li a:hover {
  color: #EB7833;
  background: rgba(235,120,51,0.08);
  padding-left: 28px;
}

/* ===== 通用段落样式 ===== */
.section-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 30px;
}
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 1200px;
  margin: 0 auto 50px;
  line-height: 1.8;
}

/* ===== 页面标题横幅（内页专用） ===== */
.page-banner {
  margin-top: 130px;
  padding: 60px 30px 50px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0,0,60,1), rgba(0,0,100,1));
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(235,120,51,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-banner h1 {
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.page-banner .breadcrumb {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}
.page-banner .breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}
.page-banner .breadcrumb a:hover {
  color: #EB7833;
}
.page-banner .breadcrumb .current {
  color: #EB7833;
}
.page-banner .breadcrumb .sep {
  margin: 0 8px;
}

/* ===== 内页内容区域通用 ===== */
.inner-section {
  padding: 70px 30px;
  max-width: 1300px;
  margin: 0 auto;
}
.inner-bg-1 { background: linear-gradient(180deg, rgba(0,0,30,1), rgba(0,0,50,1)); }
.inner-bg-2 { background: linear-gradient(180deg, rgba(0,0,50,1), rgba(0,0,80,1)); }
.inner-bg-3 { background: linear-gradient(180deg, rgba(0,0,60,1), rgba(0,0,100,1)); }

/* ===== 内页小标题 ===== */
.inner-h2 {
  color: #EB7833;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.inner-h3 {
  color: #EB7833;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 20px 0 10px 0;
}
.inner-p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  font-size: 0.98rem;
}
.inner-p-indent {
  text-indent: 2em;
  margin-bottom: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  font-size: 0.98rem;
}

/* ===== 内页卡片样式 ===== */
.inner-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.4s;
}
.inner-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(235,120,51,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ===== 内页图片通用 ===== */
.inner-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transition: transform 0.5s;
}
.inner-img:hover {
  transform: scale(1.02);
}

/* ===== 联系卡片网格 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.4s;
}
.contact-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(235,120,51,0.25);
  transform: translateY(-3px);
}
.contact-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 16px;
  cursor: pointer;
}
.contact-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ===== 媒体平台网格 ===== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 30px auto 0;
}
.media-grid-5 {
  grid-template-columns: repeat(5, 1fr);
  max-width: 1100px;
}
.media-item {
  text-align: center;
  cursor: pointer;
}
.media-item img {
  width: 180px;
  height: 206px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 12px;
  transition: transform 0.4s;
}
.media-item:hover img {
  transform: scale(1.05);
}
.media-item p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* ===== 专利轮播 ===== */
.patent-carousel {
  position: relative;
  width: 100%;
  margin-top: 20px;
}
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}
.carousel-slide {
  display: none;
  width: 100%;
  text-align: center;
}
.carousel-slide.active { display: block; }
.carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.indicator.active {
  background-color: #EB7833;
  box-shadow: 0 0 10px rgba(235,120,51,0.5);
  transform: scale(1.15);
}
.indicator:hover {
  background-color: rgba(235,120,51,0.7);
}

/* ===== 服务图文布局 ===== */
.service-layout {
  display: flex;
  align-items: center;
  gap: 50px;
}
.service-layout .text-col { flex: 1; }
.service-layout .img-col {
  flex: 0 0 420px;
  text-align: center;
}
.service-layout .img-col img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ===== 代理优势卡片网格 ===== */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.advantage-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.4s;
}
.advantage-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(235,120,51,0.25);
  transform: translateY(-3px);
}
.advantage-card h3 {
  font-size: 1.2rem;
  color: #EB7833;
  margin-bottom: 14px;
  font-weight: 600;
}
.advantage-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
}

/* ===== 客户见证图片 ===== */
.customer-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  margin-bottom: 24px;
  transition: transform 0.5s;
}
.customer-img:hover {
  transform: scale(1.01);
}

/* ===== 页脚 ===== */
.site-footer {
  background: rgba(0,0,20,0.95);
  padding: 0 30px 30px;
}
.footer-slogan {
  text-align: center;
  padding: 50px 20px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 50px;
}
.footer-slogan p {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #EB7833, #FFB366, #EB7833);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  position: relative;
  display: inline-block;
}
.footer-slogan p::before,
.footer-slogan p::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #EB7833);
  vertical-align: middle;
  margin: 0 20px;
}
.footer-slogan p::after {
  background: linear-gradient(90deg, #EB7833, transparent);
}
.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 50px;
}
.footer-col h4 {
  font-size: 1.05rem;
  color: #EB7833;
  margin-bottom: 20px;
  font-weight: 600;
}
.qr-section h5 {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
  margin-top: 20px;
}
.qr-section h5:first-child { margin-top: 0; }
.qr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.qr-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.qr-item {
  text-align: center;
  cursor: pointer;
}
.qr-item img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s;
  margin: 0 auto;
}
.qr-item:hover img {
  border-color: rgba(235,120,51,0.4);
  transform: scale(1.06);
}
.qr-item span {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  text-align: center;
  width: 100%;
}
.footer-info p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 8px;
}
.footer-info .company-name-zh {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-bottom: 4px;
}
.footer-info .company-name-en {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
  line-height: 1.5;
}
.footer-info .info-label {
  font-size: 0.78rem;
  color: rgba(235,120,51,0.8);
  margin-top: 12px;
  margin-bottom: 2px;
  font-weight: 500;
}
.footer-info .info-label:first-of-type {
  margin-top: 0;
}
.footer-info .info-value {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.footer-info .info-value a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-info .info-value a:hover {
  color: #EB7833;
}
.footer-bottom {
  max-width: 1300px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ===== 二维码弹窗 ===== */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.qr-modal.open { display: flex; }
.qr-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  cursor: pointer;
}
.qr-modal-body {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.qr-modal-body img {
  width: 400px;
  height: 400px;
  object-fit: contain;
}
.qr-modal-body p {
  color: #333;
  font-size: 0.95rem;
  margin-top: 12px;
}
.qr-modal-close {
  position: absolute;
  top: -36px;
  right: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 回到顶部按钮 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 80px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 2px solid rgba(235,120,51,0.6);
  color: rgba(255,255,255,0.78);
  font-size: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s ease;
  z-index: 999;
  overflow: hidden;
}
.back-to-top svg {
  width: 28px;
  height: 28px;
  stroke: rgba(235,120,51,0.85);
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.4s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(235,120,51,0.25), transparent);
  transition: left 0.6s ease;
}
.back-to-top:hover::before { left: 100%; }
.back-to-top:hover {
  border-color: rgba(235,120,51,0.5);
  color: #EB7833;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(235,120,51,0.3);
}
.back-to-top:hover svg {
  stroke: #EB7833;
  transform: translateY(-2px);
}

/* ===== 响应式适配 ===== */
@media (max-width: 1024px) {
  .nav-menu > li > a { padding: 8px 12px; font-size: 0.95rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .service-layout { flex-direction: column; }
  .service-layout .img-col { flex: 0 0 auto; max-width: 500px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .nav-row1 { display: none; }
  .nav-row2 { justify-content: flex-start; padding: 0; }
  .nav-menu { margin-left: 0; flex-wrap: wrap; }
  .nav-menu > li > a { font-size: 0.88rem; padding: 6px 10px; }
  .page-banner { margin-top: 60px; padding: 40px 20px 30px; }
  .page-banner h1 { font-size: 1.6rem; }
  .inner-section { padding: 50px 20px; }
  .section-container { padding: 50px 20px; }
  .section-title { font-size: 1.6rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: repeat(4, 1fr); }
  .qr-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .qr-modal-body img { width: 280px; height: 280px; }
}
