/* ===== 深桃紅科技風配色 ===== */
:root {
    --primary-pink: #c81a75;        /* 主深桃紅 */
    --secondary-pink: #a01560;      /* 次深桃紅 */
    --accent-pink: #e63989;         /* 亮桃紅 */
    --deep-pink: #8a1251;           /* 極深桃紅 */
    --coral-pink: #751043;          /* 暗桃紅 */
    --light-pink: #f099c3;          /* 淺桃紅 */
    --pale-pink: #fce4ef;           /* 極淺粉 */
    --cream: #fff8fb;               /* 奶油粉 */
    --white: #FFFFFF;
    --dark-text: #2a2a2a;
    --light-text: #555555;
    --shadow: rgba(200, 26, 117, 0.15);
}

/* ===== 全域樣式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: var(--dark-text);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 導航列 ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(200, 26, 117, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo svg {
    display: block;
    transition: transform 0.3s ease;
}

.nav-logo:hover svg {
    transform: scale(1.05);
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--light-pink);
    letter-spacing: 2px;
    padding-left: 0.5rem;
    border-left: 2px solid var(--accent-pink);
    margin-left: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 1.2rem;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-pink);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-pink);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===== 英雄區塊 ===== */
.hero {
    padding: 150px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0) 0%, rgba(200, 26, 117, 0.1) 100%);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-pink), var(--accent-pink), var(--primary-pink));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* ===== 按鈕樣式 ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-pink), var(--deep-pink));
    color: white;
    box-shadow: 0 10px 30px rgba(200, 26, 117, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(200, 26, 117, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
}

.btn-secondary:hover {
    background: var(--primary-pink);
    color: white;
}

/* ===== 卡片樣式 ===== */
.module-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 26, 117, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(200, 26, 117, 0.3);
    border-color: var(--primary-pink);
    background: rgba(255, 255, 255, 0.08);
}

.module-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.module-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.module-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===== 模組區塊 ===== */
.modules-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-pink), var(--accent-pink));
    border-radius: 2px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ===== 頁尾 ===== */
.footer {
    background: rgba(26, 26, 46, 0.95);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    margin-top: 80px;
    border-top: 1px solid rgba(200, 26, 117, 0.2);
}

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

.footer-text {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--accent-pink);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-pink);
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 動畫類 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(200, 26, 117, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(200, 26, 117, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(200, 26, 117, 0);
    }
}

/* ===== 科技感元素 ===== */
.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
    background-image: 
        linear-gradient(rgba(200, 26, 117, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 26, 117, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
}

.glow-text {
    text-shadow: 
        0 0 10px rgba(200, 26, 117, 0.5),
        0 0 20px rgba(200, 26, 117, 0.3),
        0 0 30px rgba(200, 26, 117, 0.2);
}