/* ========================================
   港签合规助手 - 专题站设计系统
   ganghuazx.com
   ======================================== */

/* CSS 变量 */
:root {
  --primary: #1a56db;
  --primary-dark: #1540b5;
  --primary-light: #e8effd;
  --primary-gradient: linear-gradient(135deg, #1a56db 0%, #2563eb 100%);
  --secondary: #0d9488;
  --secondary-light: #ccfbf1;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --success: #16a34a;
  --success-light: #dcfce7;

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --bg-dark: #0f172a;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);

  --header-height: 64px;
  --container-max: 1200px;
  --transition: all 0.3s ease;
}

/* 重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

/* 容器 */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   导航栏
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.logo-text {
  font-size: 16px;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

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

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

.main-nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-cta {
  background: var(--primary-gradient);
  color: white !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: white !important;
  box-shadow: var(--shadow-md);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--text-primary);
}

/* 移动端导航 */
@media (max-width: 900px) {
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 12px;
    gap: 2px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 16px;
    width: 100%;
    text-align: left;
    font-size: 15px;
  }
}

/* ========================================
   面包屑
   ======================================== */
.breadcrumb {
  background: var(--bg-light);
  padding: 12px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb li {
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  color: var(--text-muted);
}

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

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

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

/* ========================================
   按钮
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

.btn-primary:hover {
  color: white;
  box-shadow: 0 6px 20px rgba(26,86,219,0.4);
}

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

.btn-secondary:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ========================================
   首页 Hero
   ======================================== */
.hero {
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
  padding: 60px 0 70px;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  opacity: 0.85;
}

.hero-badge .icon {
  font-size: 18px;
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 50px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-badges {
    gap: 16px;
  }
}

/* ========================================
   通用区块
   ======================================== */
.section {
  padding: 56px 0;
}

.section-light {
  background: var(--bg-light);
}

.section-gray {
  background: var(--bg-gray);
}

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

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

@media (max-width: 768px) {
  .section {
    padding: 36px 0;
  }

  .section-header h2 {
    font-size: 22px;
  }
}

/* ========================================
   身份类型卡片
   ======================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.identity-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.identity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.identity-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.identity-card:hover::before {
  transform: scaleX(1);
}

.identity-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.identity-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.identity-card h3 a {
  color: inherit;
  text-decoration: none;
}

.identity-card h3 a:hover {
  color: var(--primary);
}

.identity-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.identity-card .card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.identity-card .card-link:hover {
  gap: 8px;
}

/* ========================================
   CTA 模块
   ======================================== */
.cta-banner {
  background: var(--primary-gradient);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .cta-banner {
    padding: 28px 20px;
  }

  .cta-banner h3 {
    font-size: 20px;
  }

  .cta-banner .btn-group {
    flex-direction: column;
  }

  .cta-banner .btn-group .btn {
    width: 100%;
  }
}

/* CTA 卡片 */
.cta-card {
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0f4ff 100%);
  border: 1px solid rgba(26,86,219,0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 32px 0;
}

.cta-card-content {
  flex: 1;
}

.cta-card-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cta-card-content p {
  font-size: 14px;
  color: var(--text-secondary);
}

.cta-card .qr-placeholder {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cta-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   文章内容区
   ======================================== */
.article-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-primary);
}

.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
  margin: 12px 0 20px;
  padding-left: 24px;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
  color: var(--text-primary);
}

.article-content blockquote p {
  margin-bottom: 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.article-content th,
.article-content td {
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  text-align: left;
}

.article-content th {
  background: var(--bg-gray);
  font-weight: 600;
  color: var(--text-primary);
}

.article-content tr:nth-child(even) {
  background: var(--bg-light);
}

/* 提示框 */
.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
}

.info-box-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 15px;
}

.info-box p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.warning-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
}

.warning-box-title {
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
  font-size: 15px;
}

.warning-box p {
  font-size: 14px;
  color: #78350f;
  margin-bottom: 0;
}

/* ========================================
   FAQ 列表
   ======================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

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

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

.faq-question .faq-arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-question .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 18px;
}

/* ========================================
   相关推荐
   ======================================== */
.related-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 600px) {
  .related-links {
    grid-template-columns: 1fr;
  }
}

.related-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.related-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
  transform: translateX(4px);
}

.related-link .arrow {
  margin-left: auto;
  color: var(--text-muted);
}

/* ========================================
   页脚
   ======================================== */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 48px 0 24px;
  margin-top: 60px;
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand h4 {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-col h5 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: #64748b;
}

.footer-bottom a {
  color: #64748b;
  font-size: 13px;
}

.footer-bottom a:hover {
  color: #cbd5e1;
}

/* ========================================
   悬浮按钮
   ======================================== */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: none;
}

.float-cta-btn {
  background: var(--primary-gradient);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(26,86,219,0.4);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.float-cta-btn:hover {
  transform: scale(1.1);
  color: white;
  text-decoration: none;
}

.float-cta-label {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-primary);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.float-cta:hover .float-cta-label {
  opacity: 1;
}

@media (max-width: 768px) {
  .float-cta {
    display: block;
    bottom: 16px;
    right: 16px;
  }

  .float-cta-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .float-cta-label {
    display: none;
  }
}

/* ========================================
   标签/徽章
   ======================================== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
}

.tag-success {
  background: var(--success-light);
  color: var(--success);
}

.tag-warning {
  background: var(--accent-light);
  color: #92400e;
}

.tag-danger {
  background: var(--danger-light);
  color: var(--danger);
}

/* ========================================
   页面标题区
   ======================================== */
.page-header {
  background: var(--bg-light);
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.page-header .page-summary {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 700px;
}

.page-header .page-tags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .page-header {
    padding: 28px 0;
  }

  .page-header h1 {
    font-size: 24px;
  }
}

/* ========================================
   布局
   ======================================== */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
}

@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
}

.sidebar-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.sidebar-card ul li {
  margin-bottom: 10px;
}

.sidebar-card ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-card ul li a:hover {
  color: var(--primary);
}

.sidebar-cta {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  color: white;
}

.sidebar-cta h4 {
  color: white;
  font-size: 17px;
  margin-bottom: 8px;
}

.sidebar-cta p {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 16px;
}

/* ========================================
   文章锚点目录
   ======================================== */
.toc {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
  border-left: 4px solid var(--primary);
}

.toc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.toc ul {
  padding-left: 16px;
}

.toc ul li {
  margin-bottom: 6px;
  list-style: none;
}

.toc ul li a {
  font-size: 14px;
  color: var(--text-secondary);
}

.toc ul li a:hover {
  color: var(--primary);
}

/* ========================================
   自测页
   ======================================== */
.self-test-hero {
  background: var(--primary-gradient);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.self-test-hero h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.self-test-hero p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.qr-display {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 360px;
  margin: 0 auto;
}

.qr-display .qr-image {
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  display: block;
  object-fit: contain;
}

.qr-display h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.qr-display p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .self-test-hero {
    padding: 32px 20px;
  }

  .self-test-hero h1 {
    font-size: 22px;
  }
}

/* 步骤卡片 */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  text-align: center;
  padding: 24px;
}

.step-card .step-number {
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ========================================
   通用工具类
   ======================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.hidden-mobile { display: block; }

@media (max-width: 768px) {
  .hidden-mobile { display: none; }
}

/* ========================================
   联系我们模块
   ======================================== */
.contact-section {
  padding: 56px 0;
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.contact-card .contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 14px;
}

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

.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
  word-break: break-all;
}

.contact-card .contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

/* 牌照徽章 */
.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 2px solid var(--success);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
  margin: 0 auto;
}

.license-badge .license-icon {
  font-size: 18px;
}

.company-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.company-intro p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* 页脚联系信息 */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-contact-item .footer-contact-icon {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 2px;
}

.footer-contact-item a {
  color: #94a3b8;
  font-size: 13px;
}

.footer-contact-item a:hover {
  color: white;
}

.footer-license {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22,163,74,0.15);
  border: 1px solid rgba(22,163,74,0.3);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #4ade80;
  margin-bottom: 12px;
}

/* 首页小程序二维码卡片 */
.homepage-qr-section {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.homepage-qr-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  max-width: 560px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.homepage-qr-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.homepage-qr-img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  object-fit: contain;
}

.homepage-qr-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.homepage-qr-text p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .homepage-qr-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }
  .homepage-qr-img {
    width: 160px;
    height: 160px;
  }
}

/* 页脚小程序二维码 */
.footer-qr {
  text-align: center;
  margin-top: 16px;
}

.footer-qr img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.15);
}

.footer-qr p {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
  margin-bottom: 0;
}
