@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #333;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.menu-btn {
    font-size: 32px;
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s;
}

.menu-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: rotate(90deg);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    letter-spacing: 1px;
}

.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* 側邊選單 */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
    padding-top: 100px;
    box-shadow: 10px 0 30px rgba(0,0,0,0.2);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    color: white;
    font-size: 22px;
}

.sidebar ul {
    list-style: none;
    margin-top: 20px;
}

.sidebar ul li a {
    display: block;
    padding: 18px 30px;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar ul li a:hover {
    background: rgba(255,255,255,0.1);
    border-left: 4px solid #667eea;
    padding-left: 35px;
}

/* 登入彈窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 440px;
    border-radius: 28px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalShow 0.5s ease;
}

@keyframes modalShow {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #667eea;
}

.modal-content h2 {
    margin-bottom: 10px;
    font-size: 32px;
    color: #2c3e50;
}

.subtitle {
    color: #777;
    margin-bottom: 30px;
    font-size: 16px;
}

.modal-content input {
    width: 100%;
    padding: 16px 20px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    transition: border 0.3s;
}

.modal-content input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s;
}

.login-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.links {
    margin-top: 30px;
}

.links a {
    color: #e74c3c;
    text-decoration: none;
    margin: 0 20px;
    font-size: 15px;
    font-weight: 500;
}

.links a:hover {
    text-decoration: underline;
}

/* 主內容 - 英雄區 */
main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero {
    text-align: center;
    color: white;
    z-index: 2;
}

.hero h1 {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 24px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23ffffff" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,176C384,192,480,192,576,176C672,160,768,128,864,122.7C960,117,1056,139,1152,144C1248,149,1344,139,1392,134.7L1440,130L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

/* 響應式 */
@media (max-width: 992px) {
    .hero h1 { font-size: 60px; }
    .hero p { font-size: 20px; }
}

@media (max-width: 768px) {
    .sidebar {
        width: 260px;
        left: -260px;
    }

    .hero h1 { font-size: 48px; }
}

@media (max-width: 480px) {
    header {
        padding: 15px 20px;
    }

    .menu-btn {
        font-size: 28px;
    }

    .logo {
        font-size: 22px;
    }

    .login-btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    .hero h1 { font-size: 40px; }
    .hero p { font-size: 18px; }
}