/* style.css - Final Master Version */

/* --- 1. VARIABLES & RESET --- */
:root {
    --industrial-blue: #0f172a;
    --tungsten: #1e293b;
    --gold: #d4af37;
    --gold-dim: rgba(212, 175, 55, 0.1);
    --white: #f8fafc;
    --text-gray: #94a3b8;
    --success: #10b981;
    --whatsapp: #25D366;
    --outlook: #0078d4;
    --border-color: rgba(255,255,255,0.1);
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", "Heiti SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-stack);
    background-color: var(--industrial-blue);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    opacity: 0; /* Prevents FOUC */
    transition: opacity 0.3s ease-in;
}

body.loaded { opacity: 1; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* --- 2. UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-gray { color: #64748b; }
.small { font-size: 0.9rem; }
.mt-50 { margin-top: 50px; }
.mb-20 { margin-bottom: 20px; }
.mb-50 { margin-bottom: 50px; }
.full-width { width: 100%; }

/* --- 3. LANGUAGE DISPLAY LOGIC --- */
body.lang-en .show-cn { display: none !important; }
body.lang-cn .show-en { display: none !important; }

/* --- 4. NAVIGATION --- */
.navbar {
    height: 70px;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; color: var(--white); letter-spacing: 1px; }
.nav-links { display: flex; gap: 25px; }
.nav-links a { color: var(--text-gray); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-controls { display: flex; gap: 10px; }

/* --- 5. BUTTONS --- */
.btn-outline {
    border: 1px solid var(--text-gray);
    background: transparent;
    color: var(--white);
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-solid {
    background: var(--gold);
    color: var(--industrial-blue);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-solid:hover { background: #f0c952; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5); }
.btn-solid.large { padding: 15px 45px; font-size: 1.1rem; }

/* --- 6. HERO & HEADERS --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 70px;
    overflow: hidden;
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.15; }
.hero-content { z-index: 1; max-width: 800px; }
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 25px; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.3rem; color: var(--text-gray); margin-bottom: 45px; }

.page-header { background: var(--tungsten); padding: 140px 0 80px 0; text-align: center; border-bottom: 1px solid var(--gold); }
.page-header h1 { font-size: 3rem; color: var(--white); margin-bottom: 15px; }
.page-header p { color: var(--text-gray); font-size: 1.2rem; }

/* --- 7. CARDS & GRIDS --- */
section { padding: 80px 0; }
.section-light { background: var(--white); color: var(--industrial-blue); }
.section-dark { background: var(--tungsten); color: var(--white); }

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 50px; }

.card {
    background: rgba(255,255,255,0.03);
    padding: 35px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card:hover { border-color: var(--gold); transform: translateY(-8px); background: rgba(255,255,255,0.05); }
.card.light-mode { background: #fff; border-color: #e2e8f0; color: var(--industrial-blue); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

/* --- 8. TABLES (SMART LINKS STYLES) --- */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
table { width: 100%; border-collapse: collapse; min-width: 600px; }
thead { background: var(--tungsten); color: var(--white); }
th, td { padding: 18px; text-align: left; border-bottom: 1px solid #e2e8f0; }
tbody tr:last-child td { border-bottom: none; }

/* --- 9. FORMS --- */
.form-box {
    background: var(--white);
    color: var(--industrial-blue);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-top: 6px solid var(--gold);
}
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    transition: 0.3s;
}
.form-control:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-dim); }

/* --- 10. TIMELINE (Guidebook) --- */
.timeline { border-left: 3px solid var(--gold); padding-left: 40px; margin-left: 20px; max-width: 800px; margin: 0 auto; }
.time-block { margin-bottom: 60px; position: relative; }
.time-dot {
    position: absolute; left: -52px; top: 0;
    width: 22px; height: 22px;
    background: var(--gold); border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* --- 11. FLOATING CONTACTS --- */
.floating-contact {
    position: fixed; right: 25px; bottom: 30px;
    display: flex; flex-direction: column; gap: 15px; z-index: 2000;
}
.float-btn {
    width: 55px; height: 55px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    cursor: pointer; transition: 0.3s;
}
.float-whatsapp { background: #25D366; }
.float-wechat { background: #07C160; }
.float-btn:hover { transform: scale(1.1); }

/* --- 12. MODAL --- */
.modal {
    display: none; position: fixed; z-index: 3000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    justify-content: center; align-items: center;
}
.modal-content {
    background-color: #fff; padding: 30px; border-radius: 12px;
    text-align: center; max-width: 350px; width: 90%; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.close-modal {
    position: absolute; top: 10px; right: 20px;
    color: #666; font-size: 28px; font-weight: bold; cursor: pointer;
}

/* --- 13. FOOTER --- */
footer { background: #050a14; padding: 70px 0 30px 0; font-size: 0.95rem; color: var(--text-gray); border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 50px; margin-bottom: 50px; }
.footer-col h4 { color: var(--white); margin-bottom: 25px; font-size: 1.2rem; }
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.contact-item svg { flex-shrink: 0; }

/* --- 14. ANIMATIONS --- */
.fade-in { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.trace { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: 0; } }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .page-header h1 { font-size: 2rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}