/* ========================================
   天涯网红mv短视频 - 全站样式表
   品牌色: #1a237e(深蓝) #7c4dff(紫) #ff6e40(珊瑚)
   ======================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: #333; line-height: 1.7; background: #f8f9fa; }
a { color: #7c4dff; text-decoration: none; transition: color .3s; }
a:hover { color: #ff6e40; }
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, #1a237e 0%, #4a148c 100%); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; max-width: 1200px; margin: 0 auto; }
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 45px; width: auto; }
.logo-text { color: #fff; font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; gap: 5px; flex-wrap: wrap; }
.main-nav a { color: rgba(255,255,255,.9); padding: 8px 14px; border-radius: 6px; font-size: .9rem; transition: all .3s; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.15); color: #fff; }
.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 5px; }

/* Search Bar */
.search-bar { background: rgba(26,35,126,.6); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.search-bar .container { display: flex; justify-content: center; }
.search-form { display: flex; max-width: 600px; width: 100%; }
.search-form input { flex: 1; padding: 10px 18px; border: 2px solid rgba(124,77,255,.5); border-right: none; border-radius: 25px 0 0 25px; font-size: .95rem; outline: none; background: rgba(255,255,255,.95); }
.search-form input:focus { border-color: #7c4dff; }
.search-form button { padding: 10px 24px; background: linear-gradient(135deg, #7c4dff, #ff6e40); color: #fff; border: none; border-radius: 0 25px 25px 0; cursor: pointer; font-size: .95rem; transition: opacity .3s; }
.search-form button:hover { opacity: .85; }

/* Breadcrumb */
.breadcrumb { padding: 12px 0; font-size: .85rem; color: #666; }
.breadcrumb a { color: #7c4dff; }
.breadcrumb span { margin: 0 6px; color: #999; }

/* Hero Banner */
.hero { position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.6); }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 60px 20px; width: 100%; }
.hero h1 { font-size: 2.5rem; margin-bottom: 15px; text-shadow: 2px 2px 8px rgba(0,0,0,.5); }
.hero p { font-size: 1.15rem; max-width: 700px; margin: 0 auto 25px; opacity: .95; }
.hero .btn-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; padding: 12px 30px; border-radius: 25px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all .3s; border: none; text-align: center; }
.btn-primary { background: linear-gradient(135deg, #7c4dff, #651fff); color: #fff; box-shadow: 0 4px 15px rgba(124,77,255,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,77,255,.5); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.8); }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-coral { background: linear-gradient(135deg, #ff6e40, #ff3d00); color: #fff; }
.btn-coral:hover { transform: translateY(-2px); color: #fff; }

/* Section */
.section { padding: 60px 0; }
.section-alt { background: #fff; }
.section-dark { background: linear-gradient(135deg, #1a237e 0%, #311b92 100%); color: #fff; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; color: #1a237e; margin-bottom: 10px; }
.section-dark .section-title h2 { color: #fff; }
.section-title p { color: #666; font-size: 1.05rem; }
.section-dark .section-title p { color: rgba(255,255,255,.8); }

/* Video Grid */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.video-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.08); transition: all .3s; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px 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.05); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: rgba(124,77,255,.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; z-index: 2; }
.play-btn::after { content: ''; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.video-card:hover .play-btn { opacity: 1; }
.video-stats { position: absolute; bottom: 8px; left: 8px; display: flex; gap: 10px; z-index: 2; }
.video-stats span { background: rgba(0,0,0,.7); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: .75rem; }
.video-info { padding: 15px; }
.video-info h3 { font-size: 1rem; margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-info .meta { font-size: .8rem; color: #999; display: flex; gap: 12px; }

/* Feature Cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.feature-card { background: #fff; border-radius: 12px; padding: 30px 25px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,.06); transition: all .3s; border: 1px solid #eee; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(124,77,255,.12); border-color: #7c4dff; }
.feature-icon { width: 65px; height: 65px; background: linear-gradient(135deg, #ede7f6, #e8eaf6); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.8rem; }
.feature-card h3 { font-size: 1.15rem; color: #1a237e; margin-bottom: 10px; }
.feature-card p { font-size: .9rem; color: #666; line-height: 1.6; }

/* Expert Section */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.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-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 25px auto 15px; border: 3px solid #ede7f6; }
.expert-card h3 { font-size: 1.1rem; color: #1a237e; }
.expert-card .title { font-size: .85rem; color: #7c4dff; margin-bottom: 10px; }
.expert-card p { font-size: .85rem; color: #666; padding: 0 20px; margin-bottom: 15px; }
.expert-card .expert-btns { padding: 0 20px 20px; display: flex; gap: 10px; justify-content: center; }
.expert-card .expert-btns a { padding: 6px 16px; font-size: .8rem; border-radius: 20px; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.review-card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,.06); border-left: 4px solid #7c4dff; }
.review-card .stars { color: #ffc107; margin-bottom: 10px; font-size: 1.1rem; }
.review-card blockquote { font-size: .95rem; color: #555; line-height: 1.7; margin-bottom: 12px; font-style: italic; }
.review-card .reviewer { font-size: .85rem; color: #999; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.05); overflow: hidden; }
.faq-question { padding: 18px 25px; font-size: 1rem; font-weight: 600; color: #1a237e; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .3s; }
.faq-question:hover { background: #f5f3ff; }
.faq-question::after { content: '+'; font-size: 1.3rem; color: #7c4dff; transition: transform .3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 25px; max-height: 0; overflow: hidden; transition: all .3s; }
.faq-item.active .faq-answer { padding: 0 25px 18px; max-height: 500px; }
.faq-answer p { font-size: .9rem; color: #666; line-height: 1.7; }

/* Partners */
.partner-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: center; }
.partner-wall .partner-item { background: #fff; padding: 15px 25px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.06); font-size: 1rem; font-weight: 600; color: #555; transition: all .3s; }
.partner-wall .partner-item:hover { box-shadow: 0 4px 15px rgba(124,77,255,.15); color: #7c4dff; }

/* How-To Guide */
.howto-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 25px; counter-reset: step; }
.howto-step { background: #fff; border-radius: 12px; padding: 30px 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, #7c4dff, #651fff); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin: 0 auto 15px; }
.howto-step h4 { font-size: 1.05rem; color: #1a237e; margin-bottom: 8px; }
.howto-step p { font-size: .85rem; color: #666; }

/* Contact Info */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.contact-card { background: rgba(255,255,255,.1); border-radius: 12px; padding: 25px; text-align: center; border: 1px solid rgba(255,255,255,.2); }
.contact-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.contact-card p { font-size: .9rem; opacity: .9; }

/* Social Share */
.social-share { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.social-share a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 20px; font-size: .85rem; color: #fff; transition: all .3s; }
.social-share a:hover { transform: translateY(-2px); color: #fff; }
.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00a1d6; }

/* Footer */
.site-footer { background: #0d1137; color: rgba(255,255,255,.8); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #7c4dff; display: inline-block; }
.footer-col p, .footer-col li { font-size: .85rem; line-height: 2; }
.footer-col a { color: rgba(255,255,255,.7); }
.footer-col a:hover { color: #7c4dff; }
.footer-col img.qr-code { width: 120px; height: 120px; border-radius: 8px; margin-top: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: .8rem; }
.footer-bottom p { margin-bottom: 5px; }

/* Tags */
.tag { display: inline-block; padding: 4px 12px; background: #ede7f6; color: #7c4dff; border-radius: 15px; font-size: .75rem; margin: 2px; }

/* Content Page */
.page-hero { background: linear-gradient(135deg, #1a237e, #4a148c); color: #fff; padding: 50px 0; text-align: center; }
.page-hero h1 { font-size: 2rem; margin-bottom: 10px; }
.page-hero p { font-size: 1rem; opacity: .9; }
.content-section { padding: 40px 0; }
.content-section h2 { font-size: 1.6rem; color: #1a237e; margin-bottom: 20px; }
.content-section h3 { font-size: 1.3rem; color: #311b92; margin-bottom: 15px; }
.content-section p { margin-bottom: 15px; color: #555; }
.content-section img { border-radius: 12px; margin: 15px 0; }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 0; }
  .main-nav a { display: block; padding: 10px 15px; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 1.6rem; }
  .hero { min-height: 300px; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 1.5rem; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .expert-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.3rem; }
  .search-form input { padding: 8px 14px; }
}

/* Lazy Load */
img[loading="lazy"] { opacity: 0; transition: opacity .5s; }
img[loading="lazy"].loaded, img[loading="lazy"][src] { opacity: 1; }

/* Utility */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
