/* ==============================
   macau888ball.com - Main Stylesheet
   Design: Sports energy / teal-green + orange
   ============================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: #050d14;
  color: #e0e6ed;
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1,h2,h3,h4 { font-weight: 800; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }

/* === HEADER === */
.site-header {
  background: linear-gradient(135deg, #050d14 0%, #0a1a24 100%);
  border-bottom: 1px solid rgba(0,255,136,0.1);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 1.4rem; font-weight: 900;
  color: #00ff88; letter-spacing: 0.04em;
}
.logo em { color: #ff6b35; font-style: normal; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 0.92rem; color: #7a8fa8; transition: color 0.25s; }
.nav-links a:hover { color: #00ff88; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 22px; height: 2px; background: #00ff88; border-radius: 1px; }

/* === HERO === */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,255,136,0.06) 0%, transparent 60%),
              linear-gradient(160deg, #050d14, #071520, #050d14);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('/images/hero.png') center/cover no-repeat;
  opacity: 0.15;
}
.hero::after {
  content: ''; position: absolute; right: -100px; top: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,0.06) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
  display: inline-block;
  background: rgba(0,255,136,0.1); border: 1px solid rgba(0,255,136,0.25);
  color: #00ff88; font-size: 0.78rem; font-weight: 700;
  padding: 4px 14px; border-radius: 20px;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { color: #00ff88; font-style: normal; }
.hero p { font-size: 1.05rem; color: #6a7d8e; margin-bottom: 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: #050d14; font-weight: 800; font-size: 1rem;
  padding: 13px 30px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,255,136,0.25); }
.btn-outline {
  background: transparent; color: #ff6b35; font-weight: 700; font-size: 1rem;
  padding: 12px 28px; border-radius: 8px;
  border: 1px solid rgba(255,107,53,0.35);
  cursor: pointer; transition: all 0.25s;
  display: inline-block;
}
.btn-outline:hover { background: rgba(255,107,53,0.08); border-color: #ff6b35; }

/* === STATS === */
.stats-bar {
  background: #071520;
  border-top: 1px solid rgba(0,255,136,0.08);
  border-bottom: 1px solid rgba(0,255,136,0.08);
  padding: 22px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 900; color: #00ff88; }
.stat-label { font-size: 0.83rem; color: #4a5c6e; margin-top: 4px; }

/* === FEATURES === */
.features-section { background: #071520; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { color: #e0e6ed; margin-bottom: 12px; }
.section-header p { color: #5a6d7e; font-size: 1.02rem; }
.accent-line { width: 50px; height: 3px; background: linear-gradient(90deg, #00ff88, #ff6b35); margin: 14px auto 0; border-radius: 2px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 24px; }
.feature-card {
  background: linear-gradient(145deg, #0a1e2a, #071520);
  border: 1px solid rgba(0,255,136,0.07);
  border-radius: 14px; padding: 32px 24px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #00ff88, #ff6b35);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.35); border-color: rgba(0,255,136,0.18); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.feature-card h3 { color: #e0e6ed; margin-bottom: 10px; }
.feature-card p { color: #5a6d7e; font-size: 0.9rem; }

/* === ARTICLES === */
.articles-section { background: #050d14; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 24px; }
.article-card {
  background: #071520; border-radius: 14px;
  overflow: hidden; border: 1px solid rgba(0,255,136,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.article-thumb { height: 195px; overflow: hidden; background: linear-gradient(135deg, #0a1e2a, #0f2535); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.article-tag { font-size: 0.73rem; font-weight: 700; color: #ff6b35; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.article-card h3 { color: #dde4ed; margin-bottom: 10px; font-size: 1.05rem; line-height: 1.45; }
.article-card p { color: #5a6d7e; font-size: 0.87rem; flex: 1; margin-bottom: 14px; }
.article-meta { font-size: 0.78rem; color: #3a4a58; }
.article-link { color: #00ff88; font-weight: 700; font-size: 0.87rem; margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; }
.article-link::after { content: '→'; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  padding: 70px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(0,0,0,0.04) 20px, rgba(0,0,0,0.04) 40px);
}
.cta-banner h2 { color: #050d14; font-size: 1.9rem; margin-bottom: 10px; }
.cta-banner p { color: rgba(5,13,20,0.65); font-size: 1.02rem; margin-bottom: 24px; }
.btn-dark {
  background: #050d14; color: #00ff88; font-weight: 800;
  padding: 14px 34px; border-radius: 8px; border: none;
  font-size: 1rem; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* === FOOTER === */
.site-footer {
  background: #030810; border-top: 1px solid rgba(0,255,136,0.08);
  padding: 44px 0 22px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: #3a4a58; font-size: 0.87rem; line-height: 1.6; }
.footer-col h4 { color: #00ff88; font-size: 0.87rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.footer-col a { color: #4a5c6e; font-size: 0.87rem; transition: color 0.2s; }
.footer-col a:hover { color: #00ff88; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.04); padding-top: 18px; text-align: center; color: #2a3a48; font-size: 0.8rem; }

/* === PAGE ARTICLE === */
.page-header {
  background: linear-gradient(135deg, #071520, #050d14);
  padding: 56px 0 46px;
  border-bottom: 1px solid rgba(0,255,136,0.1);
}
.page-header .breadcrumb { font-size: 0.8rem; color: #3a4a58; margin-bottom: 14px; }
.page-header h1 { color: #fff; }
.page-header .page-desc { color: #5a6d7e; margin-top: 10px; font-size: 1.02rem; }
.article-content { max-width: 800px; margin: 0 auto; padding: 56px 20px; }
.article-content h2 { color: #e0e6ed; margin: 32px 0 14px; padding-left: 16px; border-left: 3px solid #00ff88; }
.article-content h3 { color: #00ff88; margin: 26px 0 12px; }
.article-content p { color: #8892a0; margin-bottom: 18px; font-size: 1.01rem; line-height: 1.85; }
.article-content ul { list-style: none; margin: 0 0 18px 0; }
.article-content ul li { color: #8892a0; padding: 5px 0 5px 20px; position: relative; }
.article-content ul li::before { content: '▸'; color: #00ff88; font-size: 0.8rem; position: absolute; left: 0; }
.article-content .highlight-box {
  background: linear-gradient(135deg, rgba(0,255,136,0.07), rgba(0,255,136,0.03));
  border: 1px solid rgba(0,255,136,0.18);
  border-radius: 12px; padding: 22px; margin: 26px 0;
}
.article-content blockquote {
  background: #071520; border-left: 4px solid #ff6b35;
  padding: 14px 22px; margin: 22px 0;
  border-radius: 0 10px 10px 0; color: #8892a0;
}
.article-content img { border-radius: 12px; margin: 22px 0; }
.article-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.article-image-grid img { border-radius: 12px; margin: 0; }

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 68vh; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-image-grid { grid-template-columns: 1fr; }
}
