/* 响应式样式 */

/* ========== 超大屏幕 (1200px 以上) ========== */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* ========== 大屏幕 (992px - 1199px) ========== */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .carousel-caption h2 {
        font-size: 40px;
    }
    
    .carousel-caption p {
        font-size: 20px;
    }
}

/* ========== 中等屏幕 (768px - 991px) ========== */
@media (max-width: 991px) {
    .header .row {
        align-items: flex-start;
    }
    
    .logo {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        display: inline-block;
    }
    
    .header-right {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .carousel-item {
        height: 450px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .about-content h3 {
        font-size: 24px;
    }
    
    .about-media {
        margin-top: 30px;
    }
}

/* ========== 小屏幕 (576px - 767px) ========== */
@media (max-width: 767px) {
    .header {
        padding: 8px 0;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .search-box {
        width: 100px;
    }
    
    .search-box .form-control {
        font-size: 12px;
    }
    
    .btn-login,
    .btn-register {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .phone-box .phone-link {
        font-size: 14px;
    }
    
    .navbar-collapse {
        background: #fff;
        padding: 10px 0;
        border-top: 1px solid #eee;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    main {
        margin-top: 120px;
    }
    
    .banner-section {
        margin-top: 0;
    }
    
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        bottom: 15%;
    }
    
    .carousel-caption h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    .section-title p {
        font-size: 14px;
    }
    
    /* 产品中心 */
    .product-card {
        margin-bottom: 20px;
    }
    
    .product-card img {
        height: 180px;
    }
    
    .product-card .card-title {
        font-size: 18px;
    }
    
    /* 服务 */
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .service-card h4 {
        font-size: 18px;
    }
    
    /* 成功案例 */
    .case-item {
        min-width: 250px;
        max-width: 250px;
    }
    
    .case-item img {
        height: 180px;
    }
    
    /* 关于我们 */
    .about-content h3 {
        font-size: 22px;
    }
    
    .about-content p {
        font-size: 14px;
    }
    
    .about-stats {
        gap: 15px;
    }
    
    .stat-item h3 {
        font-size: 28px;
    }
    
    .stat-item p {
        font-size: 12px;
    }
    
    /* 新闻 */
    .news-column {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .news-column-title {
        font-size: 20px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
    }
    
    .news-image img {
        height: 120px;
    }
    
    .news-content h4 {
        font-size: 16px;
    }
    
    /* 页脚 */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-column {
        margin-bottom: 30px;
    }
    
    .footer-column h4 {
        font-size: 16px;
    }
    
    .footer-column ul li a {
        font-size: 13px;
    }
    
    .footer-bottom .row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    /* 右侧悬浮 */
    .fixed-sidebar {
        right: 5px;
        gap: 10px;
    }
    
    .sidebar-item {
        width: 35px;
        height: 35px;
    }
    
    .sidebar-icon {
        font-size: 16px;
    }
    
    .sidebar-tooltip {
        right: 50px;
    }
    
    .qrcode-content img {
        width: 100px;
        height: 100px;
    }
}

/* ========== 超小屏幕 (575px 以下) ========== */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .header .row {
        align-items: center;
    }
    
    .logo {
        text-align: left;
        margin-bottom: 0;
    }
    
    .logo img {
        max-height: 35px;
    }
    
    .col-md-6,
    .col-md-3 {
        margin-bottom: 10px;
    }
    
    .search-box {
        width: 80px;
    }
    
    .auth-box {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-login,
    .btn-register {
        width: 100%;
        text-align: center;
    }
    
    .phone-box {
        display: none;
    }
    
    /* 导航 */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    .navbar-nav .nav-link {
        padding: 12px;
        display: block;
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    /* 轮播图 */
    .carousel-item {
        height: 280px;
    }
    
    .carousel-caption {
        bottom: 10%;
    }
    
    .carousel-caption h2 {
        font-size: 20px;
    }
    
    .carousel-caption p {
        font-size: 13px;
        display: none;
    }
    
    /* 区块 */
    section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title p {
        font-size: 13px;
    }
    
    /* 产品 */
    .product-card img {
        height: 160px;
    }
    
    .product-card .card-title {
        font-size: 16px;
    }
    
    .product-card .card-text {
        font-size: 12px;
    }
    
    /* 服务 */
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-card h4 {
        font-size: 16px;
    }
    
    .service-card p {
        font-size: 12px;
    }
    
    /* 案例 */
    .case-item {
        min-width: 200px;
        max-width: 200px;
    }
    
    .case-item img {
        height: 150px;
    }
    
    .case-overlay h5 {
        font-size: 14px;
    }
    
    .case-overlay p {
        font-size: 12px;
    }
    
    .case-prev,
    .case-next {
        width: 35px;
        height: 35px;
    }
    
    /* 关于我们 */
    .about-content h3 {
        font-size: 20px;
    }
    
    .about-content p {
        font-size: 13px;
    }
    
    .stat-item h3 {
        font-size: 24px;
    }
    
    .stat-item p {
        font-size: 11px;
    }
    
    .btn-play {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    /* 新闻 */
    .news-column {
        padding: 15px;
    }
    
    .news-column-title {
        font-size: 18px;
    }
    
    .news-content h4 {
        font-size: 15px;
    }
    
    .news-content p {
        font-size: 13px;
    }
    
    /* 页脚 */
    .footer-column h4 {
        font-size: 15px;
    }
    
    .footer-column ul li {
        margin-bottom: 8px;
    }
    
    .footer-column ul li a {
        font-size: 12px;
    }
    
    .copyright,
    .icp {
        font-size: 12px;
    }
}

/* ========== 横屏模式 ========== */
@media (max-height: 500px) and (orientation: landscape) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 5%;
    }
    
    section {
        padding: 30px 0;
    }
}

/* ========== 打印样式 ========== */
@media print {
    .header,
    .fixed-sidebar,
    .carousel-control,
    .case-prev,
    .case-next {
        display: none;
    }
    
    body {
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ========== 高对比度模式 ========== */
@media (prefers-contrast: high) {
    .btn-login,
    .btn-register,
    .sidebar-item {
        border: 2px solid;
    }
}

/* ========== 减少动画模式 ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
