/* ============================================================
   Haicheng Trade — trade.css
   Homepage CSS (Premium Version)
   ============================================================ */

body.trade-mode {
    background: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.5;
}

#trade-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.trade-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    height: 90px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.trade-logo {
    font-size: 26px;
    font-weight: 800;
    color: #1e40af;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trade-logo::before {
    content: "H";
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 20px;
}

.trade-nav-links {
    display: flex;
    gap: 40px;
}

.trade-nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.trade-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1e40af;
    transition: width 0.3s;
}

.trade-nav-links a:hover {
    color: #1e40af;
}

.trade-nav-links a:hover::after {
    width: 100%;
}

.trade-contact-btn {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    transition: all 0.3s;
}

.trade-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Hero Section */
.trade-hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.trade-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.trade-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.4));
    z-index: 1;
}

.trade-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.trade-hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.trade-hero p {
    font-size: 22px;
    margin-bottom: 40px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.trade-btn {
    display: inline-block;
    background: #f59e0b;
    color: #ffffff;
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    transition: all 0.3s;
}

.trade-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.4);
    background: #fbbf24;
}

/* Features Section */
.trade-features {
    padding: 120px 8%;
    background: #fff;
}

.trade-features h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 70px;
    letter-spacing: -1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    background: #fff;
    padding: 0;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

.feature-card .img-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-card:hover img {
    transform: scale(1.1);
}

.feature-card .text-content {
    padding: 40px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 20px;
}

.feature-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 16px;
}

/* Footer Section */
.trade-footer {
    background: #0f172a;
    color: #f8fafc;
    text-align: center;
    padding: 80px 20px;
    margin-top: auto;
}

.trade-footer p {
    margin-bottom: 15px;
    color: #94a3b8;
}

.trade-footer .logo-footer {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 30px;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    color: #64748b;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* ============================================================
   Mobile Responsiveness
   ============================================================ */
@media (max-width: 768px) {
    .trade-nav {
        padding: 15px 20px;
        height: auto;
    }

    .trade-logo {
        font-size: 16px;
        gap: 8px;
    }

    .trade-logo::before {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .trade-nav-links {
        display: none; /* Hide middle links for space on mobile */
    }

    .trade-contact-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .trade-hero h1 {
        font-size: 38px;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .trade-hero p {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .trade-btn {
        padding: 14px 30px;
        font-size: 16px;
    }

    .trade-features {
        padding: 60px 20px;
    }

    .trade-features h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .features-grid {
        gap: 25px;
    }

    .feature-card .img-wrap {
        height: 200px;
    }

    .feature-card .text-content {
        padding: 25px;
    }

    .feature-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .feature-card p {
        font-size: 14px;
    }

    .trade-footer {
        padding: 50px 20px 30px;
    }

    .trade-footer .logo-footer {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .footer-links a {
        margin: 0;
        font-size: 14px;
    }
}
