/* ================================
   响应式样式
   断点：
   - 大屏桌面：> 1200px（默认）
   - 桌面：992px-1200px
   - 平板：768px-992px
   - 手机：< 768px
================================ */

/* ================================
   桌面到平板过渡 (1200px)
================================ */
@media (max-width: 1200px) {
  .nav-main a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .header-phone {
    padding: 8px 14px;
    font-size: 14px;
  }

  .about-grid {
    gap: 40px;
  }
}

/* ================================
   平板端 (992px)
================================ */
@media (max-width: 992px) {
  :root {
    --header-height: 64px;
  }

  .nav-main {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 16px;
    margin: 0;
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border-bottom: 1px solid var(--color-border);
    transition: max-height 0.4s var(--ease);
    box-shadow: var(--shadow-md);
  }

  .nav-main.active {
    max-height: calc(100vh - var(--header-height));
  }

  .nav-main a {
    padding: 14px 18px;
    font-size: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .nav-main a:last-child { border-bottom: none; }

  .nav-main a::after { display: none; }

  .nav-main a:active {
    background: var(--color-bg-alt);
  }

  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section { padding: 80px 0; }

  .section-head { margin-bottom: 48px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-content .section-eyebrow,
  .about-content .section-title {
    text-align: center;
  }

  .about-lead {
    border-left: none;
    border-top: 3px solid var(--color-accent);
    border-bottom: 3px solid var(--color-accent);
    padding: 16px 0;
    text-align: center;
  }

  .photo-frame {
    max-width: 360px;
    margin: 0 auto;
  }

  .pricing-card.featured {
    transform: none;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand { grid-column: 1 / -1; }
  .footer-qr { grid-column: 1 / -1; }

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

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

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

/* ================================
   平板到手机过渡 (768px)
================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .container { padding: 0 16px; }

  .header-inner { padding: 0 16px; gap: 10px; }

  .brand { font-size: 17px; }
  .brand-tag { font-size: 13px; }
  .brand-r { font-size: 10px; }

  .nav-toggle { width: 40px; height: 40px; }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 32px) 0 48px;
  }

  .hero-eyebrow {
    font-size: 12px;
    padding: 6px 16px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
  }

  .hero-actions {
    margin-bottom: 32px;
    gap: 12px;
  }

  .btn {
    padding: 13px 22px;
    font-size: 15px;
    min-height: 44px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 24px;
  }

  .hero-stats li {
    text-align: center;
    padding: 8px 4px;
  }

  .hero-stats strong { font-size: 22px; }
  .hero-stats span { font-size: 11px; }

  .section { padding: 56px 0; }

  .section-head { margin-bottom: 32px; }

  .section-eyebrow {
    font-size: 11px;
    padding: 5px 14px;
    margin-bottom: 12px;
    letter-spacing: 0.12em;
  }

  .section-title {
    font-size: 1.5rem;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .section-title em::after {
    height: 2px;
    bottom: -3px;
  }

  .section-desc {
    font-size: 14px;
    line-height: 1.65;
  }

  /* 服务卡片 - 移动端更紧凑 */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    padding: 22px 20px;
    border-radius: 10px;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }

  .service-icon svg {
    width: 24px;
    height: 24px;
  }

  .service-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .service-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .service-link {
    font-size: 13px;
  }

  .service-badge {
    top: 14px;
    right: 14px;
    padding: 3px 10px;
    font-size: 11px;
  }

  /* 流程步骤 - 移动端 1 列更易读 */
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .process-step {
    padding: 20px 14px;
    border-radius: 10px;
  }

  .step-num {
    width: 44px;
    height: 44px;
    font-size: 16px;
    margin-bottom: 12px;
  }

  .process-step h3 { font-size: 15px; margin-bottom: 6px; }
  .process-step p { font-size: 12px; line-height: 1.5; }

  /* 材料 - 单列紧凑 */
  .materials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .material-card {
    padding: 22px 20px;
    border-radius: 10px;
  }

  .material-head {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .material-head h3 { font-size: 17px; }

  .material-icon { width: 40px; height: 40px; }
  .material-icon svg { width: 22px; height: 22px; }

  .material-list li {
    font-size: 13px;
    padding: 8px 0 8px 26px;
  }

  /* 商标分类 */
  .categories-tabs {
    gap: 6px;
    margin-bottom: 20px;
  }

  .cat-tab {
    padding: 8px 16px;
    font-size: 13px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .cat-card { padding: 10px 12px; }
  .cat-num { width: 26px; height: 26px; font-size: 11px; }
  .cat-name { font-size: 13px; }

  .cat-cta {
    padding: 20px 16px;
    border-radius: 10px;
  }

  .cat-cta p { font-size: 14px; }
  .cat-cta .btn { font-size: 14px; padding: 10px 20px; }

  /* 费用 */
  .pricing-grid { grid-template-columns: 1fr; gap: 14px; }

  .pricing-card {
    padding: 24px 20px;
    border-radius: 10px;
  }

  .price-num { font-size: 38px; }

  /* 关于 - 头像区 */
  .about-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .highlight {
    padding: 16px 12px;
    border-radius: 8px;
  }

  .highlight strong { font-size: 22px; }
  .highlight span { font-size: 12px; }

  .photo-badge {
    width: 80px;
    height: 80px;
    bottom: -10px;
    right: -10px;
  }

  .photo-badge strong { font-size: 20px; }
  .photo-badge span { font-size: 10px; }

  /* 优势 - 移动端单列更易读 */
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .advantage-card {
    padding: 24px 20px;
    border-radius: 10px;
  }

  .advantage-num { font-size: 32px; }

  .advantage-card h3 { font-size: 17px; margin-bottom: 8px; }
  .advantage-card p { font-size: 14px; line-height: 1.6; }

  /* 保障 - 2列更紧凑 */
  .guarantee-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .guarantee-item {
    padding: 16px 12px;
    border-radius: 8px;
  }

  .guarantee-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
  }

  .guarantee-icon svg { width: 22px; height: 22px; }

  .guarantee-item h3 {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .guarantee-item p { font-size: 12px; line-height: 1.5; }

  /* FAQ */
  .faq-item {
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .faq-item summary {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    min-height: 48px;
  }

  .faq-q { padding-right: 28px; }

  .faq-icon { width: 18px; height: 18px; }

  .faq-a {
    padding: 0 16px 16px;
    font-size: 13px;
    line-height: 1.65;
  }

  /* 联系 */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-card {
    padding: 24px 20px;
    border-radius: 10px;
  }

  .contact-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
  }

  .contact-icon svg { width: 24px; height: 24px; }

  .contact-card h3 { font-size: 16px; margin-bottom: 10px; }
  .contact-link { font-size: 15px; }

  .qr-image img { width: 140px; height: 140px; }

  /* 全网服务 */
  .services-footer-section {
    padding: 48px 0 32px;
  }

  .services-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .service-footer-item {
    padding: 10px 12px;
    border-radius: 6px;
  }

  .service-footer-item strong { font-size: 12px; }
  .service-footer-item span { font-size: 10px; }

  /* Footer */
  .footer {
    padding: 40px 0 24px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-brand p,
  .footer-contact p { text-align: center; font-size: 13px; }

  .footer-links h4 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .footer-links h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links ul li { font-size: 13px; }

  .footer-qr img { width: 90px; height: 90px; }

  .footer-bottom {
    padding-top: 20px;
    margin-top: 24px;
    font-size: 12px;
  }

  /* 浮动按钮 */
  .float-contact {
    right: 12px;
    bottom: 12px;
  }

  .float-btn {
    width: 46px;
    height: 46px;
  }

  .float-btn svg { width: 20px; height: 20px; }

  .float-top {
    width: 38px;
    height: 38px;
  }
}

/* ================================
   小屏手机 (480px)
================================ */
@media (max-width: 480px) {
  .container { padding: 0 14px; }

  .brand { font-size: 15px; }
  .brand-tag { font-size: 12px; }
  .brand-divider { display: none; }

  .header-inner { padding: 0 12px; }

  .hero {
    padding: calc(var(--header-height) + 24px) 0 40px;
  }

  .hero-title {
    font-size: 1.55rem;
    line-height: 1.3;
  }

  .hero-title br { display: none; }

  .hero-subtitle {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .hero-stats {
    gap: 8px;
    padding-top: 20px;
  }

  .hero-stats li {
    padding: 6px 2px;
  }

  .hero-stats strong { font-size: 20px; }
  .hero-stats span { font-size: 10px; }

  .section { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }

  .section-title { font-size: 1.35rem; }

  /* 服务卡片 */
  .service-card { padding: 18px 16px; }
  .service-icon { width: 42px; height: 42px; margin-bottom: 14px; }
  .service-icon svg { width: 22px; height: 22px; }
  .service-card h3 { font-size: 16px; }
  .service-card p { font-size: 13px; }

  /* 流程 - 单列 */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-step { padding: 18px 16px; }
  .step-num { width: 40px; height: 40px; font-size: 15px; margin-bottom: 10px; }
  .process-step h3 { font-size: 15px; }
  .process-step p { font-size: 13px; }

  /* 优势 - 单列紧凑 */
  .advantage-card { padding: 20px 18px; }
  .advantage-num { font-size: 28px; }
  .advantage-card h3 { font-size: 16px; }
  .advantage-card p { font-size: 13px; }

  /* 保障 - 单列 */
  .guarantee-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guarantee-item { padding: 18px 16px; }
  .guarantee-icon { width: 40px; height: 40px; }
  .guarantee-icon svg { width: 20px; height: 20px; }
  .guarantee-item h3 { font-size: 15px; }
  .guarantee-item p { font-size: 13px; }

  /* FAQ */
  .faq-item summary {
    padding: 12px 14px;
    font-size: 13px;
  }

  .faq-q { padding-right: 24px; }

  .faq-a {
    padding: 0 14px 14px;
    font-size: 13px;
  }

  /* 联系 */
  .contact-card { padding: 20px 18px; }
  .contact-icon { width: 44px; height: 44px; }
  .contact-icon svg { width: 22px; height: 22px; }
  .contact-card h3 { font-size: 15px; }
  .contact-link { font-size: 14px; }
  .qr-image img { width: 120px; height: 120px; }

  /* 分类 */
  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cat-card { padding: 8px 10px; }
  .cat-num { width: 22px; height: 22px; font-size: 10px; }
  .cat-name { font-size: 12px; }

  /* 头像区 */
  .about-highlights {
    gap: 10px;
  }

  .highlight { padding: 14px 10px; }
  .highlight strong { font-size: 20px; }
  .highlight span { font-size: 11px; }

  .photo-badge {
    width: 70px;
    height: 70px;
    bottom: -8px;
    right: -8px;
  }

  .photo-badge strong { font-size: 18px; }
  .photo-badge span { font-size: 9px; }

  /* 全网服务 */
  .services-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-footer-item { padding: 8px 10px; }
  .service-footer-item strong { font-size: 11px; }
  .service-footer-item span { font-size: 9px; }

  /* 浮动按钮 */
  .float-contact { right: 10px; bottom: 10px; }
  .float-btn { width: 42px; height: 42px; }
  .float-btn svg { width: 18px; height: 18px; }
  .float-top { width: 34px; height: 34px; }
}

/* ================================
   移动端通用优化 (768px以下)
================================ */
@media (max-width: 768px) {
  /* 优化触摸反馈 */
  a, button {
    -webkit-tap-highlight-color: rgba(201, 169, 97, 0.15);
  }

  /* 防止移动端文字被选中 */
  .brand, .nav-toggle, .float-btn, .float-top {
    -webkit-user-select: none;
    user-select: none;
  }

  /* 优化滚动 */
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* 减少移动端动画以提升性能 */
  .service-card:hover,
  .advantage-card:hover,
  .pricing-card:hover {
    transform: none;
  }

  /* 优化表单 */
  input, textarea, select {
    font-size: 16px; /* 防止iOS自动缩放 */
  }

  /* 提升可读性 */
  ::selection {
    background: rgba(201, 169, 97, 0.3);
  }
}

/* ================================
   大屏优化 (1920px+)
================================ */
@media (min-width: 1920px) {
  :root {
    --container: 1440px;
  }

  body { font-size: 17px; }

  .section { padding: 120px 0; }
}

/* ================================
   减少动效（无障碍）
================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* ================================
   打印样式
================================ */
@media print {
  .site-header,
  .float-contact,
  .nav-toggle,
  .hero-bg { display: none !important; }

  body { color: #000; background: #fff; }

  .hero { background: #f5f5f5; color: #000; min-height: auto; padding: 40px 0; }
  .hero-title, .hero-subtitle { color: #000; }
  .hero-stats strong { color: #000; -webkit-text-fill-color: #000; }

  .section { padding: 20px 0; page-break-inside: avoid; }
}
