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

body {
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: url('../images/background.png') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Floating Buttons Container */
.floating-buttons {
    position: fixed;
    bottom: 80px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

/* Back to Top Button */
.back-to-top {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    text-decoration: none;
}

/* Discord Float Button */
.discord-float {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #5865f2, #7289da);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.discord-float:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

/* Header Styles */
.header {
    background: url('../images/header_background2.png') repeat-x center bottom;
    background-size: auto 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    pointer-events: none;
}

.navbar {
    padding: 0.8rem 0;
}

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

.nav-logo .logo-img {
    height: 60px;
    transition: transform 0.3s ease;
}

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

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

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

.nav-link {
    color: #1a365d;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover, .nav-link.active {
    color: #1a365d;
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    text-shadow: 0 1px 4px rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.nav-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-game-actions,
.nav-auth-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* 手機版專用導航項目在桌面版隱藏 */
.nav-mobile-only {
    display: none;
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.btn-discord {
    background: linear-gradient(45deg, #5865f2, #7289da);
    color: white;
}

.btn-download {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: white;
}

.btn-logout {
    background: #e74c3c;
    color: white;
    border: 1px solid #c0392b;
}

.btn-logout:hover {
    background: #c0392b;
    border: 1px solid #a93226;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.btn-register {
    background: #27ae60;
    color: white;
    border: 1px solid #229954;
}

.btn-register:hover {
    background: #229954;
    border: 1px solid #1e8449;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn.btn-primary:hover,
.btn.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bar {
    width: 25px;
    height: 3px;
    background: #1a365d;
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
    border-radius: 2px;
}

/* Main Content */
.main-content {
    margin-top: 120px;
    position: relative;
    z-index: 1;
}

/* Banner Section */
.banner-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease;
    padding-top: 1rem;
}

.banner-img {
    width: 100%;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.banner-img:hover {
    transform: scale(1.02);
}

/* Award Section */
.award-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease;
    padding: 2rem 0;
}

.award-divider {
    margin-bottom: 2rem;
}

.award-divider-img {
    max-height: 80px;
    width: auto;
}

.award-content {
    margin-bottom: 2rem;
}

.award-content-img {
    width: 100%;
    max-width: 1200px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.award-content-img:hover {
    transform: scale(1.01);
}

/* Feature Section */
.feature-section {
    padding: 0rem 0;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    margin-bottom: 2rem;
    animation: bounceIn 1s ease;
}

.section-title img {
    max-height: 100px;
}

.feature-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 20px;
}

.feature-item {
    transition: transform 0.3s ease;
    animation: fadeInUp 1s ease;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.05);
}

.feature-item:hover img {
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.3));
}

.feature-item img {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

.feature-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap;
    padding: 0 20px;
    align-items: center;
}

.feature-link {
    transition: transform 0.3s ease;
    animation: fadeInUp 1.2s ease;
}

.feature-link:hover {
    transform: translateY(-5px) rotate(3deg);
}

.feature-link:hover img {
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
}

.feature-link img {
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.2));
}

/* Photo Gallery Section */
.gallery-section {
    padding: 3rem 0 200px 0;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.gallery-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 0 20px;
    margin-top: 2rem;
}

.photo-album {
    position: relative;
    animation: fadeInLeft 1s ease;
}

.photo-album:nth-child(2) {
    animation: fadeInRight 1s ease;
}

.carousel-container {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.photo-frame {
    position: relative;
    width: 420px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.photo-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/frame.png') no-repeat center;
    background-size: contain;
    pointer-events: none;
    z-index: 10;
}

.carousel {
    position: relative;
    width: 400px;
    height: 320px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #ff6b9d;
    transform: scale(1.2);
}

/* Bottom Background Section */
.bottom-background {
    position: relative;
    margin-top: -300px;
    z-index: 1;
    text-align: center;
}

.bottom-bg-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Footer */
.footer {
    position: relative;
    text-align: center;
    background: #2c3e50;
    padding: 0;
    z-index: 3;
}

.footer-content {
    padding: 1rem 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: #2c3e50;
}

.footer-left p {
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    line-height: 1.2;
}

.designer {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

.footer-right {
    display: flex;
    gap: 1rem;
}

.footer-link {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* 手機版隱藏遊戲相關按鈕組，保留帳號相關按鈕 */
    .nav-game-actions {
        display: none;
    }
    
    .nav-actions {
        display: flex;
        gap: 0.75rem;
    }
    
    .nav-auth-actions {
        display: flex;
        gap: 0.75rem;
    }
    
    /* 手機版按鈕樣式調整 */
    .nav-auth-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    /* 手機版顯示手機專用導航項目 */
    .nav-mobile-only {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: rgba(135, 206, 235, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }
    

    
    .nav-toggle {
        display: flex;
        z-index: 1002;
        position: relative;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-section {
        padding: 3rem 0 150px 0;
    }
    
    .bottom-background {
        margin-top: -200px;
    }
    
    .feature-links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
    }
    
    .feature-link img {
        max-width: 360px;
        height: auto;
    }
    
    .feature-item img {
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }
    
    .footer-right {
        justify-content: center;
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-logo .logo-img {
        height: 50px;
        width: auto;
        max-width: 280px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .main-content {
        margin-top: 110px;
    }
    
    .floating-buttons {
        bottom: 70px;
        right: 25px;
        gap: 12px;
    }
    
    .carousel-container {
        max-width: 380px;
    }
    
    .photo-frame {
        width: 380px;
        height: 307px;
        padding: 9px;
    }
    
    .carousel {
        width: 362px;
        height: 289px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.4rem 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo .logo-img {
        height: 40px;
        width: auto;
        max-width: 220px;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    /* 更小屏幕的按鈕調整 */
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-auth-actions {
        gap: 0.5rem;
    }
    
    .nav-auth-actions .btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .main-content {
        margin-top: 100px;
    }
    
    .floating-buttons {
        bottom: 60px;
        right: 20px;
        gap: 12px;
    }
    
    .back-to-top, .discord-float {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .carousel-container {
        max-width: 320px;
    }
    
    .photo-frame {
        width: 320px;
        height: 259px;
        padding: 8px;
    }
    
    .carousel {
        width: 304px;
        height: 243px;
    }
    
    .feature-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item img {
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }
    
    .feature-links {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .feature-link img {
        max-width: 200px;
        height: auto;
    }
    
    .gallery-section {
        padding: 3rem 0 120px 0;
    }
    
    .bottom-background {
        margin-top: -150px;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Download Guide Modal */
.download-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.download-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.download-guide-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.8) translateY(-30px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.download-modal-overlay.show .download-guide-modal {
    transform: scale(1) translateY(0);
}

.download-guide-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.download-guide-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.download-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.download-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.download-guide-content {
    padding: 2rem;
}

.download-guide-info {
    text-align: center;
    margin-bottom: 2rem;
}

.download-guide-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.download-guide-info strong {
    color: #ffd700;
    font-weight: 600;
}

.download-guide-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.download-action-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-action-item h4 {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.download-action-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.discord-btn {
    background: linear-gradient(45deg, #7289da, #5865f2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 200px;
    margin: 0 auto;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(114, 137, 218, 0.4);
}

.game-btn {
    background: transparent;
    padding: 0;
    display: block;
    max-width: 250px;
    margin: 0 auto;
}

.download-btn-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.game-btn:hover .download-btn-img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.download-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

/* ?��?式設�?*/
@media (max-width: 768px) {
    .download-guide-modal {
        max-width: 95%;
        margin: 1rem;
    }
    
    .download-guide-header {
        padding: 1rem 1.5rem;
    }
    
    .download-guide-title {
        font-size: 1.3rem;
    }
    
    .download-guide-content {
        padding: 1.5rem;
    }
    
    .download-action-item {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .download-guide-header {
        padding: 1rem;
    }
    
    .download-guide-title {
        font-size: 1.2rem;
    }
    
    .download-guide-content {
        padding: 1rem;
    }
    
    .download-guide-info p {
        font-size: 0.9rem;
    }
    
    /* Award Section 手機版調整 */
    .award-section {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .award-divider {
        margin-bottom: 1rem;
    }
    
    .award-divider-img {
        max-height: 60px;
    }
    
    .award-content-img {
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
}



@media (max-width: 360px) {
    .carousel-container {
        max-width: 290px;
    }
    
    .photo-frame {
        width: 290px;
        height: 235px;
        padding: 7px;
    }
    
    .carousel {
        width: 276px;
        height: 221px;
    }
} 
