/* ============================================================
   911吃瓜网 全站样式
   主题：深色夜间模式 + 高饱和橙红点缀，聚焦娱乐八卦爆料氛围
   ============================================================ */

:root {
  --bg-dark: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-2: #22223a;
  --bg-light: #f6f4ff;
  --text-main: #eae6ff;
  --text-sub: #9d97b8;
  --text-dark: #1c1b2f;
  --accent: #ff6b35;
  --accent-2: #ff2e63;
  --accent-gold: #ffc53d;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --font-main: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-2);
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ---------- 动画基类 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 46, 99, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(255, 46, 99, 0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease both;
}

.animate-fade-in {
  animation: fadeIn 0.9s ease both;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* ---------- 顶部通告条 ---------- */
.topbar {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 12px;
  border-radius: 30px;
  font-weight: 600;
  flex-shrink: 0;
}

.topbar-ticker {
  overflow: hidden;
  flex: 1;
  margin-left: 20px;
}

.topbar-ticker span {
  display: inline-block;
  animation: marquee 18s linear infinite;
  padding-right: 40px;
}

/* ---------- 导航栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-sub);
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
}

/* ---------- Hero 主视觉 ---------- */
.hero {
  position: relative;
  padding: 96px 0 84px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.22), transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(255, 46, 99, 0.18), transparent 45%),
    linear-gradient(180deg, #12122a 0%, #0f0f1a 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 46, 99, 0.15);
  color: var(--accent-2);
  border: 1px solid rgba(255, 46, 99, 0.35);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--text-sub);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 30px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 46, 99, 0.35);
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-item .stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent-gold);
}

.stat-item .stat-label {
  color: var(--text-sub);
  font-size: 14px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 420px;
  object-fit: cover;
  animation: floatY 5s ease-in-out infinite;
}

.float-card {
  position: absolute;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: fadeUp 0.8s ease both;
}

.float-card .fc-title {
  font-weight: 700;
  color: var(--accent-gold);
}

.float-card.fc-1 { top: -18px; left: -24px; }
.float-card.fc-2 { bottom: 30px; right: -18px; }

/* ---------- 通用区块标题 ---------- */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

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

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-sub);
  max-width: 680px;
  margin: 0 auto;
}

section {
  padding: 84px 0;
}

/* ---------- 特性区 ---------- */
#features {
  background: var(--bg-card);
}

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

.feature-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 46, 99, 0.5);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-sub);
  font-size: 15px;
}

/* ---------- 服务介绍 ---------- */
#services {
  background: var(--bg-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.service-item {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.35s ease;
}

.service-item:hover {
  transform: scale(1.02);
}

.service-item .svc-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.service-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.service-item p {
  color: var(--text-sub);
  font-size: 14.5px;
}

/* ---------- 内容区 / 文章 ---------- */
#content, .content-section {
  background: var(--bg-card);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.content-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.content-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.content-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.content-card-body {
  padding: 22px;
}

.content-card .cat {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.content-card h3 {
  font-size: 18px;
  margin: 8px 0;
  line-height: 1.5;
}

.content-card h3 a {
  color: var(--text-main);
}

.content-card h3 a:hover {
  color: var(--accent);
}

.content-card .meta {
  color: var(--text-sub);
  font-size: 13px;
  margin-bottom: 10px;
}

.content-card p {
  color: var(--text-sub);
  font-size: 14.5px;
}

/* ---------- 文章详情 ---------- */
.article-hero {
  padding: 70px 0 40px;
  background: linear-gradient(180deg, #17172f 0%, var(--bg-dark) 100%);
}

.article-body {
  background: var(--bg-card);
}

.article-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 0;
}

.article-content img {
  border-radius: var(--radius);
  margin: 28px 0;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.article-content h2 {
  font-size: 26px;
  margin: 32px 0 16px;
  color: var(--accent-gold);
}

.article-content h3 {
  font-size: 20px;
  margin: 24px 0 12px;
}

.article-content p {
  color: var(--text-sub);
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  margin: 0 0 16px 24px;
  color: var(--text-sub);
}

.article-meta {
  display: flex;
  gap: 18px;
  color: var(--text-sub);
  font-size: 14px;
  flex-wrap: wrap;
  margin: 16px 0 28px;
}

.article-share {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-share span {
  color: var(--text-sub);
  margin-right: 6px;
}

.share-btn {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
}

/* ---------- FAQ 区 ---------- */
#faq {
  background: var(--bg-dark);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

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

.faq-q {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}

.faq-q::after {
  content: "+";
  font-size: 24px;
  color: var(--accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-a-inner {
  padding: 0 24px 20px;
  color: var(--text-sub);
  font-size: 15px;
}

/* ---------- CTA 区 ---------- */
#cta {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 107, 53, 0.25), transparent 55%),
    var(--bg-card);
  text-align: center;
}

#cta h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 18px;
}

#cta p {
  color: var(--text-sub);
  max-width: 640px;
  margin: 0 auto 34px;
}

/* ---------- 表格 / 列表页 ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card-2);
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

th {
  background: rgba(255, 46, 99, 0.12);
  color: var(--accent-gold);
  font-weight: 700;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- 联系 / 表单 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-main);
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.contact-info-list {
  list-style: none;
  margin-top: 20px;
}

.contact-info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  color: var(--text-sub);
}

.contact-info-list .ci-icon {
  font-size: 22px;
  flex-shrink: 0;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0a0a14;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

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

.footer-brand {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-grid p {
  color: var(--text-sub);
  font-size: 14.5px;
  max-width: 340px;
}

.footer-grid h4 {
  font-size: 16px;
  margin-bottom: 18px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-sub);
  font-size: 14.5px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-sub);
  font-size: 13.5px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 18px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 60px 0 60px;
  }

  section {
    padding: 60px 0;
  }

  .hero-visual img {
    height: 260px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
