/* 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: 2.5rem;
    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;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.page-hero p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 4rem 0 8rem;
}

/* Info Section */
.info-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.info-desc {
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.contact-card-list {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.5);
    transform: translateY(-5px);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.card-content p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Form Section */
.form-section {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    padding: 3.5rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dim);
}

label span {
    color: #ef4444;
    margin-left: 4px;
}

input,
select,
textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.privacy-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2rem 0;
}

.privacy-row input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
    cursor: pointer;
}

.privacy-text {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.btn-submit {
    width: 100%;
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 1.1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(14, 165, 233, 0.6);
}

.response-commitment {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
}

/* Footer */
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 */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-section {
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}