/* ============================================
   全局样式 - 澳门彩预测工具平台
   配色: 科技灰#696969 明亮黄#FFD700 电光蓝#00BFFF
   字体: 阿里巴巴普惠体 Bold / MiSans Regular
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --primary: #696969;
  --primary-dark: #3a3a3a;
  --primary-darker: #2a2a2a;
  --accent-yellow: #FFD700;
  --accent-blue: #00BFFF;
  --bg-dark: #1a1a2e;
  --bg-card: #2a2a3e;
  --bg-card-hover: #33334d;
  --text-white: #f0f0f0;
  --text-light: #cccccc;
  --text-muted: #999999;
  --border-color: #444466;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 30px rgba(0,191,255,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-white);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--accent-yellow); }

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

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

/* ---- 导航栏 ---- */
.site-nav {
  background: var(--primary-darker);
  padding: 15px 0;
  border-bottom: 2px solid var(--accent-yellow);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-yellow);
}
.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 5px;
  flex-wrap: wrap;
}
.nav-links a {
  display: block;
  padding: 8px 16px;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--accent-blue);
  color: #fff;
}
.mobile-toggle {
  display: none;
  background: none;
  border: 2px solid var(--accent-yellow);
  color: var(--accent-yellow);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---- 面包屑 ---- */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--accent-blue); }
.breadcrumb span { margin: 0 6px; }

/* ---- 模块通用 ---- */
.section {
  padding: 60px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}
.section-title h2 {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent-yellow);
}
.section-alt {
  background: var(--primary-darker);
}

/* ---- 英雄区 / 模块一 ---- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-darker) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(0,191,255,0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(255,215,0,0.05) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(5deg); }
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-blue));
}
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-blue);
}
.tool-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(0,191,255,0.15));
  border: 2px solid var(--accent-yellow);
}
.tool-card h3 {
  color: var(--accent-yellow);
  margin-bottom: 10px;
}
.tool-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--accent-blue);
  color: #fff;
}
.btn-primary:hover {
  background: #009ad6;
  color: #fff;
  transform: scale(1.05);
}
.btn-yellow {
  background: var(--accent-yellow);
  color: var(--primary-darker);
}
.btn-yellow:hover {
  background: #e6c200;
  color: var(--primary-darker);
  transform: scale(1.05);
}
.btn-outline {
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent-blue);
  color: #fff;
}

/* ---- 模块二：实时开奖 ---- */
.live-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.result-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border-color);
}
.result-balls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.ball {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  animation: ballPop 0.5s ease-out;
}
.ball-yellow {
  background: linear-gradient(135deg, var(--accent-yellow), #e6c200);
  color: var(--primary-darker);
  box-shadow: 0 0 15px rgba(255,215,0,0.4);
}
.ball-blue {
  background: linear-gradient(135deg, var(--accent-blue), #009ad6);
  color: #fff;
  box-shadow: 0 0 15px rgba(0,191,255,0.4);
}
@keyframes ballPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
.result-info {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 15px;
}

/* ---- 模块三：工具概览 ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}
.tool-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.tool-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.tool-item-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.tool-item-body {
  padding: 20px;
}
.tool-item-body h4 {
  color: var(--accent-yellow);
  margin-bottom: 8px;
}
.tool-item-body p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ---- 模块四：算法解析 ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 25px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.article-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-hover);
}
.article-card h4 {
  color: var(--accent-yellow);
  margin-bottom: 10px;
}
.article-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}
.article-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0,191,255,0.15);
  color: var(--accent-blue);
  border-radius: 20px;
  font-size: 0.78rem;
  margin-right: 5px;
}

/* ---- 模块五：用户好评 ---- */
.testimonials-wrapper {
  overflow: hidden;
  position: relative;
}
.testimonials-track {
  display: flex;
  gap: 25px;
  animation: scrollTestimonials 30s linear infinite;
}
@keyframes scrollTestimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.testimonial-card {
  min-width: 320px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 25px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}
.testimonial-stars {
  color: var(--accent-yellow);
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.testimonial-text {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-style: italic;
}
.testimonial-author {
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---- 模块六：趋势分析 ---- */
.chart-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border-color);
}
.hot-cold-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 25px;
}
.number-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.number-tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}
.number-hot {
  background: rgba(255,215,0,0.2);
  color: var(--accent-yellow);
  border: 1px solid var(--accent-yellow);
}
.number-cold {
  background: rgba(0,191,255,0.2);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

/* ---- 内页工具界面 ---- */
.tool-interface {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border-color);
  margin: 30px 0;
}
.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.number-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: transparent;
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.number-btn:hover {
  border-color: var(--accent-yellow);
  background: rgba(255,215,0,0.15);
  color: var(--accent-yellow);
}
.number-btn.selected {
  background: var(--accent-yellow);
  color: var(--primary-darker);
  border-color: var(--accent-yellow);
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
}
.result-display {
  background: var(--primary-darker);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  margin: 20px 0;
  min-height: 100px;
}
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin: 15px 0;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-blue));
  border-radius: 3px;
  width: 0;
  transition: width 1.5s ease;
}

/* ---- 遗漏数据表格 ---- */
.data-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th {
  background: var(--primary-darker);
  color: var(--accent-yellow);
  padding: 12px 15px;
  text-align: center;
  border: 1px solid var(--border-color);
  font-weight: 700;
}
.data-table td {
  padding: 10px 15px;
  text-align: center;
  border: 1px solid var(--border-color);
  color: var(--text-light);
}
.data-table tr:nth-child(even) {
  background: rgba(42,42,62,0.5);
}
.data-table tr:hover {
  background: rgba(0,191,255,0.08);
}
.data-table .hot { color: var(--accent-yellow); font-weight: 700; }
.data-table .cold { color: var(--accent-blue); font-weight: 700; }

/* ---- 页脚 ---- */
.site-footer {
  background: var(--primary-darker);
  border-top: 2px solid var(--accent-yellow);
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: var(--accent-yellow);
  margin-bottom: 15px;
  font-size: 1rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: var(--accent-blue);
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}
.footer-disclaimer {
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  padding: 15px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- APP下载页 ---- */
.app-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
}
.app-hero-text h2 {
  color: var(--accent-yellow);
  margin-bottom: 15px;
}
.app-hero-text p {
  color: var(--text-light);
  margin-bottom: 25px;
}
.app-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.app-feature-list {
  list-style: none;
  margin: 25px 0;
}
.app-feature-list li {
  padding: 8px 0;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-feature-list li::before {
  content: '✓';
  color: var(--accent-yellow);
  font-weight: 700;
}
.app-phone-img {
  max-width: 350px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0,191,255,0.2);
}

/* ---- 数字跳动效果 ---- */
.number-flip {
  display: inline-block;
  transition: all 0.3s;
}
.number-flip.flipping {
  animation: flipNum 0.6s ease;
}
@keyframes flipNum {
  0% { transform: rotateX(0); }
  50% { transform: rotateX(90deg); opacity: 0.5; }
  100% { transform: rotateX(0); opacity: 1; }
}

/* ---- 卡片翻转 ---- */
.card-flip {
  perspective: 1000px;
}
.card-flip-inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.card-flip.active .card-flip-inner {
  transform: rotateY(180deg);
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  html { font-size: 14px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .nav-links { display: none; flex-direction: column; width: 100%; margin-top: 10px; }
  .nav-links.active { display: flex; }
  .mobile-toggle { display: block; }
  .hero { padding: 40px 0 30px; }
  .hero-grid { grid-template-columns: 1fr; }
  .live-results { grid-template-columns: 1fr; }
  .hot-cold-grid { grid-template-columns: 1fr; }
  .app-hero { grid-template-columns: 1fr; text-align: center; }
  .app-hero-img { order: -1; }
  .section { padding: 40px 0; }
  .tool-card { padding: 20px; }
  .ball { width: 42px; height: 42px; font-size: 0.95rem; }
  .number-btn { width: 40px; height: 40px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .hero-grid { gap: 15px; }
  .tools-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
