/* 响应式样式表 */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid,
    .features-grid,
    .advantages-grid,
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: 60px;
    }
    
    .timeline-year {
        position: absolute;
        left: -60px;
        top: 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* 手机设备 (576px - 768px) */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* 顶部栏 */
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info span {
        margin-right: 10px;
        margin-left: 10px;
        display: inline-block;
    }
    
    /* 导航栏 */
    .nav-list {
        position: fixed;
        top: 120px;
        left: 0;
        right: 0;
        background-color: var(--white-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-list.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-item a {
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-item:last-child a {
        border-bottom: none;
    }
    
    /* 英雄区域 */
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* 网格布局 */
    .services-grid,
    .features-grid,
    .advantages-grid,
    .support-grid,
    .partners-slider,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .services-detail,
    .partners-grid,
    .team-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    /* 关于我们 */
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    /* 页脚 */
    .footer-section {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--radius);
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: var(--radius);
        width: 100%;
    }
    
    /* 招聘页面 */
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    /* 新闻页面 */
    .news-sidebar {
        order: 2;
    }
    
    .news-main {
        order: 1;
    }
    
    .news-meta {
        flex-wrap: wrap;
    }
    
    .news-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    /* 页面头部 */
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    /* 表单容器 */
    .form-container {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

/* 小手机设备 (小于576px) */
@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .service-card,
    .feature-item,
    .advantage-item,
    .support-item {
        padding: 20px 15px;
    }
    
    .partner-item {
        height: 80px;
        padding: 15px;
    }
    
    .partner-item img {
        max-height: 50px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .news-pagination {
        flex-wrap: wrap;
    }
    
    .page-prev,
    .page-next {
        width: 100%;
        justify-content: center;
        margin: 5px 0;
    }
    
    .page-number {
        min-width: 35px;
        height: 35px;
    }
    
    .timeline-item {
        margin-left: 40px;
    }
    
    .timeline-year {
        left: -40px;
        width: 80px;
        font-size: 1rem;
        padding: 8px;
    }
    
    .timeline-content {
        margin: 0 10px;
        padding: 15px;
    }
    
    /* 卡片内容 */
    .service-detail-header,
    .partner-info,
    .case-content {
        padding: 15px;
    }
    
    .member-photo {
        width: 120px;
        height: 120px;
    }
    
    /* 表单 */
    .form-grid {
        gap: 15px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
    }
}

/* 横屏手机优化 */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 60px 0;
    }
    
    .nav-list {
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .hero .container {
        flex-direction: row;
        text-align: left;
        gap: 30px;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 15px;
    }
}

/* 高分辨率设备 */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* 打印样式 */
@media print {
    .top-bar,
    .navbar,
    .mobile-menu-toggle,
    .hero-buttons,
    .footer,
    .newsletter-form,
    .social-links,
    .footer-social {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline;
    }
    
    .hero,
    .page-header {
        background: none !important;
        color: #000 !important;
        padding: 20px 0 !important;
    }
    
    .hero-content h1,
    .page-header h1 {
        color: #000 !important;
        font-size: 18pt;
    }
    
    .section-padding {
        padding: 20px 0 !important;
    }
    
    .service-card,
    .feature-item,
    .advantage-item,
    .support-item,
    .partner-item,
    .service-detail-item,
    .partner-card,
    .team-member,
    .case-item,
    .news-item {
        box-shadow: none !important;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}