<!DOCTYPE html>
<html lang="zh-TW">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI 永續設計學院 - 活動入口網</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="css/style.css">
    <style>
        :root {
            --primary: #8B5CF6;
            --primary-dark: #6D28D9;
            --primary-light: #EDE9FE;
            --primary-lighter: #F5F3FF;
            --text: #1F2937;
            --text-secondary: #6B7280;
            --border: #E5E7EB;
            --bg: #F9FAFB;
            --radius-sm: 8px;
            --radius-lg: 12px;
            --transition: 0.2s ease;
        }

        body {
            background: #0F172A;
            color: white;
        }

        .main-nav {
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
        }

        .nav-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 2rem;
        }

        .nav-brand {
            display: flex;
            align-items: center;
            gap: 1rem;
            text-decoration: none;
            color: white;
        }

        .nav-brand img {
            height: 40px;
            width: auto;
        }

        .nav-brand h1 {
            font-size: 1.25rem;
            font-weight: 600;
            margin: 0;
            background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

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

        .nav-menu a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-weight: 500;
            font-size: 0.875rem;
            transition: all 0.2s ease;
        }

        .nav-menu a:hover {
            color: white;
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-1px);
        }

        .nav-menu a.active {
            color: white;
            background: var(--primary);
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .nav-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 500;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .nav-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-1px);
        }

        .nav-btn.primary {
            background: var(--primary);
            border: none;
            padding: 0.5rem 1.25rem;
        }

        .nav-btn.primary:hover {
            background: var(--primary-dark);
            box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
        }

        .nav-btn i {
            font-size: 1rem;
        }

        @media (max-width: 768px) {
            .nav-container {
                padding: 1rem;
            }

            .nav-brand h1 {
                display: none;
            }

            .nav-menu {
                display: none;
            }

            .nav-btn span {
                display: none;
            }

            .nav-btn {
                padding: 0.5rem;
            }

            .nav-btn.primary {
                padding: 0.5rem;
            }

            .nav-btn i {
                margin: 0;
            }
        }

        .hero-section {
            position: relative;
            background: none;
            padding: 8rem 0;
            margin-bottom: 4rem;
            min-height: 80vh;
            display: flex;
            align-items: center;
            overflow: hidden;
            margin-top: 72px;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: -72px;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 60%),
                radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.1), transparent 60%);
            z-index: -1;
        }

        .stars {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        .star {
            position: absolute;
            width: 2px;
            height: 2px;
            background: white;
            border-radius: 50%;
            opacity: 0;
            animation: twinkle var(--duration) linear infinite;
            animation-delay: var(--delay);
        }

        .star.small {
            width: 1px;
            height: 1px;
        }

        .star.medium {
            width: 2px;
            height: 2px;
        }

        .star.large {
            width: 3px;
            height: 3px;
        }

        @keyframes twinkle {
            0% {
                opacity: 0;
                transform: translateY(0);
            }
            10% {
                opacity: 1;
            }
            50% {
                opacity: 0.2;
            }
            90% {
                opacity: 1;
            }
            100% {
                opacity: 0;
                transform: translateY(-20px);
            }
        }

        .shooting-star {
            position: absolute;
            width: 150px;
            height: 2px;
            background: linear-gradient(90deg, 
                rgba(255,255,255,0) 0%, 
                rgba(255,255,255,0.8) 50%, 
                rgba(255,255,255,0) 100%);
            opacity: 0;
            filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
            transform-origin: left center;
            animation: shooting var(--duration) linear infinite;
            animation-delay: var(--delay);
        }

        @keyframes shooting {
            0% {
                opacity: 0;
                transform: translateX(-200px) translateY(200px) rotate(-45deg);
            }
            5% {
                opacity: 1;
            }
            15% {
                opacity: 1;
            }
            30%, 100% {
                opacity: 0;
                transform: translateX(400px) translateY(-400px) rotate(-45deg);
            }
        }

        .hero-content {
            position: relative;
            z-index: 2;
            padding-right: 2rem;
        }

        .hero-image {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 50%;
            height: 100%;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: flex-end;
        }

        .hero-image img {
            width: auto;
            height: 90%;
            max-height: 800px;
            object-fit: contain;
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-20px);
            }
            100% {
                transform: translateY(0px);
            }
        }

        @media (max-width: 991px) {
            .hero-section {
                padding: 6rem 0;
                min-height: auto;
            }

            .hero-image {
                position: relative;
                width: 100%;
                height: auto;
                transform: none;
                margin-top: 3rem;
            }

            .hero-image img {
                width: 100%;
                height: auto;
                max-width: 500px;
                margin: 0 auto;
            }

            .hero-content {
                padding-right: 0;
                text-align: center;
            }

            .hero-section .lead {
                margin-left: auto;
                margin-right: auto;
            }
        }

        .hero-section h1 {
            font-size: 4rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1.2;
        }

        .hero-section .lead {
            font-size: 1.25rem;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 2.5rem;
            max-width: 600px;
        }

        .hero-section .btn-primary {
            background: var(--primary);
            color: white;
            padding: 1rem 2rem;
            border-radius: 50px;
            font-weight: 500;
            border: none;
            transition: all 0.3s ease;
        }

        .hero-section .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
        }

        .stats-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: var(--radius-lg);
            padding: 2rem;
            color: white;
        }

        .stats-card h3 {
            color: rgba(255, 255, 255, 0.8);
            font-size: 1rem;
            margin-bottom: 1rem;
        }

        .stats-card i {
            color: var(--primary);
        }

        .stats-card .h2 {
            color: white;
            font-weight: 600;
        }

        /* Keep existing activity and news card styles */
        .activity-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2rem;
            padding: 2rem 0;
            position: relative;
            z-index: 1;
        }

        .activity-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: var(--radius-lg);
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .activity-card:hover {
            transform: translateY(-4px);
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
        }
        
        .activity-image {
            position: relative;
            width: 100%;
            height: 220px;
            overflow: hidden;
        }
        
        .activity-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .activity-image iframe {
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 140%;
            transform: translateY(-50%);
            border: none;
            pointer-events: none;
        }

        .activity-video {
            position: relative;
            width: 100%;
            height: 100%;
            background: #000;
        }

        .activity-video iframe {
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 140%;
            transform: translateY(-50%);
            border: none;
        }
        
        .activity-content {
            padding: 1.75rem;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            flex: 1;
            background: rgba(255, 255, 255, 0.02);
        }
        
        .activity-name {
            font-size: 1.25rem;
            font-weight: 600;
            margin: 0;
            color: white;
            line-height: 1.4;
            letter-spacing: -0.01em;
        }
        
        .activity-description {
            font-size: 0.9375rem;
            color: rgba(255, 255, 255, 0.8);
            margin: 0;
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .activity-type {
            position: absolute;
            top: 1.25rem;
            left: 1.25rem;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.8125rem;
            font-weight: 500;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            z-index: 1;
            letter-spacing: 0.02em;
        }

        .date-badge {
            position: absolute;
            top: 1.25rem;
            right: 1.25rem;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: var(--radius-lg);
            padding: 0.625rem;
            text-align: center;
            min-width: 64px;
            z-index: 1;
        }

        .date-badge .month {
            font-size: 0.8125rem;
            font-weight: 500;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.9);
            line-height: 1;
            margin-bottom: 0.375rem;
            letter-spacing: 0.05em;
        }

        .date-badge .day {
            font-size: 1.375rem;
            font-weight: 700;
            color: white;
            line-height: 1;
        }
        
        .activity-footer {
            margin-top: auto;
            padding: 1.25rem 1.75rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .detail-btn {
            flex: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border-radius: var(--radius-sm);
            font-size: 0.875rem;
            font-weight: 500;
            background: rgba(255, 255, 255, 0.05);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .signup-btn {
            flex: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border-radius: var(--radius-sm);
            font-size: 0.875rem;
            font-weight: 500;
            background: var(--primary);
            color: white;
            border: none;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .detail-btn:hover {
            background: var(--primary);
            border-color: var(--primary);
            transform: translateY(-1px);
            box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
            color: white;
        }

        .signup-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
            box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
        }

        .signup-btn:disabled {
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.4);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .news-section {
            background: rgba(15, 23, 42, 0.5);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 4rem 0;
        }

        .news-section .activity-card {
            height: 100%;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: var(--radius-lg);
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .news-section .activity-card:hover {
            transform: translateY(-4px);
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
        }

        .news-section .activity-image {
            height: 240px;
            position: relative;
            overflow: hidden;
        }

        .news-section .activity-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .news-section .activity-card:hover .activity-image img {
            transform: scale(1.05);
        }

        .news-section .activity-content {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            background: rgba(255, 255, 255, 0.02);
        }

        .news-section .activity-name {
            font-size: 1.25rem;
            font-weight: 600;
            color: white;
            margin: 0;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-section .activity-description {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.8);
            margin: 0;
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-section .info-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .news-section .info-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            padding: 0.25rem 0.75rem;
            border-radius: 16px;
            font-size: 0.75rem;
            font-weight: 500;
            background: rgba(139, 92, 246, 0.1);
            color: var(--primary);
            border: 1px solid rgba(139, 92, 246, 0.2);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        .news-section .activity-type {
            position: absolute;
            top: 1rem;
            left: 1rem;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 500;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            z-index: 1;
        }

        .news-section .date-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: var(--radius-lg);
            padding: 0.5rem;
            text-align: center;
            min-width: 60px;
            z-index: 1;
        }

        .news-section .activity-footer {
            margin-top: auto;
            padding-top: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            gap: 0.75rem;
        }

        .news-section .detail-btn {
            width: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border-radius: var(--radius-sm);
            font-size: 0.875rem;
            font-weight: 500;
            background: rgba(255, 255, 255, 0.05);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .news-section .detail-btn:hover {
            background: var(--primary);
            border-color: var(--primary);
            transform: translateY(-1px);
            box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
        }

        .signup-status-banner {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.75));
            padding: 1.75rem;
            color: white;
            z-index: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .signup-count {
            font-size: 1.625rem;
            font-weight: 600;
            display: flex;
            align-items: baseline;
            gap: 0.375rem;
            letter-spacing: -0.02em;
        }

        .signup-count small {
            font-size: 0.9375rem;
            opacity: 0.9;
            letter-spacing: normal;
        }

        .signup-status {
            font-size: 0.8125rem;
            font-weight: 500;
            padding: 0.375rem 0.875rem;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            letter-spacing: 0.02em;
        }

        .signup-status.available {
            background: rgba(16, 185, 129, 0.1);
            color: #10B981;
            border-color: rgba(16, 185, 129, 0.2);
        }

        .signup-status.full {
            background: rgba(239, 68, 68, 0.1);
            color: #EF4444;
            border-color: rgba(239, 68, 68, 0.2);
        }

        section h2 {
            color: white;
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 2rem;
        }

        footer {
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.8);
        }

        .footer-brand span {
            color: white;
            font-weight: 600;
        }

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

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links li {
            margin-bottom: 0.75rem;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            font-size: 0.875rem;
            transition: all 0.2s ease;
        }

        .footer-links a:hover {
            color: white;
        }

        .social-links {
            display: flex;
            gap: 1rem;
        }

        .social-link {
            width: 36px;
            height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .social-link:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

        .footer-bottom {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.875rem;
        }

        .powered-by {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: rgba(255, 255, 255, 0.6);
        }

        .powered-by img {
            opacity: 0.8;
            transition: opacity 0.2s ease;
        }

        .powered-by img:hover {
            opacity: 1;
        }

        @media (max-width: 768px) {
            .footer-bottom {
                text-align: center;
            }

            .footer-bottom > div {
                flex-direction: column;
                gap: 1rem;
            }

            .powered-by {
                justify-content: center;
            }
        }

        /* Floating stats cards */
        .stats-floating {
            position: absolute;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: var(--radius-lg);
            color: white;
            display: flex;
            align-items: center;
            gap: 1rem;
            z-index: 2;
        }

        .stats-floating.left {
            left: 10%;
            bottom: 20%;
        }

        .stats-floating.right {
            right: 10%;
            top: 30%;
        }

        .stats-floating .value {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--primary);
        }

        .stats-floating .label {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.8);
        }
    </style>
</head>
<body>
    <!-- Main Navigation -->
    <nav class="main-nav">
        <div class="nav-container">
            <a href="/" class="nav-brand">
                <img src="images/logo.png" alt="AI 永續設計學院">
                <h1>AI 永續設計學院</h1>
            </a>
            <div class="nav-menu">
                <a href="events.html">活動報名</a>
                <a href="equipment.html">設備借用</a>
                <a href="courses.html">課程資源</a>
                <a href="about.html">關於我們</a>
            </div>
            <div class="nav-right">
                <button class="nav-btn" onclick="window.location.href='department.html'">
                    <i class="fas fa-user"></i>
                    登入
                </button>
                <button class="nav-btn primary" onclick="window.location.href='activities.html'">
                    <i class="fas fa-calendar-plus"></i>
                    瀏覽活動
                </button>
            </div>
        </div>
    </nav>

    <!-- Hero Section -->
    <section class="hero-section">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-lg-6">
                    <div class="hero-content">
                        <h1>Elevate Your<br>Learning Experience</h1>
                        <p class="lead">解鎖您的學習潛力，在我們的平台上探索豐富的教育資源和活動。</p>
                        <a href="activities.html" class="btn btn-primary btn-lg">
                            開始探索
                            <i class="fas fa-arrow-right ms-2"></i>
                        </a>
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="hero-image">
                        <img src="images/home03.png" alt="Learning Platform Illustration">
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Stats Section -->
    <section class="container mb-5">
        <div class="row">
            <div class="col-md-4">
                <div class="stats-card">
                    <h3>活動總數</h3>
                    <div class="d-flex align-items-center">
                        <i class="fas fa-calendar-alt fa-2x me-3"></i>
                        <span class="h2 mb-0" id="totalActivities">0</span>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="stats-card">
                    <h3>註冊學生</h3>
                    <div class="d-flex align-items-center">
                        <i class="fas fa-users fa-2x me-3"></i>
                        <span class="h2 mb-0" id="totalStudents">0</span>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="stats-card">
                    <h3>設備借用</h3>
                    <div class="d-flex align-items-center">
                        <i class="fas fa-tools fa-2x me-3"></i>
                        <span class="h2 mb-0" id="totalEquipment">0</span>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Recent Activities Section -->
    <section class="container mb-5">
        <h2 class="mb-4">最新活動</h2>
        <div class="activity-grid" id="recentActivities">
            <!-- Activities will be dynamically inserted here -->
        </div>
    </section>

    <!-- News Section -->
    <section class="news-section">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center mb-4">
                <h2 class="mb-0">活動報導</h2>
                <a href="list.html" class="btn btn-outline-light">
                    查看更多
                    <i class="fas fa-arrow-right ms-2"></i>
                </a>
            </div>
            <div class="row g-4" id="recentNews">
                <!-- News will be dynamically inserted here -->
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="py-5">
        <div class="container">
            <div class="row g-4">
                <div class="col-lg-3 col-md-6">
                    <div class="footer-brand">
                        <a href="/" class="d-flex align-items-center gap-2 text-decoration-none">
                            <img src="images/logo.png" alt="AI 永續設計學院" height="32">
                            <span class="h5 mb-0">AI 永續設計學院</span>
                        </a>
                        <p class="mt-3 mb-4">輕鬆管理您的學習活動，探索更多教育資源。</p>
                        <div class="social-links">
                            <a href="#" class="social-link"><i class="fab fa-youtube"></i></a>
                            <a href="#" class="social-link"><i class="fab fa-twitter"></i></a>
                            <a href="#" class="social-link"><i class="fab fa-facebook"></i></a>
                            <a href="#" class="social-link"><i class="far fa-envelope"></i></a>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-6">
                    <h5 class="footer-title">網站</h5>
                    <ul class="footer-links">
                        <li><a href="/">首頁</a></li>
                        <li><a href="/trade">活動報名</a></li>
                        <li><a href="/invest">設備借用</a></li>
                        <li><a href="/help">幫助中心</a></li>
                    </ul>
                </div>
                <div class="col-lg-3 col-md-6">
                    <h5 class="footer-title">其他</h5>
                    <ul class="footer-links">
                        <li><a href="/profile">個人資料</a></li>
                        <li><a href="/history">活動紀錄</a></li>
                        <li><a href="/inventory">我的收藏</a></li>
                        <li><a href="/blog">部落格</a></li>
                    </ul>
                </div>
                <div class="col-lg-3 col-md-6">
                    <h5 class="footer-title">條款</h5>
                    <ul class="footer-links">
                        <li><a href="/terms">使用條款</a></li>
                        <li><a href="/privacy">隱私政策</a></li>
                        <li><a href="/cookie">Cookie 政策</a></li>
                    </ul>
                </div>
            </div>
            <div class="footer-bottom">
                <div class="d-flex flex-wrap justify-content-between align-items-center pt-4 mt-4 border-top border-secondary">
                    <p class="mb-0">© AI 永續設計學院 2024</p>
                    <div class="powered-by">
                        <span class="me-2">Powered by</span>
                        <span class="mx-2">•</span>
                        <span class="text-muted">樹德科技大學 | 設計學院 |</span>
                    </div>
                </div>
            </div>
        </div>
    </footer>

<!-- Firebase SDK -->
<script src="https://www.gstatic.com/firebasejs/11.1.0/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/11.1.0/firebase-auth-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/11.1.0/firebase-firestore-compat.js"></script>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    <script src="js/db-config.js"></script>
    <script src="js/constants.js"></script>
    <script src="js/home.js" type="module"></script>
    <script>
        function createStars() {
            const starsContainer = document.createElement('div');
            starsContainer.className = 'stars';
            document.body.appendChild(starsContainer);

            // Create regular stars
            for (let i = 0; i < 50; i++) {
                const star = document.createElement('div');
                star.className = `star ${['small', 'medium', 'large'][Math.floor(Math.random() * 3)]}`;
                star.style.setProperty('--duration', `${2 + Math.random() * 4}s`);
                star.style.setProperty('--delay', `${Math.random() * 4}s`);
                star.style.left = `${Math.random() * 100}%`;
                star.style.top = `${Math.random() * 100}%`;
                starsContainer.appendChild(star);
            }

            // Create shooting stars
            for (let i = 0; i < 3; i++) {
                const shootingStar = document.createElement('div');
                shootingStar.className = 'shooting-star';
                
                // Fixed -45 degree angle
                shootingStar.style.setProperty('--angle', '-45deg');
                
                // Longer duration and more random delays
                shootingStar.style.setProperty('--duration', `${6 + Math.random() * 6}s`);
                shootingStar.style.setProperty('--delay', `${Math.random() * 15}s`);
                
                // Position shooting stars in the bottom-left portion of the screen
                shootingStar.style.left = `${Math.random() * 20}%`;
                shootingStar.style.top = `${Math.random() * 20 + 60}%`;
                
                starsContainer.appendChild(shootingStar);
            }
        }

        // Call the function when the page loads
        window.addEventListener('load', createStars);
    </script>
</body>
</html> 