/* ========== 全局变量 ========== */
:root {
  --primary: #c71585;
  --primary-light: #e91e96;
  --primary-dark: #a0126a;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --bg: #ffffff;
  --bg-light: #fef7fa;
  --bg-gray: #f3f4f6;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --radius: 12px;
  --max-width: 1200px;
}

/* ========== Reset ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ========== 导航栏 ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 15px;
  color: var(--text-light);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-phone {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background 0.2s;
}
.nav-phone:hover { background: var(--primary-dark); }

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, #1a0a1e 0%, #3d1535 50%, #c71585 100%);
  color: #fff;
  padding: 80px 24px 60px;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  color: var(--accent);
  position: relative;
}
.hero-desc {
  font-size: 17px;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: #d97706; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
}
.stat-num { font-size: 36px; font-weight: 800; }
.stat-suffix { font-size: 18px; opacity: 0.8; }
.stat-label { font-size: 14px; opacity: 0.7; margin-top: 4px; }

/* ========== Section 通用 ========== */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 48px;
}

/* ========== 服务 ========== */
.services { background: var(--bg-light); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.service-icon { font-size: 36px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-card p { color: var(--text-light); font-size: 14px; line-height: 1.7; }

/* ========== 文章列表 ========== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card-link { display: block; }
.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.article-cover {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.cover-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.cover-title {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  padding: 0 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.article-info { padding: 20px; }
.article-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.article-info p {
  font-size: 13px;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}
.meta-platform {
  background: #fdf2f8;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.more-link {
  text-align: center;
  margin-top: 40px;
}
.more-link a {
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--primary);
  padding: 10px 24px;
  border-radius: 8px;
  transition: all 0.2s;
}
.more-link a:hover {
  background: var(--primary);
  color: #fff;
}

/* ========== 关于我们 ========== */
.about { background: var(--bg-light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 15px;
}
.about-text .section-title { text-align: left; margin-bottom: 20px; }
.contact-info {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-label {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 70px;
}
.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
a.contact-value { color: var(--primary); }
a.contact-value:hover { text-decoration: underline; }

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 60px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
}
.feature-check {
  width: 32px;
  height: 32px;
  background: #fdf2f8;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== 页脚 ========== */
.footer {
  background: #111827;
  color: #fff;
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  margin-bottom: 20px;
}
.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}
.footer-brand p {
  color: #9ca3af;
  font-size: 14px;
  margin-top: 8px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-links a {
  color: #d1d5db;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  color: #6b7280;
  font-size: 13px;
  padding-top: 24px;
  border-top: 1px solid #374151;
}

/* ========== 文章列表页 ========== */
.articles-page { padding-top: 32px; }
.articles-header {
  max-width: var(--max-width);
  margin: 0 auto 32px;
  padding: 0 24px;
}
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  color: var(--text-light);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========== 文章详情页 ========== */
.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.article-detail-header {
  margin-bottom: 32px;
}
.article-detail-header h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
}
.article-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.meta-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* 复制工具栏 */
.copy-toolbar {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}
.copy-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-light);
}
.copy-btn-group { display: flex; gap: 8px; }
.copy-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.copy-btn-rich {
  background: var(--primary);
  color: #fff;
}
.copy-btn-rich:hover { background: var(--primary-dark); }
.copy-btn-text {
  background: var(--bg-gray);
  color: var(--text);
}
.copy-btn-text:hover { background: #e5e7eb; }
.copy-btn.copied {
  background: #059669 !important;
  color: #fff !important;
}

/* 文章正文（可复制区域） */
#article-content {
  font-size: 16px;
  line-height: 2;
  color: var(--text);
}
#article-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  color: var(--text);
}
#article-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 12px;
}
#article-content p {
  margin-bottom: 18px;
  text-align: justify;
}
#article-content strong { color: var(--primary-dark); }
#article-content ul, #article-content ol {
  margin: 12px 0 18px 24px;
}
#article-content li {
  margin-bottom: 8px;
}
#article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}
#article-content .company-intro {
  background: #fdf2f8;
  border: 1px solid #f9a8d4;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 36px 0;
}
#article-content .company-intro h3 { color: var(--primary-dark); margin-bottom: 8px; }
#article-content .company-intro p { font-size: 14px; color: var(--text-light); margin-bottom: 6px; }
#article-content .company-intro .phone { color: var(--primary); font-weight: 700; font-size: 16px; }
#article-content img.article-img {
  width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}
#article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
#article-content th {
  background: var(--bg-gray);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border);
}
#article-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
}

/* ========== 响应式 ========== */
/* ========== 文章导航 ========== */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.article-nav a {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
  max-width: 48%;
}
.article-nav a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fdf2f8;
}

/* ========== 汉堡菜单 ========== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  /* 导航栏 */
  .nav-inner { padding: 0 16px; height: 56px; }
  .logo-img { height: 32px; }
  .mobile-menu-btn { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block !important;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 8px;
  }
  .nav-links a:hover, .nav-links a.active {
    background: #fdf2f8;
  }
  .nav-phone {
    margin-top: 8px;
    text-align: center;
    width: 100%;
  }

  /* Hero */
  .hero { padding: 48px 16px 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 30px; }
  .hero-desc { font-size: 15px; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .btn { padding: 12px 24px; font-size: 15px; text-align: center; justify-content: center; }
  .hero-cards { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-card { padding: 16px 8px; }
  .stat-num { font-size: 24px; }
  .stat-suffix { font-size: 14px; }
  .stat-label { font-size: 12px; }

  /* 通用 Section */
  .section-inner { padding: 48px 16px; }
  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 14px; margin-bottom: 32px; }

  /* 服务 */
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 24px 20px; }

  /* 文章列表 */
  .article-grid { grid-template-columns: 1fr; gap: 16px; }
  .article-cover { height: 140px; }

  /* 文章列表页 */
  .articles-header { padding: 0 16px; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 6px 14px; font-size: 13px; }

  /* 关于我们 */
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-features { margin-top: 24px; gap: 12px; }
  .feature-item { font-size: 14px; }

  /* 页脚 */
  .footer { padding: 32px 16px 24px; }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }

  /* 文章详情页 */
  .article-page { padding: 20px 16px 60px; }
  .article-detail-header h1 { font-size: 22px; }
  .article-detail-meta { font-size: 12px; gap: 10px; }
  .copy-toolbar {
    flex-direction: column;
    gap: 10px;
    padding: 10px 14px;
  }
  .copy-toolbar-left { font-size: 13px; }
  .copy-btn { width: 100%; justify-content: center; }
  #article-content { font-size: 15px; line-height: 1.9; }
  #article-content h2 { font-size: 18px; margin: 28px 0 12px; }
  #article-content h3 { font-size: 16px; margin: 20px 0 10px; }
  #article-content img.article-img { margin: 16px 0; }
  #article-content .company-intro { padding: 16px 18px; }

  /* 文章导航 */
  .article-nav { flex-direction: column; gap: 12px; margin-top: 40px; }
  .article-nav a { max-width: 100%; }

  /* 底部无间距 */
  .more-link { margin-top: 28px; }
  .more-link a { display: inline-block; }
}

/* 超小屏幕适配 */
@media (max-width: 380px) {
  .hero h1 { font-size: 26px; }
  .hero-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-card { padding: 12px 6px; }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 11px; }
  .section-title { font-size: 22px; }
  .article-detail-header h1 { font-size: 20px; }
}
