/* CSS Variables for consistent theming */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #ff6b35;
    --accent-color: #f7931e;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #495057;
    --text-color: #212529;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-gray);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    box-shadow: var(--card-shadow);
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Header Styles */
.site-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: var(--gradient-bg);
    border-radius: 10px;
    color: white;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.last-updated {
    font-size: 1.1rem;
    opacity: 0.9;
}

.update-label {
    margin-right: 10px;
}

.update-date {
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Section Styles */
.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.current-events {
    color: var(--success-color);
}

.upcoming-events {
    color: var(--primary-color);
}

.past-events {
    color: var(--primary-color);
}

/* Introduction Section */
.intro-section {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 5px solid var(--secondary-color);
}

.intro-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.intro-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.hash-rules {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.hash-rules h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.hash-rules ol {
    list-style: none;
    counter-reset: rule-counter;
}

.hash-rules li {
    counter-increment: rule-counter;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.rule-number {
    background: var(--secondary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.english-desc, .contact-info {
    font-style: italic;
    color: var(--medium-gray);
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
    margin-top: 15px;
}

/* Events Section */
.events-section {
    margin-bottom: 40px;
}

.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.events-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.events-table td {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.events-table tr:hover {
    background: var(--light-gray);
    transition: var(--transition);
}

/* Column Widths */
.col-runno { width: 10%; }
.col-date { width: 10%; }
.col-hare { width: 20%; }
.col-location { width: 15%; }
.col-marks { width: 45%; }

/* Badge Styles */
.new-badge, .confirmed-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 8px;
    text-transform: uppercase;
}

.new-badge {
    background: var(--danger-color);
    color: white;
    animation: pulse 2s infinite;
}

.confirmed-badge {
    background: var(--warning-color);
    color: var(--dark-gray);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Event Row Styles */
.current-event {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-left: 5px solid var(--success-color);
}

.upcoming-event {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-left: 5px solid var(--primary-color);
}

.past-event {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-left: 5px solid var(--primary-color);
}

.run-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.event-date {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary-color);
}

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

.hare-info strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.phone {
    font-size: 0.9rem;
    color: var(--medium-gray);
    background: var(--light-gray);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.location-info strong {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.marks-info {
    text-align: left;
    padding-left: 20px;
}

.marks-info strong {
    color: var(--dark-gray);
    line-height: 1.6;
}

.marks-info .english {
    font-style: italic;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 2px solid var(--border-color);
    color: var(--medium-gray);
    background: var(--light-gray);
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .intro-content {
        padding: 20px;
    }

    .events-table th,
    .events-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .col-runno, .col-date {
        width: 15%;
    }

    .col-hare, .col-location {
        width: 25%;
    }

    .col-marks {
        width: 35%;
    }

    .marks-info {
        padding-left: 10px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }

    .events-table {
        font-size: 0.8rem;
    }

    .events-table th,
    .events-table td {
        padding: 8px 5px;
    }

    .intro-content {
        padding: 15px;
    }

    .hash-rules {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .container {
        box-shadow: none;
        margin: 0;
        padding: 20px;
    }

    .site-header {
        background: none;
        color: black;
    }

    .events-table th {
        background: #f0f0f0;
        color: black;
    }

    .current-event,
    .upcoming-event {
        background: none;
    }
	.past-event {
        background: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.events-table tr:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --shadow-color: rgba(0, 0, 0, 0.5);
    }
    
    .events-table th {
        border: 2px solid #000;
    }
    
    .events-table td {
        border: 1px solid #000;
    }
}

/* Committee Styles (委員會專用樣式) */
.committee-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: var(--gradient-bg);
    border-radius: 10px;
    color: white;
    position: relative;
    overflow: hidden;
}

.committee-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

.committee-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.committee-table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.committee-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-family: 'Microsoft YaHei', 'PingFang TC', sans-serif;
}

.committee-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid var(--secondary-color);
}

.committee-table td {
    padding: 15px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 0.9rem;
}

.committee-table tr:hover {
    background: var(--light-gray);
    transition: var(--transition);
}

/* Position cell styling */
.committee-position-cell {
    background: var(--gradient-bg);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Different position types with color coding */
.committee-gm .committee-position-cell {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.committee-jm .committee-position-cell {
    background: linear-gradient(135deg, #28a745, #218838);
}

.committee-advisor .committee-position-cell {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.committee-cash .committee-position-cell {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.committee-services .committee-position-cell {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

.committee-trail .committee-position-cell {
    background: linear-gradient(135deg, #fd7e14, #e8690c);
}

.committee-haberdasher .committee-position-cell {
    background: linear-gradient(135deg, #6610f2, #520dc2);
}

.committee-trash .committee-position-cell {
    background: linear-gradient(135deg, #20c997, #1ea882);
}

.committee-web .committee-position-cell {
    background: linear-gradient(135deg, #e83e8c, #d91a72);
}

/* Name and contact styling */
.committee-hash-name {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1rem;
}

.committee-real-name {
    color: var(--dark-gray);
    font-weight: 600;
}

.committee-phone {
    color: var(--medium-gray);
    font-family: 'Consolas', 'Monaco', monospace;
    background: var(--light-gray);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
    font-size: 0.85rem;
}

/* Responsive design for committee */
@media (max-width: 768px) {
    .committee-title {
        font-size: 1.8rem;
    }

    .committee-table th,
    .committee-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    .committee-phone {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .committee-title {
        font-size: 1.5rem;
    }

    .committee-table {
        font-size: 0.8rem;
    }

    .committee-table th,
    .committee-table td {
        padding: 8px 5px;
    }
}

/* ========================================
   Index Page Styles (首頁專用樣式)
   ======================================== */

/* Fixed Header */
.index-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* Banner Section */
.index-banner {
    background: var(--gradient-bg);
    color: white;
    padding: 15px 0;
}

.index-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.index-logo {
    margin-right: 20px;
}

.index-logo-img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.index-title-section {
    flex: 1;
}

.index-main-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.index-sub-title {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
}

/* Navigation */
.index-nav {
    background: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
}

.index-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.index-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.index-nav-item {
    position: relative;
}

.index-nav-link {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.index-nav-link:hover,
.index-nav-link.active {
    background: var(--secondary-color);
    border-bottom-color: var(--accent-color);
}

/* Mobile Menu Button */
.index-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.index-hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Content Section */
.index-content {
    margin-top: 140px; /* Account for fixed header height */
    padding: 0;
    height: calc(100vh - 140px - 60px); /* Full height minus header and footer */
    overflow: hidden;
}

.index-content-container {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: var(--card-shadow);
}

.index-content-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Footer */
.index-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--light-gray);
    color: var(--medium-gray);
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid var(--border-color);
    z-index: 999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .index-banner-content {
        padding: 0 15px;
    }
    
    .index-logo-img {
        height: 45px;
    }
    
    .index-main-title {
        font-size: 1.4rem;
    }
    
    .index-sub-title {
        font-size: 0.9rem;
    }
    
    /* Mobile Navigation */
    .index-mobile-menu-btn {
        display: flex;
        position: absolute;
        right: 0;
        top: 0;
    }
    
    .index-nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        box-shadow: 0 4px 8px var(--shadow-color);
        z-index: 1001;
    }
    
    .index-nav-menu.show {
        display: flex;
    }
    
    .index-nav-link {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .index-content {
        margin-top: 120px;
        height: calc(100vh - 120px - 60px);
    }
}

@media (max-width: 480px) {
    .index-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 10px 15px;
    }
    
    .index-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .index-logo-img {
        height: 40px;
    }
    
    .index-main-title {
        font-size: 1.2rem;
    }
    
    .index-sub-title {
        font-size: 0.8rem;
    }
    
    .index-nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .index-content {
        margin-top: 140px;
        height: calc(100vh - 140px - 60px);
    }
}

/* Menu Animation */
.index-mobile-menu-btn.active .index-hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.index-mobile-menu-btn.active .index-hamburger:nth-child(2) {
    opacity: 0;
}

.index-mobile-menu-btn.active .index-hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* =================================================================
   Announcement Page Styles (公告頁面樣式)
   ================================================================= */

/* Announcement Container */
.announce-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Announcement Card */
.announce-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.announce-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* Announcement Header */
.announce-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.announce-card.special-runs .announce-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.announce-card.payment .announce-header {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.announce-card.supplies .announce-header {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.announce-card.incentive .announce-header {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.announce-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.announce-title {
    flex: 1;
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
}

.announce-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Announcement Content */
.announce-content {
    padding: 25px;
}

/* Announcement Items */
.announce-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.announce-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.announce-date {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
    align-self: flex-start;
}

.announce-desc {
    flex: 1;
}

.announce-desc strong {
    color: #2c3e50;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.announce-list {
    margin: 10px 0;
    padding-left: 20px;
}

.announce-list li {
    margin-bottom: 5px;
    color: #34495e;
    line-height: 1.5;
}

/* Payment Options */
.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-option {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.payment-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.payment-option.annual {
    border-color: #e74c3c;
}

.payment-option.weekly {
    border-color: #27ae60;
}

.payment-type {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.payment-amount {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.payment-option.annual .payment-amount {
    color: #e74c3c;
}

.payment-option.weekly .payment-amount {
    color: #27ae60;
}

.payment-note {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.4;
}

/* Supply Notice */
.supply-notice {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.notice-icon {
    font-size: 1.2rem;
    min-width: 24px;
}

.notice-text {
    flex: 1;
    color: #2c3e50;
    line-height: 1.5;
}

/* Incentive Table */
.incentive-intro {
    margin-bottom: 20px;
}

.incentive-intro p {
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.incentive-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.incentive-row {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.incentive-row:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateX(5px);
}

.incentive-row.special {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #f39c12;
}

.age-range {
    flex: 1;
    font-weight: bold;
    color: #2c3e50;
}

.early-start {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.incentive-row.special .early-start {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .announce-container {
        gap: 15px;
    }
    
    .announce-header {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .announce-icon {
        font-size: 1.5rem;
    }
    
    .announce-title {
        font-size: 1.2rem;
    }
    
    .announce-content {
        padding: 20px 15px;
    }
    
    .announce-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .announce-date {
        align-self: flex-start;
        min-width: auto;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .payment-option {
        padding: 15px;
    }
    
    .payment-amount {
        font-size: 1.5rem;
    }
    
    .incentive-row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .early-start {
        align-self: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .announce-header {
        padding: 12px;
    }
    
    .announce-content {
        padding: 15px 12px;
    }
    
    .announce-title {
        font-size: 1.1rem;
    }
    
    .notice-item {
        padding: 12px;
    }
    
    .payment-option {
        padding: 12px;
    }
    
    .incentive-row {
        padding: 10px 12px;
    }
}

/* =================================================================
   Landing Page Styles (首頁著陸頁樣式)
   ================================================================= */

/* Landing Page Body */
.landing-page {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: hidden;
}

/* Background */
.landing-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #f5576c 75%, 
        #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Main Container */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header Section */
.landing-header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
}

.landing-logo-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-main-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.landing-main-logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.landing-title-group {
    text-align: left;
    max-width: 500px;
}

.landing-main-title {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-sub-title {
    font-size: 1.5rem;
    color: #7f8c8d;
    margin: 0 0 15px 0;
    font-weight: 300;
}

.landing-description {
    font-size: 1.1rem;
    color: #34495e;
    margin: 0;
    font-style: italic;
}

/* Language Selection */
.landing-language-section {
    margin: 60px 0;
}

.language-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.language-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.language-card:hover::before {
    left: 100%;
}

.language-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.chinese-card:hover {
    border-color: #e74c3c;
    box-shadow: 0 12px 40px rgba(231, 76, 60, 0.3);
}

.english-card:hover {
    border-color: #3498db;
    box-shadow: 0 12px 40px rgba(52, 152, 219, 0.3);
}

.card-icon {
    font-size: 3rem;
    min-width: 60px;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.card-content p {
    font-size: 1rem;
    color: #7f8c8d;
    margin: 0 0 8px 0;
}

.card-description {
    font-size: 0.9rem;
    color: #95a5a6;
    font-style: italic;
}

.card-arrow {
    font-size: 1.5rem;
    color: #bdc3c7;
    transition: all 0.3s ease;
}

.language-card:hover .card-arrow {
    color: #3498db;
    transform: translateX(5px);
}

/* Quick Links Section */
.landing-quick-links {
    margin: 60px 0;
    text-align: center;
}

.landing-page .section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-link-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.special-card:hover {
    border-color: #f39c12;
    box-shadow: 0 10px 35px rgba(243, 156, 18, 0.3);
}

.utility-card:hover {
    border-color: #9b59b6;
    box-shadow: 0 10px 35px rgba(155, 89, 182, 0.3);
}

.main-card:hover {
    border-color: #e74c3c;
    box-shadow: 0 10px 35px rgba(231, 76, 60, 0.3);
}

.contact-card:hover {
    border-color: #27ae60;
    box-shadow: 0 10px 35px rgba(39, 174, 96, 0.3);
}

.link-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.link-content {
    flex: 1;
}

.link-content h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.link-content p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
}

.link-badge {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* About Section */
.landing-about {
    margin: 80px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #34495e;
}

.english-text {
    color: #7f8c8d;
    font-style: italic;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e74c3c;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
}

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

.about-photo {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
.landing-footer {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    margin-top: 60px;
    border-radius: 20px 20px 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.footer-contact h4,
.footer-links h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-contact p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-label {
    font-weight: bold;
    color: #bdc3c7;
}

.footer-contact a {
    color: #3498db;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #5dade2;
    text-decoration: underline;
}

.footer-note {
    font-size: 0.9rem;
    color: #bdc3c7;
    margin-top: 15px;
    font-style: italic;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 5px 0;
    color: #bdc3c7;
}

.footer-tech {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* Loading Animation */
.landing-page {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.landing-page.loaded {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .landing-container {
        padding: 15px;
    }
    
    .landing-logo-section {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .landing-title-group {
        text-align: center;
    }
    
    .landing-main-title {
        font-size: 2rem;
    }
    
    .landing-sub-title {
        font-size: 1.2rem;
    }
    
    .language-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .language-card {
        padding: 20px;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quick-link-card {
        padding: 20px;
    }
    
    .landing-about {
        padding: 30px 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .landing-main-title {
        font-size: 1.5rem;
    }
    
    .landing-sub-title {
        font-size: 1rem;
    }
    
    .language-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
