:root {
    --primary-color: #FF5722;
    --primary-dark: #E64A19;
    --primary-light: #FF8A65;
    --secondary-color: #0056b3;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F5F7FA;
    --white: #FFFFFF;
    --border-radius: 8px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #95a5a6;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.section-padding { padding: 4rem 0; }

.geo-data {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.geo-data th, .geo-data td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.geo-data th {
    background-color: #fafafa;
    font-weight: 600;
    color: var(--text-color);
}

.geo-data tr:hover {
    background-color: #f9f9f9;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Navbar Mobile Layout */
    .navbar {
        height: auto;
        padding: 10px 0;
    }

    .navbar .container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo {
        order: 1;
        font-size: 1.3rem;
    }
    
    .logo img {
        height: 32px;
    }

    .btn-primary {
        order: 2;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
        gap: 1.5rem;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    /* Hide scrollbar for nav-links */
    .nav-links::-webkit-scrollbar {
        display: none;
    }

    /* Grids stack vertically */
    .feature-grid, 
    .news-grid, 
    .stats-grid,
    .role-selector { 
        grid-template-columns: 1fr !important;
        display: grid !important;
    }

    /* Hero adjustments */
    .hero {
        padding: 4rem 0 2rem;
    }

    .hero h1 {
        font-size: 2rem !important;
    }

    .hero-search-box {
        flex-direction: column;
        padding: 5px;
        border-radius: 12px;
    }

    .hero-search-box input {
        border-radius: 8px;
        margin-bottom: 10px;
        text-align: center;
    }

    .hero-search-box button {
        width: 100%;
        border-radius: 8px;
    }

    /* Table horizontal scroll */
    .geo-data {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Stats grid mobile */
    .stats-grid {
        flex-direction: column;
        gap: 2rem;
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-column {
        width: 100%;
    }
}
