/* ========================================
   风车动漫 - 全站样式表
   品牌色：#F5A623 (金黄) / #E8912D (橙色)
   官网：zhuangza.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: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: #F5A623; text-decoration: none; transition: color .3s; }
a:hover { color: #E8912D; }
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 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 20px; max-width: 1200px; margin: 0 auto; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 42px; width: auto; }
.site-logo span { color: #F5A623; font-size: 1.4rem; font-weight: 700; letter-spacing: 1px; }

/* 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: #F5A623; background: rgba(245,166,35,.1); }
.mobile-menu-btn { display: none; background: none; border: none; color: #F5A623; font-size: 1.6rem; cursor: pointer; padding: 8px; }

/* Search Bar */
.search-bar { background: #1a1a2e; border-bottom: 1px solid rgba(255,255,255,.08); }
.search-bar-inner { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 10px; }
.search-input-wrap { flex: 1; max-width: 600px; position: relative; }
.search-input-wrap input { width: 100%; padding: 10px 44px 10px 16px; border: 2px solid rgba(245,166,35,.3); border-radius: 25px; background: rgba(255,255,255,.08); color: #fff; font-size: .9rem; outline: none; transition: border-color .3s; }
.search-input-wrap input::placeholder { color: rgba(255,255,255,.4); }
.search-input-wrap input:focus { border-color: #F5A623; }
.search-input-wrap button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: #F5A623; border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; transition: background .3s; }
.search-input-wrap button:hover { background: #E8912D; }
.search-hot-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.search-hot-tags a { color: rgba(255,255,255,.5); font-size: .8rem; padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,.05); transition: all .3s; }
.search-hot-tags a:hover { color: #F5A623; background: rgba(245,166,35,.1); }

/* ========== Hero Banner ========== */
.hero-section { position: relative; height: 520px; overflow: hidden; }
.hero-section 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(26,26,46,.4) 60%, transparent 100%); display: flex; align-items: center; }
.hero-content { max-width: 1200px; margin: 0 auto; padding: 0 40px; width: 100%; }
.hero-content h1 { color: #fff; font-size: 2.6rem; font-weight: 800; margin-bottom: 16px; line-height: 1.3; }
.hero-content h1 em { color: #F5A623; font-style: normal; }
.hero-content p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 28px; max-width: 520px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #F5A623, #E8912D); color: #fff; padding: 12px 32px; border-radius: 30px; font-size: 1rem; font-weight: 600; border: none; cursor: pointer; transition: transform .3s, box-shadow .3s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,166,35,.4); color: #fff; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #F5A623; padding: 12px 32px; border-radius: 30px; font-size: 1rem; font-weight: 600; border: 2px solid #F5A623; cursor: pointer; transition: all .3s; }
.btn-outline:hover { background: #F5A623; color: #fff; }

/* ========== Section Common ========== */
.section { padding: 60px 0; }
.section-dark { background: #f8f9fa; }
.section-darker { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #fff; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; color: #1a1a2e; }
.section-darker .section-header h2 { color: #fff; }
.section-header h2 em { color: #F5A623; font-style: normal; }
.section-header p { color: #666; font-size: 1rem; max-width: 600px; margin: 0 auto; }
.section-darker .section-header p { color: rgba(255,255,255,.7); }

/* ========== Video Card Grid ========== */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.08); transition: transform .3s, box-shadow .3s; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.15); }
.video-thumb { position: relative; padding-top: 56.25%; overflow: hidden; cursor: pointer; }
.video-thumb img { position: absolute; inset: 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%) scale(0); width: 60px; height: 60px; background: rgba(245,166,35,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .3s; z-index: 2; }
.play-btn::after { content: ''; display: block; width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.video-thumb:hover .play-btn { transform: translate(-50%, -50%) scale(1); }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.75); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: .78rem; z-index: 2; }
.video-info { padding: 14px 16px; }
.video-info h3 { font-size: .95rem; font-weight: 600; color: #1a1a2e; margin-bottom: 8px; 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; color: #999; font-size: .8rem; }
.video-meta span { display: flex; align-items: center; gap: 4px; }

/* ========== Category Tabs ========== */
.category-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.category-tabs .tab { padding: 8px 22px; border-radius: 20px; background: #f0f0f0; color: #666; font-size: .9rem; cursor: pointer; transition: all .3s; border: none; }
.category-tabs .tab.active, .category-tabs .tab:hover { background: #F5A623; color: #fff; }

/* ========== Expert Section ========== */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card { text-align: center; background: #fff; border-radius: 12px; padding: 30px 20px; box-shadow: 0 4px 20px rgba(0,0,0,.06); 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 #F5A623; }
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-card h4 { font-size: 1.1rem; color: #1a1a2e; margin-bottom: 4px; }
.expert-card .expert-title { color: #F5A623; font-size: .85rem; margin-bottom: 10px; }
.expert-card p { color: #666; font-size: .85rem; line-height: 1.5; margin-bottom: 14px; }
.expert-links { display: flex; gap: 8px; justify-content: center; }
.expert-links a { padding: 6px 14px; border-radius: 16px; font-size: .8rem; border: 1px solid #F5A623; color: #F5A623; transition: all .3s; }
.expert-links a:hover { background: #F5A623; color: #fff; }

/* ========== Features Grid ========== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 30px 24px; text-align: center; transition: all .3s; }
.feature-card:hover { background: rgba(245,166,35,.1); border-color: rgba(245,166,35,.3); transform: translateY(-4px); }
.feature-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #F5A623, #E8912D); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.6rem; }
.feature-card h4 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: rgba(255,255,255,.6); font-size: .88rem; line-height: 1.6; }

/* ========== Reviews ========== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.review-stars { color: #F5A623; font-size: 1rem; margin-bottom: 10px; letter-spacing: 2px; }
.review-card p { color: #555; font-size: .9rem; line-height: 1.7; margin-bottom: 14px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-author-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #F5A623, #E8912D); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .9rem; }
.review-author-info strong { display: block; font-size: .88rem; color: #1a1a2e; }
.review-author-info span { font-size: .78rem; color: #999; }

/* ========== Partners ========== */
.partners-wall { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.partner-logo { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 16px 28px; color: rgba(255,255,255,.5); font-size: .9rem; font-weight: 600; transition: all .3s; }
.partner-logo:hover { background: rgba(245,166,35,.1); border-color: #F5A623; color: #F5A623; }

/* ========== FAQ ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid #eee; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.faq-question { padding: 16px 20px; font-weight: 600; color: #1a1a2e; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .3s; }
.faq-question:hover { background: #fef9f0; }
.faq-question::after { content: '+'; font-size: 1.4rem; color: #F5A623; transition: transform .3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: all .3s; }
.faq-item.open .faq-answer { padding: 0 20px 16px; max-height: 300px; }
.faq-answer p { color: #666; font-size: .9rem; line-height: 1.7; }

/* ========== Contact ========== */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.contact-info-card { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.contact-info-card h4 { font-size: 1.1rem; color: #1a1a2e; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #F5A623; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact-item .icon { width: 36px; height: 36px; background: linear-gradient(135deg, #F5A623, #E8912D); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem; flex-shrink: 0; }
.contact-item .info strong { display: block; font-size: .88rem; color: #1a1a2e; }
.contact-item .info span { font-size: .82rem; color: #666; }

/* ========== Footer ========== */
.site-footer { background: #0d0d1a; color: rgba(255,255,255,.6); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-top: 14px; }
.footer-col h5 { color: #F5A623; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.5); font-size: .88rem; transition: color .3s; }
.footer-col ul li a:hover { color: #F5A623; }
.footer-qrcodes { display: flex; gap: 20px; margin-top: 16px; }
.footer-qrcode { text-align: center; }
.footer-qrcode img { width: 100px; height: 100px; border-radius: 8px; margin-bottom: 6px; }
.footer-qrcode span { font-size: .75rem; color: rgba(255,255,255,.4); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px; text-align: center; font-size: .82rem; }
.footer-bottom a { color: #F5A623; }
.footer-social { display: flex; gap: 12px; justify-content: center; margin-bottom: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); transition: all .3s; font-size: .85rem; }
.footer-social a:hover { background: #F5A623; color: #fff; }

/* ========== Breadcrumb ========== */
.breadcrumb { padding: 14px 0; background: #f8f9fa; border-bottom: 1px solid #eee; }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; font-size: .85rem; color: #999; }
.breadcrumb-inner a { color: #666; }
.breadcrumb-inner a:hover { color: #F5A623; }
.breadcrumb-inner span { margin: 0 8px; }

/* ========== Page Hero ========== */
.page-hero { background: linear-gradient(135deg, #1a1a2e, #16213e); padding: 50px 0; text-align: center; }
.page-hero h1 { color: #fff; font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.page-hero h1 em { color: #F5A623; font-style: normal; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* ========== Content Sections ========== */
.content-section { padding: 40px 0; }
.content-section h2 { font-size: 1.6rem; color: #1a1a2e; margin-bottom: 16px; }
.content-section h2 em { color: #F5A623; font-style: normal; }
.content-section h3 { font-size: 1.2rem; color: #333; margin: 20px 0 10px; }
.content-section p { color: #555; line-height: 1.8; margin-bottom: 14px; }
.text-content { max-width: 900px; margin: 0 auto; }

/* ========== Tool Cards ========== */
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tool-card { background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,.06); border-left: 4px solid #F5A623; transition: transform .3s; }
.tool-card:hover { transform: translateY(-4px); }
.tool-card h4 { font-size: 1.1rem; color: #1a1a2e; margin-bottom: 8px; }
.tool-card p { color: #666; font-size: .9rem; line-height: 1.6; margin-bottom: 12px; }
.tool-card .btn-sm { display: inline-block; padding: 6px 18px; background: #F5A623; color: #fff; border-radius: 16px; font-size: .82rem; transition: background .3s; }
.tool-card .btn-sm:hover { background: #E8912D; }

/* ========== Community ========== */
.community-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.community-card { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.community-card img { width: 100%; height: 220px; object-fit: cover; }
.community-card-body { padding: 20px; }
.community-card-body h4 { font-size: 1.05rem; color: #1a1a2e; margin-bottom: 8px; }
.community-card-body p { color: #666; font-size: .88rem; line-height: 1.6; }

/* ========== Stats Bar ========== */
.stats-bar { background: linear-gradient(135deg, #F5A623, #E8912D); padding: 30px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.stat-item h3 { color: #fff; font-size: 2rem; font-weight: 800; }
.stat-item p { color: rgba(255,255,255,.85); font-size: .9rem; margin-top: 4px; }

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-section { height: 400px; }
  .hero-content h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
  .main-nav { display: none; position: fixed; top: 66px; left: 0; right: 0; background: #1a1a2e; padding: 20px; z-index: 999; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav li a { padding: 12px 16px; }
  .mobile-menu-btn { display: block; }
  .video-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-section { height: 350px; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content p { font-size: .95rem; }
  .section { padding: 40px 0; }
  .search-bar-inner { flex-direction: column; }
  .search-input-wrap { max-width: 100%; }
  .search-hot-tags { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn-primary, .hero-btns .btn-outline { width: 100%; justify-content: center; }
  .page-hero h1 { font-size: 1.6rem; }
}

/* ========== 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); } }
.animate-in { animation: fadeInUp .6s ease forwards; }

/* ========== Share Buttons ========== */
.share-bar { display: flex; gap: 10px; justify-content: center; padding: 20px 0; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 20px; font-size: .85rem; color: #fff; transition: opacity .3s; cursor: pointer; border: none; }
.share-btn:hover { opacity: .85; color: #fff; }
.share-btn.wechat { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.douyin { background: #161823; }
.share-btn.bilibili { background: #00a1d6; }

/* ========== MCP Frontend Placeholder ========== */
.mcp-widget { background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.15); border-radius: 10px; padding: 20px; text-align: center; margin-top: 20px; }
.mcp-widget p { color: rgba(255,255,255,.4); font-size: .82rem; }
