/* ========================================
   韩漫 - 全站样式表
   品牌：韩漫 | ththfd.com
   ======================================== */

/* CSS Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: #333; background: #f8f9fa; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: color .3s; }
a:hover { color: #e53935; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== Header ========== */
.site-header { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-wrap img { height: 48px; width: auto; }
.logo-wrap h1 { font-size: 22px; font-weight: 700; color: #ffd700; }
.logo-wrap h1 span { color: #e53935; }

/* Navigation */
.main-nav { background: rgba(255,255,255,.05); border-top: 1px solid rgba(255,255,255,.1); }
.main-nav ul { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 12px 22px; font-size: 15px; color: #ddd; transition: all .3s; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: #ffd700; background: rgba(255,215,0,.1); }

/* Search Bar */
.search-bar { padding: 12px 0; background: rgba(0,0,0,.15); }
.search-bar form { display: flex; max-width: 600px; margin: 0 auto; }
.search-bar input { flex: 1; padding: 10px 18px; border: 2px solid rgba(255,215,0,.3); border-right: none; border-radius: 25px 0 0 25px; background: rgba(255,255,255,.1); color: #fff; font-size: 14px; outline: none; transition: border-color .3s; }
.search-bar input::placeholder { color: rgba(255,255,255,.5); }
.search-bar input:focus { border-color: #ffd700; }
.search-bar button { padding: 10px 24px; background: linear-gradient(135deg, #e53935, #ff6f00); color: #fff; border: none; border-radius: 0 25px 25px 0; cursor: pointer; font-size: 14px; font-weight: 600; transition: opacity .3s; }
.search-bar button:hover { opacity: .85; }

/* ========== Banner / Hero ========== */
.hero-banner { position: relative; overflow: hidden; height: 420px; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(26,26,46,.85) 0%, rgba(15,52,96,.5) 100%); display: flex; align-items: center; }
.hero-content { max-width: 600px; padding: 0 40px; }
.hero-content h2 { font-size: 36px; color: #ffd700; margin-bottom: 12px; line-height: 1.3; }
.hero-content p { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 24px; }
.btn-primary { display: inline-block; padding: 12px 32px; background: linear-gradient(135deg, #e53935, #ff6f00); color: #fff; border-radius: 25px; font-weight: 600; font-size: 15px; transition: transform .3s, box-shadow .3s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(229,57,53,.4); color: #fff; }
.btn-outline { display: inline-block; padding: 10px 28px; border: 2px solid #ffd700; color: #ffd700; border-radius: 25px; font-weight: 600; font-size: 14px; transition: all .3s; margin-left: 12px; }
.btn-outline:hover { background: #ffd700; color: #1a1a2e; }

/* ========== Section Common ========== */
.section { padding: 60px 0; }
.section-dark { background: #1a1a2e; color: #fff; }
.section-gray { background: #f0f2f5; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; color: #1a1a2e; margin-bottom: 8px; position: relative; display: inline-block; }
.section-dark .section-title h2 { color: #ffd700; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 3px; background: linear-gradient(90deg, #e53935, #ffd700); margin: 10px auto 0; border-radius: 2px; }
.section-title p { color: #777; font-size: 15px; margin-top: 8px; }
.section-dark .section-title p { color: rgba(255,255,255,.6); }

/* ========== Video Cards ========== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.video-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.08); transition: transform .3s, box-shadow .3s; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(0,0,0,.15); }
.video-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; cursor: pointer; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .3s; }
.video-thumb:hover .play-btn { opacity: 1; }
.play-btn svg { width: 60px; height: 60px; fill: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.3)); }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.75); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.video-info { padding: 14px 16px; }
.video-info h3 { font-size: 15px; color: #1a1a2e; margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #999; }
.video-meta span { display: flex; align-items: center; gap: 3px; }
.video-tag { display: inline-block; padding: 2px 8px; background: #fff3e0; color: #ff6f00; border-radius: 10px; font-size: 11px; margin-top: 6px; }

/* ========== Expert Cards ========== */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.expert-card { background: #fff; border-radius: 12px; padding: 28px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,.08); transition: transform .3s; }
.expert-card:hover { transform: translateY(-4px); }
.expert-avatar { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; border: 3px solid #ffd700; }
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-card h3 { font-size: 18px; color: #1a1a2e; margin-bottom: 4px; }
.expert-card .role { color: #e53935; font-size: 14px; margin-bottom: 10px; }
.expert-card p { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 14px; }
.expert-links { display: flex; justify-content: center; gap: 10px; }
.expert-links a { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.expert-links .btn-sm-primary { background: #e53935; color: #fff; }
.expert-links .btn-sm-outline { border: 1px solid #e53935; color: #e53935; }

/* ========== FAQ Section ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 10px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.faq-question { padding: 18px 24px; font-size: 15px; font-weight: 600; color: #1a1a2e; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .3s; }
.faq-question:hover { background: #f8f9fa; }
.faq-question .arrow { transition: transform .3s; font-size: 18px; color: #e53935; }
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer p { padding: 0 24px 18px; font-size: 14px; color: #666; line-height: 1.7; }

/* ========== Reviews ========== */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #e53935, #ff6f00); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; }
.review-name { font-weight: 600; font-size: 14px; color: #1a1a2e; }
.review-date { font-size: 12px; color: #999; }
.review-stars { color: #ffd700; font-size: 14px; margin-bottom: 8px; }
.review-card p { font-size: 13px; color: #555; line-height: 1.7; }

/* ========== Contact Section ========== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.contact-item { background: #fff; border-radius: 12px; padding: 24px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.contact-item .icon { font-size: 36px; margin-bottom: 12px; }
.contact-item h4 { font-size: 16px; color: #1a1a2e; margin-bottom: 8px; }
.contact-item p { font-size: 13px; color: #666; }

/* ========== Partner Logos ========== */
.partner-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: center; padding: 20px 0; }
.partner-wall .partner-logo { width: 120px; height: 60px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.06); padding: 10px; font-weight: 700; color: #999; font-size: 13px; }

/* ========== How-To Guide ========== */
.howto-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.howto-step { background: #fff; border-radius: 12px; padding: 28px 20px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,.06); position: relative; }
.howto-step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; background: linear-gradient(135deg, #e53935, #ff6f00); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; margin: 0 auto 14px; }
.howto-step h4 { font-size: 15px; color: #1a1a2e; margin-bottom: 8px; }
.howto-step p { font-size: 13px; color: #666; }

/* ========== Share Buttons ========== */
.share-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 500; color: #fff; transition: opacity .3s; }
.share-btn:hover { opacity: .85; color: #fff; }
.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #111; }
.share-bilibili { background: #00a1d6; }

/* ========== Footer ========== */
.site-footer { background: #0d1117; color: #aaa; padding: 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #ffd700; font-size: 16px; margin-bottom: 14px; }
.footer-col p, .footer-col li { font-size: 13px; line-height: 2; }
.footer-col a { color: #aaa; transition: color .3s; }
.footer-col a:hover { color: #ffd700; }
.footer-qr { display: flex; gap: 20px; }
.footer-qr .qr-item { text-align: center; }
.footer-qr .qr-item img { width: 100px; height: 100px; border-radius: 8px; margin-bottom: 6px; }
.footer-qr .qr-item span { font-size: 12px; color: #888; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; font-size: 13px; }
.footer-bottom .update-time { color: #888; margin-top: 4px; font-size: 12px; }

/* ========== Breadcrumb ========== */
.breadcrumb { padding: 14px 0; font-size: 13px; color: #999; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #e53935; }
.breadcrumb span { margin: 0 6px; }

/* ========== Inner Page Content ========== */
.page-hero { background: linear-gradient(135deg, #1a1a2e, #0f3460); color: #fff; padding: 50px 0 40px; text-align: center; }
.page-hero h2 { font-size: 32px; color: #ffd700; margin-bottom: 10px; }
.page-hero p { font-size: 15px; color: rgba(255,255,255,.7); max-width: 600px; margin: 0 auto; }
.content-section { padding: 40px 0; }
.content-section h3 { font-size: 22px; color: #1a1a2e; margin-bottom: 16px; }
.content-section p { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 16px; }

/* ========== Category Tags ========== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0; }
.tag-cloud a { padding: 6px 16px; background: #fff; border: 1px solid #e0e0e0; border-radius: 20px; font-size: 13px; color: #555; transition: all .3s; }
.tag-cloud a:hover { background: #e53935; color: #fff; border-color: #e53935; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .header-top { flex-direction: column; gap: 8px; text-align: center; }
  .logo-wrap h1 { font-size: 18px; }
  .main-nav ul { justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .main-nav a { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
  .hero-banner { height: 280px; }
  .hero-content h2 { font-size: 24px; }
  .hero-content p { font-size: 14px; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 22px; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .expert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-banner { height: 220px; }
  .hero-content { padding: 0 20px; }
  .hero-content h2 { font-size: 20px; }
}
