/* ============================================
   每日看料 - 全站样式表
   xiaohuaqunzi.com
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: #222; background: #f8f9fa; line-height: 1.7; }
a { color: #e63946; text-decoration: none; transition: color .3s; }
a:hover { color: #c1121f; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Container === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

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

/* === Navigation === */
.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav li a { color: #ddd; padding: 8px 16px; border-radius: 6px; font-size: .95rem; transition: all .3s; display: block; }
.main-nav li a:hover, .main-nav li a.active { color: #fff; background: rgba(230,57,70,.8); }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* === Search Bar === */
.search-bar { background: linear-gradient(90deg, #0f3460, #1a1a2e); padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.search-wrapper { display: flex; justify-content: center; }
.search-box { display: flex; max-width: 600px; width: 100%; }
.search-box input { flex: 1; padding: 10px 18px; border: 2px solid #e63946; border-right: none; border-radius: 25px 0 0 25px; font-size: .95rem; outline: none; background: #fff; }
.search-box button { padding: 10px 28px; background: #e63946; color: #fff; border: 2px solid #e63946; border-radius: 0 25px 25px 0; cursor: pointer; font-size: .95rem; font-weight: 600; transition: background .3s; }
.search-box button:hover { background: #c1121f; }

/* === Hero Banner === */
.hero-section { position: relative; overflow: hidden; height: 520px; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; filter: brightness(.65); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.hero-overlay h1 { color: #fff; font-size: 2.8rem; text-shadow: 2px 2px 8px rgba(0,0,0,.6); margin-bottom: 16px; }
.hero-overlay h1 span { color: #e63946; }
.hero-overlay p { color: #eee; font-size: 1.15rem; max-width: 700px; margin-bottom: 24px; text-shadow: 1px 1px 4px rgba(0,0,0,.5); }
.hero-btn { display: inline-block; padding: 14px 36px; background: #e63946; color: #fff; border-radius: 30px; font-size: 1.05rem; font-weight: 600; transition: all .3s; box-shadow: 0 4px 15px rgba(230,57,70,.4); }
.hero-btn:hover { background: #c1121f; transform: translateY(-2px); color: #fff; }

/* === Section Common === */
.section { padding: 60px 0; }
.section-alt { background: #fff; }
.section-dark { background: linear-gradient(135deg, #1a1a2e, #16213e); color: #fff; }
.section-title { text-align: center; margin-bottom: 45px; }
.section-title h2 { font-size: 2rem; color: #1a1a2e; margin-bottom: 10px; position: relative; display: inline-block; }
.section-dark .section-title h2 { color: #fff; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 3px; background: #e63946; margin: 10px auto 0; border-radius: 2px; }
.section-title p { color: #666; font-size: 1rem; }
.section-dark .section-title p { color: #bbb; }

/* === Video Card Grid === */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.video-card { position: relative; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,.1); transition: all .3s; cursor: pointer; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.video-thumb { position: relative; padding-top: 133%; overflow: hidden; }
.video-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: rgba(230,57,70,.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.play-btn::after { content: ''; width: 0; height: 0; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.video-card:hover .play-btn { opacity: 1; }
.video-info { padding: 14px; }
.video-info h3 { font-size: .95rem; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; gap: 12px; font-size: .8rem; color: #888; }
.video-meta span { display: flex; align-items: center; gap: 3px; }
.video-tag { display: inline-block; background: #e63946; color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 3px; position: absolute; top: 10px; left: 10px; z-index: 2; }
.video-duration { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 3px; z-index: 2; }

/* === Category Tabs === */
.category-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 35px; flex-wrap: wrap; }
.category-tabs .tab { padding: 8px 22px; border: 2px solid #e63946; border-radius: 25px; color: #e63946; font-size: .9rem; cursor: pointer; transition: all .3s; background: transparent; }
.category-tabs .tab:hover, .category-tabs .tab.active { background: #e63946; color: #fff; }

/* === Feature Cards === */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { background: #fff; border-radius: 12px; padding: 35px 25px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,.08); transition: all .3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,.15); }
.feature-icon { width: 70px; height: 70px; background: linear-gradient(135deg, #e63946, #c1121f); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.8rem; color: #fff; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: #1a1a2e; }
.feature-card p { color: #666; font-size: .9rem; line-height: 1.6; }

/* === Expert Section === */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.08); text-align: center; transition: all .3s; }
.expert-card:hover { transform: translateY(-5px); }
.expert-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 25px auto 15px; border: 3px solid #e63946; }
.expert-card h4 { font-size: 1.05rem; color: #1a1a2e; }
.expert-card .expert-title { color: #e63946; font-size: .85rem; margin: 5px 0 10px; }
.expert-card .expert-desc { color: #666; font-size: .85rem; padding: 0 15px; line-height: 1.5; }
.expert-card .expert-btns { display: flex; gap: 10px; justify-content: center; padding: 15px; }
.expert-card .expert-btns a { padding: 6px 16px; border-radius: 20px; font-size: .8rem; border: 1px solid #e63946; color: #e63946; transition: all .3s; }
.expert-card .expert-btns a:hover { background: #e63946; color: #fff; }

/* === Reviews === */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,.08); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #e63946, #ff6b6b); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; }
.review-name { font-weight: 600; color: #1a1a2e; }
.review-stars { color: #f4a261; font-size: .9rem; }
.review-card p { color: #555; font-size: .9rem; line-height: 1.7; }

/* === Partners === */
.partner-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: center; }
.partner-item { background: #fff; padding: 20px 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.06); font-size: 1.1rem; font-weight: 600; color: #555; transition: all .3s; }
.partner-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,.12); color: #e63946; }

/* === FAQ === */
.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,.06); }
.faq-question { padding: 18px 24px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .3s; }
.faq-question:hover { background: #f8f9fa; }
.faq-question::after { content: '+'; font-size: 1.3rem; color: #e63946; transition: transform .3s; }
.faq-item.active .faq-question::after { content: '-'; }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: all .3s; }
.faq-item.active .faq-answer { padding: 0 24px 18px; max-height: 300px; }
.faq-answer p { color: #666; font-size: .9rem; line-height: 1.7; }

/* === Contact Section === */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 20px; color: #1a1a2e; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.contact-icon { width: 40px; height: 40px; background: #e63946; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem; flex-shrink: 0; }
.contact-item p { color: #555; font-size: .9rem; }
.contact-item strong { color: #1a1a2e; }
.qrcode-group { display: flex; gap: 20px; margin-top: 20px; }
.qrcode-item { text-align: center; }
.qrcode-item img { width: 130px; height: 130px; border: 2px solid #eee; border-radius: 8px; }
.qrcode-item p { font-size: .8rem; color: #888; margin-top: 6px; }

/* === Social Share === */
.share-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 25px; color: #fff; font-size: .9rem; transition: all .3s; }
.share-btn:hover { transform: translateY(-2px); color: #fff; opacity: .9; }
.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #111; }
.share-bilibili { background: #00a1d6; }

/* === Footer === */
.site-footer { background: #0d1117; color: #aaa; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { color: #fff; font-size: 1.3rem; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: .85rem; line-height: 1.7; color: #888; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: #e63946; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #888; font-size: .85rem; transition: color .3s; }
.footer-col ul li a:hover { color: #e63946; }
.footer-bottom { border-top: 1px solid #222; padding: 20px 0; text-align: center; font-size: .85rem; }
.footer-bottom p { margin-bottom: 4px; }

/* === Breadcrumb === */
.breadcrumb { padding: 15px 0; font-size: .85rem; color: #888; }
.breadcrumb a { color: #e63946; }
.breadcrumb span { margin: 0 8px; }

/* === Page Banner === */
.page-banner { background: linear-gradient(135deg, #1a1a2e, #0f3460); padding: 60px 0; text-align: center; }
.page-banner h1 { color: #fff; font-size: 2.2rem; margin-bottom: 10px; }
.page-banner p { color: #bbb; font-size: 1rem; }

/* === Community Cards === */
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.community-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.08); transition: all .3s; }
.community-card:hover { transform: translateY(-5px); }
.community-card-img { height: 200px; overflow: hidden; }
.community-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.community-card:hover .community-card-img img { transform: scale(1.05); }
.community-card-body { padding: 20px; }
.community-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.community-card-body p { color: #666; font-size: .88rem; line-height: 1.6; }
.community-tag { display: inline-block; background: #fef0f0; color: #e63946; font-size: .75rem; padding: 3px 10px; border-radius: 12px; margin-top: 10px; }

/* === Tool Cards === */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-card { background: linear-gradient(135deg, #fff, #f8f9fa); border-radius: 12px; padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,.08); transition: all .3s; border: 1px solid #eee; }
.tool-card:hover { transform: translateY(-5px); border-color: #e63946; }
.tool-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: #1a1a2e; }
.tool-card p { color: #666; font-size: .88rem; line-height: 1.6; margin-bottom: 15px; }
.tool-btn { display: inline-block; padding: 8px 20px; background: #e63946; color: #fff; border-radius: 20px; font-size: .85rem; transition: all .3s; }
.tool-btn:hover { background: #c1121f; color: #fff; }

/* === MCP Widget === */
.mcp-widget { background: #1a1a2e; border-radius: 12px; padding: 30px; margin-top: 30px; }
.mcp-widget h4 { color: #fff; margin-bottom: 15px; }
.mcp-widget .mcp-status { display: flex; gap: 15px; flex-wrap: wrap; }
.mcp-widget .mcp-item { background: rgba(255,255,255,.08); padding: 12px 18px; border-radius: 8px; color: #ddd; font-size: .85rem; }
.mcp-widget .mcp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #07c160; margin-right: 6px; }

/* === Responsive === */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #1a1a2e; flex-direction: column; padding: 20px; }
  .main-nav.active { display: flex; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .mobile-menu-btn { display: block; }
  .hero-section { height: 380px; }
  .hero-overlay h1 { font-size: 1.8rem; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .video-info h3 { font-size: .85rem; }
  .hero-section { height: 300px; }
  .hero-overlay h1 { font-size: 1.4rem; }
  .category-tabs .tab { padding: 6px 14px; font-size: .8rem; }
}

/* === Lazy Load === */
img[data-src] { opacity: 0; transition: opacity .5s; }
img[data-src].loaded { opacity: 1; }

/* === Animations === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp .6s ease-out forwards; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #e63946; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c1121f; }
