/* ============================================
   LinkwayFDI - Complete Style System
   Version: Final Integration
   ============================================ */

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

:root {
    --primary-color: #2C5F6F;
    --secondary-color: #5FA8BC;
    --accent-color: #D4AF37;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #fff;
}

/* ============================================
   Language Selector (Top Right Corner)
   ============================================ */
.language-selector {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
}

.lang-button {
    background: white;
    border: 2px solid #2C5F6F;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2C5F6F;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.lang-button:hover {
    background: #2C5F6F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    padding: 20px;
    min-width: 350px;
    max-height: 450px;
    overflow-y: auto;
    display: none;
    border: 2px solid #2C5F6F;
}

.lang-dropdown.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.lang-option {
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    background: white;
}

.lang-option:hover {
    background: #f0f7f9;
    border-color: #2C5F6F;
    transform: translateX(3px);
}

.lang-option.active {
    background: #2C5F6F;
    color: white;
    border-color: #2C5F6F;
}

.lang-option.active:hover {
    transform: none;
}

/* ============================================
   Top Banner
   ============================================ */
.top-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

.top-banner strong {
    font-weight: 700;
}

/* ============================================
   Navigation with Updated Logo
   ============================================ */
nav {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-main {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-badges {
    display: flex;
    gap: 6px;
}

.badge-fdi,
.badge-odi {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-fdi {
    background: #E74C3C;
    color: white;
}

.badge-odi {
    background: #FFD700;
    color: #1a1a1a;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

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

.cta-group {
    display: flex;
    gap: 15px;
}

.cta-btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.cta-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   Investment Ticker / Scrolling Projects
   ============================================ */
.investment-ticker {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 60px 40px;
    overflow: hidden;
}

.ticker-header {
    text-align: center;
    margin-bottom: 50px;
}

.ticker-badge {
    display: inline-block;
    background: #f0f7f9;
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.ticker-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.ticker-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.ticker-container {
    position: relative;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    gap: 30px;
    animation: scroll 30s linear infinite;
    will-change: transform;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-card {
    flex: 0 0 400px;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

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

.ticker-card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.ticker-icon {
    font-size: 36px;
}

.ticker-card-title {
    flex: 1;
}

.ticker-card-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.ticker-card-title .location {
    font-size: 14px;
    color: var(--text-light);
}

.ticker-card-description {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ticker-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.ticker-amount {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
}

.ticker-btn {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.ticker-btn:hover {
    background: var(--secondary-color);
}

/* ============================================
   Database/Zones Specific Styles
   ============================================ */
.hero {
    background: linear-gradient(135deg, #1a4a5a 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 40px 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
}

.stats-row {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Search and Filter Section */
.search-filter {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 -10px 50px rgba(0,0,0,0.1);
    margin: -60px auto 60px;
    max-width: 1200px;
    position: relative;
    z-index: 10;
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44,95,111,0.1);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Zone Cards Grid */
.zones-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.zone-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.zone-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.zone-header {
    margin-bottom: 20px;
}

.zone-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.zone-location {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.zone-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.zone-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.zone-badge.national {
    background: #E74C3C;
    color: white;
}

.zone-badge.provincial {
    background: #3498DB;
    color: white;
}

.zone-badge.city {
    background: #95A5A6;
    color: white;
}

.zone-industries {
    margin-bottom: 20px;
}

.zone-industries h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.industry-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.industry-tag {
    padding: 5px 10px;
    background: var(--bg-light);
    border-radius: 5px;
    font-size: 12px;
    color: var(--text-dark);
}

.zone-incentives {
    margin-bottom: 20px;
}

.zone-incentives h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.zone-incentives ul {
    list-style: none;
    padding: 0;
}

.zone-incentives li {
    padding: 5px 0;
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.zone-incentives li:before {
    content: "✓";
    color: #27AE60;
    font-weight: bold;
}

.zone-footer {
    display: flex;
    gap: 10px;
}

.zone-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.zone-btn.primary {
    background: var(--primary-color);
    color: white;
}

.zone-btn.primary:hover {
    background: var(--secondary-color);
}

.zone-btn.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.zone-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: linear-gradient(135deg, #1a2332 0%, #2C5F6F 100%);
    color: white;
    padding: 80px 40px 40px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37 0%, #5FA8BC 50%, #D4AF37 100%);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #D4AF37;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.9;
    opacity: 0.95;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.footer-column strong {
    color: #5FA8BC;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 10px 0;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
    padding-left: 15px;
}

.footer-column a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s;
}

.footer-column a:hover {
    color: #D4AF37;
    padding-left: 20px;
}

.footer-column a:hover::before {
    opacity: 1;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 2px solid rgba(255,255,255,0.15);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .zones-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .zones-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nav-links {
        display: none;
    }
    
    .ticker-card {
        flex: 0 0 300px;
    }
    
    .ticker-title {
        font-size: 32px;
    }
}

/* ============================================
   Text Badges (替代Emoji图标)
   ============================================ */
.text-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2C5F6F, #5FA8BC);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(44,95,111,0.2);
}

.ticker-icon .text-badge {
    font-size: 14px;
    padding: 8px 16px;
}

/* Logo SVG 样式 */
.logo img {
    height: 50px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
}

/* ============================================
   Responsive Design - Footer
   ============================================ */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 60px 30px 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .footer-column h4 {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .footer-column p,
    .footer-column a {
        font-size: 13px;
    }
    
    .language-selector {
        top: 60px;
        right: 10px;
    }
    
    .lang-button {
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .lang-dropdown {
        min-width: 300px;
        padding: 15px;
        max-height: 350px;
    }
    
    .lang-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .lang-dropdown {
        min-width: 250px;
        right: -10px;
    }
}
