/* =============================================
   17c 官网主样式文件
   www.s47mzzl.cn
   ============================================= */

:root {
  --blue: #00C8FF;
  --pink: #FF2D78;
  --orange: #FFB800;
  --green: #39FF14;
  --black: #0A0A0F;
  --dark: #12121A;
  --card-bg: #1A1A28;
  --text: #FFFFFF;
  --text-muted: #AAAACC;
  --border: rgba(0,200,255,0.2);
  --grad1: linear-gradient(135deg, #00C8FF 0%, #FF2D78 100%);
  --grad2: linear-gradient(135deg, #FFB800 0%, #39FF14 100%);
  --grad3: linear-gradient(135deg, #FF2D78 0%, #FFB800 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; transition: color .3s; }
a:hover { color: var(--pink); }

img { max-width: 100%; height: auto; display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: .4;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,10,15,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 2rem; font-weight: 900;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.logo span { font-size: 1rem; font-weight: 400; -webkit-text-fill-color: var(--text-muted); }

.main-nav { display: flex; gap: 4px; }

.main-nav a {
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .9rem;
  font-weight: 600;
  transition: all .3s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--black);
  background: var(--grad1);
}

.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  flex-direction: column; gap: 5px;
}

.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--blue); border-radius: 2px;
  transition: all .3s;
}

/* ===== SEARCH BAR ===== */
.search-bar-wrap {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
}

.search-bar-inner {
  max-width: 700px; margin: 0 auto;
  display: flex; align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}

.search-bar-inner:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 16px rgba(0,200,255,.3);
}

.search-bar-inner input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); padding: 10px 20px;
  font-size: .95rem;
}

.search-bar-inner input::placeholder { color: var(--text-muted); }

.search-bar-inner button {
  background: var(--grad1);
  border: none; cursor: pointer;
  color: #fff; padding: 10px 24px;
  font-size: .95rem; font-weight: 700;
  transition: opacity .3s;
}

.search-bar-inner button:hover { opacity: .85; }

/* ===== HERO BANNER ===== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex; align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-banner.jpg');
  background-size: cover; background-position: center;
  filter: brightness(.55);
  transform: scale(1.05);
  animation: heroZoom 12s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,200,255,.25) 0%, rgba(255,45,120,.2) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 80px 20px;
}

.hero-tag {
  display: inline-block;
  background: var(--grad1);
  color: #fff; font-size: .8rem; font-weight: 700;
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 16px; letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.hero h1 .brand {
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem; color: rgba(255,255,255,.85);
  max-width: 560px; margin-bottom: 32px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 30px;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; border: none;
  transition: all .3s; text-decoration: none;
}

.btn-primary {
  background: var(--grad1); color: #fff;
  box-shadow: 0 4px 20px rgba(255,45,120,.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,45,120,.6);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue); color: var(--black);
  transform: translateY(-3px);
}

/* ===== SECTION COMMON ===== */
.section {
  position: relative; z-index: 1;
  padding: 70px 20px;
}

.section-inner { max-width: 1280px; margin: 0 auto; }

.section-header {
  text-align: center; margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: .75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900; margin-bottom: 12px;
}

.section-title .hl {
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== VIDEO CARDS ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .35s cubic-bezier(.25,.8,.25,1);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--pink);
  box-shadow:
    0 0 20px rgba(255,45,120,.5),
    0 0 40px rgba(0,200,255,.3),
    0 16px 40px rgba(0,0,0,.5);
}

.video-thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9;
}

.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.08); }

.play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
  opacity: 0; transition: opacity .35s;
}

.video-card:hover .play-overlay { opacity: 1; }

.play-btn {
  width: 60px; height: 60px;
  background: var(--grad1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(255,45,120,.7);
  animation: pulsePink .8s ease-in-out infinite alternate;
}

@keyframes pulsePink {
  from { box-shadow: 0 0 20px rgba(255,45,120,.6); transform: scale(1); }
  to   { box-shadow: 0 0 40px rgba(0,200,255,.8); transform: scale(1.1); }
}

.play-btn svg { width: 24px; height: 24px; fill: #fff; margin-left: 4px; }

.video-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--grad3);
  color: #fff; font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 10px;
}

.video-duration {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.7);
  color: #fff; font-size: .75rem;
  padding: 2px 8px; border-radius: 6px;
}

.video-info { padding: 14px 16px; }

.video-title {
  font-size: .95rem; font-weight: 700;
  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: 14px;
  font-size: .78rem; color: var(--text-muted);
}

.video-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== COMMUNITY SECTION ===== */
.community-section { background: var(--dark); }

.topic-list {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 32px;
}

.topic-tag {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--blue);
  padding: 8px 18px; border-radius: 20px;
  font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .3s;
}

.topic-tag:hover {
  background: var(--blue); color: var(--black);
  box-shadow: 0 0 16px rgba(0,200,255,.5);
}

.danmu-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  overflow: hidden; height: 80px;
  position: relative;
}

.danmu-track {
  display: flex; gap: 40px;
  animation: danmuScroll 20s linear infinite;
  white-space: nowrap;
}

@keyframes danmuScroll {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

.danmu-item {
  font-size: .85rem;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

/* ===== AI SECTION ===== */
.ai-section { background: var(--black); }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.ai-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all .3s;
}

.ai-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 24px rgba(57,255,20,.3);
  transform: translateY(-6px);
}

.ai-icon {
  font-size: 2.5rem; margin-bottom: 14px;
  display: block;
}

.ai-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.ai-card p { font-size: .82rem; color: var(--text-muted); }

/* ===== KOL / CREATOR SECTION ===== */
.kol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.kol-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: all .3s;
}

.kol-card:hover {
  border-color: var(--orange);
  box-shadow: 0 0 24px rgba(255,184,0,.3);
  transform: translateY(-6px);
}

.kol-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid var(--blue);
  object-fit: cover;
  transition: border-color .3s;
}

.kol-card:hover .kol-avatar { border-color: var(--pink); }

.kol-name { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.kol-tag { font-size: .75rem; color: var(--blue); margin-bottom: 8px; }
.kol-fans { font-size: .78rem; color: var(--text-muted); }

/* ===== REVIEWS ===== */
.reviews-section { background: var(--dark); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all .3s;
}

.review-card:hover {
  border-color: var(--pink);
  box-shadow: 0 0 20px rgba(255,45,120,.2);
}

.review-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #fff;
  flex-shrink: 0;
}

.review-name { font-weight: 700; font-size: .9rem; }
.review-date { font-size: .75rem; color: var(--text-muted); }

.review-stars { color: var(--orange); font-size: .9rem; margin-bottom: 10px; }

.review-text { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== PARTNERS ===== */
.partners-section { background: var(--black); }

.partners-grid {
  display: flex; flex-wrap: wrap;
  gap: 16px; justify-content: center;
  margin-bottom: 48px;
}

.partner-logo {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 28px;
  font-size: .9rem; font-weight: 700;
  color: var(--text-muted);
  transition: all .3s;
}

.partner-logo:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 16px rgba(0,200,255,.3);
}

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 18px 24px;
  font-weight: 700; font-size: .95rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: color .3s;
}

.faq-q:hover { color: var(--blue); }

.faq-q .arrow {
  font-size: 1.2rem; transition: transform .3s;
  color: var(--blue);
}

.faq-item.open .faq-q .arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  color: var(--text-muted); font-size: .88rem;
  padding: 0 24px;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 18px;
}

/* ===== CONTACT ===== */
.contact-section { background: var(--dark); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all .3s;
}

.contact-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(0,200,255,.25);
}

.contact-icon { font-size: 2rem; margin-bottom: 12px; }
.contact-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.contact-card p { font-size: .85rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 48px 20px 24px;
}

.footer-inner {
  max-width: 1280px; margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { font-size: 1.8rem; margin-bottom: 12px; display: inline-block; }

.footer-brand p { font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; }

.footer-social { display: flex; gap: 10px; }

.social-btn {
  width: 36px; height: 36px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: all .3s;
}

.social-btn:hover {
  background: var(--grad1); border-color: transparent;
  box-shadow: 0 0 12px rgba(255,45,120,.4);
}

.footer-col h4 {
  font-size: .9rem; font-weight: 700;
  margin-bottom: 16px; color: var(--text);
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  font-size: .82rem; color: var(--text-muted);
  transition: color .3s;
}

.footer-col ul li a:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .8rem; color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--blue); }

/* ===== INNER PAGE ===== */
.page-hero {
  padding: 80px 20px 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900; margin-bottom: 12px;
}

.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: .8rem; color: var(--text-muted);
  margin-bottom: 16px; justify-content: center;
}

.breadcrumb a { color: var(--blue); }
.breadcrumb span { color: var(--text-muted); }

/* ===== ARTICLE GRID ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .3s;
}

.article-card:hover {
  border-color: var(--pink);
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(255,45,120,.2);
}

.article-thumb {
  aspect-ratio: 16/9; overflow: hidden;
}

.article-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.article-card:hover .article-thumb img { transform: scale(1.06); }

.article-body { padding: 18px 20px; }

.article-cat {
  font-size: .72rem; font-weight: 700;
  color: var(--blue); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 8px;
}

.article-title {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 8px; line-height: 1.4;
}

.article-desc {
  font-size: .82rem; color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex; justify-content: space-between;
  font-size: .75rem; color: var(--text-muted);
}

/* ===== GLOW DIVIDER ===== */
.glow-divider {
  height: 2px;
  background: var(--grad1);
  box-shadow: 0 0 12px rgba(0,200,255,.5);
  margin: 0;
}

/* ===== SCROLL TO TOP ===== */
#scrollTop {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--grad1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 999;
  box-shadow: 0 4px 16px rgba(255,45,120,.4);
  opacity: 0; transform: translateY(20px);
  transition: all .3s;
  border: none; color: #fff; font-size: 1.1rem;
}

#scrollTop.visible { opacity: 1; transform: translateY(0); }
#scrollTop:hover { transform: translateY(-4px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; gap: 4px; }
  .main-nav.open {
    display: flex;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(10,10,15,.98);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  .nav-toggle { display: flex; }
  .hero { min-height: 420px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .video-grid { grid-template-columns: 1fr; }
  .kol-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== GRADIENT GLOW ANIMATIONS ===== */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0,200,255,.4); }
  50%       { box-shadow: 0 0 30px rgba(255,45,120,.6); }
}

.glow-anim { animation: glowPulse 3s ease-in-out infinite; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--grad1);
  padding: 20px;
}

.stats-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-around;
  flex-wrap: wrap; gap: 16px;
}

.stat-item { text-align: center; }

.stat-num {
  font-size: 1.8rem; font-weight: 900;
  color: #fff; display: block;
}

.stat-label { font-size: .78rem; color: rgba(255,255,255,.8); }
