/* ========================================
   北京含香凝瑞文化发展有限公司 - 全局样式
   经营性互联网信息服务（ICP）平台
   ======================================== */

:root {
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg: #f9fafb;
  --bg-white: #ffffff;
  --border: #e5e7eb;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
  --max-width: 1200px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* --- Header --- */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  justify-content: center;
  margin: 0 12px;
}

.header-nav::-webkit-scrollbar { display: none; }

.header-nav a {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.header-nav a:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.header-nav a.active { background: var(--primary-light); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Main Content --- */
.main-content {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #1a56db 50%, #2563eb 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
  position: relative;
}

.hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.hero p { font-size: 1rem; opacity: 0.9; max-width: 700px; margin: 0 auto 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Card --- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 24px;
}

.card h2, .card h3 { color: var(--text); margin-bottom: 16px; }
.card p { color: var(--text-secondary); margin-bottom: 12px; }
.card ul, .card ol { margin: 12px 0; padding-left: 24px; color: var(--text-secondary); }
.card li { margin-bottom: 8px; }

/* --- Article List --- */
.article-list { display: grid; gap: 20px; }

.article-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 24px;
  transition: all var(--transition);
}

.article-card:hover { box-shadow: var(--shadow-md); }

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

.article-card .article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-card .article-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-card .article-excerpt .blur-text {
  filter: blur(3px);
  user-select: none;
  color: var(--text-muted);
}

.member-tip {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.pricing-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }

.pricing-card.recommended { border-color: var(--primary); position: relative; }
.pricing-card.recommended::before {
  content: "推荐";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pricing-card .price { font-size: 2.4rem; font-weight: 800; color: var(--primary); }
.pricing-card .price span { font-size: 1rem; color: var(--text-secondary); font-weight: 400; }
.pricing-card ul { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.pricing-card ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-secondary); }
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li::before { content: "\2713"; color: var(--success); font-weight: 700; margin-right: 8px; }

/* --- Legal Content --- */
.legal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 40px;
  line-height: 1.8;
}

.legal-content h2 { font-size: 1.4rem; margin: 32px 0 16px; color: var(--text); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.15rem; margin: 24px 0 12px; color: var(--text); }
.legal-content p { margin-bottom: 12px; color: var(--text-secondary); }
.legal-content ul, .legal-content ol { margin: 12px 0; padding-left: 24px; color: var(--text-secondary); }
.legal-content li { margin-bottom: 10px; }
.legal-content .highlight-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
}

/* --- Contact Info --- */
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.contact-item { background: var(--bg); border-radius: var(--radius); padding: 20px; }
.contact-item .label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.contact-item .value { font-size: 1rem; font-weight: 600; color: var(--text); }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 500; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-white);
  transition: all var(--transition);
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }

.checkbox-group { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; }
.checkbox-group input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.checkbox-group label { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* --- Tabs --- */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; gap: 0; }
.tab {
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* --- Toast --- */
.toast-container { position: fixed; top: 80px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 14px 20px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  max-width: 360px;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* --- Modal --- */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 24px;
  cursor: pointer; color: var(--text-muted);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius);
}
.modal-close:hover { background: var(--bg); color: var(--text); }

/* --- Footer --- */
.site-footer {
  background: #1f2937;
  color: #d1d5db;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px;
}

.footer-publicity {
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 2;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #374151;
}

.footer-publicity a { color: #9ca3af; text-decoration: none; }
.footer-publicity a:hover { color: #fff; }

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-links a { color: #9ca3af; }
.footer-links a:hover { color: #fff; }

/* --- Alerts --- */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 16px; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #065f46; }
.alert-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.hidden { display: none !important; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-inner { height: 56px; padding: 0 12px; }
  .header-logo { font-size: 1rem; }
  .header-nav a { padding: 6px 10px; font-size: 0.8rem; }
  .hero { padding: 40px 16px; }
  .hero h1 { font-size: 1.5rem; }
  .main-content { padding: 24px 16px; }
  .legal-content { padding: 24px; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-links { gap: 10px; }
}
