/* ============================================
   911吃瓜网 - 全站样式表
   娱乐资讯风格：深色基调 + 金色/红色点缀
   ============================================ */

:root {
  --bg-dark: #0d0d12;
  --bg-deep: #14141c;
  --bg-card: #1c1c26;
  --bg-card-hover: #242433;
  --gold: #d4a537;
  --gold-light: #f0c75e;
  --red: #e63946;
  --red-dark: #b02a35;
  --text-main: #f2f2f2;
  --text-sub: #a8a8b8;
  --text-muted: #6f6f82;
  --border: #2c2c3a;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-light);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 顶部公告栏 ========== */
.topbar {
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}

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

.topbar-ticker {
  overflow: hidden;
  flex: 1;
}

.topbar-ticker span {
  display: inline-block;
  animation: tickerMove 22s linear infinite;
}

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

.topbar-date {
  flex-shrink: 0;
  font-weight: 500;
}

/* ========== 导航栏 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

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

.brand .brand-text {
  color: var(--text-main);
  white-space: nowrap;
}

.brand .brand-text em {
  font-style: normal;
  color: var(--gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold-light);
  background: rgba(212, 165, 55, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

/* ========== Hero 主视觉 ========== */
.hero {
  position: relative;
  padding: 90px 0 80px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(212, 165, 55, 0.12), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(230, 57, 70, 0.14), transparent 55%),
    var(--bg-deep);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(212, 165, 55, 0.6);
  border-radius: 30px;
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 22px;
  background: rgba(212, 165, 55, 0.08);
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero p {
  max-width: 720px;
  margin: 0 auto 30px;
  color: var(--text-sub);
  font-size: 17px;
}

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

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(90deg, var(--gold), #b8860b);
  color: #1a1204;
  box-shadow: 0 6px 20px rgba(212, 165, 55, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(212, 165, 55, 0.5);
  color: #1a1204;
}

.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(212, 165, 55, 0.12);
  transform: translateY(-3px);
}

/* ========== 通用区块 ========== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-deep);
}

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

.section-head .section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

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

/* ========== 核心特性 ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(212, 165, 55, 0.12);
  color: var(--gold);
}

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

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

/* ========== 服务介绍 ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(212, 165, 55, 0.5);
}

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

.service-card-body {
  padding: 22px 22px 26px;
}

.service-card-body h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.service-card-body p {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 14px;
}

.service-link {
  font-size: 14px;
  font-weight: 600;
}

/* ========== 资讯列表 ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(230, 57, 70, 0.5);
}

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

.news-card-body {
  padding: 20px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.news-meta .tag {
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(230, 57, 70, 0.15);
  color: #ff7b84;
  font-weight: 600;
}

.news-card h3 {
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 10px;
}

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

.news-card h3 a:hover {
  color: var(--gold-light);
}

.news-card p {
  color: var(--text-sub);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== 列表页（资讯/产品） ========== */
.page-hero {
  padding: 70px 0 50px;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(212, 165, 55, 0.12), transparent 55%),
    var(--bg-deep);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 900;
  margin-bottom: 14px;
}

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

.breadcrumb {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

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

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-muted);
}

/* ========== 详情页 ========== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.article-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-cover {
  border-radius: var(--radius);
  margin-bottom: 24px;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-content {
  font-size: 16px;
  color: #d9d9e4;
}

.article-content h2 {
  font-size: 24px;
  margin: 28px 0 14px;
  color: var(--gold-light);
  border-left: 4px solid var(--gold);
  padding-left: 14px;
}

.article-content h3 {
  font-size: 19px;
  margin: 22px 0 10px;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 16px 22px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  border-left: 4px solid var(--red);
  background: rgba(230, 57, 70, 0.08);
  padding: 14px 18px;
  margin: 18px 0;
  border-radius: 0 8px 8px 0;
  color: #ffb3b8;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.article-tags span {
  padding: 4px 14px;
  border-radius: 20px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 13px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.sidebar-card h3 {
  font-size: 17px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.sidebar-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  color: var(--text-sub);
}

.sidebar-list a:hover {
  color: var(--gold-light);
}

/* ========== FAQ ========== */
.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;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(212, 165, 55, 0.4);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--gold);
  transition: var(--transition);
  flex-shrink: 0;
}

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

.faq-item .faq-answer {
  padding: 0 24px 22px;
  color: var(--text-sub);
  font-size: 14.5px;
}

/* ========== CTA 行动号召 ========== */
.cta {
  padding: 80px 0;
  background:
    linear-gradient(120deg, rgba(212, 165, 55, 0.9), rgba(230, 57, 70, 0.85)),
    var(--bg-deep);
  text-align: center;
}

.cta h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 16px;
}

.cta .btn-primary {
  background: #fff;
  color: #b02a35;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
}

.cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: #b02a35;
}

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

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

.footer-about .brand {
  margin-bottom: 14px;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 14px;
}

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

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

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

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

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

.footer-bottom a:hover {
  color: var(--gold);
}

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

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 165, 55, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-info-item .ci-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(212, 165, 55, 0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.contact-info-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--text-sub);
  font-size: 14px;
}

/* ========== 产品/栏目页 ========== */
.product-hero-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.product-strip-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
}

.product-strip-item:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.product-strip-item .ps-icon {
  font-size: 30px;
  margin-bottom: 10px;
}

.product-strip-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.product-strip-item p {
  font-size: 12px;
  color: var(--text-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  transition: var(--transition);
}

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

.price-card.featured {
  border-color: var(--gold);
  position: relative;
  background: linear-gradient(180deg, rgba(212, 165, 55, 0.08), var(--bg-card));
}

.price-card.featured::before {
  content: "热门推荐";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--gold), var(--red));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.price-card .price {
  font-size: 44px;
  font-weight: 900;
  color: var(--gold-light);
  margin: 16px 0;
}

.price-card .price small {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
}

.price-card ul {
  list-style: none;
  margin: 20px 0 26px;
  text-align: left;
}

.price-card li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  color: var(--text-sub);
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-card li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
}

/* ========== 表格 ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: rgba(212, 165, 55, 0.1);
  color: var(--gold-light);
  font-weight: 700;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ========== 工具函数 ========== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

/* ========== 动画 ========== */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-float {
  animation: floatY 4s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .product-hero-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(13, 13, 18, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
    gap: 6px;
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu a {
    padding: 12px 14px;
  }
  .hero {
    padding: 60px 0 60px;
  }
  .section {
    padding: 56px 0;
  }
  .features-grid,
  .services-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .article-main {
    padding: 22px;
  }
  .product-hero-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .topbar-date {
    display: none;
  }
}

@media (max-width: 480px) {
  .product-hero-strip {
    grid-template-columns: 1fr 1fr;
  }
  .brand-text {
    font-size: 17px;
  }
}
