/* ============================================
   Responsive Styles - Xintao Network Technology
   ============================================ */

/* Large Desktop */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-visual {
        width: 500px;
        height: 500px;
        right: -50px;
    }
    
    .about-image-float {
        width: 160px;
        height: 160px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-visual {
        width: 450px;
        height: 450px;
        opacity: 0.3;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }
    
    .about-grid {
        gap: 60px;
    }
    
    .about-image-main {
        height: 400px;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Tablet Landscape */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(100%);
        transition: var(--transition-medium);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu a {
        font-size: 1.5rem;
        color: var(--text-white);
    }
    
    .header.scrolled .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .header.scrolled .nav-menu a {
        color: var(--text-dark);
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .hero {
        min-height: auto;
        padding: 150px 0 100px;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .services {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .service-card {
        padding: 30px;
    }
    
    .apps-section {
        padding: 80px 0;
    }
    
    .about-preview {
        padding: 80px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image {
        order: 2;
    }
    
    .about-content {
        order: 1;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .page-header {
        padding: 150px 0 80px;
    }
    
    .values-section {
        padding: 80px 0;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .timeline-section {
        padding: 80px 0;
    }
    
    .team-section {
        padding: 80px 0;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-section {
        padding: 80px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-form {
        padding: 40px;
    }
    
    .legal-content {
        padding: 80px 0;
    }
    
    .legal-section {
        padding: 40px;
    }
    
    .map-section {
        height: 300px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 25px;
        margin-top: 60px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 35px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .value-card {
        padding: 35px;
    }
    
    .timeline {
        padding: 0 20px;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 40px;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-dot {
        left: 0;
        transform: translateX(-50%);
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .app-card {
        padding: 35px;
    }
    
    .app-header {
        flex-direction: column;
        text-align: center;
    }
    
    .app-buttons {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 1;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-list {
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .legal-section {
        padding: 30px 25px;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-badge {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        margin-top: 50px;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .service-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .apps-section {
        padding: 60px 0;
    }
    
    .app-card {
        padding: 30px 25px;
    }
    
    .app-icon-large {
        width: 70px;
        height: 70px;
    }
    
    .app-icon-large svg {
        width: 35px;
        height: 35px;
    }
    
    .about-preview {
        padding: 60px 0;
    }
    
    .about-image-main {
        height: 300px;
    }
    
    .about-image-float {
        width: 120px;
        height: 120px;
        bottom: -20px;
        right: -10px;
    }
    
    .about-image-float svg {
        width: 50px;
        height: 50px;
    }
    
    .about-features {
        gap: 15px;
    }
    
    .about-feature {
        gap: 12px;
    }
    
    .about-feature-icon {
        width: 45px;
        height: 45px;
    }
    
    .about-feature-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .about-feature span {
        font-size: 0.95rem;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .page-header {
        padding: 130px 0 60px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .values-section {
        padding: 60px 0;
    }
    
    .value-card {
        padding: 30px 25px;
    }
    
    .value-icon {
        width: 80px;
        height: 80px;
    }
    
    .value-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .timeline-section {
        padding: 60px 0;
    }
    
    .timeline-content {
        padding: 25px 20px;
    }
    
    .timeline-year {
        font-size: 1.3rem;
    }
    
    .team-section {
        padding: 60px 0;
    }
    
    .team-image {
        height: 250px;
    }
    
    .team-info {
        padding: 20px;
    }
    
    .news-grid {
        gap: 20px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 25px 20px;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 30px 25px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
    }
    
    .map-section {
        height: 250px;
    }
    
    .legal-content {
        padding: 60px 0;
    }
    
    .legal-section {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .legal-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
        margin: 25px 0 12px;
    }
    
    .legal-section p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    .legal-section ul {
        padding-left: 20px;
    }
    
    .legal-section li {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-brand .logo {
        font-size: 1.3rem;
        justify-content: center;
    }
    
    .footer-brand p {
        font-size: 0.95rem;
    }
    
    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .footer-column ul li {
        margin-bottom: 10px;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .app-card h3 {
        font-size: 1.2rem;
    }
    
    .value-card h3 {
        font-size: 1.2rem;
    }
    
    .about-image-main {
        height: 250px;
    }
    
    .about-image-float {
        width: 100px;
        height: 100px;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .app-card:hover,
    .news-card:hover,
    .team-card:hover,
    .value-card:hover {
        transform: none;
    }
    
    .service-card:active,
    .app-card:active,
    .news-card:active,
    .team-card:active,
    .value-card:active {
        transform: scale(0.98);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .nav-menu a:hover::after,
    .nav-menu a.active::after {
        width: 100%;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-badge {
        animation: none;
    }
    
    .hero-visual {
        animation: none;
    }
    
    .about-image-float {
        animation: none;
    }
    
    .cta-section::before,
    .cta-section::after {
        animation: none;
    }
    
    .about-image-main::before {
        animation: none;
    }
    
    .loader {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-visual,
    .hero-buttons,
    .cta-section,
    .footer-social,
    .contact-form,
    .btn,
    .store-btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero {
        background: #fff;
        color: #000;
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero h1 {
        color: #000;
    }
    
    .section-title h2,
    .page-header h1 {
        color: #000;
    }
    
    .footer {
        background: #fff;
        color: #000;
        border-top: 1px solid #000;
    }
    
    .service-card,
    .app-card,
    .news-card,
    .team-card,
    .value-card,
    .legal-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
    
    .legal-content {
        padding: 40px 0;
    }
    
    .legal-section {
        padding: 30px;
        margin-bottom: 20px;
    }
}
