/* ============================================
   51吃瓜每日投稿 - 全站样式表
   品牌：51吃瓜每日投稿 | yk-gold.com
   ============================================ */

/* CSS 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; background: #f8f9fa; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #ff6b6b; text-decoration: none; transition: color .3s; }
a:hover { color: #ff8e53; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title {
  text-align: center; margin-bottom: 40px; position: relative;
}
.section-title h2 {
  font-size: 2rem; color: #222; display: inline-block;
  padding-bottom: 10px; position: relative;
}
.section-title h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px; background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  border-radius: 2px;
}
.section-title p { color: #888; font-size: 1rem; margin-top: 10px; }

/* Header */
.site-header {
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08);
  position: sticky; top: 0; z-index: 1000;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; max-width: 1200px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 45px; width: auto; }
.logo span { font-size: 1.2rem; font-weight: 700; color: #ff6b6b; white-space: nowrap; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a {
  padding: 8px 16px; border-radius: 6px; font-size: .95rem;
  color: #555; font-weight: 500; transition: all .3s;
}
.main-nav a:hover, .main-nav a.active {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: #fff;
}
.nav-toggle { display: none; cursor: pointer; font-size: 1.5rem; color: #333; }

/* Search Bar */
.search-bar {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  padding: 15px 0;
}
.search-bar .container { display: flex; justify-content: center; }
.search-form {
  display: flex; max-width: 600px; width: 100%;
  background: #fff; border-radius: 30px; overflow: hidden;
  box-shadow: 0 4px 15px rgba(255,107,107,.3);
}
.search-form input {
  flex: 1; border: none; padding: 12px 20px; font-size: 1rem;
  outline: none; background: transparent;
}
.search-form button {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  border: none; padding: 12px 25px; color: #fff; cursor: pointer;
  font-size: 1rem; transition: opacity .3s;
}
.search-form button:hover { opacity: .9; }

/* Hero Banner */
.hero-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  min-height: 500px;
}
.hero-slider { position: relative; width: 100%; height: 500px; }
.hero-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 100%);
  display: flex; align-items: center;
}
.hero-content { padding: 0 60px; max-width: 600px; }
.hero-content h1 { font-size: 2.5rem; color: #fff; margin-bottom: 15px; line-height: 1.3; }
.hero-content p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 25px; }
.hero-btn {
  display: inline-block; padding: 14px 35px; border-radius: 30px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: #fff; font-size: 1rem; font-weight: 600;
  transition: transform .3s, box-shadow .3s;
}
.hero-btn:hover {
  transform: translateY(-2px); color: #fff;
  box-shadow: 0 8px 25px rgba(255,107,107,.4);
}

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

/* Section Modules */
.section-module { padding: 60px 0; }
.section-module:nth-child(even) { background: #fff; }

/* Feature Grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}
.feature-card {
  background: #fff; border-radius: 12px; padding: 30px;
  text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,.06);
  transition: transform .3s;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-icon {
  width: 70px; height: 70px; margin: 0 auto 20px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
}
.feature-card h3 { font-size: 1.15rem; color: #222; margin-bottom: 10px; }
.feature-card p { color: #777; font-size: .9rem; }

/* 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: transform .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 #ff6b6b;
}
.expert-card h3 { font-size: 1.1rem; color: #222; }
.expert-card .role { color: #ff6b6b; font-size: .9rem; margin-bottom: 10px; }
.expert-card p { color: #777; font-size: .85rem; padding: 0 20px; margin-bottom: 15px; }
.expert-card .expert-btns { padding: 0 20px 20px; display: flex; gap: 10px; justify-content: center; }
.btn-sm {
  padding: 6px 18px; border-radius: 20px; font-size: .85rem;
  border: 1px solid #ff6b6b; color: #ff6b6b; transition: all .3s;
}
.btn-sm:hover { background: #ff6b6b; color: #fff; }

/* Partner Logos */
.partner-wall {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 30px; padding: 30px 0;
}
.partner-wall .partner-item {
  width: 150px; height: 60px; background: #f0f0f0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: #999; font-weight: 600;
  transition: background .3s;
}
.partner-wall .partner-item:hover { background: #e8e8e8; }

/* Reviews */
.review-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}
.review-card {
  background: #fff; border-radius: 12px; padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,.06);
}
.review-card .stars { color: #ffc107; font-size: 1.1rem; margin-bottom: 10px; }
.review-card p { color: #555; font-size: .95rem; font-style: italic; margin-bottom: 15px; }
.review-card .reviewer { display: flex; align-items: center; gap: 10px; }
.review-card .reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
}
.review-card .reviewer-name { font-weight: 600; color: #222; }
.review-card .reviewer-role { font-size: .8rem; color: #999; }

/* Contact Section */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}
.contact-card {
  background: #fff; border-radius: 12px; padding: 25px;
  text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,.06);
}
.contact-card .contact-icon {
  font-size: 2rem; margin-bottom: 10px;
}
.contact-card h4 { color: #222; margin-bottom: 8px; }
.contact-card p { color: #777; font-size: .9rem; }

/* 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; cursor: pointer; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .3s;
}
.faq-question:hover { background: #fff5f5; }
.faq-question::after { content: '+'; font-size: 1.3rem; color: #ff6b6b; 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 { max-height: 200px; padding: 0 25px 18px; }
.faq-answer p { color: #666; font-size: .95rem; }

/* Footer */
.site-footer {
  background: #1a1a2e; color: rgba(255,255,255,.7); padding: 50px 0 20px;
}
.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.1rem; margin-bottom: 15px; }
.footer-col p, .footer-col a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-col a:hover { color: #ff6b6b; }
.footer-col ul li { margin-bottom: 8px; }
.footer-qr {
  display: flex; gap: 15px; margin-top: 10px;
}
.footer-qr .qr-item { text-align: center; }
.footer-qr .qr-item .qr-placeholder {
  width: 100px; height: 100px; background: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: #999;
}
.footer-qr .qr-item span { display: block; margin-top: 5px; font-size: .8rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px; text-align: center; font-size: .85rem;
}
.footer-bottom .social-share {
  display: flex; justify-content: center; gap: 15px; margin-top: 10px;
}
.footer-bottom .social-share a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); transition: all .3s;
}
.footer-bottom .social-share a:hover {
  background: #ff6b6b; color: #fff;
}

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0; font-size: .9rem; color: #999;
}
.breadcrumb a { color: #ff6b6b; }
.breadcrumb span { margin: 0 8px; }

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 60px 0; text-align: center; color: #fff;
}
.page-header h1 { font-size: 2.2rem; margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,.7); font-size: 1.05rem; }

/* Tabs */
.tab-nav {
  display: flex; justify-content: center; gap: 5px;
  margin-bottom: 30px; flex-wrap: wrap;
}
.tab-nav a {
  padding: 10px 22px; border-radius: 25px;
  background: #f0f0f0; color: #555; font-size: .95rem;
  transition: all .3s;
}
.tab-nav a:hover, .tab-nav a.active {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: #fff;
}

/* Tool Cards */
.tool-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}
.tool-card {
  background: #fff; border-radius: 12px; padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,.06);
  transition: transform .3s;
  border-left: 4px solid #ff6b6b;
}
.tool-card:hover { transform: translateY(-5px); }
.tool-card h3 { font-size: 1.15rem; color: #222; margin-bottom: 10px; }
.tool-card p { color: #777; font-size: .9rem; margin-bottom: 15px; }
.tool-card .tool-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-card .tool-tags span {
  padding: 3px 12px; background: #fff0f0; color: #ff6b6b;
  border-radius: 12px; font-size: .8rem;
}

/* Community Posts */
.post-list { max-width: 800px; margin: 0 auto; }
.post-item {
  background: #fff; border-radius: 12px; padding: 25px;
  margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,.06);
}
.post-item .post-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.post-item .post-avatar {
  width: 45px; height: 45px; border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.1rem;
}
.post-item .post-user { font-weight: 600; color: #222; }
.post-item .post-time { font-size: .8rem; color: #999; }
.post-item .post-content { color: #555; font-size: .95rem; margin-bottom: 12px; }
.post-item .post-actions {
  display: flex; gap: 20px; color: #999; font-size: .85rem;
}
.post-item .post-actions span { cursor: pointer; transition: color .3s; }
.post-item .post-actions span:hover { color: #ff6b6b; }

/* Danmaku */
.danmaku-area {
  position: relative; overflow: hidden; height: 200px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 12px; margin: 30px 0;
}
.danmaku-item {
  position: absolute; white-space: nowrap;
  color: #fff; font-size: .9rem; padding: 4px 12px;
  background: rgba(255,107,107,.3); border-radius: 15px;
  animation: danmaku-scroll linear infinite;
}
@keyframes danmaku-scroll {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

/* Live Badge */
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #ff4444; color: #fff; padding: 3px 10px;
  border-radius: 4px; font-size: .75rem; font-weight: 600;
}
.live-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; animation: live-pulse 1.5s infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* Stats Bar */
.stats-bar {
  display: flex; justify-content: center; gap: 50px;
  padding: 40px 0; background: #fff;
}
.stat-item { text-align: center; }
.stat-item .stat-num {
  font-size: 2.5rem; font-weight: 700;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item .stat-label { color: #888; font-size: .95rem; margin-top: 5px; }

/* Back to Top */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 45px; height: 45px; border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; opacity: 0;
  transition: opacity .3s, transform .3s; z-index: 999;
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { transform: translateY(-3px); }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { display: none; flex-direction: column; width: 100%; padding: 10px 0; }
  .main-nav.active { display: flex; }
  .nav-toggle { display: block; }
  .hero-content { padding: 0 20px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-slider { height: 350px; }
  .hero-banner { min-height: 350px; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
  .stats-bar { flex-wrap: wrap; gap: 20px; }
  .stat-item .stat-num { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 1.5rem; }
  .section-module { padding: 40px 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .tab-nav a { padding: 8px 15px; font-size: .85rem; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

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

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: all .6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
