/* Responsive Styles for Anhui Shanggu Technology */

/* Tablet Styles */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 3%;
    }
    
    .navbar.scrolled {
        padding: 0.75rem 3%;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right var(--transition-medium);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 7vw, 4rem);
    }
    
    .hero-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .app-showcase {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .app-image {
        order: -1;
    }
    
    .store-buttons {
        justify-content: center;
    }
    
    .app-info h2 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2.5rem 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 80px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-content::before,
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -50px;
        right: auto;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .testimonial-content {
        font-size: 1.3rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }
    
    .section {
        padding: var(--spacing-lg) 4%;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 5px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.875rem 2rem;
        font-size: 0.85rem;
    }
    
    .scroll-indicator {
        bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
        letter-spacing: 4px;
    }
    
    .section-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .service-description {
        font-size: 0.95rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
    
    .phone-mockup {
        width: 260px;
        height: 520px;
    }
    
    .floating-element {
        width: 40px;
        height: 40px;
    }
    
    .app-info {
        padding: 1.5rem 0;
    }
    
    .app-info h2 {
        font-size: 2rem;
    }
    
    .app-features li {
        font-size: 0.95rem;
    }
    
    .store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .store-btn {
        width: 100%;
        max-width: 220px;
        padding: 0.75rem 1.25rem;
    }
    
    .testimonial-item {
        padding: 2rem 1rem;
    }
    
    .testimonial-content {
        font-size: 1.1rem;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .footer-description {
        font-size: 0.95rem;
    }
    
    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-legal a {
        font-size: 0.85rem;
    }
    
    .page-header {
        padding: 140px 4% 70px;
    }
    
    .page-title {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 2rem 1.5rem;
    }
    
    .value-icon {
        width: 80px;
        height: 80px;
    }
    
    .value-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .value-card h3 {
        font-size: 1.3rem;
    }
    
    .value-card p {
        font-size: 0.95rem;
    }
    
    .timeline {
        padding-left: 0;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-year {
        font-size: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .news-card {
        border-radius: var(--radius-md);
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-item h4 {
        font-size: 1rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .map-section {
        height: 300px;
    }
    
    .legal-content {
        padding: var(--spacing-md) 1rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 0.95rem;
    }
    
    .ad-platforms-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .ad-platform-item {
        padding: 1rem;
    }
    
    .ad-types-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero {
        min-height: 550px;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .scroll-indicator span {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }
    
    .section-subtitle {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .services-grid,
    .news-grid {
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
        border-radius: 30px;
    }
    
    .phone-mockup::before {
        width: 80px;
        height: 20px;
        top: 15px;
    }
    
    .app-info h2 {
        font-size: 1.75rem;
    }
    
    .app-features li {
        font-size: 0.9rem;
        gap: 0.75rem;
    }
    
    .store-btn {
        max-width: 200px;
        padding: 0.625rem 1rem;
    }
    
    .store-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .testimonial-content {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .testimonial-content::before {
        font-size: 5rem;
        top: -2rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .page-header {
        padding: 120px 4% 60px;
    }
    
    .page-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .values-grid {
        gap: 1rem;
    }
    
    .value-card {
        padding: 1.5rem 1rem;
    }
    
    .value-icon {
        width: 70px;
        height: 70px;
    }
    
    .value-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .timeline-item {
        margin-bottom: 2.5rem;
    }
    
    .timeline-content {
        padding: 1.25rem;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-content {
        padding: 1.25rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .map-section {
        height: 250px;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
        margin: 2rem 0 1rem;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.75rem;
    }
    
    .ad-platforms-grid {
        grid-template-columns: 1fr;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-overlay,
    .page-header::before {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .preloader,
    .scroll-indicator,
    .hero-particles,
    .floating-elements,
    .store-buttons,
    .footer-social {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .footer {
        border-top: 1px solid #ccc;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .preloader-logo {
        animation: none;
    }
    
    .particle {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .hero-subtitle,
    .hero-title,
    .hero-description,
    .hero-buttons {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .reveal,
    .reveal-left,
    .reveal-right,
    .scale-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
