/**
██   ██ ██    ██ ██████  ██  ██████ ███    ███ ███████ 
██   ██ ██    ██ ██   ██ ██ ██      ████  ████ ██      
███████ ██    ██ ██   ██ ██ ██      ██ ████ ██ ███████ 
██   ██ ██    ██ ██   ██ ██ ██      ██  ██  ██      ██ 
██   ██  ██████  ██████  ██  ██████ ██      ██ ███████ 
            ===========================================
 * @Sign
================================
        Keep calm and get rich.
                    Is the best huudi.
 */
/* CSS变量定义 */
:root {
  /* 主色调 */
  --primary-color: #ffffff;
  --primary-color-rgb: 219, 84, 47;
  --primary-light: rgba(219, 84, 47, 0.1);
  --primary-lighter: rgba(219, 84, 47, 0.05);
  --primary-dark: #c4492a;
  
  /* 辅助色 */
  --secondary-color: #ffffff;
  --secondary-color-rgb: 58, 134, 255;
  --accent-color: #ffffff;
  --accent-color-rgb: 255, 162, 68;
  
  /* 文本颜色 */
  --text-color: #ffffff;
  --text-light: #fff;
  --text-muted: #888;
  
  /* 背景颜色 */
  --bg-light: #fff;
  --bg-light-rgb: 255, 255, 255;
  --bg-dark: #25252b;
  --bg-gray: #f8f9fa;
  
  /* 渐变色 */
  --bg-gradient-light: linear-gradient(135deg, #f9f9f9 0%, #f3f3f3 100%);
  --bg-gradient-dark: linear-gradient(135deg, #1e1e24 0%, #16161c 100%);
  --bg-gradient-primary: linear-gradient(135deg, #db542f 0%, #e57b5c 100%);
  --bg-gradient-cool: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  
  /* 圆角 */
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 12px;
  
  /* 过渡和动画 */
  --transition-fast: 0.3s;
  
  /* 阴影 */
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 10px 25px rgba(0, 0, 0, 0.12);
  
  /* 间距 */
  --spacing-xs: 10px;
  --spacing-sm: 15px;
  --spacing-md: 25px;
  --spacing-lg: 40px;
}

/* ==================== 1. 重置和基础样式 ==================== */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body, html {
  color: #ffffff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: break-all;
  box-sizing: border-box;
  height: auto;
  margin: 0;
  min-height: 100vh;
  position: relative;
}

body {
  background-color: #7b1701;
  background-image: 
    linear-gradient(to bottom, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.8) 100%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23dddddd' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

button:focus {outline: 0;}
a {color: #ffffff; text-decoration: none; cursor: pointer;}
ul {list-style: none; padding: 0; margin: 0;}
img {border-style: none; max-width: 100%;}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/* ==================== 2. 布局和容器 ==================== */
.kmyap-container {
  width: 1200px;
  max-width: calc(100% - 30px);
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}

.kmyap-main-container {
  margin-top: var(--spacing-md);
}

/* ==================== 3. 头部区域 ==================== */
.kmyap-header {
  background: #7b1701;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.kmyap-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.kmyap-logo {
  padding: 15px 0;
  position: relative;
  z-index: 2;
}

.kmyap-logo img {
  max-height: 40px;
  transition: all 0.3s ease;
}

.kmyap-nav-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  margin-left: 20px;
}

.kmyap-nav {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kmyap-nav > li {
  position: relative;
}

.kmyap-nav > li > a {
  display: flex;
  align-items: center;
  padding: 20px 15px;
  color: #ffffff;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.kmyap-nav > li > a:hover, 
.kmyap-nav > li.active > a {
  color: #ffffff;
  text-decoration: none;
}

.kmyap-nav > li > a:after {
  content: "";
  position: absolute;
  bottom: 16px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #7b1701;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

.kmyap-nav > li > a:hover:after,
.kmyap-nav > li.active > a:after {
  width: 20px;
  opacity: 1;
}

.kmyap-search-wrap {
  position: relative;
  margin-left: auto;
}

.kmyap-search-form {
  display: flex;
  align-items: center;
  background-color: #7b1701;
  border-radius: 50px;
  padding: 6px 15px;
  transition: all 0.3s ease;
}

.kmyap-search-form:hover,
.kmyap-search-form:focus-within {
  background-color: #7b1701;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.kmyap-search-input {
  background: #7b1701;
  border: none;
  color: #ffffff;
  padding: 6px 10px;
  width: 180px;
  outline: none;
  font-size: 14px;
}

.kmyap-search-input::placeholder {
  color: #ffffff;
}

.kmyap-search-btn {
  background: #7b1701;
  border: none;
  color: #ffffff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.kmyap-search-btn:hover {
  color: #ffffff;
}

.kmyap-nav-toggle {
  display: none;
  background: #7b1701;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  margin-left: 10px;
}

@media (max-width: 991px) {
  .kmyap-header {
    background: #7b1701;
  }
  
  .kmyap-header-inner {
    padding: 0 10px;
  }
  
  .kmyap-logo {
    padding: 12px 0;
  }
  
  .kmyap-logo img {
    max-height: 36px;
  }
  
  .kmyap-nav-wrap {
    margin-left: 10px;
  }
  
  .kmyap-nav > li > a {
    padding: 18px 12px;
    font-size: 14px;
  }
  
  .kmyap-search-input {
    width: 160px;
  }
}

@media (max-width: 768px) {
  .kmyap-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .kmyap-nav-wrap {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: #7b1701;
    flex-direction: column;
    justify-content: flex-start;
    padding: 70px 0 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1;
    margin-left: 0;
    overflow-y: auto;
  }
  
  .kmyap-nav-wrap.active {
    left: 0;
  }
  
  .kmyap-nav {
    flex-direction: column;
    width: 100%;
  }
  
  .kmyap-nav > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .kmyap-nav > li > a {
    padding: 14px 20px;
    font-size: 15px;
    justify-content: flex-start;
  }
  
  .kmyap-nav > li > a:after {
    display: none;
  }
  
  .kmyap-search-wrap {
    width: 100%;
    margin: 20px;
  }
  
  .kmyap-search-form {
    width: calc(100% - 40px);
  }
  
  .kmyap-search-input {
    width: 100%;
  }
  
  .kmyap-nav-toggle {
    display: block;
  }
  
  .body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #7b1701;
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .body-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .kmyap-header.sticky {
    padding: 0;
  }
  
  .kmyap-header.sticky .kmyap-logo {
    padding: 8px 0;
  }
  
  .kmyap-header.sticky .kmyap-logo img {
    max-height: 32px;
  }
}

@media (max-width: 576px) {
  .kmyap-header-inner {
    padding: 0 5px;
  }
  
  .kmyap-logo {
    padding: 10px 0;
  }
  
  .kmyap-logo img {
    max-height: 32px;
  }
  
  .kmyap-nav-wrap {
    width: 260px;
    left: -260px;
  }
  
  .kmyap-search-form {
    padding: 5px 12px;
  }
  
  .kmyap-search-input {
    padding: 5px 8px;
    font-size: 13px;
  }
  
  .kmyap-search-btn {
    font-size: 14px;
  }
}

/* ==================== 4. 内容卡片 ==================== */
.kmyap-card, .kmyap-home-box {
  background: #7b1701;
  border-radius: var(--radius-medium);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
  border: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.kmyap-movie-list-header {
  background: #7b1701;
  border-radius: var(--radius-medium) var(--radius-medium) 0 0;
  padding: 18px 20px;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin: 0;
}

.kmyap-movie-list-title {
  font-size: 18px;
  font-weight: 600;
  position: relative;
  padding-left: 15px;
}

.kmyap-movie-list-title:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background-color: #7b1701;
  border-radius: 2px;
}

/* 视频列表布局 */
.kmyap-movie-list-body, .kmyap-movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
  margin-bottom: 0;
  border-radius: 0 0 var(--radius-medium) var(--radius-medium);
}

.kmyap-animated-grid {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

/* 视频卡片 */
.kmyap-movie-card {
  background: #7b1701;
  border-radius: var(--radius-medium);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.kmyap-movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  border-color: #f4d47e;
}

.kmyap-movie-poster {
  position: relative;
  padding-top: 140%;
  overflow: hidden;
}

.kmyap-movie-poster-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: blur(0);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.kmyap-movie-card:hover .kmyap-movie-poster-img {
  transform: scale(1.05);
}

.kmyap-movie-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.kmyap-movie-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #7b1701;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}

.kmyap-movie-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.kmyap-movie-title {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #ffffff;
}

.kmyap-movie-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #ffffff;
  margin-top: auto;
}

.kmyap-movie-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: #7b1701;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: all 0.3s ease;
}

.kmyap-movie-card:hover .kmyap-movie-play-button {
  opacity: 1;
}

/* ==================== 5. 分页样式 ==================== */
.kmyap-module-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0;
  background-color: #7b1701;
  border-radius: var(--radius-medium);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.kmyap-page-info {
  margin-bottom: 15px;
  font-size: 14px;
  color: #ffffff;
  text-align: center;
}

.kmyap-highlight {
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
}

.kmyap-page {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.kmyap-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #ffffff;
  background-color: #7b1701;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.kmyap-page-btn {
  background-color: #7b1701;
  min-width: 40px;
  padding: 0;
}

.kmyap-page-number i {
  font-size: 16px;
}

.kmyap-page-number:hover {
  background-color: #7b1701;
  color: #ffffff;
  border-color: #f4d47e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.kmyap-page-current {
  background: #7b1701;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(219, 84, 47, 0.25);
}

.kmyap-page-current:hover {
  background: #7b1701;
  color: #ffffff;
  transform: translateY(-2px);
}

.kmyap-page-goto {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.kmyap-page-input {
  width: 60px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px 0 0 8px;
  padding: 0 10px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.kmyap-page-input:focus {
  border-color: #f4d47e;
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

.kmyap-page-input.error {
  border-color: #f4d47e;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.kmyap-page-submit {
  height: 40px;
  border: none;
  background: #7b1701;
  color: #ffffff;
  padding: 0 12px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.kmyap-page-submit:hover {
  background: #7b1701;
}

/* 暗色模式分页样式 */
.kmyap-wn-dark-mode .kmyap-module-footer {
  background-color: #7b1701;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.kmyap-wn-dark-mode .kmyap-page-info {
  color: #ffffff;
}

.kmyap-wn-dark-mode .kmyap-page-number {
  background-color: #7b1701;
  color: #ffffff;
  border-color: #f4d47e;
}

.kmyap-wn-dark-mode .kmyap-page-btn {
  background-color: #7b1701;
}

.kmyap-wn-dark-mode .kmyap-page-number:hover {
  background-color: #7b1701;
  color: #ffffff;
}

.kmyap-wn-dark-mode .kmyap-page-input {
  background-color: #7b1701;
  border-color: #f4d47e;
  color: #ffffff;
}

.kmyap-wn-dark-mode .kmyap-page-input:focus {
  border-color: #f4d47e;
}

/* 响应式分页样式 */
@media (max-width: 768px) {
  .kmyap-module-footer {
    padding: 15px 10px;
  }
  
  .kmyap-page-number {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    padding: 0 10px;
  }
  
  .kmyap-page-goto {
    display: none;
  }
}

@media (max-width: 576px) {
  .kmyap-module-footer {
    padding: 12px 8px;
  }
  
  .kmyap-page {
    gap: 5px;
  }
  
  .kmyap-page-number {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
    padding: 0 8px;
  }
  
  .kmyap-page-info {
    font-size: 12px;
  }
}

/* ==================== 6. 底部区域 ==================== */
.kmyap-footer-container {
  background-color: #7b1701;
  margin-top: auto;
  position: relative;
  padding-top: 40px;
}

.kmyap-footer-main {
  background-color: #7b1701;
  color: #ffffff;
  padding: 0 0 40px;
}

.kmyap-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.kmyap-footer-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.kmyap-footer-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 40px;
  background: #7b1701;
}

.kmyap-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kmyap-footer-menu li {
    margin-bottom: 10px;
  }
  
.kmyap-footer-menu a {
  color: #ffffff;
  transition: all 0.3s;
}

.kmyap-footer-menu a:hover {
  color: #ffffff;
  transform: translateX(5px);
  display: inline-block;
}

.kmyap-footer-bottom {
  background-color: #7b1701;
  padding: 15px 0;
  text-align: center;
    font-size: 12px;
  color: #ffffff;
}

/* ==================== 7. 工具类 ==================== */
.kmyap-flex {display: flex;}
.kmyap-wrap {flex-wrap: wrap;}
.kmyap-br {border-radius: var(--radius-medium);}
.kmyap-bj {background: #7b1701;}
.kmyap-box-shadow {box-shadow: var(--shadow-light);}
.kmyap-border-shadow {box-shadow: var(--shadow-light); border-radius: var(--radius-medium); background: #7b1701;}
.kmyap-txtHide {overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.kmyap-cr1 {color: #ffffff;}
.kmyap-cr2 {color: #ffffff;}
.kmyap-cr3 {color: #ffffff;}
.kmyap-l {float: left;}
.kmyap-r {float: right;}

/* ==================== 8. 回到顶部按钮 ==================== */
.kmyap-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #7b1701;
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  visibility: hidden;
}

.kmyap-back-to-top.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* ==================== 9. 响应式布局 ==================== */
@media (max-width: 1200px) {
  .kmyap-movie-list-body, .kmyap-movie-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
  }
  
  .kmyap-section-title {
    font-size: 22px;
  }
  
  .kmyap-section-subtitle {
    font-size: 14px;
  }
}

@media (max-width: 991px) {
  .kmyap-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .kmyap-movie-list-body, .kmyap-movie-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
  
  body {
    background-image: 
      linear-gradient(to bottom, rgba(248, 249, 250, 0.9) 0%, rgba(233, 236, 239, 0.9) 100%),
      url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23dddddd' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
  }
  
  .kmyap-wn-dark-mode body {
    background-image: 
      linear-gradient(to bottom, rgba(26, 26, 32, 0.97) 0%, rgba(20, 20, 26, 0.97) 100%),
      url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
  }
  
  .kmyap-section-header {
    padding: 0 15px 15px;
  }
}

@media (max-width: 768px) {
  .kmyap-movie-list-body, .kmyap-movie-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 15px;
  }
  
  .kmyap-movie-content {
    padding: 10px;
  }
  
  .kmyap-hide-sm {
    display: none;
  }
  
  .kmyap-footer-grid {
    grid-template-columns: 1fr;
  }
  
  .kmyap-transition-area {
    height: 40px;
    margin-bottom: -40px;
  }
  
  .kmyap-footer-container {
    margin-top: 40px;
  }
  
  .kmyap-subcategory-nav {
    padding: 10px;
    gap: 8px;
  }
  
  .kmyap-card, .kmyap-home-box, .kmyap-module-footer, .kmyap-subcategory-nav {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  
  .kmyap-section-title {
    font-size: 20px;
  }
  
  .kmyap-section-subtitle {
    font-size: 13px;
  }
  
  body {
    background-image: 
      linear-gradient(to bottom, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%),
      url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z' fill='%23dddddd' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  }
}

@media (max-width: 576px) {
  .kmyap-movie-list-body, .kmyap-movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
  
  .kmyap-movie-title {
    font-size: 14px;
  }
  
  .kmyap-movie-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .kmyap-card, .kmyap-home-box, .kmyap-module-footer, .kmyap-subcategory-nav {
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }
  
  .kmyap-section-header {
    margin-bottom: 15px;
    padding: 0 10px 10px;
  }
  
  .kmyap-section-title {
    font-size: 18px;
  }
  
  .kmyap-section-title:after {
    width: 40px;
    height: 2px;
    bottom: -6px;
  }
  
  .kmyap-section-subtitle {
    margin-top: 12px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .kmyap-movie-list-body, .kmyap-movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }
  
  .kmyap-movie-content {
    padding: 8px;
  }
  
  .kmyap-movie-title {
    font-size: 13px;
    -webkit-line-clamp: 1;
    margin-bottom: 5px;
  }
  
  .kmyap-section-title {
    font-size: 16px;
  }
  
  .kmyap-section-subtitle {
    font-size: 12px;
  }
}

/* ==================== 10. 暗色模式 ==================== */
.kmyap-wn-dark-mode body {
  background-color: #7b1701;
  background-image: 
    linear-gradient(to bottom, rgba(26, 26, 32, 0.95) 0%, rgba(20, 20, 26, 0.95) 100%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.kmyap-wn-dark-mode .kmyap-header {
  background-color: #947c1b;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.kmyap-wn-dark-mode .kmyap-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.kmyap-wn-dark-mode .kmyap-logo {
  padding: 15px 0;
  position: relative;
  z-index: 2;
}

.kmyap-wn-dark-mode .kmyap-logo img {
  max-height: 40px;
  transition: all 0.3s ease;
}

.kmyap-wn-dark-mode .kmyap-nav-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  margin-left: 20px;
}

.kmyap-wn-dark-mode .kmyap-nav {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kmyap-wn-dark-mode .kmyap-nav > li {
  position: relative;
}

.kmyap-wn-dark-mode .kmyap-nav > li > a {
  display: flex;
  align-items: center;
  padding: 20px 15px;
  color: #ffffff;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.kmyap-wn-dark-mode .kmyap-nav > li > a:hover, 
.kmyap-wn-dark-mode .kmyap-nav > li.active > a {
  color: #ffffff;
  text-decoration: none;
}

.kmyap-wn-dark-mode .kmyap-nav > li > a:after {
  content: "";
  position: absolute;
  bottom: 16px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #7b1701;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

.kmyap-wn-dark-mode .kmyap-nav > li > a:hover:after,
.kmyap-wn-dark-mode .kmyap-nav > li.active > a:after {
  width: 20px;
  opacity: 1;
}

.kmyap-wn-dark-mode .kmyap-search-wrap {
  position: relative;
  margin-left: auto;
}

.kmyap-wn-dark-mode .kmyap-search-form {
  display: flex;
  align-items: center;
  background-color: #7b1701;
  border-radius: 50px;
  padding: 6px 15px;
  transition: all 0.3s ease;
}

.kmyap-wn-dark-mode .kmyap-search-form:hover,
.kmyap-wn-dark-mode .kmyap-search-form:focus-within {
  background-color: #7b1701;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.kmyap-wn-dark-mode .kmyap-search-input {
  background: #7b1701;
  border: none;
  color: #ffffff;
  padding: 6px 10px;
  width: 180px;
  outline: none;
  font-size: 14px;
}

.kmyap-wn-dark-mode .kmyap-search-input::placeholder {
  color: #ffffff;
}

.kmyap-wn-dark-mode .kmyap-search-btn {
  background: #7b1701;
  border: none;
  color: #ffffff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.kmyap-wn-dark-mode .kmyap-search-btn:hover {
  color: #ffffff;
}

.kmyap-wn-dark-mode .kmyap-nav-toggle {
  display: none;
  background: #7b1701;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  margin-left: 10px;
}

@media (max-width: 991px) {
  .kmyap-wn-dark-mode .kmyap-header {
    background-color: #947c1b;
  }
  
  .kmyap-wn-dark-mode .kmyap-header-inner {
    padding: 0 10px;
  }
  
  .kmyap-wn-dark-mode .kmyap-logo {
    padding: 12px 0;
  }
  
  .kmyap-wn-dark-mode .kmyap-logo img {
    max-height: 36px;
  }
  
  .kmyap-wn-dark-mode .kmyap-nav-wrap {
    margin-left: 10px;
  }
  
  .kmyap-wn-dark-mode .kmyap-nav > li > a {
    padding: 18px 12px;
    font-size: 14px;
  }
  
  .kmyap-wn-dark-mode .kmyap-search-input {
    width: 160px;
  }
}

@media (max-width: 768px) {
  .kmyap-wn-dark-mode .kmyap-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .kmyap-wn-dark-mode .kmyap-nav-wrap {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: #7b1701;
    flex-direction: column;
    justify-content: flex-start;
    padding: 70px 0 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1;
    margin-left: 0;
    overflow-y: auto;
  }
  
  .kmyap-wn-dark-mode .kmyap-nav-wrap.active {
    left: 0;
  }
  
  .kmyap-wn-dark-mode .kmyap-nav {
    flex-direction: column;
    width: 100%;
  }
  
  .kmyap-wn-dark-mode .kmyap-nav > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .kmyap-wn-dark-mode .kmyap-nav > li > a {
    padding: 14px 20px;
    font-size: 15px;
    justify-content: flex-start;
  }
  
  .kmyap-wn-dark-mode .kmyap-nav > li > a:after {
    display: none;
  }
  
  .kmyap-wn-dark-mode .kmyap-search-wrap {
    width: 100%;
    margin: 20px;
  }
  
  .kmyap-wn-dark-mode .kmyap-search-form {
    width: calc(100% - 40px);
  }
  
  .kmyap-wn-dark-mode .kmyap-search-input {
    width: 100%;
  }
  
  .kmyap-wn-dark-mode .kmyap-nav-toggle {
    display: block;
  }
  
  .kmyap-wn-dark-mode .body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #7b1701;
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .kmyap-wn-dark-mode .body-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .kmyap-wn-dark-mode .kmyap-header.sticky {
    padding: 0;
  }
  
  .kmyap-wn-dark-mode .kmyap-header.sticky .kmyap-logo {
    padding: 8px 0;
  }
  
  .kmyap-wn-dark-mode .kmyap-header.sticky .kmyap-logo img {
    max-height: 32px;
  }
}

@media (max-width: 576px) {
  .kmyap-wn-dark-mode .kmyap-header-inner {
    padding: 0 5px;
  }
  
  .kmyap-wn-dark-mode .kmyap-logo {
    padding: 10px 0;
  }
  
  .kmyap-wn-dark-mode .kmyap-logo img {
    max-height: 32px;
  }
  
  .kmyap-wn-dark-mode .kmyap-nav-wrap {
    width: 260px;
    left: -260px;
  }
  
  .kmyap-wn-dark-mode .kmyap-search-form {
    padding: 5px 12px;
  }
  
  .kmyap-wn-dark-mode .kmyap-search-input {
    padding: 5px 8px;
    font-size: 13px;
  }
  
  .kmyap-wn-dark-mode .kmyap-search-btn {
    font-size: 14px;
  }
}

/* 动画与3D效果 */
.kmyap-3d-effect {
  transform: perspective(800px) rotateY(0deg);
  transition: transform 0.4s ease;
}

.kmyap-ripple-effect {
  position: absolute;
  border-radius: 50%;
  background-color: #7b1701;
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  animation: ripple 0.6s linear;
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

.kmyap-pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(var(--primary-color-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
  }
}

.kmyap-spotlight-effect {
  position: relative;
  overflow: hidden;
}

.kmyap-spotlight-effect:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #7b1701;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
  pointer-events: none;
}

.kmyap-spotlight-effect:hover:before {
  opacity: 1;
}

.kmyap-movie-ribbon {
  position: absolute;
  top: 10px;
  left: -30px;
  background: #7b1701;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 30px;
  transform: rotate(-45deg);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.kmyap-movie-tag {
  display: inline-block;
  background-color: #7b1701;
  color: #ffffff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 5px;
  margin-bottom: 5px;
}

.lazyload {
  opacity: 0.5;
  transition: opacity 0.3s;
}

img.lazyload.loaded, img:not(.lazyload) {
  opacity: 1;
}

/* 懒加载SVG图标的样式优化 */
.kmyap-movie-poster-img.lazyload,
.kmyap-related-img.lazyload {
  object-fit: scale-down;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 25%;
  min-height: 150px;
  transition: all 0.3s ease-in-out;
}

.kmyap-movie-poster-img.loaded,
.kmyap-related-img.loaded {
  animation: fadeInImage 0.4s ease-in-out;
}

@keyframes fadeInImage {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.kmyap-movie-poster .lazyload {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.kmyap-related-poster .lazyload {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 子分类导航样式 */
.kmyap-subcategory-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  background: #7b1701;
  padding: 15px 20px;
  border-radius: var(--radius-medium);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.kmyap-subcategory-item {
  padding: 6px 15px;
  font-size: 14px;
  color: #ffffff;
  background-color: #7b1701;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.kmyap-subcategory-item:hover {
  background: #7b1701;
  color: #ffffff;
  transform: translateY(-2px);
}

.kmyap-subcategory-item.active {
  background: #7b1701;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.25);
}

.kmyap-wn-dark-mode .kmyap-subcategory-nav {
  background-color: #7b1701;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.kmyap-wn-dark-mode .kmyap-subcategory-item {
  background-color: #7b1701;
  color: #ffffff;
}

.kmyap-wn-dark-mode .kmyap-subcategory-item:hover {
  background-color: #7b1701;
  color: #ffffff;
}

.kmyap-wn-dark-mode .kmyap-subcategory-item.active {
  background: #7b1701;
  color: #ffffff;
}

@media (max-width: 576px) {
  .kmyap-wn-dark-mode .kmyap-subcategory-nav {
    padding: 10px;
    gap: 8px;
    margin-bottom: 15px;
    overflow-x: auto;
    white-space: nowrap;
    display: block;
    -webkit-overflow-scrolling: touch;
  }
  
  .kmyap-wn-dark-mode .kmyap-subcategory-item {
    padding: 5px 12px;
    font-size: 13px;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
  }
}

/* 区块标题 */
.kmyap-section-header {
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  padding: 0 20px 20px;
}

.kmyap-section-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.kmyap-section-title:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #7b1701;
  border-radius: 3px;
}

.kmyap-section-subtitle {
  font-size: 15px;
  color: #ffffff;
  margin: 15px 0 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 暗色模式样式增强 */
.kmyap-wn-dark-mode .kmyap-card, 
.kmyap-wn-dark-mode .kmyap-home-box,
.kmyap-wn-dark-mode .kmyap-subcategory-nav,
.kmyap-wn-dark-mode .kmyap-module-footer {
  background-color: #7b1701;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.kmyap-wn-dark-mode .kmyap-movie-card {
  background-color: #7b1701;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.kmyap-wn-dark-mode .kmyap-movie-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  border-color: #f4d47e;
}


/* 导航菜单样式增强 */
.kmyap-nav-trigger {
  display: none;
  position: relative;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 1000;
}

.kmyap-nav-trigger span,
.kmyap-nav-trigger span:before,
.kmyap-nav-trigger span:after {
  position: absolute;
  display: block;
  width: 100%;
  height: 3px;
  background-color: #7b1701;
  border-radius: 3px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.kmyap-nav-trigger span {
  top: 50%;
  transform: translateY(-50%);
}

.kmyap-nav-trigger span:before {
  content: '';
  top: -8px;
}

.kmyap-nav-trigger span:after {
  content: '';
  bottom: -8px;
}

.kmyap-nav-trigger.active span {
  background-color: #7b1701;
}

.kmyap-nav-trigger.active span:before {
  transform: translateY(8px) rotate(45deg);
}

.kmyap-nav-trigger.active span:after {
  transform: translateY(-8px) rotate(-45deg);
}

/* 移动导航遮罩 */
.kmyap-mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #7b1701;
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.kmyap-mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 导航下拉箭头 */
.kmyap-dropdown-toggle {
  display: none;
  width: 30px;
  height: 30px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.kmyap-dropdown-toggle:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--kmyap-text-color);
  border-bottom: 2px solid var(--kmyap-text-color);
  transform: translate(-50%, -70%) rotate(45deg);
  transition: transform 0.3s ease;
}

.open .kmyap-dropdown-toggle:before {
  transform: translate(-50%, -30%) rotate(-135deg);
}

/* 子菜单样式调整 */
.kmyap-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* 响应式导航 */
@media (max-width: 991px) {
  .kmyap-nav-trigger {
    display: block;
  }
  
  .kmyap-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: #7b1701;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
    padding: 70px 20px 30px;
    overflow-y: auto;
    transition: right 0.3s ease;
  }
  
  .kmyap-nav.active {
    right: 0;
  }
  
  .kmyap-nav > li {
    display: block;
    margin: 0;
    padding: 0;
  }
  
  .kmyap-nav > li > a {
    display: block;
    padding: 12px 0;
    position: relative;
  }
  
  .kmyap-nav > li.has-children > a {
    padding-right: 40px;
  }
  
  .kmyap-dropdown-toggle {
    display: block;
  }
  
  .kmyap-submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 15px;
    background: #7b1701;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  
  .kmyap-submenu li a {
    padding: 10px 0;
  }
  
  body.kmyap-nav-open {
    overflow: hidden;
  }
}

/* 搜索表单激活状态 */
.kmyap-search-form.active {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}