@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Sans+TC:wght@300;400;500&family=Noto+Serif+TC:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Backgrounds */
    --bg-deep: #0a0a0a;
    --bg-matte: #111111;
    --bg-card: #1a1a1a;
    --bg-card-glass: rgba(20, 20, 20, 0.7);

    /* Gold Palette (unified with backend) */
    --gold-primary: #C5A059;
    --gold-dark: #A68244;
    --gold-light: #E5C782;
    --gold-gradient: linear-gradient(135deg, #A68244, #C5A059, #E5C782);

    /* Text */
    --text-main: #e0e0e0;
    --text-gray: #888888;
    --text-dim: #666666;
    --text-muted: #444444;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(197, 160, 89, 0.2);

    /* Status Colors */
    --status-success: #51cf66;
    --status-warning: #FBBF24;
    --status-error: #ff5252;
    --status-info: #339af0;

    /* Spacing Scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 40px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Typography */
    --font-serif: 'Playfair Display', 'Noto Serif TC', serif;
    --font-sans: 'Inter', 'Noto Sans TC', sans-serif;
}

body {
    background-color: var(--bg-matte);
    color: var(--text-main);
    font-family: var(--font-sans);
    margin: 0;
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ========================================
   Helpers & Utilities
   ======================================== */
.text-gold-solid {
    color: var(--gold-primary) !important;
}

.text-gold-mid {
    color: var(--gold-primary) !important;
}

.text-gold {
    color: var(--gold-primary);
}

.text-gold-gradient {
    background: var(--gold-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    color: var(--gold-primary);
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.text-slate {
    color: var(--text-gray) !important;
}

.text-white {
    color: #fff !important;
}

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

/* Status colors */
.text-success {
    color: var(--status-success);
}

.text-warning {
    color: var(--status-warning);
}

.text-error {
    color: var(--status-error);
}

/* Spacing utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.p-0 { padding: 0; }

/* Display utilities */
.block { display: block; }
.w-full { width: 100%; }

/* ========================================
   Container
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    gap: 15px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gold-gradient);
    color: #000;
    font-family: var(--font-serif);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border-radius: 2px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text .zh {
    font-size: 1.2rem;
    letter-spacing: 4px;
    font-weight: 500;
    font-family: var(--font-serif);
}

.logo-text .en {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--gold-primary);
    margin-top: 3px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

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

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gold-primary);
    transform: scaleX(0.6);
    transition: transform 0.3s;
}

/* Mobile Menu Styles */
.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

.hamburger {
    background: none;
    border: 1px solid var(--gold-dark);
    color: var(--gold-primary);
    font-size: 1.2rem;
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-matte);
    border-top: 1px solid #333;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px 0;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 15px 40px;
    color: #ccc;
    text-decoration: none;
    border-bottom: 1px solid var(--border-subtle);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.mobile-menu .mobile-portal-btn {
    background: var(--gold-dark);
    color: #000;
    text-align: center;
    margin: 20px 40px 0 40px;
    padding: 12px;
    border: none;
}

/* ========================================
   Typography & Decorations
   ======================================== */
.heading-xl {
    font-size: 3.5rem;
    font-family: var(--font-serif);
    color: #fff;
    margin: 10px 0 20px 0;
    line-height: 1.2;
}

.heading-lg {
    font-size: 2.5rem;
    color: #fff;
    margin: 10px 0 20px 0;
    font-family: var(--font-serif);
}

.subheading {
    letter-spacing: 3px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--gold-primary);
    display: block;
}

.gold-line {
    height: 2px;
    width: 60px;
    background: var(--gold-primary);
    margin: 20px 0;
}

.gold-line-center {
    margin: 20px auto;
}

/* ========================================
   Buttons
   ======================================== */
.btn-executive {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 12px 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-executive:hover {
    background: var(--gold-primary);
    color: #000;
}

.btn-outline {
    background: none;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.85rem;
}

.btn-outline:hover {
    background: rgba(197, 160, 89, 0.1);
}

/* ========================================
   Sections & Hero
   ======================================== */
.section {
    padding: 120px 0;
}

.hero-executive {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.12) 0%, transparent 70%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 2px),
        radial-gradient(circle at center, #1b1b1b 0%, #050505 100%);
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
    padding: 180px 0;
    min-height: 500px;
    position: relative;
}

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

.hero-subtitle {
    display: block;
    color: var(--gold-primary);
    font-size: 0.85rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-title {
    font-size: 4rem;
    font-family: var(--font-serif);
    color: #fff;
    margin: 0;
    line-height: 1.1;
    font-weight: 400;
    background: linear-gradient(to right, #fff 20%, #e0e0e0 50%, #fff 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    color: #fff;
}

/* ========================================
   Grid System
   ======================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ========================================
   Cards
   ======================================== */
.card-corporate {
    background: var(--bg-card);
    border: 1px solid #333;
    padding: 40px;
    transition: all 0.4s ease;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    border-radius: 2px;
}

.card-corporate:hover {
    border-color: var(--gold-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Form Inputs
   ======================================== */
.form-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: #fff;
    padding: 12px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: #222;
}

select.form-input {
    appearance: auto;
}

/* ========================================
   Financial Tables
   ======================================== */
.table-financial {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table-financial th {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--gold-dark);
    color: var(--gold-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.table-financial td {
    padding: 15px;
    border-bottom: 1px solid #333;
    color: #ccc;
}

.table-financial tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Scrollable Tables for Mobile */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
}

.table-financial {
    min-width: 600px;
}

/* ========================================
   Responsive — Mobile Nav Switch
   ======================================== */
@media (max-width: 900px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* ========================================
   Responsive — Tablet / Content Pages
   ======================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .card-corporate {
        padding: 20px;
    }

    .section {
        padding: 80px 0;
    }

    .heading-xl {
        font-size: 2.2rem;
    }

    .heading-lg {
        font-size: 1.6rem;
    }

    .grid-2,
    .grid-3,
    .folder-grid {
        grid-template-columns: 1fr;
    }

    .folder-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .folder-card {
        padding: 15px;
    }

    .folder-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-executive {
        padding: 100px 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .btn-executive {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ========================================
   Responsive — Small Phone
   ======================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .card-corporate {
        padding: 16px;
    }

    .heading-lg {
        font-size: 1.4rem;
    }
}
