:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --border: #e5e7eb;
  --success: #16a34a;
  --bg: #f6f8fb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: var(--bg);
  line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 头部 */
.site-header { background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 24px; font-weight: 700; color: var(--gray-800); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { color: var(--gray-600); text-decoration: none; font-size: 15px; white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; transition: all 0.2s; }
.main-nav a:hover { color: var(--primary); }

/* Hero */
.hero { background: linear-gradient(135deg, #1e40af 0%, #2563eb 70%, #3b82f6 100%); color: #fff; padding: 60px 0; text-align: center; }
.hero h1 { font-size: 34px; margin-bottom: 12px; }
.hero p { font-size: 17px; opacity: 0.92; margin-bottom: 24px; }
.hero-search { display: flex; justify-content: center; margin: 0 auto; max-width: 560px; }
.hero-search form { display: flex; flex: 1; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.hero-search input[type="text"] { flex: 1; min-width: 0; padding: 14px 18px; border: none; outline: none; font-size: 15px; color: var(--gray-800); }
.hero-search input[type="text"]::placeholder { color: #9ca3af; }
.hero-search button { flex-shrink: 0; padding: 14px 24px; background: var(--primary); color: #fff; border: none; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hero-search button:hover { background: var(--primary-dark); }

/* 按钮 */
.btn { display: inline-block; padding: 10px 24px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 500; border: none; cursor: pointer; line-height: 1.4; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* 区块 */
.section { padding: 40px 0; }
.section-title { font-size: 22px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ''; width: 4px; height: 22px; background: var(--primary); border-radius: 2px; }
.text-center { text-align: center; }

/* 邀请码卡片 */
.invite-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.invite-card { border: 1px solid var(--border); border-radius: 10px; padding: 20px; background: #fff; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.invite-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.invite-card-header h2 { font-size: 17px; }
.badge { background: var(--gray-100); color: var(--gray-600); padding: 2px 8px; border-radius: 20px; font-size: 12px; white-space: nowrap; }
.invite-code-box { display: flex; align-items: center; gap: 8px; background: var(--gray-50); border: 1px dashed var(--gray-200); padding: 10px; border-radius: 8px; margin-bottom: 12px; }
.invite-code-box code { flex: 1; font-family: "SF Mono", Monaco, monospace; font-size: 16px; word-break: break-all; user-select: all; color: var(--gray-800); }
.copy-btn { background: var(--primary); color: #fff; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.copy-btn:hover { background: var(--primary-dark); }
.copy-btn.copied { background: var(--success); }
.remarks { color: var(--gray-600); font-size: 14px; margin-bottom: 8px; flex: 1; }
.invite-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.platform-link { color: var(--primary); text-decoration: none; font-size: 14px; }
.platform-link:hover { text-decoration: underline; }
.detail-link { color: var(--primary); text-decoration: none; font-size: 14px; background: var(--gray-50); border: 1px solid var(--gray-200); padding: 4px 12px; border-radius: 6px; }
.detail-link:hover { background: var(--primary); color: #fff; }

/* 平台卡片 */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.platform-card { border: 1px solid var(--border); border-radius: 10px; padding: 24px; text-align: center; background: #fff; display: block; text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(0,0,0,0.03); transition: all 0.2s; }
.platform-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.platform-logo { width: 60px; height: 60px; border-radius: 14px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #fff; background: #ccc; overflow: hidden; }
.platform-logo img { width: 100%; height: 100%; object-fit: cover; }
.platform-card h2 { font-size: 16px; margin-bottom: 4px; }
.platform-card p { font-size: 13px; color: var(--gray-600); }

/* 筛选栏 */
.filter-bar { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; align-items: center; }
.filter-bar input { flex: 1; min-width: 260px; padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 14px; }
.filter-bar select { padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: 8px; background: #fff; font-size: 14px; }
.filter-bar .btn-sm { background: var(--gray-100); border: 1px solid var(--gray-200); padding: 8px 16px; border-radius: 8px; cursor: pointer; }

/* 分页 */
.pagination { margin: 32px 0; text-align: center; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination b { display: inline-block; padding: 6px 12px; border: 1px solid var(--gray-200); border-radius: 6px; color: var(--gray-800); text-decoration: none; background: #fff; }
.pagination b { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 面包屑 */
.breadcrumb { margin: 20px 0 16px; font-size: 14px; color: var(--gray-600); }
.breadcrumb a { color: var(--gray-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { margin: 0 8px; color: #9ca3af; }
.breadcrumb .current { color: var(--gray-800); }

/* 详情页 */
.detail-container { max-width: 800px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--gray-600); text-decoration: none; font-size: 14px; }
.back-link:hover { color: var(--primary); }
.detail-header { margin-bottom: 28px; }
.detail-header h1 { font-size: 26px; margin-bottom: 8px; }
.detail-header .meta { color: var(--gray-600); font-size: 14px; margin-bottom: 12px; }
.detail-section { margin-bottom: 28px; }
.detail-section h2 { font-size: 18px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gray-100); }
.detail-section p { color: var(--gray-600); line-height: 1.8; }

.invite-detail-code-box { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px dashed var(--gray-200); padding: 20px; border-radius: 10px; margin-bottom: 24px; }
.invite-detail-code-box code { flex: 1; font-size: 22px; font-weight: 600; color: var(--primary-dark); word-break: break-all; user-select: all; }
.invite-detail .copy-btn { padding: 10px 20px; font-size: 15px; }

.guide-steps { list-style: none; margin: 0; padding: 0; }
.guide-steps li { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.guide-step-number { background: var(--primary); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; flex-shrink: 0; }
.guide-step-content h3 { font-size: 15px; margin-bottom: 4px; }
.guide-step-content p { color: var(--gray-600); font-size: 14px; }

.benefits-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.benefits-list li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.benefit-icon { font-size: 20px; flex-shrink: 0; }
.benefit-content h3 { font-size: 14px; margin-bottom: 4px; }
.benefit-content p { font-size: 13px; color: var(--gray-600); }

.detail-platform-box { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.detail-platform-logo { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; background: #ccc; flex-shrink: 0; overflow: hidden; }
.detail-platform-info { flex: 1; }
.detail-platform-info h3 { font-size: 15px; margin-bottom: 4px; }
.detail-platform-info p { font-size: 13px; color: var(--gray-600); }

.faq-list { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question { width: 100%; padding: 14px 16px; background: #fff; border: none; text-align: left; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question:hover { background: var(--gray-50); }
.faq-question .faq-icon { color: var(--gray-600); }
.faq-answer { display: none; padding: 0 16px 14px; color: var(--gray-600); font-size: 14px; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

.platform-header { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.platform-logo-lg { width: 80px; height: 80px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #fff; background: #ccc; flex-shrink: 0; overflow: hidden; }
.platform-logo-lg img { width: 100%; height: 100%; object-fit: cover; }
.platform-header h1 { font-size: 24px; margin-bottom: 10px; }
.platform-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.platform-intro { margin-bottom: 28px; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.platform-intro p { color: var(--gray-600); line-height: 1.8; }

.seo-text { margin-top: 40px; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.seo-text h3 { font-size: 16px; margin-bottom: 12px; }
.seo-text p { color: var(--gray-600); line-height: 1.8; margin-bottom: 8px; }

.article-content { max-width: 800px; margin: 40px auto; padding-bottom: 40px; }
.article-content h1 { font-size: 26px; margin-bottom: 20px; }
.content-body { line-height: 1.8; }
.content-body h2 { margin: 24px 0 12px; font-size: 19px; }
.content-body p { margin-bottom: 16px; color: var(--gray-600); }
.content-body ul { margin: 0 0 16px 20px; color: var(--gray-600); }
.content-body li { margin-bottom: 8px; }

.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 32px 0; color: var(--gray-600); font-size: 14px; margin-top: 48px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-nav a { color: var(--gray-600); text-decoration: none; margin-left: 16px; }
.footer-nav a:hover { color: var(--primary); }
.footer-disclaimer { text-align: center; margin-top: 16px; font-size: 12px; color: #9ca3af; }

.page-title { font-size: 26px; margin: 20px 0; }
.empty-tip { text-align: center; padding: 40px; color: var(--gray-600); display: none; }

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .main-nav { flex-wrap: wrap; gap: 12px; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 26px; }
  .hero-search form { flex-direction: column; }
  .hero-search button { width: 100%; }
  .platform-header { flex-direction: column; text-align: center; }
  .platform-actions { justify-content: center; }
  .invite-detail-code-box { flex-direction: column; }
  .invite-detail-code-box .copy-btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}
