/* ============================================
   困困兔 - 原创样式表
   品牌：困困兔 | 域名：dwgfytv.cn
   配色方案：藏青+赛道橙+金属金
   ============================================ */

/* CSS Variables */
:root {
  --kkt-primary: #1A1F2E;
  --kkt-secondary: #E8573A;
  --kkt-accent: #F5C842;
  --kkt-bg: #F7F8FA;
  --kkt-text: #2C3E50;
  --kkt-card: #FFFFFF;
  --kkt-gradient-start: #1A1F2E;
  --kkt-gradient-end: #2D3548;
  --kkt-border: #E2E8F0;
  --kkt-shadow: rgba(26,31,46,0.12);
  --kkt-overlay: rgba(26,31,46,0.7);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--kkt-text);
  background: var(--kkt-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--kkt-secondary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--kkt-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.kkt-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.kkt-section { padding: 60px 0; }
.kkt-section-alt { background: var(--kkt-card); }

/* Section Titles */
.kkt-section-title {
  text-align: center;
  margin-bottom: 45px;
}
.kkt-section-title h2 {
  font-size: 2rem;
  color: var(--kkt-primary);
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.kkt-section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--kkt-secondary), var(--kkt-accent));
  border-radius: 2px;
}
.kkt-section-title p {
  color: #718096;
  font-size: 1rem;
  margin-top: 12px;
}

/* Header / Navigation */
.kkt-header {
  background: var(--kkt-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px var(--kkt-shadow);
}
.kkt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
}
.kkt-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kkt-logo img {
  height: 42px;
  width: auto;
}
.kkt-logo span {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.kkt-nav { display: flex; align-items: center; gap: 6px; }
.kkt-nav a {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s;
  white-space: nowrap;
}
.kkt-nav a:hover, .kkt-nav a.active {
  color: #fff;
  background: rgba(232,87,58,0.25);
}
.kkt-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* Search Bar */
.kkt-search-bar {
  background: linear-gradient(135deg, var(--kkt-gradient-start), var(--kkt-gradient-end));
  padding: 18px 0;
}
.kkt-search-wrap {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}
.kkt-search-wrap input {
  width: 100%;
  padding: 14px 50px 14px 22px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}
.kkt-search-wrap input::placeholder { color: rgba(255,255,255,0.5); }
.kkt-search-wrap input:focus { border-color: var(--kkt-accent); }
.kkt-search-wrap button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--kkt-secondary);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.3s;
}
.kkt-search-wrap button:hover { background: var(--kkt-accent); }

/* Hero Banner */
.kkt-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kkt-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}
.kkt-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
.kkt-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 3px 20px rgba(0,0,0,0.4);
}
.kkt-hero-content p {
  font-size: 1.2rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 28px;
}
.kkt-hero-btn {
  display: inline-block;
  background: var(--kkt-secondary);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(232,87,58,0.4);
}
.kkt-hero-btn:hover {
  background: var(--kkt-accent);
  color: var(--kkt-primary);
  transform: translateY(-2px);
}

/* Video Card Grid */
.kkt-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.kkt-video-card {
  background: var(--kkt-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--kkt-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.kkt-video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(26,31,46,0.18);
}
.kkt-video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}
.kkt-video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.kkt-video-card:hover .kkt-video-thumb img {
  transform: scale(1.06);
}
.kkt-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(232,87,58,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.kkt-video-card:hover .kkt-video-play { opacity: 1; }
.kkt-video-play::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.kkt-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.kkt-video-info {
  padding: 16px;
}
.kkt-video-info h3 {
  font-size: 1rem;
  color: var(--kkt-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kkt-video-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #a0aec0;
  font-size: 0.85rem;
}
.kkt-video-meta span { display: flex; align-items: center; gap: 4px; }

/* Tags */
.kkt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kkt-tag {
  background: rgba(232,87,58,0.08);
  color: var(--kkt-secondary);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* Expert Cards */
.kkt-expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.kkt-expert-card {
  background: var(--kkt-card);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 20px var(--kkt-shadow);
  transition: transform 0.3s;
}
.kkt-expert-card:hover { transform: translateY(-4px); }
.kkt-expert-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
  border: 3px solid var(--kkt-accent);
}
.kkt-expert-card h4 {
  font-size: 1.1rem;
  color: var(--kkt-primary);
  margin-bottom: 4px;
}
.kkt-expert-card .role {
  color: var(--kkt-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.kkt-expert-card p {
  font-size: 0.88rem;
  color: #718096;
  margin-bottom: 16px;
}
.kkt-expert-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid var(--kkt-secondary);
  color: var(--kkt-secondary);
  border-radius: 25px;
  font-size: 0.88rem;
  transition: all 0.3s;
  margin: 0 4px;
}
.kkt-expert-btn:hover {
  background: var(--kkt-secondary);
  color: #fff;
}

/* Brand Wall */
.kkt-brand-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
}
.kkt-brand-item {
  background: var(--kkt-card);
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px var(--kkt-shadow);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--kkt-primary);
  transition: transform 0.3s;
}
.kkt-brand-item:hover { transform: scale(1.05); }

/* FAQ */
.kkt-faq-list { max-width: 800px; margin: 0 auto; }
.kkt-faq-item {
  background: var(--kkt-card);
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px var(--kkt-shadow);
  overflow: hidden;
}
.kkt-faq-q {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--kkt-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}
.kkt-faq-q:hover { background: rgba(232,87,58,0.04); }
.kkt-faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--kkt-secondary);
  transition: transform 0.3s;
}
.kkt-faq-item.active .kkt-faq-q::after {
  content: '-';
  transform: rotate(180deg);
}
.kkt-faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s;
  color: #718096;
  line-height: 1.8;
}
.kkt-faq-item.active .kkt-faq-a {
  max-height: 300px;
  padding: 0 24px 18px;
}

/* Reviews */
.kkt-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.kkt-review-card {
  background: var(--kkt-card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 15px var(--kkt-shadow);
  border-left: 4px solid var(--kkt-secondary);
}
.kkt-review-stars {
  color: var(--kkt-accent);
  font-size: 1rem;
  margin-bottom: 10px;
}
.kkt-review-card p {
  font-size: 0.95rem;
  color: #4a5568;
  margin-bottom: 12px;
  line-height: 1.7;
}
.kkt-review-author {
  font-weight: 600;
  color: var(--kkt-primary);
  font-size: 0.9rem;
}

/* Contact Section */
.kkt-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.kkt-contact-card {
  background: var(--kkt-card);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 4px 15px var(--kkt-shadow);
}
.kkt-contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--kkt-secondary), var(--kkt-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: #fff;
  font-size: 1.3rem;
}
.kkt-contact-card h4 {
  color: var(--kkt-primary);
  margin-bottom: 8px;
}
.kkt-contact-card p {
  color: #718096;
  font-size: 0.9rem;
}

/* How-To Guide */
.kkt-howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.kkt-howto-step {
  text-align: center;
  padding: 24px;
}
.kkt-step-num {
  width: 48px;
  height: 48px;
  background: var(--kkt-secondary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 14px;
}
.kkt-howto-step h4 {
  color: var(--kkt-primary);
  margin-bottom: 8px;
}
.kkt-howto-step p {
  color: #718096;
  font-size: 0.9rem;
}

/* AI Section */
.kkt-ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.kkt-ai-card {
  background: linear-gradient(135deg, var(--kkt-gradient-start), var(--kkt-gradient-end));
  border-radius: 12px;
  padding: 28px;
  color: #fff;
  transition: transform 0.3s;
}
.kkt-ai-card:hover { transform: translateY(-4px); }
.kkt-ai-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--kkt-accent);
}
.kkt-ai-card p {
  font-size: 0.9rem;
  opacity: 0.88;
  line-height: 1.7;
}

/* Community Categories */
.kkt-community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.kkt-community-item {
  background: var(--kkt-card);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px var(--kkt-shadow);
  transition: all 0.3s;
  cursor: pointer;
}
.kkt-community-item:hover {
  transform: translateY(-3px);
  border-bottom: 3px solid var(--kkt-secondary);
}
.kkt-community-item h5 {
  color: var(--kkt-primary);
  font-size: 1rem;
  margin-bottom: 6px;
}
.kkt-community-item p {
  color: #a0aec0;
  font-size: 0.82rem;
}

/* Share Buttons */
.kkt-share-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
}
.kkt-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 25px;
  color: #fff;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}
.kkt-share-btn:hover { opacity: 0.85; color: #fff; }
.kkt-share-wechat { background: #07C160; }
.kkt-share-weibo { background: #E6162D; }
.kkt-share-douyin { background: #161823; }
.kkt-share-bilibili { background: #00A1D6; }

/* Footer */
.kkt-footer {
  background: var(--kkt-primary);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
}
.kkt-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.kkt-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.kkt-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--kkt-secondary);
}
.kkt-footer p, .kkt-footer a {
  font-size: 0.9rem;
  line-height: 2;
  color: rgba(255,255,255,0.6);
}
.kkt-footer a:hover { color: var(--kkt-accent); }
.kkt-footer-qr {
  display: flex;
  gap: 16px;
}
.kkt-footer-qr img {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.1);
}
.kkt-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* Breadcrumb */
.kkt-breadcrumb {
  padding: 14px 0;
  font-size: 0.88rem;
  color: #a0aec0;
}
.kkt-breadcrumb a { color: var(--kkt-secondary); }
.kkt-breadcrumb span { margin: 0 8px; }

/* Interference tags - hidden */
.kkt-noise { display: none !important; position: absolute; left: -9999px; overflow: hidden; width: 0; height: 0; }

/* H5 Video in Cards */
.kkt-h5-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: none;
}
.kkt-video-card:hover .kkt-h5-video {
  display: block;
}
.kkt-video-card:hover .kkt-video-poster {
  opacity: 0;
}

/* Lazy Load Placeholder */
.kkt-lazy { opacity: 0; transition: opacity 0.5s; }
.kkt-lazy.loaded { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
  .kkt-header-inner { height: 56px; }
  .kkt-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--kkt-primary);
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 4px 15px var(--kkt-shadow);
  }
  .kkt-nav.open { display: flex; }
  .kkt-nav a { padding: 12px 20px; }
  .kkt-mobile-toggle { display: block; }
  .kkt-hero { height: 380px; }
  .kkt-hero-content h1 { font-size: 1.8rem; }
  .kkt-hero-content p { font-size: 1rem; }
  .kkt-section { padding: 40px 0; }
  .kkt-section-title h2 { font-size: 1.5rem; }
  .kkt-video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .kkt-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .kkt-hero { height: 300px; }
  .kkt-hero-content h1 { font-size: 1.5rem; }
  .kkt-video-grid { grid-template-columns: 1fr; }
  .kkt-expert-grid { grid-template-columns: 1fr; }
  .kkt-share-bar { flex-wrap: wrap; }
}

/* Page-specific */
.kkt-page-header {
  background: linear-gradient(135deg, var(--kkt-gradient-start), var(--kkt-gradient-end));
  padding: 50px 0;
  text-align: center;
  color: #fff;
}
.kkt-page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.kkt-page-header p {
  opacity: 0.85;
  font-size: 1.05rem;
}
.kkt-page-content {
  padding: 40px 0;
}
.kkt-page-content p {
  margin-bottom: 16px;
  line-height: 1.9;
}
.kkt-page-content h2 {
  color: var(--kkt-primary);
  font-size: 1.6rem;
  margin: 30px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--kkt-secondary);
}
.kkt-page-content h3 {
  color: var(--kkt-primary);
  font-size: 1.3rem;
  margin: 24px 0 12px;
}

/* MCP placeholder */
.kkt-mcp-widget {
  background: linear-gradient(135deg, #1a1f2e, #2d3548);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #fff;
  margin: 20px 0;
}
.kkt-mcp-widget h4 { color: var(--kkt-accent); margin-bottom: 10px; }
.kkt-mcp-widget p { opacity: 0.8; font-size: 0.9rem; }
