/* 芒果视频 - 国内知名汽车改装公司与视频社区 原创样式表 */
:root {
  --kk-primary: #ff5500;
  --kk-primary-glow: rgba(255, 85, 0, 0.35);
  --kk-cyan: #00f0ff;
  --kk-cyan-glow: rgba(0, 240, 255, 0.3);
  --kk-bg: #090b10;
  --kk-bg-card: #121622;
  --kk-bg-subtle: #192033;
  --kk-text: #f3f4f6;
  --kk-text-muted: #9ca3af;
  --kk-border: rgba(255, 255, 255, 0.08);
  --kk-border-hover: rgba(255, 85, 0, 0.5);
  --kk-font-heading: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --kk-radius: 12px;
}

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

body {
  background-color: var(--kk-bg);
  color: var(--kk-text);
  font-family: var(--kk-font-heading);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 顶部导航栏 */
.kk-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 11, 16, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--kk-border);
}

.kk-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.kk-brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kk-brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #181d2c;
  padding: 4px;
  border: 1px solid rgba(255, 85, 0, 0.4);
}

.kk-brand-name-box h1,
.kk-brand-name-box .kk-brand-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.kk-brand-name-box h1 span,
.kk-brand-name-box .kk-brand-title span {
  color: var(--kk-primary);
}

.kk-brand-subtitle {
  font-size: 11px;
  color: var(--kk-cyan);
  letter-spacing: 0.8px;
}

.kk-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.kk-nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: #d1d5db;
  position: relative;
  padding: 6px 2px;
}

.kk-nav-links a:hover,
.kk-nav-links a.active {
  color: var(--kk-primary);
}

.kk-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--kk-primary);
  box-shadow: 0 0 8px var(--kk-primary-glow);
}

.kk-nav-tag {
  background: linear-gradient(135deg, var(--kk-primary), #ff2200);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 14px var(--kk-primary-glow);
}

/* 头部搜索栏 (JS控制，假搜索) */
.kk-search-bar-wrapper {
  background: #0f131c;
  border-bottom: 1px solid var(--kk-border);
  padding: 14px 20px;
}

.kk-search-container {
  max-width: 900px;
  margin: 0 auto;
}

.kk-search-form {
  display: flex;
  align-items: center;
  background: var(--kk-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 4px 6px 4px 18px;
  transition: all 0.3s ease;
}

.kk-search-form:focus-within {
  border-color: var(--kk-primary);
  box-shadow: 0 0 15px var(--kk-primary-glow);
}

.kk-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
}

.kk-search-input::placeholder {
  color: #6b7280;
}

.kk-search-btn {
  background: var(--kk-primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.kk-search-btn:hover {
  background: #ff6a1a;
  transform: scale(1.02);
}

.kk-hot-keywords {
  margin-top: 8px;
  font-size: 12px;
  color: var(--kk-text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.kk-hot-keywords a {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
}

.kk-hot-keywords a:hover {
  color: var(--kk-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.kk-search-feedback-tip {
  display: none;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--kk-cyan);
  border-radius: 6px;
  font-size: 12px;
  animation: fadeIn 0.3s;
}

/* 页面通用容器与排版 */
.kk-main-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 60px 20px;
}

.kk-section {
  margin-bottom: 56px;
}

.kk-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--kk-border);
  padding-bottom: 12px;
}

.kk-section-title-wrap h2,
.kk-section-title-wrap h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kk-section-title-wrap h2::before,
.kk-section-title-wrap h3::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--kk-primary);
  border-radius: 2px;
  display: inline-block;
}

.kk-section-desc {
  font-size: 13px;
  color: var(--kk-text-muted);
  margin-top: 4px;
}

/* 轮播/横幅专区 */
.kk-hero-banner {
  position: relative;
  border-radius: var(--kk-radius);
  overflow: hidden;
  border: 1px solid var(--kk-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 40px;
}

.kk-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  filter: brightness(0.85);
}

.kk-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 11, 16, 0.95) 10%, rgba(9, 11, 16, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 32px;
}

.kk-hero-badge {
  display: inline-block;
  background: rgba(255, 85, 0, 0.2);
  border: 1px solid var(--kk-primary);
  color: var(--kk-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: fit-content;
}

.kk-hero-title {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
}

.kk-hero-meta {
  color: #cbd5e1;
  font-size: 14px;
  max-width: 780px;
  margin-bottom: 18px;
}

.kk-hero-actions {
  display: flex;
  gap: 14px;
}

.kk-btn-primary {
  background: var(--kk-primary);
  color: #fff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kk-btn-primary:hover {
  background: #ff6a1a;
  box-shadow: 0 0 14px var(--kk-primary-glow);
}

.kk-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.kk-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 核心 H5 视频卡片 (鼠标悬停显示播放按钮) */
.kk-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.kk-video-card {
  background: var(--kk-bg-card);
  border-radius: var(--kk-radius);
  overflow: hidden;
  border: 1px solid var(--kk-border);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.kk-video-card:hover {
  border-color: var(--kk-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.kk-video-thumb-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.kk-video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.kk-video-card:hover .kk-video-thumb-img {
  transform: scale(1.05);
}

/* 播放按钮悬浮出现效果 */
.kk-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kk-play-btn-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--kk-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--kk-primary-glow);
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

.kk-play-btn-circle svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 3px;
}

.kk-video-card:hover .kk-play-overlay {
  opacity: 1;
}

.kk-video-card:hover .kk-play-btn-circle {
  transform: scale(1);
}

.kk-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.kk-video-tag-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 85, 0, 0.85);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.kk-video-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kk-video-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kk-video-desc {
  font-size: 12px;
  color: var(--kk-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kk-video-stats {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.kk-stat-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kk-stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* AI赋能模块卡片 */
.kk-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.kk-ai-card {
  background: linear-gradient(145deg, #131826, #0e121e);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--kk-radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.kk-ai-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--kk-cyan), transparent);
}

.kk-ai-badge {
  font-size: 11px;
  color: var(--kk-cyan);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.kk-ai-card h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}

.kk-ai-card p {
  font-size: 13px;
  color: var(--kk-text-muted);
  line-height: 1.6;
}

/* 专家展示模块 */
.kk-expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.kk-expert-card {
  background: var(--kk-bg-card);
  border: 1px solid var(--kk-border);
  border-radius: var(--kk-radius);
  padding: 20px;
  text-align: center;
}

.kk-expert-avatar-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--kk-primary);
  box-shadow: 0 0 15px var(--kk-primary-glow);
}

.kk-expert-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kk-expert-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.kk-expert-role {
  font-size: 12px;
  color: var(--kk-cyan);
  font-weight: 600;
  margin-bottom: 10px;
}

.kk-expert-bio {
  font-size: 12px;
  color: var(--kk-text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.kk-expert-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.kk-btn-sm {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.kk-btn-sm:hover {
  background: var(--kk-primary);
  border-color: var(--kk-primary);
}

/* 评论模块 */
.kk-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.kk-review-card {
  background: #111522;
  border: 1px solid var(--kk-border);
  border-radius: var(--kk-radius);
  padding: 18px;
}

.kk-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.kk-review-avatar-text {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #252e46;
  color: var(--kk-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.kk-review-user {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.kk-review-car {
  font-size: 11px;
  color: var(--kk-text-muted);
}

.kk-review-text {
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.6;
}

.kk-review-stars {
  color: #f59e0b;
  font-size: 12px;
  margin-top: 8px;
}

/* FAQ手风琴样式 */
.kk-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kk-faq-item {
  background: var(--kk-bg-card);
  border: 1px solid var(--kk-border);
  border-radius: 8px;
  overflow: hidden;
}

.kk-faq-question {
  padding: 16px 20px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.kk-faq-question:hover {
  color: var(--kk-primary);
}

.kk-faq-answer {
  padding: 0 20px 16px 20px;
  font-size: 13px;
  color: var(--kk-text-muted);
  line-height: 1.7;
}

/* 合作改装品牌Logo墙 */
.kk-brand-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.kk-brand-wall-item {
  background: #111520;
  border: 1px solid var(--kk-border);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.kk-brand-wall-item:hover {
  color: var(--kk-cyan);
  border-color: rgba(0, 240, 255, 0.4);
}

/* 实体门店与联系专区 */
.kk-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.kk-contact-card {
  background: var(--kk-bg-card);
  border: 1px solid var(--kk-border);
  border-radius: var(--kk-radius);
  padding: 24px;
}

.kk-contact-card h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.kk-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
}

.kk-contact-list li strong {
  color: #fff;
}

/* 一键分享模块 */
.kk-share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.kk-share-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--kk-border);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kk-share-btn:hover {
  background: var(--kk-primary);
  border-color: var(--kk-primary);
  color: #fff;
}

/* 页脚与MCP前端组件 */
.kk-footer {
  background: #06080c;
  border-top: 1px solid var(--kk-border);
  padding: 48px 20px 24px 20px;
}

.kk-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 36px;
}

.kk-footer-col h5 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.kk-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--kk-text-muted);
}

.kk-footer-links a:hover {
  color: var(--kk-primary);
}

.kk-qr-group {
  display: flex;
  gap: 14px;
}

.kk-qr-box {
  background: #111522;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--kk-border);
  text-align: center;
}

.kk-qr-box img {
  width: 90px;
  height: 90px;
  margin: 0 auto 6px;
}

.kk-qr-box span {
  font-size: 11px;
  color: var(--kk-text-muted);
  display: block;
}

.kk-footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.kk-footer-bottom a {
  color: #94a3b8;
}

.kk-mcp-widget-container {
  background: #0d111c;
  border: 1px dashed rgba(0, 240, 255, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: #94a3b8;
}

.kk-mcp-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 6px;
  box-shadow: 0 0 6px #10b981;
}

/* 视频播放弹窗 (纯前端交互模拟) */
.kk-video-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.kk-video-modal-content {
  background: #111624;
  border: 1px solid rgba(255, 85, 0, 0.4);
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
}

.kk-video-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--kk-border);
}

.kk-video-modal-header h4 {
  font-size: 15px;
  color: #fff;
}

.kk-video-modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.kk-video-player-canvas {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kk-player-tip {
  color: var(--kk-cyan);
  font-size: 14px;
  text-align: center;
}

.kk-video-modal-body {
  padding: 16px 20px;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .kk-nav-links {
    gap: 12px;
  }
  .kk-ai-grid {
    grid-template-columns: 1fr;
  }
  .kk-contact-grid {
    grid-template-columns: 1fr;
  }
  .kk-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .kk-nav-links {
    display: none;
  }
  .kk-hero-title {
    font-size: 22px;
  }
  .kk-hero-overlay {
    padding: 20px 16px;
  }
  .kk-footer-inner {
    grid-template-columns: 1fr;
  }
  .kk-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
