/* Shared Variables & Reset */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #6366f1;
    --accent: #06b6d4;
    --dark-bg: #0f172a;
    --section-bg: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.6);
    --text-light: #f8fafc;
    --text-dim: #cbd5e1;
    --text-gray: #94a3b8;
    --gradient-main: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --glass: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: var(--glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    background: var(--gradient-main);
    border-radius: 6px;
    transform: rotate(45deg);
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--text-light);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Page Hero */
.page-hero {
    padding: 160px 0 60px;
    background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.15), transparent 60%);
    text-align: center;
    margin-bottom: 2rem;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Download Sections */
.download-category {
    padding: 6rem 0;
    /* More spacing between categories */
    border-bottom: 1px solid var(--glass-border);
}

.download-category:last-of-type {
    border-bottom: none;
}

.category-header {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: rgba(14, 165, 233, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.category-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

/* Download Item List */
.download-list {
    display: grid;
    gap: 1.5rem;
}

.download-item {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 80px 1fr 180px 120px 140px 160px;
    align-items: center;
    gap: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-item:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* File Type Tags */
.file-type-tag {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    background: var(--section-bg);
    border: 1px solid var(--glass-border);
}

.type-pdf {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.2);
}

.type-zip {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.2);
}

.type-exe {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.2);
}

.type-img {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.2);
}

.type-code {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.2);
}

.file-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.file-info p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.product-info,
.version-info,
.date-info {
    font-size: 0.95rem;
    color: var(--text-dim);
}

.label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.btn-download {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.85rem 0;
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.5);
}

.btn-download::after {
    content: '↓';
    font-size: 1.2rem;
}

/* Disclaimer Section */
.disclaimer-section {
    background: var(--section-bg);
    padding: 6rem 0;
    margin-top: 4rem;
}

.disclaimer-box {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
}

.disclaimer-box h4 {
    color: var(--accent);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.disclaimer-box p {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.9;
}

.contact-box {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact-box a {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid rgba(14, 165, 233, 0.3);
}

.contact-box a:hover {
    border-bottom-color: var(--primary);
}

/* Footer (Standardized) */
footer {
    background: #020617;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-list li {
    margin-bottom: 1rem;
    color: var(--text-gray);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.copyright {
    text-align: center;
    color: #475569;
    font-size: 0.875rem;
}

/* Responsive (Premium Adjustments) */
@media (max-width: 1200px) {
    .download-item {
        grid-template-columns: 80px 1fr 150px 120px 160px;
        gap: 1.5rem;
    }

    .product-info {
        display: none;
    }
}

@media (max-width: 992px) {
    .download-item {
        grid-template-columns: 80px 1fr 120px 160px;
    }

    .version-info {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .download-item {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2.5rem;
    }

    .file-type-tag {
        margin: 0 auto;
    }

    .btn-download {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}