:root {
    --primary-color: #1a5f7a;
    --secondary-color: #2c88a0;
    --accent-color: #0099cc;
    --dark-bg: #ffffff;
    --card-bg: #f8f9fa;
    --header-bg: #ffffff;
    --text-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--dark-bg);
    color: var(--text-color);
}

h1, h2, h3, .speed {
    font-family: 'Orbitron', sans-serif;
}

header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 20px rgba(0, 153, 204, 0.1);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
    width: auto;
}

.contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.contact img {
    width: 24px;
    height: 24px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    font-weight: 500;
}

.lang-btn.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

main {
    padding-top: 72px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero {
    background: linear-gradient(-45deg, rgba(26, 95, 122, 0.9), rgba(44, 136, 160, 0.9), rgba(0, 153, 204, 0.9), rgba(0, 119, 182, 0.9)), url('https://images.unsplash.com/photo-1518432031352-d6fc5c10da5a?auto=format&fit=crop&q=80');
    background-size: 400% 400%, cover;
    animation: gradientBG 15s ease infinite;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 2rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.network-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: -4rem auto 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

section {
    padding: 4rem 0;
}

.services, .global-network, .infrastructure, .ip-transit, .why-choose, .iplc-routes {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 400px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.service-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 204, 0.3);
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.route-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.route-card:hover {
    transform: translateY(-5px);
}

.route-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content.packages {
    max-width: 1000px;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--accent-color);
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.package {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.package:hover {
    transform: translateY(-5px);
}

.package.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.package.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 153, 204, 0.3);
}

.package ul {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.package ul li {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.speed {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 1rem 0;
}

.price {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: #666;
}

footer {
    background-color: var(--card-bg);
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.payment-methods {
    text-align: center;
}

.payment-methods img {
    height: 30px;
    margin: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.payment-methods img:hover {
    opacity: 1;
}

[lang="zh"] {
    display: none;
}

.lang-zh [lang="en"] {
    display: none;
}

.lang-zh [lang="zh"] {
    display: block;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .network-stats {
        margin-top: -2rem;
    }
    
    .service-card {
        min-height: 350px;
    }
    
    .modal-content {
        margin: 10% 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .network-stats {
        margin-top: -1rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .service-card {
        min-height: 300px;
    }
}