/* 数字森林科技官网 - 响应式设计 */
/* 适配不同设备屏幕尺寸 */

/* ===== 大屏幕适配 (> 1600px) ===== */
@media (min-width: 1601px) {
  .main-container {
    max-width: 1600px;
    margin: 0 auto;
  }
  
  .section-container {
    max-width: 1600px;
    padding: 0 var(--space-2xl);
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

/* ===== 桌面端适配 (1025px - 1600px) ===== */
@media (max-width: 1600px) and (min-width: 1025px) {
  .main-container {
    max-width: 1600px;
    margin: 0 auto;
  }
  
  .section-container {
    max-width: 1600px;
    padding: 0 var(--space-xl);
  }
  
  /* 移除section高度限制，允许内容自适应 */
}

/* ===== 平板端适配 (769px - 1024px) ===== */
@media (max-width: 1024px) and (min-width: 769px) {
  /* 导航栏调整 */
  .navbar-nav {
    gap: var(--space-md);
  }
  
  .nav-link {
    font-size: var(--font-sm);
  }
  
  .wechat-contact {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-xs);
  }
  
  /* 板块内容调整 */
  .section-container {
    padding: 0 var(--space-lg);
  }
  
  /* Hero区域平板端需要恢复内边距 */
  .hero-section .section-container {
    padding: 0 var(--space-lg);
  }
  
  /* Hero区域调整 */
  .hero-title {
    font-size: var(--font-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-xl);
  }
  
  .hero-description {
    font-size: var(--font-base);
  }
  
  /* 两列布局调整 */
  .feature-section {
    gap: var(--space-lg);
  }
  
  /* 卡片网格调整 */
  .card-grid.four-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-grid.three-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* 统计数据调整 */
  .stats-container {
    padding: var(--space-lg);
  }
  
  .stat-number {
    font-size: var(--font-3xl);
  }
  
  /* 联系我们调整 */
  .contact-bottom-section {
    gap: var(--space-lg);
  }
}

/* ===== 移动端适配 (≤ 768px) ===== */
@media (max-width: 768px) {
  /* 导航栏移动端适配 */
  .navbar {
    height: 50px;
  }
  
  .navbar-container {
    padding: 0 var(--space-md);
    flex-wrap: wrap;
  }
  
  .navbar-brand {
    font-size: var(--font-lg);
  }
  
  .navbar-logo {
    height: 24px;
  }
  
  .navbar-nav {
    display: none; /* 移动端隐藏导航菜单，可后续添加汉堡菜单 */
  }
  
  .wechat-contact {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-xs);
  }
  
  /* 板块高度和间距调整 */
  .section {
    padding: var(--space-lg) 0; /* 自然间距 */
  }
  
  .hero-section {
    padding-top: 50px; /* 调整导航栏高度 */
  }
  
  /* Hero区域移动端需要恢复内边距 */
  .hero-section .section-container {
    padding: 0 var(--space-md);
  }
  
  .section-container {
    padding: 0 var(--space-md);
  }
  
  .section-content {
    gap: var(--space-lg);
  }
  
  /* Hero区域移动端适配 */
  .hero-title {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-md);
  }
  
  .hero-subtitle {
    font-size: var(--font-lg);
    margin-bottom: var(--space-md);
  }
  
  .hero-description {
    font-size: var(--font-base);
    margin-bottom: var(--space-lg);
  }
  
  .button-group {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* 标题调整 */
  .section-title {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-md);
  }
  
  .section-subtitle {
    font-size: var(--font-lg);
    margin-bottom: var(--space-md);
  }
  
  /* 两列布局改为单列 */
  .section-content.two-columns {
    grid-template-columns: 1fr;
  }
  
  .feature-section {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
    margin-bottom: var(--space-xs);
  }
  
  /* 卡片网格移动端适配 */
  .card-grid,
  .card-grid.two-columns,
  .card-grid.three-columns,
  .card-grid.four-columns {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-top: 0;
  }
  
  .feature-card,
  .tech-card,
  .value-card {
    padding: var(--space-xs);
  }
  
  /* 产品区域调整 */
  .product-description {
    font-size: var(--font-base);
    margin-bottom: var(--space-md);
  }
  
  .product-image {
    height: 150px;
    margin-top: var(--space-sm);
  }
  
  /* 贾维斯区域调整 */
  .jarvis-intro {
    font-size: var(--font-base);
  }
  
  .jarvis-tabs {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .jarvis-tab {
    width: 100%;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
  }
  
  .jarvis-feature-content {
    padding: var(--space-lg);
  }
  
  .feature-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .feature-header .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin: 0 auto;
  }
  
  .feature-services {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .service-item {
    padding: var(--space-sm);
  }
  
  /* 团队区域调整 */
  .founder-card {
    padding: var(--space-lg);
  }
  
  .founder-name {
    font-size: var(--font-xl);
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
  
  .founder-title {
    font-size: var(--font-sm);
  }
  
  .bio-section {
    margin-bottom: var(--space-md);
  }
  
  .bio-section p {
    font-size: var(--font-base);
  }
  
  .founder-info-list li {
    font-size: var(--font-sm);
  }
  
  /* 统计数据移动端适配 */
  .stats-container {
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-lg);
  }
  
  .stat-number {
    font-size: var(--font-3xl);
  }
  
  /* 公司介绍调整 */
  .company-intro-list li {
    font-size: var(--font-base);
    margin-bottom: var(--space-sm);
  }
  
  /* 联系我们移动端适配 */
  .contact-content {
    max-width: 100%;
  }
  
  .contact-image {
    max-height: 200px;
  }
  
  .contact-bottom-section {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .contact-info-card {
    padding: var(--space-lg);
  }
  
  .contact-method {
    padding: var(--space-sm);
  }
  
  .qr-code-container {
    padding: var(--space-lg);
  }
  
  .qr-code {
    max-width: 150px;
  }
  
  /* 页脚移动端适配 */
  .footer {
    padding: var(--space-lg) 0;
  }
  
  .footer-container {
    padding: 0 var(--space-md);
  }
  
  .footer-text {
    font-size: var(--font-lg);
  }
  
  .footer-slogan {
    font-size: var(--font-base);
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .footer-links a {
    font-size: var(--font-sm);
  }
}

/* ===== 小屏移动端适配 (≤ 480px) ===== */
@media (max-width: 480px) {
  /* 进一步缩小间距 */
  .section-container {
    padding: 0 var(--space-sm);
  }
  
  /* 贾维斯功能进一步优化 */
  .jarvis-tab {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-sm);
  }
  
  .feature-header .feature-title {
    font-size: var(--font-xl);
  }
  
  .feature-header .feature-description {
    font-size: var(--font-sm);
  }
  
  .section-content {
    gap: var(--space-md);
  }
  
  /* Hero区域进一步调整 */
  .hero-title {
    font-size: var(--font-xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-base);
  }
  
  .hero-description {
    font-size: var(--font-sm);
  }
  
  /* 标题进一步缩小 */
  .section-title {
    font-size: var(--font-xl);
  }
  
  .section-subtitle {
    font-size: var(--font-base);
  }
  
  /* 卡片内边距调整 */
  .feature-card,
  .tech-card,
  .value-card {
    padding: var(--space-md);
  }
  
  .feature-title,
  .tech-title,
  .value-title {
    font-size: var(--font-lg);
  }
  
  .feature-description,
  .tech-description,
  .value-description {
    font-size: var(--font-sm);
  }
  
  /* 创始人信息调整 */
  .founder-card {
    padding: var(--space-md);
  }
  
  .founder-name {
    font-size: var(--font-lg);
  }
  
  /* 统计数据调整 */
  .stats-container {
    padding: var(--space-md);
  }
  
  .stat-number {
    font-size: var(--font-2xl);
  }
  
  /* 联系信息调整 */
  .contact-info-card,
  .qr-code-container {
    padding: var(--space-md);
  }
  
  .contact-info-title {
    font-size: var(--font-lg);
  }
}

/* ===== 横屏模式适配 ===== */
@media (max-height: 600px) and (orientation: landscape) {
  /* 移除section高度限制，允许内容自适应 */
  
  .section-content {
    gap: var(--space-md);
  }
  
  .hero-title {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-sm);
  }
  
  .hero-subtitle {
    font-size: var(--font-lg);
    margin-bottom: var(--space-sm);
  }
  
  .hero-description {
    margin-bottom: var(--space-md);
  }
  
  .section-title {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-sm);
  }
  
  .section-subtitle {
    margin-bottom: var(--space-sm);
  }
}

/* ===== 高分辨率屏幕适配 ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-bg-image,
  .product-image,
  .jarvis-image,
  .team-image,
  .about-image,
  .contact-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .navbar,
  .wechat-contact,
  .button-group,
  .footer {
    display: none;
  }
  
  .section {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .hero-background {
    display: none;
  }
  
  .hero-overlay {
    display: none;
  }
  
  .section-title {
    color: black !important;
  }
}