/* ============================================
   ng体育 - 校园操场青春风 主样式表
   CSS前缀: ng-
   ============================================ */

/* --- 字体定义 --- */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans SC';
  src: url('../fonts/NotoSansSC-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* --- CSS变量 --- */
:root {
  --ng-primary: #4CAF50;
  --ng-secondary: #FFFFFF;
  --ng-accent: #FFC107;
  --ng-highlight: #2196F3;
  --ng-bg: #F5F5F5;
  --ng-text: #333333;
  --ng-text-light: #757575;
  --ng-border: #E0E0E0;
  --ng-radius: 12px;
  --ng-shadow: 0 4px 12px rgba(0,0,0,0.1);
  --ng-font-heading: 'Montserrat', 'Noto Sans SC', sans-serif;
  --ng-font-body: 'Noto Sans SC', 'Montserrat', sans-serif;
  --ng-red: #F44336;
  --ng-green: #4CAF50;
}

/* --- 全局重置 --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--ng-font-body);
  color: var(--ng-text);
  background-color: var(--ng-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: #388E3C;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ng-font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ng-text);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h5 { font-size: 1.1rem; margin-bottom: 0.4rem; }
h6 { font-size: 1rem; margin-bottom: 0.3rem; }

p {
  margin-bottom: 1rem;
  color: var(--ng-text);
}

ul, ol {
  list-style: none;
}

/* --- 容器 --- */
.ng-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.ng-section {
  padding: 60px 0;
}

.ng-section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.ng-section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.ng-section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--ng-primary);
  border-radius: 2px;
}

.ng-section-title p {
  color: var(--ng-text-light);
  margin-top: 10px;
  font-size: 1rem;
}

/* --- 导航栏 --- */
.ng-header {
  background: var(--ng-secondary);
  border-bottom: 1px solid var(--ng-border);
  padding: 0;
  position: relative;
  z-index: 100;
}

.ng-header .ng-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.ng-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ng-font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ng-primary);
}

.ng-logo img {
  height: 40px;
  width: auto;
}

#ng-main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

#ng-main-nav .ng-nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

#ng-main-nav .ng-nav-item {
  position: relative;
}

#ng-main-nav .ng-nav-link {
  display: block;
  padding: 22px 16px;
  color: var(--ng-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

#ng-main-nav .ng-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--ng-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

#ng-main-nav .ng-nav-link:hover {
  color: var(--ng-primary);
}

#ng-main-nav .ng-nav-link:hover::after {
  transform: scaleX(1);
}

#ng-main-nav .ng-nav-link.ng-active {
  color: var(--ng-primary);
}

#ng-main-nav .ng-nav-link.ng-active::after {
  transform: scaleX(1);
}

.ng-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--ng-radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  font-family: var(--ng-font-body);
}

.ng-btn-primary {
  background: var(--ng-primary);
  color: #fff;
}

.ng-btn-primary:hover {
  background: #388E3C;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--ng-shadow);
}

.ng-btn-accent {
  background: var(--ng-accent);
  color: var(--ng-text);
}

.ng-btn-accent:hover {
  background: #FFB300;
  color: var(--ng-text);
  transform: scale(1.05);
  box-shadow: var(--ng-shadow);
}

.ng-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.ng-btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.ng-btn-app {
  background: var(--ng-accent);
  color: var(--ng-text);
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: 20px;
  margin-left: 10px;
}

.ng-btn-app:hover {
  transform: scale(1.05);
  color: var(--ng-text);
}

/* 汉堡菜单 */
.ng-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.ng-hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--ng-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 移动端侧边栏 */
.ng-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

.ng-mobile-nav {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: var(--ng-secondary);
  z-index: 999;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

.ng-mobile-nav.ng-open {
  left: 0;
}

.ng-mobile-overlay.ng-open {
  display: block;
}

.ng-mobile-nav .ng-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--ng-border);
}

.ng-mobile-nav .ng-mobile-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ng-text);
}

.ng-mobile-nav .ng-mobile-link {
  display: block;
  padding: 14px 0;
  color: var(--ng-text);
  font-size: 1rem;
  border-bottom: 1px solid var(--ng-border);
  transition: color 0.3s ease;
}

.ng-mobile-nav .ng-mobile-link:hover {
  color: var(--ng-primary);
}

/* --- Hero横幅 --- */
.ng-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.ng-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.75);
  z-index: 1;
}

.ng-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.ng-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.ng-hero-content h1 .ng-keyword {
  color: var(--ng-primary);
}

.ng-hero-content .ng-hero-subtitle {
  font-size: 1.2rem;
  color: var(--ng-text-light);
  margin-bottom: 30px;
  line-height: 1.8;
}

.ng-hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.ng-countdown {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(76,175,80,0.1);
  padding: 12px 24px;
  border-radius: var(--ng-radius);
  font-size: 0.95rem;
}

.ng-countdown-label {
  color: var(--ng-text-light);
}

.ng-countdown-timer {
  display: flex;
  gap: 8px;
}

.ng-countdown-unit {
  background: var(--ng-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--ng-font-heading);
  min-width: 36px;
  text-align: center;
}

/* --- 赛事卡片 --- */
.ng-matches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ng-match-card {
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  box-shadow: var(--ng-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ng-match-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.ng-match-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--ng-primary), #388E3C);
  color: #fff;
  font-size: 0.85rem;
}

.ng-match-card__league {
  font-weight: 600;
}

.ng-match-card__time {
  opacity: 0.9;
}

.ng-match-card__body {
  padding: 20px 16px;
  text-align: center;
}

.ng-match-card__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.ng-match-card__team {
  text-align: center;
  flex: 1;
}

.ng-match-card__team-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.ng-match-card__team-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.ng-match-card__vs {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ng-text-light);
  font-family: var(--ng-font-heading);
}

.ng-match-card__odds {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.ng-match-card__odd {
  flex: 1;
  padding: 8px 4px;
  background: var(--ng-bg);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ng-match-card__odd:hover {
  background: var(--ng-primary);
  color: #fff;
}

.ng-match-card__odd-label {
  display: block;
  font-size: 0.75rem;
  color: var(--ng-text-light);
  margin-bottom: 2px;
}

.ng-match-card__odd:hover .ng-match-card__odd-label {
  color: rgba(255,255,255,0.8);
}

.ng-match-card__odd-value {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--ng-font-heading);
}

.ng-match-card__footer {
  padding: 0 16px 16px;
  text-align: center;
}

.ng-match-card__footer .ng-btn {
  width: 100%;
  padding: 10px;
}

/* --- 视频模块 --- */
.ng-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ng-video-card {
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  box-shadow: var(--ng-shadow);
  overflow: hidden;
}

.ng-video-card__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.ng-video-card__player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ng-video-card__info {
  padding: 16px;
}

.ng-video-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.ng-video-card__desc {
  font-size: 0.9rem;
  color: var(--ng-text-light);
}

/* --- 排行榜 --- */
.ng-ranking-section {
  background: var(--ng-secondary);
}

.ng-ranking-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.ng-ranking-podium {
  text-align: center;
}

.ng-podium-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: var(--ng-radius);
  background: var(--ng-bg);
}

.ng-podium-item--gold {
  background: linear-gradient(135deg, #FFF8E1, #FFE082);
  border: 2px solid #FFD54F;
}

.ng-podium-item--silver {
  background: linear-gradient(135deg, #F5F5F5, #E0E0E0);
  border: 2px solid #BDBDBD;
}

.ng-podium-item--bronze {
  background: linear-gradient(135deg, #FBE9E7, #FFCCBC);
  border: 2px solid #FFAB91;
}

.ng-podium-rank {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--ng-font-heading);
  min-width: 40px;
}

.ng-podium-info {
  flex: 1;
  text-align: left;
}

.ng-podium-name {
  font-weight: 600;
  font-size: 1rem;
}

.ng-podium-rate {
  color: var(--ng-primary);
  font-weight: 700;
  font-family: var(--ng-font-heading);
}

.ng-ranking-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.ng-ranking-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--ng-text-light);
  font-weight: 600;
}

.ng-ranking-table td {
  padding: 14px 16px;
  background: var(--ng-bg);
  font-size: 0.95rem;
}

.ng-ranking-table tr td:first-child {
  border-radius: var(--ng-radius) 0 0 var(--ng-radius);
}

.ng-ranking-table tr td:last-child {
  border-radius: 0 var(--ng-radius) var(--ng-radius) 0;
}

.ng-trend-up {
  color: var(--ng-green);
  font-weight: 700;
}

.ng-trend-down {
  color: var(--ng-red);
  font-weight: 700;
}

/* --- 公告栏（黑板报风格） --- */
.ng-bulletin {
  background: #2E7D32;
  border-radius: var(--ng-radius);
  padding: 40px;
  color: #fff;
  position: relative;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.2), var(--ng-shadow);
}

.ng-bulletin::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px dashed rgba(255,255,255,0.3);
  border-radius: 8px;
  pointer-events: none;
}

.ng-bulletin-title {
  font-family: var(--ng-font-heading);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.ng-bulletin-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.ng-bulletin-col h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255,255,255,0.4);
  color: var(--ng-accent);
}

.ng-bulletin-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.ng-bulletin-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--ng-accent);
  margin-top: 8px;
}

/* --- 会员模块 --- */
.ng-member-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.ng-member-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ng-benefit-card {
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--ng-shadow);
  transition: transform 0.3s ease;
}

.ng-benefit-card:hover {
  transform: translateY(-4px);
}

.ng-benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.ng-benefit-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.ng-member-form {
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  padding: 32px;
  box-shadow: var(--ng-shadow);
}

.ng-form-group {
  margin-bottom: 16px;
}

.ng-form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.ng-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius);
  font-size: 1rem;
  font-family: var(--ng-font-body);
  transition: border-color 0.3s ease;
  outline: none;
}

.ng-form-input:focus {
  border-color: var(--ng-primary);
}

/* --- 竞猜模块 --- */
.ng-quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ng-quiz-card {
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  padding: 24px;
  box-shadow: var(--ng-shadow);
  text-align: center;
}

.ng-quiz-question {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.5;
}

.ng-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ng-quiz-option {
  padding: 10px 16px;
  border: 2px solid var(--ng-border);
  border-radius: var(--ng-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.ng-quiz-option:hover {
  border-color: var(--ng-primary);
  background: rgba(76,175,80,0.05);
}

.ng-quiz-option.ng-selected {
  border-color: var(--ng-primary);
  background: rgba(76,175,80,0.1);
  color: var(--ng-primary);
  font-weight: 600;
}

/* --- 文章卡片 --- */
.ng-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ng-article-card {
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  box-shadow: var(--ng-shadow);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.ng-article-card:hover {
  transform: translateY(-4px);
}

.ng-article-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.ng-article-card__body {
  padding: 16px;
}

.ng-article-card__tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(76,175,80,0.1);
  color: var(--ng-primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.ng-article-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.ng-article-card__excerpt {
  font-size: 0.9rem;
  color: var(--ng-text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 荣誉墙 --- */
.ng-honors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ng-honor-card {
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--ng-shadow);
  border-top: 4px solid var(--ng-accent);
}

.ng-honor-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.ng-honor-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ng-honor-desc {
  font-size: 0.9rem;
  color: var(--ng-text-light);
}

/* --- 合作伙伴 --- */
.ng-partners {
  text-align: center;
}

.ng-partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.ng-partners-logos img {
  height: 60px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.ng-partners-logos img:hover {
  opacity: 1;
}

/* --- 页脚 --- */
#ng-footer {
  background: var(--ng-text);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 0;
}

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

.ng-footer-col h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.ng-footer-col p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.ng-footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 6px 0;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.ng-footer-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.ng-footer-badges img {
  height: 50px;
  width: auto;
  border-radius: 6px;
}

.ng-footer-qr img {
  width: 100px;
  height: auto;
  border-radius: 8px;
  margin-top: 10px;
}

.ng-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* --- 面包屑 --- */
.ng-breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
}

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

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

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

.ng-breadcrumb .ng-breadcrumb-current {
  color: var(--ng-text);
  font-weight: 500;
}

/* --- 内页Hero --- */
.ng-page-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.ng-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.ng-page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.ng-page-hero-content h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.ng-page-hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
}

/* --- 内页内容区 --- */
.ng-content-area {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.ng-content-area h2 {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px dashed var(--ng-border);
}

.ng-content-area h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.ng-content-area p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.ng-content-area img {
  border-radius: var(--ng-radius);
  margin: 20px 0;
  box-shadow: var(--ng-shadow);
}

/* --- 投注厅 --- */
.ng-betting-layout {
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: 24px;
  padding: 30px 0;
}

.ng-filter-panel {
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  padding: 20px;
  box-shadow: var(--ng-shadow);
  align-self: start;
}

.ng-filter-panel h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ng-primary);
}

.ng-filter-group {
  margin-bottom: 20px;
}

.ng-filter-group h4 {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--ng-text-light);
}

.ng-filter-option {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.ng-filter-option:hover,
.ng-filter-option.ng-active {
  background: rgba(76,175,80,0.1);
  color: var(--ng-primary);
}

.ng-betting-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ng-bet-row {
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  padding: 16px 20px;
  box-shadow: var(--ng-shadow);
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
}

.ng-bet-row__info {
  font-size: 0.85rem;
  color: var(--ng-text-light);
}

.ng-bet-row__league {
  font-weight: 600;
  color: var(--ng-primary);
}

.ng-bet-row__teams {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ng-bet-row__team-name {
  font-weight: 600;
  font-size: 1rem;
}

.ng-bet-row__vs {
  color: var(--ng-text-light);
  font-weight: 700;
}

.ng-bet-row__odds {
  display: flex;
  gap: 8px;
}

.ng-bet-row__odd-btn {
  padding: 8px 16px;
  background: var(--ng-bg);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  min-width: 70px;
}

.ng-bet-row__odd-btn:hover {
  border-color: var(--ng-primary);
  background: rgba(76,175,80,0.05);
}

.ng-bet-row__odd-btn.ng-selected {
  border-color: var(--ng-primary);
  background: rgba(76,175,80,0.1);
}

.ng-bet-row__odd-label {
  display: block;
  font-size: 0.75rem;
  color: var(--ng-text-light);
}

.ng-bet-row__odd-value {
  display: block;
  font-weight: 700;
  font-family: var(--ng-font-heading);
}

/* 投注单 */
#ng-betslip {
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  padding: 20px;
  box-shadow: var(--ng-shadow);
  align-self: start;
}

#ng-betslip h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ng-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ng-betslip-empty {
  text-align: center;
  padding: 30px 0;
  color: var(--ng-text-light);
  font-size: 0.9rem;
}

.ng-betslip-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--ng-border);
}

.ng-betslip-match {
  font-size: 0.85rem;
  color: var(--ng-text-light);
  margin-bottom: 4px;
}

.ng-betslip-selection {
  font-weight: 600;
  margin-bottom: 4px;
}

.ng-betslip-odd {
  color: var(--ng-primary);
  font-weight: 700;
  font-family: var(--ng-font-heading);
}

.ng-betslip-amount {
  margin-top: 16px;
}

.ng-betslip-amount label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.ng-betslip-amount input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--ng-border);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.ng-betslip-amount input:focus {
  border-color: var(--ng-primary);
}

.ng-betslip-payout {
  margin-top: 12px;
  padding: 12px;
  background: var(--ng-bg);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.ng-betslip-payout-value {
  font-weight: 700;
  color: var(--ng-primary);
  font-family: var(--ng-font-heading);
}

.ng-betslip-submit {
  margin-top: 16px;
  width: 100%;
}

/* --- APP下载页 --- */
.ng-app-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ng-app-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.ng-app-feature {
  text-align: center;
  padding: 20px;
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  box-shadow: var(--ng-shadow);
}

.ng-app-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.ng-app-feature-text {
  font-weight: 600;
  font-size: 0.95rem;
}

.ng-app-downloads {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.ng-app-phone {
  max-width: 350px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

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

.ng-faq-item {
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  margin-bottom: 12px;
  box-shadow: var(--ng-shadow);
  overflow: hidden;
}

.ng-faq-question {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.ng-faq-question:hover {
  background: var(--ng-bg);
}

.ng-faq-arrow {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

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

.ng-faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.ng-faq-item.ng-open .ng-faq-answer {
  padding: 0 24px 18px;
  max-height: 500px;
}

.ng-faq-answer p {
  color: var(--ng-text-light);
  line-height: 1.7;
}

/* --- 响应式 --- */
@media (max-width: 1440px) {
  .ng-container {
    max-width: 1200px;
  }
}

@media (max-width: 1024px) {
  .ng-matches-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ng-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ng-betting-layout {
    grid-template-columns: 1fr;
  }

  .ng-filter-panel {
    display: none;
  }

  #ng-betslip {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--ng-radius) var(--ng-radius) 0 0;
    z-index: 50;
    max-height: 50vh;
    overflow-y: auto;
  }

  .ng-ranking-layout {
    grid-template-columns: 1fr;
  }

  .ng-app-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ng-app-downloads {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .ng-hamburger {
    display: flex;
  }

  #ng-main-nav {
    display: none;
  }

  .ng-btn-app {
    display: none;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .ng-hero {
    min-height: 500px;
  }

  .ng-hero-content h1 {
    font-size: 2rem;
  }

  .ng-section {
    padding: 40px 0;
  }

  .ng-matches-grid {
    grid-template-columns: 1fr;
  }

  .ng-video-grid {
    grid-template-columns: 1fr;
  }

  .ng-quiz-grid {
    grid-template-columns: 1fr;
  }

  .ng-articles-grid {
    grid-template-columns: 1fr;
  }

  .ng-honors-grid {
    grid-template-columns: 1fr;
  }

  .ng-member-layout {
    grid-template-columns: 1fr;
  }

  .ng-bulletin-columns {
    grid-template-columns: 1fr;
  }

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

  .ng-page-hero {
    height: 300px;
  }

  .ng-page-hero-content h1 {
    font-size: 1.8rem;
  }

  .ng-bet-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ng-bet-row__odds {
    flex-wrap: wrap;
  }

  .ng-app-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 375px) {
  html {
    font-size: 14px;
  }

  .ng-container {
    padding: 0 15px;
  }

  .ng-hero-content h1 {
    font-size: 1.6rem;
  }

  .ng-hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .ng-countdown {
    flex-direction: column;
    gap: 8px;
  }
}

/* --- 投注厅页面布局 (betting-hall) --- */
.ng-betting-hall-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  padding: 30px 0;
}

.ng-betting-main {
  min-width: 0;
}

.ng-filter-bar {
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  padding: 16px 20px;
  box-shadow: var(--ng-shadow);
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.ng-filter-bar .ng-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.ng-filter-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ng-text);
  white-space: nowrap;
}

.ng-filter-bar .ng-filter-option {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  margin-bottom: 0;
  background: var(--ng-bg);
}

.ng-filter-bar .ng-filter-option:hover,
.ng-filter-bar .ng-filter-option.ng-active {
  background: var(--ng-primary);
  color: #fff;
}

.ng-bet-section {
  margin-bottom: 30px;
}

.ng-bet-section__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ng-border);
  color: var(--ng-text);
}

.ng-bet-row__time {
  display: block;
  font-size: 0.8rem;
  margin-top: 2px;
}

.ng-bet-row__teams {
  font-weight: 700;
  font-size: 1.05rem;
}

/* 投注单侧边栏 */
.ng-betslip {
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  box-shadow: var(--ng-shadow);
  align-self: start;
  position: sticky;
  top: 80px;
  overflow: hidden;
}

.ng-betslip-header {
  background: var(--ng-primary);
  color: #fff;
  padding: 16px 20px;
}

.ng-betslip-header h3 {
  font-size: 1rem;
  margin: 0;
}

.ng-betslip-body {
  padding: 20px;
}

.ng-betslip-empty {
  text-align: center;
  padding: 30px 0;
  color: var(--ng-text-light);
  font-size: 0.9rem;
}

/* 投注单内项目 */
.ng-betslip-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--ng-border);
  position: relative;
}

.ng-betslip-item-remove {
  position: absolute;
  top: 12px;
  right: 0;
  background: none;
  border: none;
  color: var(--ng-red);
  cursor: pointer;
  font-size: 1.2rem;
}

/* --- 内页短Hero --- */
.ng-page-hero--short {
  height: 300px;
}

/* --- APP下载页面布局 --- */
.ng-app-download-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: start;
  padding: 30px 0;
}

.ng-app-info h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.ng-app-info > p {
  color: var(--ng-text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.ng-app-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 30px 0;
}

.ng-app-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  box-shadow: var(--ng-shadow);
}

.ng-app-feature__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.ng-app-feature__text h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.ng-app-feature__text p {
  font-size: 0.85rem;
  color: var(--ng-text-light);
  line-height: 1.5;
}

.ng-app-download-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.ng-app-requirements {
  margin-top: 30px;
}

.ng-app-requirements h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.ng-app-phone {
  text-align: center;
}

.ng-app-phone > img {
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.ng-app-qr-section {
  margin-top: 24px;
  text-align: center;
}

.ng-app-qr-section img {
  border-radius: 12px;
  box-shadow: var(--ng-shadow);
}

.ng-app-qr-section p {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ng-text-light);
}

/* --- APP评分 --- */
.ng-app-rating {
  text-align: center;
  margin-bottom: 40px;
}

.ng-app-rating__number {
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--ng-font-heading);
  color: var(--ng-primary);
  line-height: 1;
}

.ng-app-rating__stars {
  font-size: 1.5rem;
  color: var(--ng-accent);
  margin: 8px 0;
}

.ng-app-rating__count {
  font-size: 0.9rem;
  color: var(--ng-text-light);
}

/* --- 用户评价卡片 --- */
.ng-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ng-review-card {
  background: var(--ng-secondary);
  border-radius: var(--ng-radius);
  padding: 24px;
  box-shadow: var(--ng-shadow);
}

.ng-review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ng-review-card__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.ng-review-card__stars {
  color: var(--ng-accent);
  font-size: 1rem;
}

.ng-review-card__text {
  color: var(--ng-text-light);
  line-height: 1.7;
  font-size: 0.9rem;
  font-style: italic;
}

/* --- 品牌内页信息表格 --- */
.ng-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

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

.ng-info-table th {
  background: var(--ng-bg);
  font-weight: 600;
  width: 30%;
}

.ng-info-table td {
  color: var(--ng-text);
}

/* --- 大按钮 --- */
.ng-btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.ng-btn-accent {
  display: inline-block;
  padding: 12px 24px;
  background: var(--ng-accent);
  color: var(--ng-text);
  border-radius: var(--ng-radius);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ng-btn-accent:hover {
  background: #e6ac00;
  transform: translateY(-2px);
}

/* --- 响应式补充 --- */
@media (max-width: 1024px) {
  .ng-betting-hall-layout {
    grid-template-columns: 1fr;
  }

  .ng-betslip {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--ng-radius) var(--ng-radius) 0 0;
    z-index: 50;
    max-height: 50vh;
    overflow-y: auto;
  }

  .ng-app-download-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ng-app-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .ng-app-download-buttons {
    justify-content: center;
  }

  .ng-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ng-filter-bar {
    flex-direction: column;
    gap: 12px;
  }

  .ng-betting-hall-layout {
    grid-template-columns: 1fr;
  }

  .ng-app-download-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ng-app-features {
    grid-template-columns: 1fr;
  }

  .ng-reviews-grid {
    grid-template-columns: 1fr;
  }

  .ng-page-hero--short {
    height: 220px;
  }
}
