/* 百家乐信誉平台 - 新版设计系统 baccaratreputation.com */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0f172a;
  --bg-card: #1e293b;
  --bg-elevated: #334155;
  --accent: #0d9488;
  --accent-hover: #14b8a6;
  --accent-muted: rgba(13, 148, 136, 0.15);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(148, 163, 184, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Noto Sans SC", sans-serif;
  --container: 1100px;
  --header-h: 64px;
}

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

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

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

/* ========== 页头 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 14, 23, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.site-header .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.site-logo span { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover {
  color: var(--text);
  background: var(--accent-muted);
}
.site-nav a.active { color: var(--accent); font-weight: 500; }

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg-primary) !important;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.header-cta:hover { background: var(--accent-hover); color: var(--bg-primary) !important; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header .inner { justify-content: center; }
  .site-logo { font-size: 1rem; }
}

/* ========== 主内容区 ========== */
.main { min-height: calc(100vh - var(--header-h) - 200px); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== 首页 Hero ========== */
.hero {
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-muted);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-muted); }

/* ========== 通用区块 ========== */
.section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-desc {
  color: var(--text-muted);
  text-align: center;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
}

/* 步骤列表（SEO 与可读性） */
.steps-list {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  counter-reset: step;
}
.steps-list li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.steps-list li:last-child { border-bottom: none; }
.steps-list li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.steps-list strong { display: block; color: var(--text); margin-bottom: 0.25rem; }
.steps-list span { color: var(--text-muted); font-size: 0.95rem; }

/* FAQ 手风琴（利于摘要与可访问性） */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--bg-card);
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

/* 首页最新资讯预览 */
.news-preview-list { list-style: none; max-width: 640px; margin: 0 auto; }
.news-preview-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.news-preview-list li:last-child { border-bottom: none; }
.news-preview-list a { color: var(--text); font-weight: 500; }
.news-preview-list a:hover { color: var(--accent); }
.news-preview-list .date { font-size: 0.85rem; color: var(--text-dim); }

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-muted);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 列表区块 */
.feature-list {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }

.feature-list .num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.feature-list strong { color: var(--text); }
.feature-list span { color: var(--text-muted); font-size: 0.95rem; }

/* ========== 内页通用 ========== */
.page-hero {
  padding: 2.5rem 1.5rem 2rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.page-hero .lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-content {
  padding: 2.5rem 0 4rem;
}

.page-content .container {
  max-width: 780px;
}

.page-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 2.25rem 0 0.75rem;
}
.page-content h2:first-child { margin-top: 0; }

.page-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.page-content ul, .page-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-muted);
}
.page-content li { margin-bottom: 0.4rem; }

.page-content a { text-decoration: underline; text-underline-offset: 3px; }

/* ========== 资讯列表 ========== */
.news-grid {
  display: grid;
  gap: 1.25rem;
}

.news-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.news-card:hover {
  border-color: rgba(13, 148, 136, 0.3);
  background: var(--bg-elevated);
}

.news-card .thumb {
  width: 160px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.news-card .info { flex: 1; min-width: 0; }
.news-card .info h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}
.news-card .info .desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .info .meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .news-card { flex-direction: column; }
  .news-card .thumb { width: 100%; height: 160px; }
}

/* ========== 文章内页 ========== */
.article-header { padding: 2rem 0 1.5rem; }
.article-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.article-meta {
  font-size: 0.875rem;
  color: var(--text-dim);
  display: flex;
  gap: 1.25rem;
}
.article-thumbnail {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}
.article-body {
  padding: 0 0 3rem;
  font-size: 0.98rem;
}
.article-body p { margin-bottom: 1.25rem; color: var(--text-muted); }
.article-body h2 { font-size: 1.2rem; color: var(--text); margin: 2rem 0 0.75rem; }
.article-body h3 { font-size: 1.05rem; color: var(--accent); margin: 1.5rem 0 0.5rem; }
.article-body ul, .article-body ol { margin: 0.5rem 0 1rem 1.5rem; color: var(--text-muted); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--accent-muted);
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body a { color: var(--accent); }

/* ========== 页脚 ========== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand .logo { font-weight: 700; color: var(--text); font-size: 1rem; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.5rem; }

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.footer-links ul { list-style: none; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-dim);
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
}
