/* ========================================
   梦曜宸航企业网站 - 响应式样式
   支持手机端和电脑端自适应布局
   ======================================== */

/* ========================================
   大屏桌面 (1200px+)
   ======================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* ========================================
   平板横屏 (992px - 1199px)
   ======================================== */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-shapes {
        width: 50%;
    }
    
    .shape-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-2 {
        width: 160px;
        height: 160px;
    }
    
    .shape-3 {
        width: 200px;
        height: 200px;
    }
    
    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 页脚 */
    .footer-main {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-2xl);
    }
    
    .footer-divider {
        display: none;
    }
}

/* ========================================
   平板竖屏 (768px - 991px)
   ======================================== */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 var(--spacing-md);
    }
    
    /* 导航栏 */
    .nav-desktop {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hero 区域 */
    .hero {
        min-height: 400px;
        padding: 100px 0 60px;
    }
    
    .hero .container {
        padding-left: var(--spacing-md);
    }
    
    .hero-content {
        max-width: 100%;
        text-align: left;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-desc {
        max-width: 100%;
    }
    
    .hero-shapes {
        width: 100%;
        opacity: 0.4;
    }
    
    .shape-1 {
        width: 200px;
        height: 200px;
        right: 5%;
    }
    
    .shape-2 {
        width: 120px;
        height: 120px;
        right: 30%;
    }
    
    .shape-3 {
        width: 150px;
        height: 150px;
        right: 15%;
    }
    
    /* 区块 */
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-2xl);
    }
    
    .section-title {
        font-size: 24px;
    }
    
    /* 卡片网格 */
    .cards-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 核心优势 */
    .feature-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .feature-text {
        max-width: 100%;
        text-align: center;
    }
    
    .feature-list {
        align-items: center;
    }
    
    /* 行业深耕 */
    .industries-showcase {
        padding: var(--spacing-xl);
    }
    
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
    
    /* 页脚 */
    .footer-main {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .footer-desc {
        max-width: 100%;
    }
    
    .footer-divider {
        display: none;
    }
    
    .footer-links,
    .footer-friendlinks {
        display: flex;
        flex: 1;
        max-width: 45%;
        justify-content: center;
        align-items: center;
    }
}

/* ========================================
   手机横屏 (576px - 767px)
   ======================================== */
@media (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
    
    /* Hero 区域 */
    .hero {
        min-height: 360px;
        padding: 90px 0 50px;
    }
    
    .hero .container {
        padding-left: var(--spacing-md);
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-desc {
        font-size: 14px;
    }
    
    .hero-shapes {
        display: none;
    }
    
    /* 区块 */
    .section {
        padding: 48px 0;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    /* 卡片网格 - 手机端单列布局 */
    .cards-grid-3 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .card {
        padding: var(--spacing-lg);
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
    }
    
    .card-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    /* 核心优势 */
    .feature-content {
        gap: var(--spacing-xl);
    }
    
    .code-preview {
        max-width: 100%;
    }
    
    .code-body {
        padding: var(--spacing-md);
    }
    
    .code-body code {
        font-size: 11px;
    }
    
    /* 行业深耕 */
    .industries-showcase {
        padding: var(--spacing-lg);
    }
    
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
    
    .industry-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .industry-icon {
        width: 44px;
        height: 44px;
    }
    
    .industry-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .industry-name {
        font-size: 12px;
    }
    
    /* 页脚 */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }
    
    .footer-main {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: var(--spacing-xl);
    }
    
    .footer-brand {
        width: 100%;
        text-align: center;
    }
    
    .footer-divider {
        display: none;
    }
    
    .footer-links,
    .footer-friendlinks {
        display: flex;
        flex: 1;
        max-width: 45%;
        justify-content: center;
        align-items: center;
    }
    
    .footer-contact {
        display: none;
    }
    
    .footer-lz {
        display: none;
    }
}

/* ========================================
   手机竖屏 (575px 以下)
   ======================================== */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* 导航栏 */
    .header-inner {
        height: 56px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .mobile-menu {
        top: 56px;
    }
    
    /* Hero 区域 */
    .hero {
        min-height: 320px;
        padding: 80px 0 40px;
    }
    
    .hero .container {
        padding-left: var(--spacing-md);
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-desc {
        font-size: 13px;
        max-width: 100%;
    }
    
    /* 区块 */
    .section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: var(--spacing-sm);
    }
    
    .section-desc {
        font-size: 13px;
    }
    
    /* 卡片网格 */
    .cards-grid-3,
    .cards-grid-4 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .card {
        padding: var(--spacing-lg);
    }
    
    /* 产品卡片 - 手机端两列 */
    .section-mobile .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card .card-title {
        font-size: 14px;
    }
    
    .product-card .card-desc {
        font-size: 12px;
    }
    
    /* 核心优势 */
    .feature-desc {
        font-size: 14px;
    }
    
    .feature-list li {
        font-size: 13px;
    }
    
    /* 代码预览 */
    .code-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .code-body {
        padding: var(--spacing-md);
    }
    
    .code-body code {
        font-size: 10px;
        line-height: 1.5;
    }
    
    /* 行业深耕 */
    .industries-showcase {
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .industry-card {
        padding: var(--spacing-md) var(--spacing-xs);
    }
    
    .industry-icon {
        width: 40px;
        height: 40px;
        border-radius: var(--radius-md);
    }
    
    .industry-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .industry-name {
        font-size: 12px;
    }
    
    /* 页脚 */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }
    
    .footer-main {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: var(--spacing-xl);
    }
    
    .footer-brand {
        width: 100%;
        text-align: center;
    }
    
    .footer-divider {
        display: none;
    }
    
    .footer-links,
    .footer-friendlinks {
        display: flex;
        flex: 1;
        max-width: 45%;
        justify-content: center;
        align-items: center;
    }
    
    .footer-contact {
        display: none;
    }
    
    .footer-title {
        font-size: 13px;
        margin-bottom: var(--spacing-sm);
    }
    
    .footer-list a {
        font-size: 12px;
    }
    
    .footer-bottom {
        padding-top: var(--spacing-lg);
    }
    
    .copyright {
        font-size: 12px;
        text-align: center;
    }
    
    .footer-info {
        flex-direction: column;
        gap: var(--spacing-xs);
        font-size: 11px;
    }
    
    .divider {
        display: none;
    }
}

/* ========================================
   超小屏手机 (375px 以下)
   ======================================== */
@media (max-width: 375px) {
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .card {
        padding: var(--spacing-md);
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industry-name {
        font-size: 11px;
    }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
    .header,
    .mobile-menu,
    .hero-shapes,
    .footer {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
        background: white;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
