/* ============================================
   德扑圈俱乐部 - 高端企业官网设计系统
   Style: Light theme, SaaS quality, Professional
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* 主色调 - 专业蓝 */
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-bg: rgba(37, 99, 235, 0.08);
  
  /* 辅助色 - 金色点缀 */
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-bg: rgba(245, 158, 11, 0.08);
  
  /* 背景色 - 90%+白色 */
  --bg-white: #ffffff;
  --bg-base: #f8fafc;
  --bg-gray: #f1f5f9;
  --bg-card: #ffffff;
  
  /* 文字色 */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;
  
  /* 边框 */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* 阴影 - 轻阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  
  /* 圆角 */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  
  /* 间距 */
  --section-padding: 80px 0;
  
  /* 过渡 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--primary-dark);
}

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

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Card --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--border);
}

.card img {
  border-radius: var(--radius-sm);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--text-inverse);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-inverse);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar a {
  color: var(--text-secondary);
  font-size: 13px;
}

.top-bar a:hover {
  color: var(--primary);
}

.top-bar-wechat {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary) !important;
  font-weight: 600;
}

/* --- Navigation --- */
.nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary) !important;
}

.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-bg);
  color: var(--primary);
}

.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: white !important;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.nav-download:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px;
  gap: 4px;
  border-top: 1px solid var(--border);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 15px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--primary-bg);
  color: var(--primary);
}

/* --- Hero --- */
.hero {
  padding: 80px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.breadcrumb a {
  color: var(--text-tertiary);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--text-tertiary);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Tags --- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.tag-primary {
  background: var(--primary-bg);
  color: var(--primary);
}

.tag-gold {
  background: var(--gold-bg);
  color: var(--gold);
}

.tag-green {
  background: rgba(0, 200, 150, 0.1);
  color: #00c896;
}

/* --- Sidebar --- */
.sidebar {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  color: var(--text-primary);
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 4px;
}

.sidebar-links a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}

.sidebar-links a:hover,
.sidebar-links a.active {
  background: var(--primary-bg);
  color: var(--primary);
}

/* --- FAQ --- */
.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--primary-bg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* --- Footer --- */
.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.8;
}

.footer-geo {
  background: var(--primary-bg);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  margin-top: 16px;
}

.footer h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-bottom a {
  color: var(--text-tertiary);
}

/* --- Floating Contact Panel --- */
.contact-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;          /* 容器不拦截鼠标事件，避免遮挡 footer 链接 */
}

.contact-panel .contact-card,
.contact-panel .contact-float-btn {
  pointer-events: auto;           /* 卡片和按钮本身可点击 */
}

.contact-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 24px;
  width: 300px;
  transform: translateX(0);
  transition: var(--transition);
  opacity: 1;
}

.contact-card.hidden {
  transform: translateX(320px);
  opacity: 0;
  pointer-events: none;
}

.contact-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.contact-card-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 4px;
  border-radius: 6px;
  transition: var(--transition);
}

.contact-close:hover {
  background: var(--bg-gray);
  color: var(--text-primary);
}

.contact-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.contact-wechat-id {
  background: var(--primary-bg);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.contact-wechat-id code {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.contact-copy-btn {
  padding: 6px 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.contact-copy-btn:hover {
  background: var(--primary-dark);
}

.contact-badge {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

/* Floating Button (after close) */
.contact-float-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  animation: floatPulse 2s ease-in-out infinite;
  transition: var(--transition);
}

.contact-float-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.contact-float-btn.show {
  display: inline-flex;
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6); }
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.4rem; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 1.8rem; }
  .section { padding: 50px 0; }
  .section-header h2 { font-size: 1.6rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .contact-card { width: 280px; right: 10px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.5rem; }
  .card { padding: 20px; }
}

/* --- Page Specific --- */
.page-hero {
  padding: 60px 0 40px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Content Layout */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 50px 0;
}

.content-main {
  min-width: 0;
}

/* Article */
.article-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-body {
  line-height: 1.9;
  color: var(--text-primary);
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* Related Articles */
.related-articles {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-item {
  background: var(--bg-gray);
  padding: 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.related-item:hover {
  background: var(--primary-bg);
}

.related-item a {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tags-cloud a {
  padding: 6px 14px;
  background: var(--bg-gray);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tags-cloud a:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.pagination a:hover,
.pagination .active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
