/* ==========================================================================
   泰尔克建站 telcl.com - 响应式样式表
   适配电脑、平板、手机
   ========================================================================== */

/* ---------- 大屏适配 ---------- */
@media (max-width: 1366px) {
  :root { --container: 1160px; }

  /* 导航：提前压缩，避免链接文字折行 */
  .main-nav { gap: 0; }
  .main-nav > li > a { padding: 10px 11px; font-size: 0.86rem; }
  .nav-cta { padding: 8px 18px !important; font-size: 0.85rem !important; }
}

/* ---------- 平板横屏 ---------- */
@media (max-width: 1199px) {
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }

  /* 导航 */
  .main-nav { gap: 0; }
  .main-nav > li > a { padding: 10px 12px; font-size: 0.88rem; }
  .nav-cta { padding: 8px 18px !important; font-size: 0.85rem !important; }

  /* 英雄区 */
  .hero-grid { gap: 44px; }
  .hero-visual { height: 440px; }

  /* 页脚 */
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
  .footer-col:nth-child(4), .footer-col:nth-child(5) { grid-column: span 1; }

  /* 四列网格降为三列 */
  .advantage-seal-grid,
  .service-scroll-grid,
  .feature-ink-grid,
  .team-circle-grid,
  .honor-paper-grid,
  .stat-ink-band,
  .solution-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .advantage-seal-grid .adv-seal-card:nth-child(4),
  .service-scroll-grid .scroll-svc-card:nth-child(4n),
  .feature-ink-grid .feature-ink-item:nth-child(3),
  .team-circle-grid .team-circle-card:nth-child(4),
  .honor-paper-grid .honor-paper-card:nth-child(4n),
  .stat-ink-band .stat-ink-item:nth-child(4),
  .solution-steps .solution-step:nth-child(4) {
    transform: none;
  }

  /* 文章详情侧栏 */
  .article-paper-layout { grid-template-columns: 1fr; }
  .article-paper-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ---------- 平板竖屏 ---------- */
@media (max-width: 991px) {
  .section { padding: 68px 0; }
  h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
  h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

  /* 导航：隐藏桌面菜单，显示汉堡 */
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  /* 英雄区 */
  .hero-home { padding: 140px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-text { text-align: center; }
  .hero-text .eyebrow { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; gap: 32px; }
  .hero-visual { height: 400px; max-width: 560px; margin: 0 auto; }

  /* 页脚 */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }

  /* 双栏变单栏 */
  .frame-split,
  .contact-paper-wrap,
  .service-detail-hero,
  .cta-cinnabar-banner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .frame-split.reverse { direction: ltr; }
  .cta-cinnabar-banner .flex { justify-content: flex-start; }

  /* 三列变两列 */
  .case-frame-grid,
  .news-paper-quilt,
  .news-list-paper,
  .docs-paper-grid,
  .price-scroll-grid,
  .job-paper-grid,
  .sitemap-paper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-frame-grid .case-frame-card:nth-child(2),
  .news-paper-quilt .news-paper-card:nth-child(3n+2),
  .news-list-paper .news-paper-card:nth-child(odd) {
    transform: none;
  }

  /* 四列变两列 */
  .advantage-seal-grid,
  .service-scroll-grid,
  .feature-ink-grid,
  .team-circle-grid,
  .honor-paper-grid,
  .stat-ink-band,
  .solution-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 流程时间轴 */
  .process-timeline { flex-wrap: wrap; gap: 32px; }
  .process-timeline::before { display: none; }
  .process-step { flex: 0 0 calc(50% - 16px); }
  .process-step:nth-child(even) .step-node { transform: none; }

  /* 文章详情侧栏 */
  .article-paper-side { grid-template-columns: 1fr; }

  /* 表单双栏变单栏 */
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- 手机横屏 ---------- */
@media (max-width: 767px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }

  body { font-size: 15px; line-height: 1.75; }

  /* 品牌 */
  .brand-mark { width: 40px; height: 40px; font-size: 1.05rem; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text small { display: none; }

  /* 英雄区 */
  .hero-home { padding: 120px 0 60px; }
  .hero-title { font-size: 1.75rem; }
  .hero-desc { font-size: 0.98rem; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 24px; padding-top: 24px; }
  .hero-stat .num { font-size: 1.8rem; }
  .hero-visual { height: 320px; }
  .hero-visual .hv-card { padding: 16px; }
  .hero-visual .hv-card h4 { font-size: 0.95rem; }
  .hero-visual .hv-card p { font-size: 0.78rem; }

  /* 页头 */
  .page-hero { padding: 120px 0 56px; }
  .page-hero h1 { font-size: 1.6rem; }

  /* 区块标题 */
  .section-head { margin-bottom: 36px; }
  .section-head.center { text-align: left; }

  /* 所有多列网格变单列 */
  .advantage-seal-grid,
  .service-scroll-grid,
  .feature-ink-grid,
  .team-circle-grid,
  .honor-paper-grid,
  .stat-ink-band,
  .solution-steps,
  .case-frame-grid,
  .news-paper-quilt,
  .news-list-paper,
  .docs-paper-grid,
  .price-scroll-grid,
  .job-paper-grid,
  .sitemap-paper-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-brand { grid-column: span 1; }

  /* 取消所有错位偏移 */
  .advantage-seal-grid .adv-seal-card,
  .service-scroll-grid .scroll-svc-card,
  .feature-ink-grid .feature-ink-item,
  .team-circle-grid .team-circle-card,
  .honor-paper-grid .honor-paper-card,
  .case-frame-grid .case-frame-card,
  .news-paper-quilt .news-paper-card,
  .news-list-paper .news-paper-card,
  .docs-paper-grid .doc-paper-card,
  .price-scroll-grid .price-scroll-card {
    transform: none !important;
  }

  /* 流程步骤 */
  .process-step { flex: 0 0 100%; }
  .process-step .step-node { width: 68px; height: 68px; font-size: 1.15rem; }

  /* 数据统计带 */
  .stat-ink-band { padding: 36px 24px; }
  .stat-ink-item .stat-num { font-size: 2.2rem; }

  /* CTA横幅 */
  .cta-cinnabar-banner { padding: 36px 28px; }
  .cta-cinnabar-banner h2 { font-size: 1.4rem; }
  .cta-cinnabar-banner .btn { width: 100%; }

  /* 文章详情 */
  .article-paper-main { padding: 28px 24px; }
  .article-paper-body img { border-width: 5px; }

  /* 联系表单 */
  .contact-paper-info,
  .contact-paper-form { padding: 32px 26px; }

  /* 价格卡片 */
  .price-scroll-card { padding: 36px 28px; }
  .price-scroll-card .price-num { font-size: 2.4rem; }

  /* 页脚 */
  .site-footer { padding: 56px 0 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-icp { justify-content: center; }

  /* 移动端抽屉 */
  .mobile-drawer { width: 280px; right: -300px; }

  /* 返回顶部 */
  .back-to-top { width: 42px; height: 42px; right: 16px; bottom: 16px; }

  /* 错误页 */
  .error-paper-page .error-code { font-size: 5rem; }
}

/* ---------- 手机竖屏 ---------- */
@media (max-width: 479px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 1.55rem; }
  .hero-stats { gap: 18px; }
  .hero-stat .num { font-size: 1.5rem; }
  .hero-stat .lbl { font-size: 0.78rem; }
  .btn-lg { padding: 13px 28px; font-size: 0.95rem; }
  .brand-text strong { font-size: 0.95rem; }
  .section-head h2 { font-size: 1.35rem; }
}

/* ---------- 打印样式 ---------- */
@media print {
  .site-header, .mobile-drawer, .overlay, .back-to-top, .nav-toggle { display: none !important; }
  .hero-home, .page-hero { padding: 40px 0; }
  .section { padding: 30px 0; }
  .reveal { opacity: 1; transform: none; }
  body { background: #fff; }
}
