/* ===== 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', 'PingFang SC', sans-serif; background: #f5f6fa; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== 通用容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 导航栏 ===== */
.navbar { background: #1a1a2e; color: #fff; padding: 0; position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 1.3rem; font-weight: 700; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: #aaa; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 60px 0; text-align: center; }
.hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.hero p { opacity: 0.9; font-size: 1.05rem; }

/* ===== 分类卡片（首页） ===== */
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.category-card { background: #fff; border-radius: 16px; padding: 36px 30px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; display: block; text-align: center; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.card-icon { font-size: 3rem; margin-bottom: 16px; }
.category-card h2 { font-size: 1.5rem; margin-bottom: 8px; color: #1a1a2e; }
.category-card p { color: #666; font-size: 0.95rem; margin-bottom: 20px; }
.card-arrow { display: inline-block; color: #667eea; font-weight: 700; font-size: 1.2rem; }

/* ===== 内容区标题 ===== */
.section { padding: 40px 0; }
.section-header { background: #fff; padding: 32px 0; border-bottom: 1px solid #eee; }
.section-header h1 { font-size: 1.8rem; margin-bottom: 6px; }
.section-header p { color: #888; }

/* ===== 资源卡片列表 ===== */
.resource-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 8px; }
.resource-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 1px 6px rgba(0,0,0,0.05); transition: box-shadow 0.2s; }
.resource-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.resource-card .rc-thumb { font-size: 2.5rem; text-align: center; padding: 20px 0; background: #f8f9ff; border-radius: 10px; margin-bottom: 16px; }
.resource-card .rc-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; color: #1a1a2e; }
.resource-card .rc-desc { font-size: 0.88rem; color: #666; margin-bottom: 12px; line-height: 1.5; }
.resource-card .rc-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.resource-card .rc-price { color: #e84118; font-size: 1.2rem; font-weight: 700; }
.resource-card .rc-size { color: #999; font-size: 0.82rem; }

/* ===== 按钮 ===== */
.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; text-align: center; border: none; }
.btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.btn-primary:hover { opacity: 0.88; }
.btn-block { display: block; width: 100%; }

/* ===== 详情页 ===== */
.detail-page { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.detail-card { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.detail-thumb { font-size: 4rem; text-align: center; padding: 40px 0; background: #f8f9ff; border-radius: 12px; margin-bottom: 24px; }
.detail-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; }
.detail-desc { color: #555; line-height: 1.8; margin-bottom: 28px; }
.detail-info { display: flex; gap: 32px; margin-bottom: 28px; padding: 16px 20px; background: #f8f9ff; border-radius: 10px; }
.detail-info span { color: #888; font-size: 0.9rem; }
.detail-info strong { color: #333; }
.detail-price-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.detail-price { font-size: 2rem; font-weight: 700; color: #e84118; }

/* ===== 支付弹窗 ===== */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal-box { background: #fff; border-radius: 16px; padding: 36px; max-width: 420px; width: 90%; text-align: center; }
.modal-box h3 { font-size: 1.3rem; margin-bottom: 8px; }
.modal-box p { color: #666; font-size: 0.9rem; margin-bottom: 24px; }
.qr-code { background: #f5f6fa; border-radius: 12px; padding: 24px; margin-bottom: 16px; font-size: 4rem; }
.pay-methods { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.pay-btn { padding: 10px 20px; border-radius: 8px; border: 2px solid #eee; background: #fff; cursor: pointer; font-size: 0.9rem; transition: border-color 0.2s; }
.pay-btn.active { border-color: #667eea; background: #f0f4ff; color: #667eea; font-weight: 600; }
.modal-note { font-size: 0.8rem; color: #aaa; margin-top: 12px; }
.modal-close { margin-top: 16px; color: #888; cursor: pointer; font-size: 0.88rem; }

/* ===== 下载成功 ===== */
.success-page { max-width: 600px; margin: 80px auto; padding: 0 20px; text-align: center; }
.success-icon { font-size: 5rem; margin-bottom: 20px; }
.success-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.success-desc { color: #666; margin-bottom: 28px; }

/* ===== Footer ===== */
.footer { text-align: center; padding: 24px; color: #aaa; font-size: 0.85rem; border-top: 1px solid #eee; margin-top: 40px; }

/* ===== 会员定价卡片（首页） ===== */
.section-title { font-size: 1.6rem; font-weight: 700; text-align: center; margin-bottom: 32px; color: #1a1a2e; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.pricing-card { background: #fff; border-radius: 16px; padding: 30px 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); text-align: center; position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.pricing-card.pricing-popular { border: 2px solid #667eea; }
.pricing-card.pricing-hot { border: 2px solid #e84118; }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #667eea; color: #fff; font-size: 0.72rem; padding: 3px 14px; border-radius: 12px; font-weight: 600; }
.pricing-name { font-size: 1rem; color: #888; margin-bottom: 12px; }
.pricing-price { font-size: 2.2rem; font-weight: 700; color: #e84118; margin-bottom: 6px; }
.pricing-price span { font-size: 0.85rem; color: #aaa; font-weight: 400; }
.pricing-features { list-style: none; padding: 16px 0; text-align: left; }
.pricing-features li { padding: 6px 0; font-size: 0.88rem; color: #555; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .category-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.88rem; }
  .detail-info { flex-direction: column; gap: 12px; }
}