/* ========================================
   枯叶阁博客 - 棕褐文艺风
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 禁止页面顶/底橡皮筋过度滚动（iOS16+/Chrome 原生层），旧 iOS 由 footer 脚本兜底 */
html { overscroll-behavior-y: none; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #f5f2ed;
  color: #333;
  line-height: 1.7;
  font-size: 14px;
  /* 粘性页脚：内容不足一屏时把页脚顶到视口底部，避免页脚下方出现大片空白 */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
/* 手机端禁止横向浮屏（整个博客只能上下滑动） */
@media (max-width: 768px) {
  /* clip 不产生滚动容器，iOS standalone 下也能彻底禁止横移；旧系统回退 hidden */
  html { overflow-x: hidden !important; overflow-x: clip !important; overscroll-behavior-x: none;
         max-width: 100%; width: 100%; }
  body { overflow-x: hidden !important; overflow-x: clip !important;
         max-width: 100vw !important; width: 100%; position: relative; }
  /* 兜底：所有元素不得超出视口 */
  * { max-width: 100vw !important; }
  .kuye-banner, .kuye-banner-inner, .kuye-banner-text, .kuye-banner h1, .kuye-banner p,
  .kuye-nav, .kuye-nav-inner, .kuye-nav-menu, .kuye-mobile-cats, .kuye-nav-right,
  .kuye-container, .kuye-main, .kuye-sidebar,
  .kuye-widget, .kuye-article-list, .kuye-article-item, .kuye-article-body,
  .kuye-footer, .kuye-footer-inner, .kuye-footer-bottom {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  /* 专辑横向滚动：容器自身滚动，不撑宽 body */
  .kuye-mini-albums-inline {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100vw !important;
  }
  .kuye-mini-albums-inline::-webkit-scrollbar { display: none; }
  .kuye-mini-albums-inline * {
    max-width: 100vw !important;
  }
  .kuye-banner-text h1, .kuye-banner-text p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ==== 768px 逐个点名撑宽大户 ==== */
  .kuye-article-item,
  .kuye-article-item:hover { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
  .kuye-article-thumb { width: 100px !important; height: 70px !important; min-width: 100px !important; }
  .kuye-article-title { white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .kuye-mini-more-dropdown, .kuye-mini-more-dropdown * { min-width: 0 !important; width: auto !important; }
  .kuye-comment-form-row { flex-wrap: wrap !important; }
  .kuye-comment-form-row input { min-width: 0 !important; flex: 1 1 100% !important; width: 100% !important; box-sizing: border-box; }
  .kuye-comment-form-row button { flex: 0 0 auto !important; margin-top: 8px; }
  .kuye-auth { max-width: 100% !important; margin: 20px 12px !important; padding: 20px !important; box-sizing: border-box; }
  .kuye-article-body pre, .kuye-article-body code, .kuye-article-body table, .kuye-article-body img {
    max-width: 100% !important; overflow-x: hidden !important;
  }
  [style*="100vw"] { width: 100% !important; }

}
a { color: inherit; text-decoration: none; transition: color 0.3s; }
a:hover { color: #b8860b; }
img { max-width: 100%; }
ul, ol { list-style: none; }

/* ===== 顶部横幅 ===== */
.kuye-banner {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, #8b7355 0%, #6b5344 50%, #4a3728 100%);
}
.kuye-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.kuye-banner-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  color: #fff;
  gap: 20px;
}
.kuye-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.kuye-banner h1 {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.kuye-banner p {
  font-size: 14px;
  opacity: 0.9;
  letter-spacing: 1px;
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

  display: inline-block;
  margin-top: 22px;
  padding: 10px 26px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 30px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 2px;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.kuye-banner-entry:hover {
  background: rgba(255,255,255,0.32);
  color: #fff;
  transform: translateY(-2px);
}
.kuye-banner-entry-wrap {
  position: absolute;
  right: 30px;
  bottom: 40px;
}

/* ---- 导航栏右侧 flex 容器 ---- */
.kuye-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- 迷你播放器（Banner 右侧，文档流内联）---- */
.kuye-banner-player {
  flex-shrink: 0;
  z-index: 120;
}
.kuye-banner-mini {
  position: relative;
  flex-shrink: 0;
  width: 440px;
  max-width: 460px;
  padding: 6px 12px;
  border-radius: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
/* 播放器内专辑快捷栏：上一行显示播放器控制+3个专辑名 */
.kuye-mini-toprow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kuye-mini-albums-inline {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 12px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.kuye-mini-albums-inline::-webkit-scrollbar { display: none; }
.kuye-mini-album-inline { flex-shrink: 0; }
.kuye-mini-album-inline {
  font-size: 11px;
  padding: 3px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}
.kuye-mini-album-inline:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.kuye-mini-album-inline.active {
  background: #ecd9b6;
  color: #4a3728;
  border-color: #ecd9b6;
}
.kuye-mini-more-btn {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.8);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.kuye-mini-more-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.kuye-mini-more-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 130;
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  padding: 8px;
  background: rgba(74,55,40,0.96);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  max-height: 220px;
  overflow-y: auto;
  min-width: 140px;
}
.kuye-mini-more-dropdown.show { display: flex; }
.kuye-mini-more-dropdown .kuye-mini-album-card {
  font-size: 11px;
  padding: 5px 10px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.9);
  border-radius: 5px;
  text-align: left;
  cursor: pointer;
}
.kuye-mini-more-dropdown .kuye-mini-album-card:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.kuye-mini-more-dropdown .kuye-mini-album-card.active {
  background: #ecd9b6;
  color: #4a3728;
}
.kuye-mini-track {
  color: #f5ede0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kuye-mini-bar {
  height: 2px;
  background: rgba(255,255,255,0.25);
  border-radius: 1px;
  overflow: hidden;
}
.kuye-mini-bar-fill {
  height: 100%;
  width: 0;
  background: #ecd9b6;
  transition: width 0.3s linear;
}
.kuye-mini-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}
.kuye-mini-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.kuye-mini-btn:hover {
  background: #fff;
  color: #6b5344;
  border-color: #fff;
}
.kuye-mini-play {
  width: 30px;
  height: 30px;
  font-size: 12px;
  background: #f5ede0;
  color: #6b5344;
  border-color: #f5ede0;
}
.kuye-mini-play:hover {
  background: #fff;
  color: #4a3728;
  border-color: #fff;
}
.kuye-mini-album-btn {
  display: none; /* 桌面端用悬浮切专辑，该按钮仅手机显示 */
}
.kuye-mini-time {
  color: rgba(255,255,255,0.85);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
/* 专辑列表 - 旧版悬浮下拉已废弃，全部改用 inline 单行横滑 */
.kuye-mini-albums { display: none !important; }

/* 手机端 media query 内的 inline/albums-inline 规则已在下面 @media 块中单独处理 */
.kuye-mini-album-card:hover {
  background: #fff;
  color: #6b5344;
  border-color: #fff;
  transform: none;
}
.kuye-mini-album-card.active {
  background: #ecd9b6;
  color: #4a3728;
  border-color: #ecd9b6;
}
.kuye-mini-album-card .kuye-mini-album-bg,
.kuye-mini-album-artist { display: none; }
.kuye-mini-album-name {
  position: static;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: nowrap;
}
.kuye-mini-loading {
  grid-column: auto;
  color: rgba(255,255,255,0.8);
  font-size: 11px;
  padding: 2px 6px;
}

/* Banner 里的影视按钮（已移除，保留兼容） */
.kuye-banner-entry { display: none; }

/* ===== 移动端统一响应式（手机 & 小平板竖屏）=====
   核心：所有锁死布局的桌面规则在此断点内显式重写一次，不零散堆叠 */
@media (max-width: 768px) {
  /* ---- Banner 自适应高度：播放器占正常文档流，不再绝对定位挡标题 ---- */
  .kuye-banner { height: auto; min-height: 110px; padding-bottom: 0; }
  .kuye-banner-inner {
    padding: 12px 14px !important;
    text-align: center;
    flex-direction: column;  /* 手机：文字在上，播放器在下 */
    justify-content: center;
    align-items: stretch;
    gap: 8px;
  }
  .kuye-banner-text { text-align: center !important; flex: none; width: 100%; }
  .kuye-banner h1 { font-size: 24px !important; letter-spacing: 3px !important; margin-bottom: 4px !important; }
  .kuye-banner p { font-size: 13px !important; opacity: .9; letter-spacing: 1px !important; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

  /* ---- 播放器：Banner 底部正常文档流横条，多行布局 ---- */
  .kuye-banner-player {
    position: static;
    left: auto; right: auto; bottom: auto; top: auto; transform: none;
    width: 100%;
    z-index: 120;
  }
  .kuye-banner-mini {
    width: 100%; max-width: none;
    padding: 8px 12px;
    border-radius: 0;
    border: none;
    border-top: none;
    background: transparent;
    backdrop-filter: none;
    flex-direction: column; /* 手机改回多行 */
    gap: 5px;
    box-shadow: none;
  }
  /* 第一行：全部专辑，单行横向滚动 */
  .kuye-mini-toprow { gap: 0; }
  .kuye-mini-album-btn, .kuye-mini-more-btn { display: none !important; } /* 已移除按钮 */
  .kuye-mini-albums-inline {
    flex-wrap: nowrap !important;
    flex: 1; min-width: 0;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .kuye-mini-albums-inline::-webkit-scrollbar { display: none; }
  .kuye-mini-album-inline {
    flex: 0 0 59px !important;
    width: 59px !important;
    max-width: 59px !important;
    min-width: 59px !important;
    font-size: 10px;
    padding: 1px 6px !important;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
  }

  /* 专辑下拉已废弃 */
  .kuye-mini-more-dropdown { display: none !important; }

  /* 第二行：曲目名 */
  .kuye-mini-track {
    font-size: 12px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* 第三行：进度条（手机也显示） */
  .kuye-mini-bar { display: block; height: 3px; }
  /* 第四行：控制按钮 + 时长（全宽，按钮不被切） */
  .kuye-mini-controls { gap: 8px; flex-shrink: 0; width: 100%; justify-content: center; }
  .kuye-mini-btn { width: 32px; height: 32px; font-size: 14px; }
  .kuye-mini-play { width: 38px; height: 38px; font-size: 16px; }
  .kuye-mini-time { display: inline; font-size: 11px; color: rgba(255,255,255,0.7); margin-left: auto; }

  /* ---- 导航栏紧凑化 ---- */
  .kuye-nav-inner { height: 44px; gap: 8px; padding: 0 10px; }
  .kuye-nav-logo { font-size: 15px; }
  .kuye-mobile-services { gap: 2px; margin-left: 2px; }
  .kuye-mobile-services .kuye-mobile-svc-icon { font-size: 14px; width: 24px; height: 24px; }
  .kuye-mobile-toggle { width: 32px; height: 32px; font-size: 18px; }

  /* ---- 主容器 & 侧边栏 ---- */
  .kuye-container {
    grid-template-columns: 1fr !important;
    margin: 12px auto !important;
    padding: 0 12px !important;
    gap: 14px !important;
  }
  .kuye-sidebar { display: none !important; } /* 手机侧栏完全隐藏 */

  /* ---- 文章卡片紧凑：缩略图调大铺满，像首页第一篇 ---- */
  .kuye-article-list { padding: 12px !important; border-radius: 8px; }
  .kuye-article-item { gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0ebe3; }
  .kuye-article-item:last-child { border-bottom: none; }
  .kuye-article-thumb { width: 120px; height: 84px; font-size: 16px; border-radius: 6px; }
  .kuye-article-title { font-size: 14px; }
  .kuye-article-excerpt { font-size: 12px; -webkit-line-clamp: 2; line-height: 1.5; }
  .kuye-article-meta { font-size: 10px; gap: 5px; flex-wrap: wrap; }

  /* ---- 手机版页脚：隐藏「关于本站」博主信息，只留版权 ---- */
  .kuye-footer-inner { display: none; }

  /* ---- 影视页紧凑 ---- */
  .kuye-video-page { padding: 12px !important; }
  .kuye-video-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important; gap: 8px; }
  .kuye-video-card { padding: 10px 6px; }
  .kuye-video-icon { font-size: 22px; margin-bottom: 4px; }
  .kuye-video-name { font-size: 11px; }
  .kuye-video-breadcrumb { font-size: 12px; margin-bottom: 8px; }

  /* ---- 弹窗适配 ---- */
  .kuye-video-modal { padding: 8px !important; }
  .kuye-video-modal-inner { height: calc(100vh - 16px) !important; gap: 8px; max-width: none; }
  #kuyeVideoPlayer { max-height: 38vh !important; }
  .kuye-video-modal-list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; }

  /* ---- 其他 ---- */
  .kuye-widget { padding: 12px !important; }
  .kuye-pagination a, .kuye-pagination span { min-width: 28px; height: 28px; font-size: 12px; }
  .kuye-list-title { font-size: 15px; margin-bottom: 10px; padding-bottom: 8px; }
  .kuye-detail-content { font-size: 15px; }
}

/* 更小屏（≤400px）：进一步收紧 */
@media (max-width: 400px) {
  .kuye-banner h1 { font-size: 17px !important; letter-spacing: 2px !important; }
  .kuye-banner p { font-size: 10px !important; letter-spacing: 0.5px !important; }
  .kuye-banner-mini { padding: 3px 8px; }
  .kuye-mini-btn { width: 20px; height: 20px; font-size: 9px; }
  .kuye-mini-play { width: 24px; height: 24px; font-size: 10px; }
  .kuye-mini-track { font-size: 10px; }
}

/* ===== 导航栏 ===== */
.kuye-nav {
  background: #fff;
  border-bottom: 1px solid #e8e2d8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
.kuye-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 52px;
  gap: 14px;
}
.kuye-nav-logo {
  font-size: 17px;
  font-weight: 500;
  color: #8b7355;
  margin-right: 6px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.kuye-nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.kuye-nav-menu a {
  font-size: 15px;
  color: #555;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.kuye-nav-menu a.kuye-nav-service {
  color: #8b7355;
}
.kuye-nav-menu a.kuye-nav-service .svc-icon {
  margin-right: 2px;
}
/* 纯图标入口（影视/音乐/个人中心/宠物）：加大图标、居中、hover 圆形底 */
.kuye-nav-menu a.kuye-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}
.kuye-nav-menu a.kuye-icon-link .svc-icon { margin-right: 0; }
.kuye-nav-menu a.kuye-icon-link:hover {
  background: #f5f0e8;
  transform: translateY(-1px);
}
.kuye-nav-menu a.kuye-icon-link:hover::after { display: none; }
.kuye-nav-menu a:hover,
.kuye-nav-menu a.active {
  color: #8b7355;
}
.kuye-nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  right: 0;
  height: 2px;
  background: #8b7355;
}
.kuye-nav-search {
  position: relative;
  flex-shrink: 0;
}
.kuye-nav-search form { display: flex; }
.kuye-nav-search input {
  width: 150px;
  padding: 6px 10px 6px 30px;
  border: 1px solid #ddd;
  border-radius: 20px 0 0 20px;
  font-size: 13px;
  outline: none;
  background: #faf8f5;
}
.kuye-nav-search input:focus {
  border-color: #8b7355;
  background: #fff;
}
.kuye-nav-search::before {
  content: '🔍';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}
.kuye-nav-search button {
  padding: 0 12px;
  background: #8b7355;
  color: #fff;
  border: 1px solid #8b7355;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s;
}
.kuye-nav-search button:hover { background: #6b5344; }

.kuye-nav-user {
  margin-left: 2px;
  font-size: 13px;
  color: #8b7355;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.kuye-nav-user a {
  padding: 4px 12px;
  border-radius: 14px;
  background: #f5f0e8;
  transition: all 0.3s;
}
.kuye-nav-user a:hover {
  background: #8b7355;
  color: #fff;
}

/* 移动端元素：桌面端隐藏，≤1000px 媒体查询中显示（必须定义在媒体查询之前） */
.kuye-mobile-services {
  display: none;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
}
/* 手机顶栏直接显示的分类文字链接（桌面端隐藏） */
.kuye-mobile-cats {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
  overflow: hidden;
}
.kuye-mobile-cats a {
  color: #555;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.kuye-mobile-cats a.active { color: #8b7355; font-weight: 500; }
.kuye-mobile-cats a:hover { color: #8b7355; }
.kuye-mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #8b7355;
  border-radius: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.kuye-mobile-toggle:hover {
  background: #f5f0e8;
}

/* ===== 主容器 ===== */
.kuye-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  /* 粘性页脚：主区域吃掉多余高度，把页脚顶到底部 */
  flex: 1 0 auto;
}
/* grid 子项允许收缩，避免内部 min-content 在窄屏把整行撑宽 */
.kuye-main,
.kuye-sidebar {
  min-width: 0;
}

/* ===== 轮播精选 ===== */
.kuye-slider {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: relative;
  height: 260px;
  background: linear-gradient(135deg, #a08060 0%, #6b5344 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.kuye-slider-content {
  text-align: center;
  padding: 40px;
}
.kuye-slider h2 {
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 14px;
  letter-spacing: 4px;
}
.kuye-slider p {
  opacity: 0.9;
  font-size: 14px;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== 精彩专题 ===== */
.kuye-topics {
  background: #fff;
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.kuye-widget-title {
  font-size: 16px;
  font-weight: 500;
  color: #8b7355;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #ddd;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kuye-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kuye-topic-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #faf8f5;
  border-radius: 6px;
  transition: all 0.3s;
  cursor: pointer;
}
.kuye-topic-item:hover {
  background: #f0ebe0;
  transform: translateY(-2px);
}
.kuye-topic-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a86c, #8b7355);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}
.kuye-topic-text {
  font-size: 13px;
  color: #555;
}

/* ===== 站点简介 ===== */
.kuye-site-intro {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 25px;
  border-left: 4px solid #8b7355;
}
.kuye-site-intro .kuye-list-title { margin-bottom: 14px; }
.kuye-site-intro p {
  margin: 0;
  line-height: 1.9;
  color: #555;
  font-size: 14px;
}

/* ===== 评论区审核说明 ===== */
.kuye-comment-note {
  font-size: 12px;
  color: #999;
  margin: 4px 0 14px;
  padding: 6px 10px;
  background: #faf9f7;
  border-radius: 6px;
  border-left: 3px solid #d4c4a8;
}

/* ===== 文章列表 ===== */
.kuye-article-list {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.kuye-list-title {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #8b7355;
  display: inline-block;
}
.kuye-article-item {
  padding: 18px 0;
  border-bottom: 1px dashed #e8e2d8;
  display: flex;
  gap: 20px;
  transition: background 0.3s;
}
.kuye-article-item:last-child { border-bottom: none; }
.kuye-article-item:hover {
  background: #faf9f7;
  border-radius: 6px;
}
.kuye-article-thumb {
  width: 220px;
  height: 150px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d4c4a8, #a08060);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  overflow: hidden;
  border: 1px solid #e8e2d8;
}
.kuye-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kuye-article-body {
  flex: 1;
  min-width: 0;
}
.kuye-article-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.kuye-article-category {
  background: #f5f0e8;
  color: #8b7355;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}
.kuye-article-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kuye-article-item:hover .kuye-article-title { color: #8b7355; }
.kuye-article-excerpt {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kuye-top-tag {
  background: #e74c3c;
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  margin-left: 6px;
}

/* ===== 分页 ===== */
.kuye-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 25px;
  flex-wrap: wrap;
}
.kuye-pagination a,
.kuye-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #e0dcd0;
  border-radius: 6px;
  font-size: 13px;
  color: #666;
  transition: all 0.3s;
}
.kuye-pagination a:hover,
.kuye-pagination .current {
  background: #8b7355;
  color: #fff;
  border-color: #8b7355;
}

/* ===== 侧边栏 ===== */
.kuye-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.kuye-widget {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 名片 */
.kuye-profile { text-align: center; }
.kuye-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a86c, #8b7355);
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
  border: 4px solid #f5f0e8;
  box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}
.kuye-profile-name {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}
.kuye-profile-name-en {
  font-size: 12px;
  color: #aaa;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.kuye-profile-info {
  text-align: left;
  font-size: 13px;
  color: #666;
  line-height: 2;
  border-top: 1px dashed #eee;
  padding-top: 12px;
}
.kuye-profile-info div { display: flex; }
.kuye-profile-info span.label {
  color: #999;
  margin-right: 6px;
  flex-shrink: 0;
}
.kuye-profile-email-inline {
  margin-left: 6px;
  align-self: center;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s;
}
.kuye-profile-email-inline:hover { transform: scale(1.2); }

/* 站点信息 */
.kuye-site-info {
  font-size: 13px;
  color: #666;
  line-height: 2.2;
}
.kuye-site-info li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #eee;
  padding: 2px 0;
}
.kuye-site-info li:last-child { border-bottom: none; }
.kuye-site-info .label { color: #999; }
.kuye-site-info .value { color: #8b7355; font-weight: 500; }

/* 标签云 */
.kuye-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kuye-tag {
  padding: 4px 12px;
  background: #faf8f5;
  border-radius: 15px;
  font-size: 12px;
  color: #777;
  transition: all 0.3s;
  cursor: pointer;
}
.kuye-tag:hover {
  background: #8b7355;
  color: #fff;
  transform: translateY(-2px);
}

/* 友链 */
.kuye-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kuye-links a {
  padding: 6px 12px;
  background: linear-gradient(135deg, #f5f0e8, #ebe4d8);
  border-radius: 6px;
  font-size: 12px;
  color: #8b7355;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.kuye-links a:hover {
  background: #8b7355;
  color: #fff;
  transform: translateY(-2px);
}

/* 友情链接卡片（电脑端首页侧边栏底部） */
.kuye-friend-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kuye-friend-link {
  display: block;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f5f0e8, #ebe4d8);
  border-radius: 6px;
  border-left: 3px solid #c9a86c;
  transition: all 0.3s;
}
.kuye-friend-link:hover {
  background: #8b7355;
  transform: translateX(3px);
}
.kuye-friend-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #8b7355;
  line-height: 1.4;
}
.kuye-friend-desc {
  display: block;
  font-size: 11px;
  color: #b0a090;
  margin-top: 3px;
  line-height: 1.4;
  word-break: break-all;
}
.kuye-friend-link:hover .kuye-friend-name,
.kuye-friend-link:hover .kuye-friend-desc {
  color: #fff;
}

/* 分类列表 */
.kuye-cat-list { font-size: 13px; }
.kuye-cat-list li {
  padding: 8px 0;
  border-bottom: 1px dotted #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kuye-cat-list li:last-child { border-bottom: none; }
.kuye-cat-list a { color: #555; }
.kuye-cat-list a:hover { color: #8b7355; }
.kuye-cat-count {
  background: #f5f0e8;
  color: #999;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
}

/* ===== 文章详情 ===== */
.kuye-article-detail {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.kuye-detail-header {
  text-align: center;
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px dashed #e8e2d8;
}
.kuye-detail-title {
  font-size: 24px;
  font-weight: 500;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}
.kuye-detail-meta {
  font-size: 13px;
  color: #999;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.kuye-detail-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.kuye-detail-content {
  font-size: 15px;
  line-height: 2;
  color: #444;
}
.kuye-detail-content p {
  margin-bottom: 16px;
  text-indent: 2em;
}
.kuye-detail-content h2 {
  font-size: 18px;
  margin: 25px 0 15px;
  padding-left: 12px;
  border-left: 4px solid #8b7355;
  color: #333;
}
.kuye-detail-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 10px auto;
  display: block;
}
.kuye-detail-content blockquote {
  background: #faf8f5;
  border-left: 4px solid #c9a86c;
  padding: 15px 20px;
  margin: 15px 0;
  color: #666;
  border-radius: 0 6px 6px 0;
}

.kuye-detail-nav {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
}
.kuye-detail-nav a { color: #8b7355; }
.kuye-detail-nav a:hover { text-decoration: underline; }

/* ===== 评论区 ===== */
.kuye-comments {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  margin-top: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.kuye-comment-item {
  padding: 15px 0;
  border-bottom: 1px dashed #e8e2d8;
  display: flex;
  gap: 12px;
}
.kuye-comment-item:last-child { border-bottom: none; }
.kuye-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4c4a8, #a08060);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}
.kuye-comment-body { flex: 1; min-width: 0; }
.kuye-comment-name {
  font-size: 13px;
  font-weight: 500;
  color: #8b7355;
  margin-bottom: 4px;
}
.kuye-comment-time {
  font-size: 11px;
  color: #bbb;
  margin-left: 8px;
  font-weight: normal;
}
.kuye-comment-text {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}
.kuye-comment-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.kuye-comment-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
}
.kuye-comment-form textarea:focus { border-color: #8b7355; }
.kuye-comment-form-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.kuye-comment-form-row input {
  flex: 1;
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}
.kuye-comment-form-row input:focus { border-color: #8b7355; }
.kuye-comment-form button {
  padding: 8px 24px;
  background: #8b7355;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s;
  align-self: flex-end;
}
.kuye-comment-form button:hover { background: #6b5344; }

/* ===== 登录/注册页 ===== */
.kuye-auth {
  max-width: 400px;
  margin: 50px auto;
  background: #fff;
  border-radius: 8px;
  padding: 35px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.kuye-auth h2 {
  text-align: center;
  color: #8b7355;
  margin-bottom: 25px;
  font-weight: 400;
  letter-spacing: 4px;
}
.kuye-auth-form .form-item {
  margin-bottom: 18px;
}
.kuye-auth-form label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}
.kuye-auth-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}
.kuye-auth-form input:focus { border-color: #8b7355; }
.kuye-auth-form button {
  width: 100%;
  padding: 12px;
  background: #8b7355;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
  letter-spacing: 4px;
}
.kuye-auth-form button:hover { background: #6b5344; }
.kuye-auth-error {
  background: #fce4ec;
  color: #c2185b;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 13px;
  text-align: center;
}
.kuye-auth-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #999;
}
.kuye-auth-footer a { color: #8b7355; }

/* ===== 404页面 ===== */
.kuye-404 {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.kuye-404 h1 {
  font-size: 72px;
  color: #8b7355;
  font-weight: 300;
  margin-bottom: 10px;
}
.kuye-404 p {
  color: #999;
  margin-bottom: 25px;
}
.kuye-404 a {
  display: inline-block;
  padding: 10px 30px;
  background: #8b7355;
  color: #fff;
  border-radius: 6px;
  transition: background 0.3s;
}
.kuye-404 a:hover { background: #6b5344; }

/* ===== 页脚 ===== */
.kuye-footer {
  background: #3a2e24;
  color: #a09080;
  padding: 12px 0;
  margin-top: 30px;
  text-align: center;
  flex-shrink: 0;
}
.kuye-footer-bottom {
  font-size: 12px;
  color: #807060;
  line-height: 1.6;
}
.kuye-footer-bottom a { color: #a09080; }
.kuye-footer-icp {
  font-size: 11px;
  color: #6a5d50;
  line-height: 1.6;
  margin-top: 2px;
}
.kuye-footer-icp a { color: #807060; }

/* 回到顶部 */
.kuye-back-top {
  position: fixed; right: 20px; bottom: 30px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #8b7355; color: #fff; border: none;
  font-size: 18px; cursor: pointer; opacity: 0;
  transition: all 0.3s; z-index: 999;
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.4);
}
.kuye-back-top.show { opacity: 1; }

/* ===== 响应式 ===== */
/* 中等屏幕：收紧导航间距，保证所有栏目一行排开 */
@media (max-width: 1180px) {
  .kuye-nav-inner { gap: 10px; padding: 0 15px; }
  .kuye-nav-menu { gap: 12px; }
  .kuye-nav-search input { width: 130px; }
}
@media (max-width: 1024px) {
  .kuye-nav-menu { gap: 10px; }
  /* 影视/音乐/办公折叠为纯图标，文字仍在汉堡菜单里 */
  .kuye-nav-menu a.kuye-nav-service .svc-label { display: none; }
  .kuye-nav-user a { padding: 4px 10px; }
}
/* 平板及以下：桌面菜单收进汉堡按钮 */
@media (max-width: 1000px) {
  .kuye-nav-menu { display: none; }
  .kuye-nav-search { display: none; }
  .kuye-nav-user { display: none; }
  .kuye-mobile-toggle { display: flex; }
  .kuye-mobile-services { display: flex; }
  .kuye-mobile-cats { display: flex; }
  .kuye-nav-logo { margin-right: 0; }
}
@media (max-width: 900px) {
  html, body { overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; }
  img, video, pre, table { max-width: 100%; }
  /* Banner/容器/文章/导航 统一交给 ≤768px 或各自断点，这里只做平板独有的 */
  .kuye-topics-grid { grid-template-columns: repeat(2, 1fr); }
  .kuye-footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .kuye-footer { padding: 8px 0 6px; margin-top: 20px; }
  .kuye-slider { height: 180px; }
  .kuye-slider h2 { font-size: 18px; letter-spacing: 2px; }
  .kuye-slider p { font-size: 12px; }
  .kuye-topics { padding: 15px 18px; }
}
@media (max-width: 480px) {
  /* Banner/文章/详情 等统一交给 ≤768px 和 ≤400px 断点，这里清空避免反向覆盖 */
}

/* ===== 移动端侧边菜单 ===== */
.kuye-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  z-index: 200;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.kuye-mobile-menu.show {
  transform: translateX(0);
}
.kuye-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #8b7355, #6b5344);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
}
.kuye-mobile-close {
  font-size: 18px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.kuye-mobile-close:hover {
  background: rgba(255,255,255,0.2);
}
.kuye-mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}
.kuye-mobile-section {
  padding: 10px 0;
  border-bottom: 1px solid #f0ebe0;
}
.kuye-mobile-section:last-child {
  border-bottom: none;
}
.kuye-mobile-section-title {
  padding: 8px 20px;
  font-size: 12px;
  color: #999;
  letter-spacing: 2px;
  font-weight: 500;
}
.kuye-mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #555;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.kuye-mobile-link:hover {
  background: #faf8f5;
  color: #8b7355;
}
.kuye-mobile-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
}
.kuye-mobile-service {
  color: #8b7355;
  font-weight: 500;
  background: #faf6f0;
  margin: 4px 12px;
  border-radius: 8px;
}
.kuye-mobile-service:hover {
  background: #f0ebe0;
}

/* ===== 服务状态页（排队/不可用） ===== */
.kuye-service-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}
.kuye-status-card {
  background: #fff;
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 450px;
  width: 100%;
}
.kuye-status-card.success {
  animation: pulse-green 1s ease;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
  50% { box-shadow: 0 4px 24px rgba(46, 204, 113, 0.4); }
}
.kuye-status-icon {
  font-size: 64px;
  margin-bottom: 20px;
}
.kuye-status-card h2 {
  font-size: 22px;
  color: #333;
  margin-bottom: 12px;
  font-weight: 500;
}
.kuye-status-desc {
  color: #888;
  font-size: 14px;
  margin-bottom: 30px;
  line-height: 1.6;
}
.kuye-queue-info {
  background: #faf8f5;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}
.kuye-queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  font-size: 14px;
}
.kuye-queue-item:last-child { border-bottom: none; }
.kuye-queue-label {
  color: #999;
}
.kuye-queue-value {
  color: #8b7355;
  font-weight: 500;
}
.kuye-queue-progress {
  margin-bottom: 24px;
}
.kuye-queue-bar {
  height: 8px;
  background: #f0ebe0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.kuye-queue-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b7355, #c9a86c);
  border-radius: 4px;
  transition: width 0.5s ease;
  width: 0%;
}
.kuye-queue-tip {
  font-size: 12px;
  color: #aaa;
}
.kuye-back-home {
  display: inline-block;
  padding: 10px 28px;
  background: #8b7355;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s;
}
.kuye-back-home:hover {
  background: #6b5344;
  color: #fff;
}

/* ===== 后台服务控制面板 ===== */
.service-panel {
  margin-bottom: 25px;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.service-card {
  border: 2px solid #e8e2d8;
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}
.service-card.on {
  border-color: #8b7355;
  background: linear-gradient(135deg, #fffbf5, #fff);
  box-shadow: 0 4px 16px rgba(139,115,85,0.08);
}
.service-card.off {
  border-color: #e0e0e0;
  background: #fafafa;
  opacity: 0.7;
}
.service-icon {
  font-size: 56px;
  margin-bottom: 16px;
}
.service-name {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 14px;
  line-height: 1.4;
}
.service-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2ecc71;
  animation: blink 2s infinite;
}
.service-card.off .status-dot {
  background: #ccc;
  animation: none;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.status-text {
  font-size: 16px;
  color: #666;
}
.service-card.on .status-text { color: #2ecc71; }
.service-card.off .status-text { color: #999; }
.service-info {
  font-size: 16px;
  color: #888;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(139, 115, 85, 0.06);
  border-radius: 8px;
  line-height: 1.6;
}
.service-info strong {
  color: #8b7355;
  font-size: 20px;
}
.switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 17px;
  color: #555;
  cursor: pointer;
}
.toggle-switch {
  position: relative;
  width: 54px;
  height: 28px;
  display: inline-block;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 28px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: #8b7355;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
}
.limit-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 16px;
  color: #555;
  border-top: 1px dashed #eee;
}
.limit-input input {
  width: 90px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
  outline: none;
}
.limit-input input:focus {
  border-color: #8b7355;
}
.service-urls {
  margin-top: 24px;
  border-top: 1px dashed #eee;
  padding-top: 20px;
}
.service-urls h4 {
  font-size: 18px;
  color: #444;
  margin-bottom: 16px;
  font-weight: 600;
}
.url-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 16px;
  color: #666;
}
.url-row label {
  width: 80px;
  flex-shrink: 0;
  text-align: right;
  font-size: 16px;
}
.url-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  min-width: 0;
}
.url-row input:focus {
  border-color: #8b7355;
}
.service-tip {
  text-align: center;
  color: #999;
  font-size: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #eee;
  line-height: 1.8;
}
.admin-btn {
  padding: 10px 28px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.admin-btn.primary {
  background: #8b7355;
  color: #fff;
}
.admin-btn.primary:hover {
  background: #6b5344;
}

/* 移动端快捷入口图标 / 汉堡按钮的基础样式（显隐规则见导航区，位于媒体查询之前） */
.kuye-mobile-svc-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border-radius: 50%;
  background: #faf6f0;
  transition: all 0.2s;
  text-decoration: none;
}
.kuye-mobile-svc-icon:hover {
  background: #f0ebe0;
  transform: scale(1.1);
}

/* ===== 响应式 - 服务控制面板 ===== */
@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .kuye-status-card {
    padding: 35px 25px;
  }
  .kuye-status-icon {
    font-size: 48px;
  }
  .kuye-status-card h2 {
    font-size: 18px;
  }
}

/* 服务控制中心：设置项强制一行排列 + 加大按钮和行距 */
.service-card { text-align: left !important; }
.service-card .service-icon,
.service-card .service-name,
.service-card .service-status { text-align: center; }
.service-card .switch-label,
.service-card .limit-input {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  padding: 16px 0 !important;
  font-size: 17px !important;
  line-height: 1.8;
}
.service-card .switch-label > span:first-child,
.service-card .limit-input > span:first-child { flex: 1; }
.service-urls .switch-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  font-size: 16px !important;
  line-height: 1.8;
  padding: 10px 0;
}
.service-urls .url-row {
  margin-bottom: 16px !important;
}
.service-urls .url-row input {
  padding: 12px 14px !important;
  font-size: 16px !important;
}
.admin-btn.primary {
  padding: 14px 36px !important;
  font-size: 17px !important;
  border-radius: 8px;
  background: #8b7355 !important;
  color: #fff !important;
  border: none;
  cursor: pointer;
}

/* ===== 轮播：多图淡入切换 ===== */
.kuye-slider .kuye-slider-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.kuye-slider .kuye-slider-content.active {
  opacity: 1;
  pointer-events: auto;
}
.kuye-slider .kuye-slider-content h2 {
  color: #fff;
}
.kuye-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.kuye-slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.2s;
}
.kuye-slider-dots span.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}

/* ===== 文章点赞 ===== */
.kuye-like-btn {
  margin-top: 14px;
  padding: 8px 22px;
  border: 1px solid #d8c9b0;
  background: #faf8f5;
  color: #8b7355;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
}
.kuye-like-btn:hover {
  background: #f0ebe0;
  transform: translateY(-1px);
}
.kuye-like-btn.liked {
  background: #8b7355;
  border-color: #8b7355;
  color: #fff;
}

/* ===== 相关推荐 ===== */
.kuye-related {
  background: #fff;
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.kuye-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kuye-related-list li {
  padding: 9px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.kuye-related-list li:last-child {
  border-bottom: none;
}
.kuye-related-list a {
  color: #444;
  font-size: 14px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kuye-related-list a:hover {
  color: #8b7355;
}
.kuye-related-date {
  color: #bbb;
  font-size: 12px;
  white-space: nowrap;
}

/* ===== 侧边栏：热门文章 ===== */
.kuye-hot-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kuye-hot-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}
.kuye-hot-rank {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #e8e0d2;
  color: #9a8b73;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kuye-hot-rank.rank-1 { background: #e0a458; color: #fff; }
.kuye-hot-rank.rank-2 { background: #c9b18b; color: #fff; }
.kuye-hot-rank.rank-3 { background: #b7c0a0; color: #fff; }
.kuye-hot-list a {
  color: #444;
  font-size: 13px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kuye-hot-list a:hover {
  color: #8b7355;
}

/* ===== 侧边栏：最新评论 ===== */
.kuye-recent-comments {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kuye-recent-comments li {
  padding: 7px 0;
  border-bottom: 1px dashed #f0ebe4;
  font-size: 13px;
  line-height: 1.5;
}
.kuye-recent-comments li:last-child {
  border-bottom: none;
}
.kuye-recent-comments a {
  color: #666;
  text-decoration: none;
}
.kuye-recent-comments a:hover {
  color: #8b7355;
}
.kuye-rc-user {
  color: #8b7355;
}

/* ===== 文章归档 ===== */
.kuye-archive-group {
  margin-bottom: 28px;
}
.kuye-archive-month {
  font-size: 16px;
  font-weight: 600;
  color: #6b5344;
  padding: 10px 14px;
  background: #faf6f0;
  border-left: 3px solid #8b7355;
  border-radius: 0 6px 6px 0;
  margin-bottom: 10px;
}
.kuye-archive-count {
  float: right;
  font-size: 12px;
  font-weight: 400;
  color: #aaa;
}
.kuye-archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kuye-archive-list li {
  padding: 9px 14px;
  border-bottom: 1px dashed #f0ebe4;
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.kuye-archive-list li:hover {
  background: #fcfaf7;
}
.kuye-archive-date {
  flex: none;
  color: #b5a88f;
  font-size: 13px;
  width: 88px;
}
.kuye-archive-list a {
  color: #444;
  font-size: 14px;
  text-decoration: none;
}
.kuye-archive-list a:hover {
  color: #8b7355;
}

/* ================= 首页音乐播放器 ================= */
.kuye-music-player {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.kuye-music-body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.kuye-music-cover {
  flex-shrink: 0;
  width: 120px; height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}
.kuye-music-cover img { width:100%; height:100%; object-fit: cover; display:block; }
.kuye-music-main { flex: 1; min-width: 0; }
.kuye-music-track { margin-bottom: 10px; }
#kuyeMusicTitle { font-weight: 600; color: #333; font-size: 15px; }
.kuye-music-artist { color: #999; font-size: 13px; margin-left: 4px; }
.kuye-music-controls {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
}
.kuye-music-controls button {
  background: #f5efe6; border: 1px solid #e6dccb; color: #5a4632;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 14px;
}
.kuye-music-controls button:hover { background: #ebe0cd; }
.kuye-music-time { color: #999; font-size: 12px; min-width: 92px; text-align: center; }
#kuyeMusicSeek { flex: 1; min-width: 100px; accent-color: #8b7355; }
.kuye-music-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  max-height: 260px; overflow-y: auto;
}
.kuye-album-card {
  position: relative; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden;
  background-size: cover; background-position: center; cursor: pointer;
  border: 2px solid transparent; transition: border-color .2s;
}
.kuye-album-card.active { border-color: #8b7355; }
.kuye-album-card-bg {
  position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.75) 100%);
}
.kuye-album-card-info {
  position: absolute; left: 8px; right: 8px; bottom: 8px; color: #fff;
}
.kuye-album-card-name { font-size: 12px; font-weight: 600; line-height: 1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.kuye-album-card-artist { font-size: 11px; opacity: .8; margin-top: 2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kuye-music-loading { color: #999; font-size: 13px; padding: 10px 0; }

/* ================= 影视浏览页 ================= */
.kuye-video-page {
  background: #fff; border-radius: 10px; padding: 18px 20px; margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.kuye-video-breadcrumb { margin-bottom: 14px; color: #8b7355; font-size: 14px; }
.kuye-video-breadcrumb a { color: #8b7355; text-decoration: none; }
.kuye-video-breadcrumb a:hover { text-decoration: underline; }
.kuye-video-breadcrumb .sep { color: #ccc; margin: 0 6px; }
.kuye-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.kuye-video-card {
  background: #faf7f2; border: 1px solid #eee; border-radius: 8px;
  padding: 16px 10px; text-align: center; cursor: pointer; transition: .2s;
}
.kuye-video-card:hover { border-color: #d4c4a8; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.06); }
.kuye-video-card.playable { background: #fdf6ec; }
.kuye-video-icon { font-size: 30px; margin-bottom: 6px; }
.kuye-video-name { font-size: 13px; color: #444; line-height: 1.35;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.kuye-video-meta { font-size: 11px; color: #aaa; margin-top: 4px; }
.kuye-loading { color: #999; text-align: center; padding: 30px 0; }
.kuye-service-closed {
  background:#fff; border-radius:10px; padding:60px 20px; text-align:center; color:#666;
}
.kuye-service-closed h2 { margin: 14px 0 8px; color: #8b7355; }
.kuye-service-closed .kuye-closed-icon { font-size: 48px; }

/* 视频播放弹窗（上预览 + 下文件夹列表） */
.kuye-video-modal {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.88);
  z-index: 9999; padding: 24px;
}
.kuye-video-modal-inner {
  position: relative;
  width: 100%; max-width: 1100px; height: calc(100vh - 48px);
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
}
.kuye-video-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4px;
}
.kuye-video-modal-title { color: #fff; font-size: 16px; font-weight: 500; letter-spacing: 1px; max-width: calc(100% - 40px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.kuye-video-close {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: #fff;
  font-size: 18px; cursor: pointer; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.kuye-video-close:hover { background: rgba(255,255,255,0.25); }
.kuye-video-modal-actions { display: flex; gap: 8px; align-items: center; }
.kuye-video-min {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: #fff;
  font-size: 18px; cursor: pointer; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.kuye-video-min:hover { background: rgba(255,255,255,0.25); }

/* --- 最小化悬浮模式 --- */
.kuye-video-modal.minimized {
  background: transparent !important;
  position: fixed !important;
  top: auto !important; left: auto !important; right: 16px !important; bottom: 16px !important;
  width: 360px !important; height: 220px !important;
  z-index: 9999;
  overflow: visible;
  pointer-events: none; /* 穿透点击背景 */
}
.kuye-video-modal.minimized .kuye-video-modal-inner {
  height: 100% !important; width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  background: #000;
  pointer-events: auto;
}
.kuye-video-modal.minimized .kuye-video-modal-files { display: none; }
.kuye-video-modal.minimized .kuye-video-modal-player { flex: 1; }
.kuye-video-modal.minimized .kuye-video-modal-header {
  padding: 4px 8px !important;
  cursor: pointer;
  background: rgba(0,0,0,0.7);
}
.kuye-video-modal.minimized .kuye-video-modal-title { font-size: 12px; }
.kuye-video-modal.minimized .kuye-video-min { display: none; }
.kuye-video-modal.minimized .kuye-video-close { width: 26px; height: 26px; font-size: 14px; }
/* 桌面端点 title 恢复 */
.kuye-video-modal.minimized .kuye-video-modal-header:hover .kuye-video-min { display: none; }
/* 点击 inner 空白也能恢复 */
.kuye-video-modal.minimized .kuye-video-modal-header::after {
  content: "点击标题恢复";
  position: absolute; right: 48px; top: 0; line-height: 34px;
  font-size: 11px; color: rgba(255,255,255,0.6);
}
/* 手机端最小化更小 */
@media (max-width: 768px) {
  .kuye-video-modal.minimized {
    width: 240px !important; height: 150px !important;
    right: 10px !important; bottom: 10px !important;
  }
  .kuye-video-modal.minimized .kuye-video-close { width: 22px; height: 22px; font-size: 12px; }
  .kuye-video-modal.minimized .kuye-video-modal-header::after { display: none; }
}

.kuye-video-modal-player {
  position: relative;
  background: #000; border-radius: 8px; overflow: hidden;
  flex: 0 0 auto;
}
#kuyeVideoPlayer { width: 100%; display: block; background: #000; max-height: 55vh; user-select: none; -webkit-user-select: none; }
/* 禁止拖拽视频到桌面保存 */
#kuyeVideoPlayer, #kuyeMiniAudio { -webkit-user-drag: none; user-drag: none; }
/* 右键屏蔽在 JS 层统一做（见 video.ejs / header.ejs 的全局 contextmenu 拦截） */
.kuye-video-modal-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); font-size: 14px; letter-spacing: 2px;
  pointer-events: none;
}

/* 播放器工具栏：清晰度 + 全屏 */
.kuye-video-toolbar {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  display: flex; gap: 8px; align-items: center;
}
.kuye-quality select {
  background: rgba(0,0,0,0.55); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px; padding: 4px 8px; font-size: 12px; outline: none; cursor: pointer;
}
.kuye-fs-btn {
  width: 32px; height: 32px; border-radius: 4px;
  background: rgba(0,0,0,0.55); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  font-size: 16px; cursor: pointer; line-height: 1;
}
.kuye-fs-btn:hover { background: rgba(0,0,0,0.8); }
.kuye-video-modal-player:fullscreen { border-radius: 0; max-height: none; }
.kuye-video-modal-player:fullscreen #kuyeVideoPlayer { max-height: none; height: 100vh; }
#kuyeVideoPlayer:fullscreen { width: 100vw; height: 100vh; max-height: none; object-fit: contain; background:#000; }
#kuyeVideoPlayer:-webkit-full-screen { width: 100vw; height: 100vh; max-height: none; object-fit: contain; background:#000; }

.kuye-video-modal-files {
  flex: 1 1 auto; min-height: 0;
  background: rgba(255,255,255,0.06); border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-direction: column; overflow: hidden;
}
.kuye-video-modal-crumb {
  padding: 10px 14px; font-size: 13px; color: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.kuye-video-modal-crumb .mb-crumb, .kuye-video-modal-crumb .mb-root {
  cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: background .15s;
}
.kuye-video-modal-crumb .mb-crumb:hover, .kuye-video-modal-crumb .mb-root:hover { background: rgba(255,255,255,0.12); color: #fff; }
.kuye-video-modal-crumb .mb-sep { margin: 0 4px; opacity: .5; }

.kuye-video-modal-list {
  flex: 1 1 auto; overflow-y: auto; padding: 8px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px;
  align-content: start;
}
.kuye-modal-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 6px; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid transparent;
  color: rgba(255,255,255,0.78);
  font-size: 13px; transition: all .15s;
  min-width: 0;
}
.kuye-modal-item:hover { background: rgba(255,255,255,0.14); color: #fff; }
.kuye-modal-item.playable { border-color: rgba(255,255,255,0.12); }
.kuye-modal-item.active { background: rgba(139,115,85,0.45); border-color: #c9a86c; color: #fff; }
.kuye-modal-item .mm-ico { font-size: 16px; flex-shrink: 0; }
.kuye-modal-item .mm-name {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kuye-modal-item .mm-meta {
  font-size: 11px; opacity: .6; flex-shrink: 0; margin-left: 4px;
}

/* 弹窗移动端规则已收敛到主 @media (max-width: 768px) 块，此处清空避免反向覆盖 */
@media (max-width: 768px) {
}

/* 响应式：音乐/影视 */
@media (max-width: 900px) {
  .kuye-music-body { flex-direction: column; align-items: center; text-align: center; }
  .kuye-music-cover { width: 150px; height: 150px; }
  .kuye-music-controls { justify-content: center; }
  .kuye-music-albums { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}


/* ===== iPhone 16 Pro Max 等全面屏安全区适配 ===== */
html { -webkit-text-size-adjust: 100%; }
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.kuye-footer { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.kuye-nav { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.kuye-mobile-menu { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }

/* 小屏手机（≤430px，iPhone 16 Pro Max 逻辑宽）微调，防溢出 */
@media (max-width: 430px) {
  .kuye-banner-inner { padding: 0 16px !important; }
  .kuye-banner h1 { font-size: 19px !important; letter-spacing: 2px !important; }
  .kuye-banner p { font-size: 11px !important; }
  .kuye-container { padding: 12px 12px 0; gap: 12px; }
  .kuye-article-list { padding: 14px !important; }
  .kuye-article-thumb { width: 120px; height: 84px; }
  .kuye-article-excerpt { font-size: 12px; -webkit-line-clamp: 2; }
  .kuye-sidebar { display: none !important; }
  .kuye-container { grid-template-columns: 1fr !important; }
  .kuye-detail-content { font-size: 15px; }
}

/* ===== 影视播放器：移动端伪全屏（铺满整屏 + 安全区适配） =====
   iOS Safari 不支持对非 video 元素调用 requestFullscreen，
   手机端点全屏改用 CSS 伪全屏：视频铺满 100dvh，灵动岛/刘海/底部横条留安全区。
   以 iPhone 16 Pro Max（440×956pt、DPR3、灵动岛）为基准适配。 */
.kuye-video-modal.mobile-fs {
  padding: 0 !important;
  background: #000 !important;
}
.kuye-video-modal.mobile-fs .kuye-video-modal-inner {
  height: 100dvh !important;
  max-width: none;
  gap: 0;
  margin: 0;
}
/* 伪全屏只保留播放器：隐藏标题栏与文件列表 */
.kuye-video-modal.mobile-fs .kuye-video-modal-header,
.kuye-video-modal.mobile-fs .kuye-video-modal-files {
  display: none !important;
}
.kuye-video-modal.mobile-fs .kuye-video-modal-player {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100dvh;
  max-height: none;
  border-radius: 0;
  z-index: 6;
}
/* 视频铺满整屏；高度让出底部 Home 指示条，原生控制条落在安全区内 */
.kuye-video-modal.mobile-fs #kuyeVideoPlayer {
  width: 100%;
  height: calc(100dvh - env(safe-area-inset-bottom, 0px));
  max-height: none !important; /* 覆盖 ≤768px 媒体查询的 38vh */
  object-fit: contain;
  box-sizing: border-box;
}
/* 工具栏：避开灵动岛 / 刘海 / 屏幕圆角 */
.kuye-video-modal.mobile-fs .kuye-video-toolbar {
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: calc(10px + env(safe-area-inset-right, 0px));
}
.kuye-video-modal.mobile-fs .kuye-fs-btn {
  width: 42px; height: 42px; font-size: 21px; border-radius: 8px;
  background: rgba(0,0,0,0.6);
}
.kuye-video-modal.mobile-fs .kuye-quality select {
  font-size: 13px; padding: 7px 10px;
  background: rgba(0,0,0,0.6);
}
/* 不支持 dvh 单位的旧浏览器兜底 */
@supports not (height: 100dvh) {
  .kuye-video-modal.mobile-fs .kuye-video-modal-inner { height: 100% !important; }
  .kuye-video-modal.mobile-fs .kuye-video-modal-player { height: 100%; }
  .kuye-video-modal.mobile-fs #kuyeVideoPlayer { height: calc(100% - env(safe-area-inset-bottom, 0px)); }
}

/* ========== 联系博主弹窗 ========== */
.kuye-modal-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.kuye-modal-mask.show { opacity: 1; pointer-events: auto; }
.kuye-modal {
  background: #fff; border-radius: 12px;
  width: 460px; max-width: 92vw; max-height: 86vh;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: scale(0.92); transition: transform .2s;
}
.kuye-modal-mask.show .kuye-modal { transform: scale(1); }
.kuye-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid #eee;
}
.kuye-modal-title { font-size: 16px; font-weight: 500; color: #333; }
.kuye-modal-close { cursor: pointer; font-size: 18px; color: #999; padding: 0 4px; transition: color .15s; }
.kuye-modal-close:hover { color: #333; }
.kuye-modal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.kuye-modal-row { display: flex; gap: 10px; }
.kuye-modal-body input[type=text],
.kuye-modal-body input[type=email],
.kuye-modal-body textarea {
  width: 100%; padding: 9px 12px; font-size: 14px;
  border: 1px solid #e0ddd4; border-radius: 8px;
  outline: none; box-sizing: border-box; font-family: inherit;
  transition: border-color .15s;
}
.kuye-modal-body input[type=text]:focus,
.kuye-modal-body input[type=email]:focus,
.kuye-modal-body textarea:focus { border-color: #8b7355; }
.kuye-modal-body textarea { resize: vertical; min-height: 100px; }
.kuye-modal-row input { flex: 1; }
.kuye-modal-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 4px; }
.kuye-modal-msg { font-size: 13px; color: #666; flex: 1; }
.kuye-modal-submit {
  background: #8b7355; color: #fff; border: none;
  padding: 8px 22px; border-radius: 20px; font-size: 14px;
  cursor: pointer; transition: background .15s;
}
.kuye-modal-submit:hover:not(:disabled) { background: #6d5a42; }
.kuye-modal-submit:disabled { background: #c4b7a4; cursor: not-allowed; }
/* 联系弹窗：QQ 直连入口（邮箱下方） */
.kuye-modal-qqline {
  margin-top: 2px; padding-top: 12px;
  border-top: 1px dashed #eee;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; color: #999; flex-wrap: wrap;
}
.kuye-modal-qq {
  display: inline-flex; align-items: center; gap: 4px;
  color: #2f7de1; text-decoration: none; font-weight: 600;
  padding: 2px 6px; border-radius: 6px; transition: background .15s;
}
.kuye-modal-qq:hover { background: #eef4fe; }
.kuye-modal-qq svg { width: 15px; height: 15px; fill: currentColor; }

@media (max-width: 768px) {
  .kuye-modal { width: 94vw; }
  .kuye-modal-row { flex-direction: column; gap: 10px; }
}



/* 说吧点赞（游客可点，每设备限 1 次） */
.shuo-like-btn{display:inline-flex;align-items:center;gap:4px;background:transparent;border:1px solid #e5ddd0;color:#b08d5f;border-radius:14px;padding:3px 10px;font-size:12px;cursor:pointer;margin-right:8px;transition:all .15s;}
.shuo-like-btn:hover{border-color:#b08d5f;background:#fdfaf3;}
.shuo-like-btn.shuo-liked{border-color:#b08d5f;background:#f6ead8;color:#8b5e3c;}
/* 隐私说明（登录/注册/找回密码页） */
.kuye-privacy-note{font-size:12px;color:#999;margin-top:12px;line-height:1.7;text-align:center;}
/* 侧边栏个人网站介绍 */
.kuye-profile-note{font-size:12px;color:#8a8178;line-height:1.8;margin:8px 0 4px;padding:0 2px;}
