:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --text-color-dark: #000000;
    --text-color-light: #ffffff;
    --accent-color: #ffffff;
    --transition-speed: 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

@keyframes subtleGlow {
    0% { box-shadow: 0 0 5px rgba(255,255,255,0.5); }
    50% { box-shadow: 0 0 10px rgba(255,255,255,0.7); }
    100% { box-shadow: 0 0 5px rgba(255,255,255,0.5); }
}

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

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

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

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

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    line-height: 1.6;
}

.minimalist-header {
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.minimalist-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.minimalist-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color-light);
    transition: transform 0.3s ease;
}

.minimalist-header .logo:hover {
    transform: scale(1.05);
}

.minimalist-header .logo img {
    vertical-align: middle;
    margin-right: 10px;
    animation: gentleFloat 3s ease-in-out infinite;
}

#open-menu, #close-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 2001;
    position: fixed;
    top: 10px;
    right: 20px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#open-menu:hover, #close-menu:hover {
    transform: rotate(90deg);
}

#open-menu::before,
#open-menu::after,
#open-menu span {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color-light);
    position: absolute;
    transition: 0.3s;
}

#open-menu::before {
    transform: translateY(-6px);
}

#open-menu::after {
    transform: translateY(6px);
}

#open-menu:hover::before {
    transform: translateY(-8px);
}

#open-menu:hover::after {
    transform: translateY(8px);
}

#close-menu {
    font-size: 35px;
    color: var(--text-color-light);
    text-decoration: none;
    display: none;
}

#close-menu::after {
    content: '×';
}

main {
    padding-top: 60px;
    max-width: 100%;
}

.hero {
    text-align: center;
    padding: 2rem 0;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out, float 4s ease-in-out infinite;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--text-color-dark);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.cta-button:hover {
    background-color: var(--text-color-light);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.2);
}

.image-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.main-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.image-container:hover .main-image {
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 2000;
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-menu nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.fullscreen-menu nav ul li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.fullscreen-menu.active nav ul li {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(0.1s * var(--i));
}

.fullscreen-menu nav ul li a {
    color: var(--text-color-light);
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 10px 20px;
}

.fullscreen-menu nav ul li a:hover {
    color: var(--accent-color);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 3000;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: left;
    color: var(--text-color-light);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(0.9);
    transition: all 0.3s;
    animation: subtleGlow 3s infinite;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    margin-top: 0;
    color: var(--text-color-light);
}

.modal-content .close:first-of-type {
    display: flex;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-color-light);
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    margin: 0;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content form label {
    margin-bottom: 10px;
    color: var(--text-color-light);
}

.modal-content form textarea {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--text-color-light);
    border-radius: 4px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-content form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.file-drop-area {
    border: 2px dashed var(--text-color-light);
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color-light);
}

.file-drop-area:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.file-drop-area.dragover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
}

.terms-agreement {
    font-size: 0.875rem;
    margin: 10px 0;
    color: var(--text-color-light);
}

.submit-button {
    background-color: var(--accent-color);
    color: var(--text-color-dark);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.submit-button:hover {
    background-color: var(--text-color-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.submission-number {
    animation: pulseScale 2s infinite;
}

.content-prompt {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
}

.beta-notice-footer {
    margin-bottom: 10px;
    font-style: italic;
}

.animated-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.animated-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.file-upload {
    margin-top: 10px;
}

@media (max-width: 600px) {
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .cta-button {
        font-size: 0.875rem;
        padding: 8px 16px;
    }

    .modal-content {
        padding: 15px;
    }

    #open-menu, #close-menu {
        top: 5px;
        right: 10px;
    }

    .image-container {
        height: 200px;
    }
}