/* ============================================
   Binance 推广网站 - 全局样式
   响应式设计 | Baidu SEO 优化
   ============================================ */

:root {
  --primary: #f0b90b;
  --primary-dark: #d4a50a;
  --secondary: #1e2329;
  --accent: #0ea5e9;
  --bg-dark: #0b0e11;
  --bg-card: #1e2329;
  --bg-light: #fafafa;
  --text-light: #eaecef;
  --text-muted: #848e9c;
  --text-dark: #1e2329;
  --border: #2b3139;
  --gradient: linear-gradient(135deg, #f0b90b 0%, #f8d12f 50%, #f0b90b 100%);
  --shadow: 0 4px 20px rgba(0,0,0,0.15);
  --radius: 12px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ===== Header / Nav ===== */
header {
  background: rgba(11, 14, 17, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary) !important;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--bg-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}
.nav-list a {
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.nav-list a:hover,
.nav-list a.active {
  background: rgba(240, 185, 11, 0.1);
  color: var(--primary);
}

/* ===== Hero Section ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(240,185,11,0.05) 100%);
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}
.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 30px;
}
.hero .btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--gradient);
  color: var(--bg-dark);
  font-weight: 700;
  border-radius: 50px;
  font-size: 1.05rem;
  transition: all 0.3s;
}
.hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(240,185,11,0.3);
}

/* ===== Sections ===== */
.section {
  padding: 60px 0;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 48px;
  height: 48px;
  background: rgba(240,185,11,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-item {
  padding: 30px 20px;
}
.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ===== Article List ===== */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.article-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}
.article-card-body {
  padding: 24px;
}
.article-card .tag {
  display: inline-block;
  background: rgba(240,185,11,0.15);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.article-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.5;
}
.article-card h3 a {
  color: var(--text-light);
}
.article-card h3 a:hover { color: var(--primary); }
.article-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.article-card .meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== Page Content ===== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.page-content h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}
.page-content .breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.page-content .breadcrumb a { color: var(--text-muted); }
.page-content .breadcrumb a:hover { color: var(--primary); }
.page-content h2 {
  font-size: 1.4rem;
  margin: 30px 0 12px;
  color: var(--primary);
}
.page-content h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
}
.page-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}
.page-content ul, .page-content ol {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
}
.page-content li { margin-bottom: 8px; }
.page-content .article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.page-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(240,185,11,0.05);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, rgba(240,185,11,0.1), rgba(14,165,233,0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 50px 30px;
  text-align: center;
  margin: 40px 0;
}
.cta-section h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 12px;
}
.cta-section p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--gradient);
  color: var(--bg-dark);
  font-weight: 700;
  border-radius: 50px;
  font-size: 1.05rem;
  transition: all 0.3s;
}
.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(240,185,11,0.3);
}

/* ===== Category Page ===== */
.category-header {
  padding: 40px 0 20px;
  text-align: center;
}
.category-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.category-header p { color: var(--text-muted); margin-top: 8px; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-light);
}
.footer-col ul {
  list-style: none;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-list {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 20px;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 12px 16px; }
  
  .hero { padding: 50px 0 40px; }
  .section { padding: 40px 0; }
  .article-list { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .header-inner { height: 56px; }
  .logo { font-size: 1.2rem; }
}
