/* 基础重置 */
@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: '微软雅黑', sans-serif;
}

:root {
  /* 基本色系 */
  --brand-primary: #a8001f;         /* k8凯发(中国)天生赢家品牌主色 */
  --brand-secondary: #0066b3;       /* k8凯发(中国)天生赢家品牌次色 */
  --text-primary: #333;
  --text-secondary: #666;
  --border-color: #eaeaea;
  --background-light: #f8f9fa;
  --state-success: #28a745;         /* 成功状态 */
  --state-warning: #ffc107;         /* 警告状态 */
  --state-danger: #dc3545;          /* 错误状态 */
  --interactive-hover: #c40024;     /* 主色悬停 */
  --interactive-active: #8a0019;    /* 主色点击态 */
  --link-visited: #551a8b;          /* 已访问链接 */
  
  --base-font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-primary);
  line-height: 1.6;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

a:hover {
  color: var(--interactive-hover);
}

/* ========== 导航栏 ========== */
.navbar {
  max-width: 1920px;
   margin: 0 auto;
   padding: 1rem 6rem;
   display: flex;
   justify-content: space-between;
   align-items: center;
 }
 .navbar-outer { 
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 1000;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
   background: #fff;
 }
 .navbar-outer.scrolled {
     box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
 }
 .logo {   
     width: clamp(150px, 12vw, 200px);
     height: auto; /* 保持宽高比 */
     transition: width 0.3s ease; /* 添加平滑过渡效果 */
   object-fit: contain; /* 保持图片比例 */
   display: block; /* 消除图片下方的间隙 */
 }

#nav-links {
  display: flex;
  gap: 1rem;
  font-size: clamp(1rem, 1.1vw + 2px, 1.5rem);
}

#nav-links a {
	text-decoration: none;
	color: var(--text-primary);
	font-weight: 500;
	transition: color 0.3s;
	border-radius: 4px;
	  position: relative;
  display: inline-flex;
}
#nav-links a:hover {
	color: var(--brand-primary);
	background-color: var(--background-light);
} 

#nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width 0.3s ease;
}

#nav-links a:hover::after {
  width: 100%;
}


.hamburger {
  background: none;
  display: none;
  cursor: pointer;
  border: none;
  padding: 0;
  font-size: 1.5rem;
  color: var(--brand-primary);
}
 .phone {
      color: #0066b3;
      font-weight: 500;
      height: 100%;
      padding-left: 1rem;
      text-align: center;
      border-left: 1px solid #918f8f;
  }
  .dropdown-menu {
      position: absolute;
      top: 70%;
      left: 0;
      background-color: white;
      border: 1px solid #eee;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      align-items: center;
      display: none;
      gap: 3rem;
      justify-content: center;
      width: 100%;
      padding: 0.8rem 5rem;
      z-index: 100;
  }
  .dropdown-menu.active {
      display: flex;
  }
  /* 只在PC端应用悬停效果 */
  @media (min-width: 769px) {
      .dropdown:hover .dropdown-menu {
          display: flex;
      }
  }
  @media (max-width: 768px) {
      .dropdown {      position: relative;    }
      .phone {      display: none;      }
      .dropdown-menu {
          position: static;
          align-items: center;
          display: none;
          gap: 1rem;
          flex-direction: column;
          justify-content: center;
          padding: 1rem 1rem 0rem 1rem;
          align-items: flex-start;
          border: none;
          box-shadow: none;
      }
  }

/* ========== 横幅区域 ========== */
/* banner距离顶部的高度 */
.navbar-outer + .banner-container {
  margin-top: calc(1rem * 2 + 36px); /* 根据导航栏的padding和logo高度计算 */
}
@media (max-width: 1200px) {
  .navbar-outer + .banner-container {
      margin-top: calc(1rem * 2 + clamp(150px, 12vw, 200px) * 0.2);
  }
}
@media (max-width: 768px) {
  .navbar-outer + .banner-container {
      margin-top: calc(0.5rem * 2 + clamp(100px, 25vw, 150px) * 0.3);
  }
}
.banner-container { 
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/5; 
}

.banner {
  display: none;
  transition: opacity 0.5s ease;
  width: 100%;
  opacity: 0;
}

.banner.active {
  display: block;
  opacity: 1;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #fff;
}

/* ========== 面包屑导航 ========== */
.bread {
  padding: 0.5rem 6rem;
  background-color: var(--background-light);
}

.bread p.dqwz {
  font-size: 0.9rem;
  line-height: 1.5rem;
  color: var(--text-secondary);
  padding-left: 20px;
  background: url(/images/home.png) no-repeat left center;
}

.bread p.dqwz a {
  color: var(--text-primary);
  transition: color 0.3s;
}

.bread p.dqwz a:hover {
  color: var(--brand-primary);
}
aside span a:hover,footer .foot_nav .big a:hover , .tel a:hover{
  color: var(--brand-secondary);
} 
/* ========== 主内容区 ========== */
main {
  padding: 1rem 6rem 1rem 6rem;
  overflow: hidden;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
}

main article {
  width: 73%;
}

main aside {
  width: 25%;
   display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ========== 文章内容样式 ========== */
article {
  color: var(--text-primary);
  line-height: 1.8;
}
article a {
	color: var(--brand-secondary);
	text-decoration: none;
	border-bottom: 1px dashed var(--brand-secondary);
	transition: all 0.3s ease;
}
article a:hover {
	color: var(--interactive-hover);
	border-bottom: 1px solid var(--interactive-hover);
}

article{
  width: 100%;
  overflow: hidden;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}

/* 第一种文章列表样式 - 左右排列 */
.zhishi {
	    border-radius: 8px;
  display: flex;
  padding: 1.5rem 0;
  transition: all 0.3s ease;  
}

.zhishi a{
  display: flex;  
  flex-direction: row; /* 保持左右排列 */ 
}
.zhishi:hover {
	background-color: #F1F1F1;
}

.tupian {
  width: 25%;
  padding: 0 1rem;
  flex-shrink: 0;
}

.tupian img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.zhishi:hover .tupian img {
  transform: scale(1.03);
}

.neirong {
  width: 75%;
  padding: 0 1rem;
}

h2.biaoti {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  margin-top: 0.5rem;
  font-weight: bold;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  background-color: unset;
}
h2.biaoti::before {   top: 0.4rem;}

.zhishi:hover .biaoti {
  color: var(--interactive-hover);
}

.zhengw {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.1vw + 2px, 1.125rem);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 第二种文章详情样式 */
article h1 {
  font-size: clamp(1.6rem, 1.35vw + 3px, 2.5rem);
  font-weight: bold;
  color: var(--brand-primary);
  text-align: center;
  margin: 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--brand-secondary);
}

h1.index {
	color: var( --brand-primary);
	font-weight: bold;
  font-size: clamp(1.8rem, 1.8vw, 2.5rem);
	line-height: 2.5rem;	
	padding-bottom: 0.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 3px solid var( --brand-secondary); 
	margin-top: 15px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 45px;
}

/* 详情页标题样式 */
article h2 {
  line-height: 1.8;
  position: relative;
  padding-left: 1.2rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 1.6vw, 2rem);
  color: var(--brand-secondary);
  background-color: rgba(255, 240, 240, 0.7);
}

article h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  height: 2rem;
  width: 6px;
  background: var(--brand-primary);
  border-radius: 3px;
}

article h3 {
  line-height: 1.8;
  font-size: clamp(1.1rem, 1vw, 1.5rem);
  font-weight: bold;
  margin: 1.5rem 0 0.5rem;  
  position: relative;
  padding-left: 15px;
}

article h3::before {
   
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  transform: translateY(-50%); 
  border-top: 8px solid transparent; 
  border-bottom: 8px solid transparent;
  border-left: 8px solid var(--brand-primary);
}

.renqi {
  text-align: right;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 1rem 0;
}

section {
  margin: 2rem 0;
}

section p {
  margin: 1rem 0;
  font-size: clamp(1rem, 1.1vw + 2px, 1.125rem);
  line-height: 1.8;
  text-align: justify;
}

section img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

section strong {
  color: var(--brand-primary);
}
section .huikuang {	
	margin: 1.5rem auto;
	padding: 1.2rem;
	background-color: var(--background-light);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	border: 1px solid #e0e0e0;
}
section .huikuang:hover{
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	border-color: #a8001f;
}

/* 详情页表格样式 */
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

article th, article td {
  padding: 0.3rem 0.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

article th {
  background-color: var(--brand-secondary);
  color: white;
  font-weight: bold;
}

article tr:nth-child(even) {
  background-color: var(--background-light);
}

article tr:hover {
  background-color: rgba(0, 102, 179, 0.05);
}

.gjzi {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

/* 上一篇/下一篇导航 */
dl {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  flex-wrap: wrap;
}

dt, dd {
  width: 48%;
}

.sxy {
  padding: 0.8rem;
  background-color: var(--background-light);
  border-radius: 6px;
  transition: all 0.3s ease;
  	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-indent: 0em;
}

.sxy:hover {
  background-color: rgba(168, 0, 31, 0.1);
}

.sxy a {
  color: var(--brand-secondary);
  font-weight: 500;
}

.sxy a:hover {
  color: var(--interactive-hover);
}

/* ========== 分页样式 ========== */
.pagination {
  margin: 2rem 0;
  text-align: center;
  font-size: clamp(1rem, 1.1vw + 2px, 1.125rem);
}

.pager-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.3rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.pager-btn:hover {
  background-color: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

.pager-btn.disabled {
  color: var(--text-secondary);
  cursor: not-allowed;
  background-color: var(--background-light);
}

/* ========== 侧边栏 ========== */
aside span {
  border-radius: 8px 8px 0 0;
  color: white;
  width: 100%;
  font-weight: bold;
  line-height: 2.5rem;
  text-indent: 1.5rem;
  display: block;
  background-color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

.wenzi {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

aside .wenzi p {
  margin: 0.3rem 0;
  font-size: clamp(1rem, 1.1vw + 2px, 1.125rem);
  border-bottom: 1px dashed var(--border-color);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.wenzi p:last-child {
  border-bottom: none;
}

.wenzi p a {
  color: var(--brand-secondary);
  transition: color 0.3s;
}

.wenzi p a:hover {
  color: var(--brand-primary);
}

.tu {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.tu:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tu img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.tu:hover img {
  transform: scale(1.05);
}

/* ========== 页脚 ========== */
footer {
  background-color: var(--brand-primary);
  padding: 2rem 6rem;
  overflow: hidden;
  clear: both;
  color: white;
}

.foot_con {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footlogo {
	  align-items: center; 
	display: flex;	
    flex-direction: column;
}
.footlogo img.logo {
	filter: brightness(0) invert(1);
}
.footlogo img.code {
	width: 100px;	
}

.foot_nav .big a {
  font-size: clamp(1rem, 1.25vw + 2px, 1.125rem);
  font-weight: bold;  
  display: block;
  margin-bottom: 0.5rem;
}

.foot_nav .hui {
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.8;
	font-size: clamp(0.9rem, 1.1vw + 2px, 1rem);
	display: block;
	transition: color 0.3s;
}

.foot_nav .hui a:hover {
  color: white;
}

.foot_contact .tel {
  font-size: clamp(1.75rem, 4vw, 2rem);
  line-height: 1.2;
  margin: 0.5rem 0;
  font-weight: bold;
}

.foot_contact p {
  font-weight: bold;
  font-size: clamp(1rem, 1.25vw + 2px, 1.125rem);
  display: block;
  margin-bottom: 0.5rem;
}

.foot_contact .zxbtn {
  display: inline-block;
  width: auto;
  height: auto;
  line-height: 1.5;
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  background: var(--brand-secondary);
  margin-top: 1rem;
  padding: 0.8rem 3rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.foot_contact .zxbtn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.banquan {
  font-size: clamp(0.9rem, 1.1vw + 2px, 1.1rem);
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);  
}

.banquan a {
  color: white;
  font-weight: 500;
}

/* ========== 底部按钮栏 ========== */
/* 基础样式 */
    .footerBtn {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      padding-bottom: env(safe-area-inset-bottom);
      /* 苹果安全区域适配 */
      background: #fff;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
      border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    @media (min-width: 769px) {
      .footerBtn {
        display: none !important;
      }
    }

    .footerBtn ul {
      display: flex;
      padding: 0;
      margin: 0;
      list-style: none;
      width: 100%;
    }

    .footerBtn li {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 8px 0;
      position: relative;
    }

    .footer-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      padding: 8px 0;
      text-decoration: none;
      color: #666;
      transition: all 0.3s ease;
    }

    .btn-icon {
      width: 24px;
      height: 24px;
      margin-bottom: 4px;
      transition: all 0.3s ease;
    }

    /* 按钮文字样式 */
    .btn-text {
      text-align: center;
      line-height: 1.3;
    }

    .btn-text strong {
      display: block;
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 2px;
      transition: all 0.3s ease;
    }

    .btn-text span {
      display: block;
      font-size: 10px;
      line-height: 1.3;
      opacity: 0.8;
      margin: 0 auto;
      transition: all 0.3s ease;
    }

    /* 按钮悬停和激活状态 */
    .footer-btn:active {
      transform: scale(0.95);
    }

    /* 各按钮颜色样式 */
    .btn-emergency .btn-icon,
    .btn-emergency .btn-text strong {
      color: #261cdf;
    }

    .btn-emergency:active,
    .btn-emergency.active {
      background-color: rgba(38, 28, 223, 0.05);
    }

    .btn-emergency:active .btn-icon,
    .btn-emergency:active .btn-text strong,
    .btn-emergency.active .btn-icon,
    .btn-emergency.active .btn-text strong {
      color: #1a14b3;
    }

    .btn-case .btn-icon,
    .btn-case .btn-text strong {
      color: #2f8911;
    }

    .btn-case:active,
    .btn-case.active {
      background-color: rgba(47, 137, 17, 0.05);
    }

    .btn-case:active .btn-icon,
    .btn-case:active .btn-text strong,
    .btn-case.active .btn-icon,
    .btn-case.active .btn-text strong {
      color: #24720d;
    }

    .btn-consult .btn-icon,
    .btn-consult .btn-text strong {
      color: #b625ef;
    }

    .btn-consult:active,
    .btn-consult.active {
      background-color: rgba(182, 37, 239, 0.05);
    }

    .btn-consult:active .btn-icon,
    .btn-consult:active .btn-text strong,
    .btn-consult.active .btn-icon,
    .btn-consult.active .btn-text strong {
      color: #9a1dca;
    }

    /* 抖动动画 */
    @keyframes shake {

      0%,
      100% {
        transform: translateX(0);
      }

      25% {
        transform: translateX(-4px) rotate(-3deg);
      }

      75% {
        transform: translateX(4px) rotate(3deg);
      }
    }

    .shake-animation {
      animation: shake 1.2s ease-in-out infinite;
    }

    /* 适配iPhone X及以后的全面屏设备 */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
      .footerBtn {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
      }
    }

    /* 小屏幕优化 */
    @media (max-width: 320px) {
      .btn-text strong {
        font-size: 12px;
      }

      .btn-text span {
        font-size: 9px;
      }
    }

/* ========== 响应式设计 ========== */
.dqwz, main , .foot_con, .banquan{
	max-width: 1920px;     margin: 0 auto;   
  }
  @media (min-width: 1921px) {
	  main{padding: 1rem 0rem;}
    .navbar {padding: 1rem 0rem;}
	}
@media (max-width: 1200px) {
  .navbar, .bread, main, footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 1000px) {
  main {
    padding: 0.5rem 1rem 1rem 1rem;
  }
   aside .lianxi {
 display: none;
}
 main article{
 width: 100%;
}
 main aside {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  footer .foot_con .footlogo {
		display: none;
	   }

   
  .tupian {
    width: 30%;
    padding: 0 0.5rem;
  }
  
  .neirong {
    width: 70%;
    padding: 0 0.5rem;
  }
  
  aside .tu {
    display: none;
  }
}

@media (max-width: 768px) {
 .banner-container {
    aspect-ratio: 16/7;  
  } 
  .navbar {
    padding: 0.8rem 1rem;
  }
  
#nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  #nav-links.active {
    display: flex;
  }
  
  .hamburger {
    display: block;
  }  

  
  article section {
    padding: 0rem;
  }
      main {
        padding: 0.5rem;
    }
	article {  padding: 0.5rem;}
  
  /* 小屏幕下改为上下排列 */
   .weizhi {
 display: none;
}
 
  .zhishi a{
  display: flex;  
  flex-direction:  column; 
}
  .tupian, .neirong {
    width: 100%;
    padding: 0;
  }
  
  .tupian img{margin-right: auto;
	margin-left: auto;
         width: auto;  
		 display:block;
    height: 120px;
	padding-bottom:0.5rem;
  }
  .pager-btn {
   
  padding: 0.5rem 0.5rem;
 
}
  
  dl {
    flex-direction: column;
  }
  
  dt, dd {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  footer {
    padding: 1rem;
  }
  
  .foot_con .footlogo, 
  .foot_con .foot_contact {
    display: none;
  }
  
  .banquan {
    padding-bottom: 6rem;
    padding-top: 1rem;
  }
  
  .pagination span {
    display: none;
  }
 article table  {
 display: block;
 overflow-x: auto;
 white-space: nowrap;
}
 
 
}