/* ===== TYCP123 体育彩票资讯站 CSS ===== */
:root {
  --primary: #1a5fb4;
  --primary-dark: #0d47a1;
  --primary-light: #e3f2fd;
  --accent: #ff6b35;
  --accent-dark: #e55100;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1200px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== HEADER ===== */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav a:hover, .nav a.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.header-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 4px 12px rgba(255,107,53,0.4);
}
.header-cta:hover { background: var(--accent-dark) !important; transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1565c0 50%, var(--primary-dark) 100%);
  color: #fff;
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
.hero p {
  font-size: 1.15rem;
  opacity: 0.88;
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.8;
}
.hero-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.15);
}
.hero-img-wrap img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat .label { font-size: 0.85rem; opacity: 0.75; }

/* ===== CONTAINER ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== SECTION TITLE ===== */
.section-title {
  text-align: center;
  margin-bottom: 48px;
  padding-top: 64px;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.section-title p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ===== FEATURES ===== */
.features { padding: 0 24px 64px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  background: var(--primary-light);
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.feature-img {
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.feature-card:hover .feature-img img { transform: scale(1.05); }

/* ===== LOTTERY TYPES ===== */
.lottery-types {
  background: var(--bg-white);
  padding: 64px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lottery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.lottery-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.lottery-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}
.lottery-item .icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}
.lottery-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.lottery-item .desc { font-size: 0.8rem; color: var(--text-secondary); }

/* ===== ARTICLES ===== */
.articles { padding: 64px 24px; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.article-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.article-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-img img { transform: scale(1.07); }
.article-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-cat {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
  width: fit-content;
}
.article-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text);
}
.article-body h3 a:hover { color: var(--primary); }
.article-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.article-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.article-link:hover { color: var(--primary-dark); gap: 8px; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.cta-inner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.cta-inner p {
  font-size: 1.05rem;
  opacity: 0.88;
  margin-bottom: 28px;
  line-height: 1.7;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255,107,53,0.4);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,107,53,0.5);
}

/* ===== FOOTER ===== */
.footer {
  background: #0f1f3d;
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 28px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-brand h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; }
.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}
.disclaimer {
  background: rgba(255,107,53,0.08);
  border: 1px solid rgba(255,107,53,0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  .nav { display: none; }
  .hero { padding: 48px 16px 56px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 24px; }
  .features-grid, .articles-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 1.6rem; }
  .cta-inner h2 { font-size: 1.6rem; }
}

/* ===== ARTICLE PAGE ===== */
.article-page { background: var(--bg); min-height: 100vh; }
.article-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 56px 24px 48px;
  text-align: center;
}
.article-header .container { max-width: 860px; }
.article-breadcrumb {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 16px;
}
.article-breadcrumb a { color: rgba(255,255,255,0.8); }
.article-breadcrumb a:hover { color: #fff; }
.article-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.article-header .meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.88rem;
  opacity: 0.8;
  flex-wrap: wrap;
}
.article-cover {
  max-width: 860px;
  margin: -24px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-content-wrap {
  max-width: 860px;
  margin: 32px auto 64px;
  padding: 0 24px;
}
.article-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow);
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
}
@media (max-width: 768px) {
  .article-content { padding: 24px 20px; }
  .article-header { padding: 40px 16px 36px; }
}
.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--text);
  padding-top: 8px;
}
.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 20px 0 10px;
}
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol {
  margin: 12px 0 16px 20px;
}
.article-content li { margin-bottom: 6px; }
.article-content strong { color: var(--primary); }
.article-content .highlight-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
}
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.article-share a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
}
.article-share a:hover { color: var(--primary-dark); }
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.article-nav a {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.article-nav a:hover { border-color: var(--primary); background: var(--primary-light); }
.article-nav .nav-label { font-size: 0.78rem; color: var(--text-secondary); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ===== BACK BTN ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  transition: var(--transition);
}
.back-btn:hover { background: var(--primary); color: #fff; }
