/* 响应式设计样式 */

/* 小屏幕设备 (最大宽度: 576px) */
@media (max-width: 576px) {
    /* 基础样式调整 */
    body {
        font-size: 0.875rem;
    }
    
    /* 容器调整 */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* 导航栏 */
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand span {
        display: none;
    }
    
    /* Hero区域 */
    .hero-gradient {
        padding: 3rem 0;
    }
    
    .hero-gradient h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-gradient p {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    
    /* 按钮样式 */
    .gc-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* 网格布局 */
    .grid-cols-1-md-2,
    .grid-cols-1-md-3 {
        grid-template-columns: 1fr;
    }
    
    /* 区块间距 */
    section {
        padding: 2rem 0;
    }
    
    /* 标题样式 */
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* 卡片样式 */
    .gc-card {
        margin-bottom: 1rem;
    }
    
    .gc-card-header,
    .gc-card-body,
    .gc-card-footer {
        padding: 0.75rem;
    }
    
    /* 滚动区域 */
    .scroll-vertical,
    .scroll-horizontal {
        animation-duration: 30s;
    }
    
    /* 页脚 */
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* 图片容器 */
    .image-container {
        height: 12rem;
    }
    
    /* 列表样式 */
    ul, ol {
        padding-left: 1.5rem;
    }
    
    /* 表单元素 */
    .gc-form-control {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    /* 面包屑导航 */
    .breadcrumb {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 0.25rem;
    }
}

/* 平板设备 (最小宽度: 577px, 最大宽度: 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    /* 基础样式调整 */
    body {
        font-size: 0.9375rem;
    }
    
    /* 容器调整 */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* 导航栏 */
    .navbar-brand span {
        font-size: 1.125rem;
    }
    
    /* Hero区域 */
    .hero-gradient {
        padding: 4rem 0;
    }
    
    .hero-gradient h1 {
        font-size: 2.25rem;
        line-height: 1.3;
    }
    
    /* 网格布局 */
    .grid-cols-1-md-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-1-md-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 区块间距 */
    section {
        padding: 3rem 0;
    }
    
    /* 页脚 */
    .footer .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 图片容器 */
    .image-container {
        height: 14rem;
    }
}

/* 小屏桌面设备 (最小宽度: 769px, 最大宽度: 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    /* 容器调整 */
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* 导航栏 */
    .navbar-brand span {
        font-size: 1.25rem;
    }
    
    /* Hero区域 */
    .hero-gradient {
        padding: 5rem 0;
    }
    
    /* 网格布局 */
    .grid-cols-1-md-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 区块间距 */
    section {
        padding: 4rem 0;
    }
    
    /* 图片容器 */
    .image-container {
        height: 16rem;
    }
}

/* 中屏桌面设备 (最小宽度: 993px, 最大宽度: 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
    /* 容器调整 */
    .container {
        max-width: 960px;
    }
    
    /* Hero区域 */
    .hero-gradient {
        padding: 6rem 0;
    }
    
    /* 区块间距 */
    section {
        padding: 5rem 0;
    }
    
    /* 图片容器 */
    .image-container {
        height: 18rem;
    }
}

/* 大屏桌面设备 (最小宽度: 1201px, 最大宽度: 1400px) */
@media (min-width: 1201px) and (max-width: 1400px) {
    /* 容器调整 */
    .container {
        max-width: 1140px;
    }
    
    /* Hero区域 */
    .hero-gradient {
        padding: 7rem 0;
    }
    
    /* 图片容器 */
    .image-container {
        height: 20rem;
    }
}

/* 超大屏设备 (最小宽度: 1401px) */
@media (min-width: 1401px) {
    /* 容器调整 */
    .container {
        max-width: 1320px;
    }
    
    /* Hero区域 */
    .hero-gradient {
        padding: 8rem 0;
    }
    
    /* 图片容器 */
    .image-container {
        height: 22rem;
    }
}

/* 横屏设备 */
@media (max-height: 576px) and (orientation: landscape) {
    /* Hero区域 */
    .hero-gradient {
        padding: 2rem 0;
    }
    
    .hero-gradient h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-gradient p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    /* 滚动区域 */
    .scroll-vertical {
        height: 12rem;
    }
}

/* 响应式工具类 */

/* 显示/隐藏类 */
@media (max-width: 576px) {
    .d-none-xs {
        display: none !important;
    }
    
    .d-block-xs {
        display: block !important;
    }
    
    .d-flex-xs {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .d-none-sm {
        display: none !important;
    }
    
    .d-block-sm {
        display: block !important;
    }
    
    .d-flex-sm {
        display: flex !important;
    }
}

@media (max-width: 992px) {
    .d-none-md {
        display: none !important;
    }
    
    .d-block-md {
        display: block !important;
    }
    
    .d-flex-md {
        display: flex !important;
    }
}

@media (max-width: 1200px) {
    .d-none-lg {
        display: none !important;
    }
    
    .d-block-lg {
        display: block !important;
    }
    
    .d-flex-lg {
        display: flex !important;
    }
}

/* 文本对齐类 */
@media (max-width: 576px) {
    .text-center-xs {
        text-align: center !important;
    }
    
    .text-left-xs {
        text-align: left !important;
    }
    
    .text-right-xs {
        text-align: right !important;
    }
}

@media (max-width: 768px) {
    .text-center-sm {
        text-align: center !important;
    }
    
    .text-left-sm {
        text-align: left !important;
    }
    
    .text-right-sm {
        text-align: right !important;
    }
}

/* 间距调整类 */
@media (max-width: 576px) {
    .mt-0-xs {
        margin-top: 0 !important;
    }
    
    .mb-0-xs {
        margin-bottom: 0 !important;
    }
    
    .pt-0-xs {
        padding-top: 0 !important;
    }
    
    .pb-0-xs {
        padding-bottom: 0 !important;
    }
}

/* 响应式导航菜单 */
@media (max-width: 768px) {
    .mobile-menu-overlay {
        z-index: 50;
    }
    
    .mobile-menu-overlay .menu-content {
        width: 240px;
        padding: 1.5rem;
    }
    
    .mobile-menu-overlay .menu-content a {
        font-size: 1rem;
        padding: 0.75rem 0;
    }
}

/* 响应式滚动区域 */
@media (max-width: 768px) {
    .scroll-vertical {
        height: 18rem;
    }
    
    .scroll-horizontal {
        height: 6rem;
    }
    
    /* 调整滚动速度 */
    @keyframes scroll-vertical {
        0% { transform: translateY(0); }
        100% { transform: translateY(-50%); }
    }
    
    @keyframes scroll-horizontal {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    /* 移除悬停效果 */
    .hover-lift:hover,
    .gc-card:hover,
    .gc-box:hover {
        transform: none;
        box-shadow: none;
    }
    
    .gc-button:hover {
        transform: none;
        box-shadow: none;
    }
    
    .image-container:hover img {
        transform: none;
    }
    
    /* 添加触摸反馈 */
    .gc-button:active {
        background-color: var(--color-dark);
        transform: scale(0.98);
    }
    
    .gc-card:active,
    .gc-box:active {
        background-color: var(--color-gray-light);
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #0000cc;
        --color-text-dark: #000000;
        --color-text-light: #333333;
        --color-gray: #999999;
    }
    
    .gc-card,
    .gc-box,
    .gc-form-control {
        border-width: 2px;
    }
}

/* 减少动画模式支持 */
@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;
    }
    
    .scroll-vertical,
    .scroll-horizontal {
        animation: none;
    }
}