/* 
 * 百川.谱眼 - 高光谱网站 移动端专用样式
 * Mobile Styles
 * 版本: 2.0.0
 * 更新: 2026-04-10
 */

/* ========================================
   Logo 样式
   ======================================== */
.m-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.m-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.m-logo-text {
  font-size: clamp(0.875rem, 3.5vw, 1rem);
  font-weight: 600;
  color: #0052D9;
  white-space: nowrap;
}

.m-logo-slogan {
  font-size: 0.75rem;
  color: #10B981;
  font-weight: 500;
  margin-left: 4px;
}

/* ========================================
   移动端菜单样式
   ======================================== */
@media screen and (max-width: 768px) {
  /* 汉堡菜单按钮 */
  .m-menu {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 0;
  }

  .m-menu span {
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    display: block;
    transition: all 0.3s ease;
  }

  .m-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .m-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .m-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* 菜单导航 */
  .m-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: white;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    visibility: hidden;
  }

  .m-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .m-nav a {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9375rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
  }

  .m-nav a:active {
    background: #f5f5f5;
  }

  .m-nav-cta {
    display: block;
    margin: 16px 20px;
    padding: 12px;
    background: linear-gradient(135deg, #0052D9, #3B82F6);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: none;
  }
}

/* ========================================
   移动端基础重置
   ======================================== */
@media screen and (max-width: 768px) {
  /* 容器调整 */
  .container {
    padding: 0 14px;
  }
  
  /* 全局字体大小优化 */
  body {
    font-size: 14px;
    line-height: 1.6;
  }
  
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.4;
  }
  
  p {
    font-size: 13px;
    line-height: 1.7;
  }
  
  /* 导航栏移动端优化 */
  .header-inner {
    height: 56px;
  }
  
  .logo-icon {
    width: 36px;
    height: 36px;
  }
  
  .logo-name {
    font-size: 0.9375rem;
  }
  
  .logo-slogan {
    font-size: 0.5625rem;
  }
  
  .nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    gap: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
    font-size: 0.875rem;
  }
  
  .nav-cta {
    margin-top: 12px;
    text-align: center;
    font-size: 0.875rem;
  }
  
  .mobile-menu-btn {
    display: flex !important;
  }
  
  /* Hero区域移动端 */
  .hero {
    min-height: auto;
    padding: 80px 0 50px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-badge {
    font-size: 0.6875rem;
    padding: 5px 10px;
    margin-bottom: 12px;
  }
  
  .hero-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  
  .hero-subtitle {
    font-size: 0.8125rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-stats {
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
  }
  
  .stat-item {
    text-align: center;
  }
  
  .stat-number {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.6875rem;
  }
  
  .hero-spectrum {
    display: none;
  }
  
  /* 章节间距 */
  .section {
    padding: 40px 0;
  }
  
  .section-header {
    margin-bottom: 30px;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .section-subtitle {
    font-size: 0.8125rem;
  }
  
  /* 解决方案移动端 */
  .solution-tabs {
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .solution-tab {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .solution-card {
    padding: 16px;
  }
  
  .solution-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
  
  .solution-title {
    font-size: 0.9375rem;
  }
  
  .solution-desc {
    font-size: 0.8125rem;
  }
  
  /* 优势卡片移动端 */
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .advantage-card {
    padding: 20px 14px;
  }
  
  .advantage-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .advantage-title {
    font-size: 0.9375rem;
  }
  
  .advantage-desc {
    font-size: 0.75rem;
  }
  
  /* 案例移动端 */
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .case-card {
    margin-bottom: 0;
  }
  
  .case-image {
    height: 160px;
  }
  
  .case-content {
    padding: 14px;
  }
  
  .case-title {
    font-size: 0.9375rem;
  }
  
  .case-desc {
    font-size: 0.75rem;
  }
  
  .case-results {
    gap: 12px;
  }
  
  .case-result-value {
    font-size: 1.125rem;
  }
  
  /* 资源移动端 */
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .resource-card {
    padding: 16px;
  }
  
  .resource-title {
    font-size: 0.9375rem;
  }
  
  .resource-desc {
    font-size: 0.75rem;
  }
  
  /* 合作伙伴移动端 */
  .partners {
    padding: 30px 0;
  }
  
  .partners-grid {
    gap: 12px;
  }
  
  .partner-logo {
    padding: 10px 16px;
  }
  
  .partner-name {
    font-size: 0.75rem;
  }
  
  /* 关于我们移动端 */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .about-content h3 {
    font-size: 1.25rem;
  }
  
  .about-content p {
    font-size: 0.8125rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .about-image {
    height: 200px;
  }
  
  /* 联系我们移动端 */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-info h3 {
    font-size: 1.25rem;
  }
  
  .contact-list {
    gap: 12px;
  }
  
  .contact-item {
    padding: 10px 0;
    font-size: 0.8125rem;
  }
  
  .contact-form {
    padding: 20px 14px;
  }
  
  .form-group {
    margin-bottom: 14px;
  }
  
  .form-input,
  .form-textarea {
    padding: 10px;
    font-size: 14px;
  }
  
  /* 页脚移动端 */
  .footer {
    padding: 20px 0 16px;
  }

  .footer-single-row {
    gap: 6px 10px;
    font-size: 0.6875rem;
  }

  .footer-single-row .footer-logo-text {
    font-size: 0.8125rem;
  }

  .footer-divider {
    color: rgba(255, 255, 255, 0.2);
  }

  .footer-single-row .footer-link {
    font-size: 0.6875rem;
    padding: 2px 4px;
  }

  .footer-contact {
    font-size: 0.6875rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding-top: 12px;
  }

  .footer-copyright,
  .footer-record {
    font-size: 0.625rem;
  }
  
  /* 页面标题区移动端 */
  .page-header {
    padding: 80px 0 40px;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .page-subtitle {
    font-size: 0.8125rem;
  }
  
  .page-breadcrumb {
    margin-bottom: 12px;
    font-size: 0.75rem;
  }
  
  /* 产品中心移动端 */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .product-card {
    margin-bottom: 0;
  }
  
  .product-image {
    height: 130px;
    font-size: 1.75rem;
  }
  
  .product-content {
    padding: 14px;
  }
  
  .product-title {
    font-size: 0.9375rem;
  }
  
  .product-desc {
    font-size: 0.75rem;
  }
  
  .product-specs {
    gap: 4px;
  }
  
  .product-spec {
    padding: 2px 6px;
    font-size: 0.625rem;
  }
  
  /* 解决方案详情移动端 */
  .solution-detail {
    padding-bottom: 0;
  }
  
  .solution-hero {
    padding: 80px 0 30px;
  }
  
  .solution-hero-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .solution-hero h1 {
    font-size: 1.25rem;
  }
  
  .solution-hero p {
    font-size: 0.8125rem;
  }
  
  .solution-hero-image {
    height: 180px;
  }
  
  .solution-section {
    padding: 30px 0;
  }
  
  .solution-section h2 {
    font-size: 1.0625rem;
  }
  
  .solution-section p,
  .solution-section li {
    font-size: 0.8125rem;
  }
  
  .solution-list li {
    margin-bottom: 10px;
  }
  
  /* FAQ移动端 */
  .section > div[style*="max-width: 800px"] > div {
    padding: 14px;
  }
  
  /* CTA区域移动端 */
  .cta-section h2 {
    font-size: 1.125rem;
  }
  
  .cta-section p {
    font-size: 0.8125rem;
  }
  
  .cta-btn {
    padding: 12px 20px;
    font-size: 0.875rem;
  }
  
  /* 返回顶部按钮移动端 */
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 16px;
    right: 14px;
  }
  
  /* 发展历程移动端 */
  div[style*="gap: 32px"] {
    gap: 20px !important;
  }
  
  /* CTA按钮移动端 */
  div[style*="display: flex; gap: 16px; justify-content: center"] {
    flex-direction: column;
    align-items: center;
  }
  
  div[style*="display: flex; gap: 16px; justify-content: center"] .btn {
    width: 80%;
    justify-content: center;
  }
  
  /* 常见问题移动端 */
  .section > div[style*="max-width: 800px"] > div > div {
    padding: 14px;
  }
  
  /* 咨询表单移动端 */
  .contact-icon {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
  
  /* 技术术语移动端 */
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  /* 按钮移动端优化 */
  .btn {
    padding: 10px 18px;
    font-size: 0.8125rem;
  }
  
  /* 表格移动端优化 */
  table {
    font-size: 0.75rem;
  }
  
  th, td {
    padding: 8px 6px !important;
  }
  
  /* 隐藏移动端不必要的元素 */
  .hero::before {
    background-size: 50px 50px;
  }
}

/* ========================================
   平板设备适配
   ======================================== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-stats {
    gap: 28px;
  }
  
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid,
  .contact-grid {
    gap: 32px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 1.625rem;
  }
}

/* ========================================
   大屏手机优化 (375px及以下)
   ======================================== */
@media screen and (max-width: 375px) {
  body {
    font-size: 13px;
  }
  
  .hero-title {
    font-size: 1.375rem;
  }
  
  .hero-subtitle {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1.125rem;
  }
  
  .section-subtitle {
    font-size: 0.75rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .stat-number {
    font-size: 1.125rem;
  }

  .solution-tab {
    padding: 5px 10px;
    font-size: 0.6875rem;
  }
  
  .solution-title {
    font-size: 0.875rem;
  }
  
  .solution-desc {
    font-size: 0.6875rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
  
  .advantage-card {
    padding: 16px 12px;
  }
  
  .advantage-title {
    font-size: 0.875rem;
  }
  
  .advantage-desc {
    font-size: 0.6875rem;
  }
  
  .case-card {
    padding: 12px;
  }
  
  .case-title {
    font-size: 0.875rem;
  }
  
  .case-desc {
    font-size: 0.6875rem;
  }
  
  .product-content {
    padding: 12px;
  }
  
  .product-title {
    font-size: 0.875rem;
  }
  
  .product-desc {
    font-size: 0.6875rem;
  }
  
  .contact-info h3 {
    font-size: 1.125rem;
  }
  
  .page-title {
    font-size: 1.25rem;
  }
  
  .solution-hero h1 {
    font-size: 1.125rem;
  }
  
  .solution-section h2 {
    font-size: 1rem;
  }

  /* 小屏幕底部优化 */
  .footer-single-row {
    gap: 4px 8px;
  }

  .footer-single-row .footer-logo-text {
    font-size: 0.75rem;
  }

  .footer-single-row .footer-link,
  .footer-contact {
    font-size: 0.625rem;
  }
}

/* ========================================
   移动端触摸优化
   ======================================== */
@media (hover: none) and (pointer: coarse) {
  /* 增大可点击区域 */
  .nav-link,
  .solution-tab,
  .btn,
  .footer-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* 移除hover效果 */
  .solution-card:hover,
  .advantage-card:hover,
  .case-card:hover,
  .resource-card:hover,
  .product-card:hover,
  .partner-logo:hover {
    transform: none;
  }
  
  /* 添加active状态 */
  .solution-card:active,
  .advantage-card:active,
  .case-card:active,
  .resource-card:active,
  .product-card:active {
    transform: scale(0.98);
  }
  
  /* 平滑过渡 */
  .solution-card,
  .advantage-card,
  .case-card,
  .resource-card,
  .product-card {
    transition: transform 0.15s ease;
  }
}

/* ========================================
   移动端安全区域适配
   ======================================== */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  
  .back-to-top {
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: calc(16px + env(safe-area-inset-right));
  }
}

/* ========================================
   横屏模式优化
   ======================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 80px 0 40px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    display: none;
  }
  
  .hero-stats {
    display: none;
  }
  
  .section {
    padding: 30px 0;
  }
}

/* ========================================
   移动端滚动优化
   ======================================== */
@media screen and (max-width: 768px) {
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  body {
    overflow-x: hidden;
  }
  
  /* 禁用水平滚动 */
  .container {
    overflow-x: hidden;
  }
  
  /* 平滑滚动到锚点 */
  section[id] {
    scroll-margin-top: 70px;
  }
}

/* ========================================
   打印样式隐藏移动端元素
   ======================================== */
@media print {
  .mobile-menu-btn,
  .back-to-top {
    display: none !important;
  }
}

/* ========================================
   移动端页脚样式
   ======================================== */
.m-footer {
  background: #0F172A;
  padding: 24px 20px;
  text-align: center;
}

.m-footer-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.m-footer-section:last-of-type {
  border-bottom: none;
  margin-bottom: 8px;
}

.m-footer-section h4 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.m-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.m-footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.75rem;
  padding: 4px 8px;
}

.m-footer-links a:hover {
  color: #10B981;
}

.m-footer-copy {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.m-footer-copy a {
  color: rgba(255, 255, 255, 0.5);
}

.m-footer-contact {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   统一导航栏样式
   ======================================== */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mobile-header a {
  color: #333;
  text-decoration: none;
  font-size: 0.875rem;
}

.mobile-header h1 {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* ========================================
   统一按钮样式
   ======================================== */
.btn-m-primary {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #0052D9, #3B82F6);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-m-block {
  display: block;
  width: 100%;
}

/* ========================================
   统一标题样式
   ======================================== */
.m-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1F2937;
  text-align: center;
  margin: 0 0 8px;
}

.m-section-sub {
  font-size: 0.875rem;
  color: #6B7280;
  text-align: center;
  margin: 0 0 24px;
}

.m-section-title.light,
.m-section-sub.light {
  color: white;
}

/* ========================================
   统一底部导航样式 (兼容旧类名)
   ======================================== */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: white;
  display: flex;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.08);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.5625rem;
  gap: 2px;
}

.mobile-nav .nav-item.active {
  color: #0052D9;
}

.mobile-nav .nav-icon {
  font-size: 1.25rem;
}

/* ========================================
   统一主内容区域
   ======================================== */
.mobile-main {
  padding-top: 56px;
  padding-bottom: 70px;
}

/* ========================================
   统一 Hero 区域
   ======================================== */
.m-hero {
  background: linear-gradient(135deg, #0052D9, #10B981);
  color: white;
  padding: 80px 20px 60px;
  text-align: center;
}

.m-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-bottom: 16px;
}

.m-hero h1 {
  font-size: clamp(1.125rem,5vw,1.5rem);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.3;
  word-break: keep-all;
  white-space: nowrap;
}

.m-hero p {
  opacity: 0.9;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   统一统计数据样式
   ======================================== */
.m-stats {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.m-stat {
  text-align: center;
}

.m-stat .num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.m-stat .label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

/* ========================================
   统一 CTA 区域
   ======================================== */
.m-cta-box {
  background: white;
  border-radius: 16px;
  padding: 24px 16px;
  margin: 0 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.m-cta-box h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1F2937;
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.4;
}

.m-cta-box > p {
  font-size: 0.875rem;
  color: #6B7280;
  text-align: center;
  margin: 0 0 20px;
  line-height: 1.6;
}

/* ========================================
   统一表单样式
   ======================================== */
.m-form {
  margin: 20px 0;
}

.m-form-group {
  margin-bottom: 12px;
}

.m-form-group input,
.m-form-group select,
.m-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.9375rem;
  background: #F9FAFB;
  box-sizing: border-box;
}

.m-form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.m-contact {
  text-align: center;
  margin-top: 16px;
  font-size: 0.875rem;
  color: #6B7280;
}

.m-contact a {
  color: #0052D9;
  text-decoration: none;
}

/* ========================================
   移动端Footer两栏布局样式
   ======================================== */
@media screen and (max-width: 768px) {
  .m-footer {
    background: #0F172A;
    padding: 24px 16px;
    text-align: center;
  }

  /* 两栏布局容器 */
  .m-footer-two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  /* 第一栏：四个分类链接区块 */
  .m-footer-primary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
  }

  .m-footer-section {
    text-align: center;
  }

  .m-footer-section h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-block;
  }

  .m-footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.75rem;
    padding: 4px 0;
    transition: color 0.2s ease;
  }

  .m-footer-section a:hover {
    color: white;
  }

  /* 第二栏：品牌+联系方式 */
  .m-footer-secondary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .m-footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
  }

  .m-footer-tel,
  .m-footer-email {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
  }

  .m-footer-tel a,
  .m-footer-email a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .m-footer-tel a:hover,
  .m-footer-email a:hover {
    color: white;
  }

  .m-footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 8px 0 0;
  }

  /* 备案信息 */
  .m-footer-record {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
  }

  .m-footer-record a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
  }

  .m-footer-record a:hover {
    color: rgba(255, 255, 255, 0.7);
  }

  /* Footer Logo 样式（与PC端一致） */
  .m-footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .m-footer-logo-icon {
    flex-shrink: 0;
  }

  .m-footer-logo-text {
    display: flex;
    flex-direction: column;
  }

  .m-footer-logo-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
  }

  .m-footer-logo-slogan {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
  }
}

/* 小屏幕优化 */
@media screen and (max-width: 375px) {
  .m-footer-primary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .m-footer-section h4 {
    font-size: 0.75rem;
  }

  .m-footer-section a {
    font-size: 0.6875rem;
  }

  .m-footer-logo {
    font-size: 1.125rem;
  }
}

/* 安全区域适配 */
@supports (padding: env(safe-area-inset-bottom)) {
  .m-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}
