* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --primary-dark: #0099cc;
    --primary-bright: #00ffff;
    --secondary-color: #ff006e;
    --secondary-bright: #ff1493;
    --accent-color: #00ff88;
    --accent-warm: #ffbe0b;
    --accent-warm-bright: #ffd60a;
    --dark-bg: #0a0e27;
    --darker-bg: #050810;
    --card-bg: #1a1f3a;
    --card-hover-bg: #232d4a;
    --border-color: #2a3f5f;
    --text-color: #e0e6ff;
    --text-secondary: #a0aec0;
    --text-muted: #6b7280;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', 'Microsoft YaHei', 'PingFang SC', monospace;
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(135deg, #0a0e27 0%, #0f1535 25%, #1a0a2e 50%, #0f0f25 75%, #0a0e27 100%);
    background-size: 400% 400%;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    animation: bgGradient 15s ease infinite;
}

@keyframes bgGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, transparent 0%, rgba(0, 212, 255, 0.03) 50%, transparent 100%);
    animation: scanlines 0.15s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 導航欄 */
nav {
    background: linear-gradient(90deg, rgba(10, 14, 39, 0.95) 0%, rgba(15, 21, 53, 0.95) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2), inset 0 1px 0 rgba(0, 212, 255, 0.15);
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, rgba(0, 212, 255, 0.5), rgba(255, 0, 110, 0.5), rgba(0, 212, 255, 0.5)) 1;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

nav::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.8), transparent);
    animation: navGlow 2s ease-in-out infinite;
}

@keyframes navGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(90deg, #00ffff, #ff006e, #00ffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 3px;
    font-style: italic;
    text-transform: uppercase;
    animation: brandGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6)) drop-shadow(0 0 40px rgba(255, 0, 110, 0.3));
}

@keyframes brandGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.navbar-menu {
    display: flex;
    gap: 35px;
    align-items: center;
    list-style: none;
}

.navbar-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.4s;
    font-weight: 800;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar-menu a::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff006e);
    transition: all 0.4s;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

.navbar-menu a:hover {
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 40px rgba(0, 212, 255, 0.4);
    transform: translateY(-3px);
}

.navbar-menu a:hover::before {
    width: 100%;
}

.navbar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 12px 28px;
    border: 2px solid;
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    transition: all 0.4s;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #0a0e27;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), inset 0 0 15px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.2);
    font-weight: 900;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00ffff, #00d4ff);
    border-color: #00ffff;
    box-shadow: 0 0 40px rgba(0, 212, 255, 1), 0 0 80px rgba(0, 212, 255, 0.6), inset 0 0 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-4px);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), inset 0 0 15px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #ff006e, #cc0055);
    color: white;
    border-color: #ff1493;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.6);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ff1493, #ff006e);
    border-color: #ff1493;
    box-shadow: 0 0 40px rgba(255, 0, 110, 0.8), 0 0 80px rgba(255, 0, 110, 0.4);
    transform: translateY(-4px);
}

.btn-login,
.btn-register {
    background-color: transparent;
    color: #00ffff;
    border: 2px solid #00ffff;
    padding: 10px 20px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.btn-login:hover,
.btn-register:hover {
    background: rgba(0, 212, 255, 0.15);
    color: #00ffff;
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), inset 0 0 15px rgba(0, 212, 255, 0.2);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* 用戶菜單 */
#userMenu {
    display: none;
    align-items: center;
    gap: 15px;
    padding-left: 15px;
    border-left: 2px solid rgba(0, 212, 255, 0.4);
}

#userMenu.show {
    display: flex;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: linear-gradient(135deg, #00ffff, #ff006e);
    color: #0a0e27;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8), inset 0 0 10px rgba(0, 212, 255, 0.4);
    border: 2px solid #00ffff;
    text-transform: uppercase;
    font-size: 14px;
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.8), inset 0 0 10px rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 1), inset 0 0 15px rgba(0, 212, 255, 0.6); }
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 13px;
    transition: all 0.4s;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-dropdown-toggle:hover {
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 21, 53, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 0;
    min-width: 170px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4), inset 0 0 15px rgba(0, 212, 255, 0.1);
    display: none;
    z-index: 1001;
    margin-top: 15px;
    overflow: hidden;
}

.user-dropdown-menu.show {
    display: block;
    animation: dropdownOpen 0.3s ease-out;
}

@keyframes dropdownOpen {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-menu a,
.user-dropdown-menu button {
    display: block;
    width: 100%;
    padding: 13px 18px;
    text-align: left;
    color: var(--text-color);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 3px solid transparent;
}

.user-dropdown-menu a:hover,
.user-dropdown-menu button:hover {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.2), transparent);
    color: #00ffff;
    border-left-color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    padding-left: 22px;
}

/* 主橫幅 */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 20px;
    border-bottom: 3px solid rgba(0, 212, 255, 0.3);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-50px, -50px); }
    50% { transform: translate(50px, 50px); }
    75% { transform: translate(-30px, 30px); }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 0, 110, 0.1) 50%, rgba(0, 255, 136, 0.05) 100%);
    z-index: 0;
    border: 3px solid rgba(0, 212, 255, 0.25);
    box-shadow: inset 0 0 80px rgba(0, 212, 255, 0.1), 0 0 60px rgba(0, 212, 255, 0.15);
    border-radius: 20px;
}

.hero-content {
    text-align: center;
    color: var(--text-color);
    z-index: 2;
    max-width: 800px;
    animation: heroContentIn 1s ease-out;
}

@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pixelated-text {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #00ffff, #ff006e, #00ff88, #00ffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6)) drop-shadow(0 0 40px rgba(255, 0, 110, 0.3));
    letter-spacing: 4px;
    text-transform: uppercase;
    font-style: italic;
    animation: titlePulse 4s ease infinite;
}

@keyframes titlePulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pixelated-text-sm {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: heroSubIn 1s ease-out 0.2s backwards;
}

@keyframes heroSubIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

.hero-search {
    display: flex;
    gap: 15px;
    margin-top: 45px;
    animation: heroSearchIn 1s ease-out 0.4s backwards;
}

@keyframes heroSearchIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input {
    flex: 1;
    padding: 18px 22px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    background: rgba(10, 14, 39, 0.85);
    border-radius: 0;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.4s;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15), inset 0 0 8px rgba(0, 212, 255, 0.05);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.search-input::placeholder {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), inset 0 0 15px rgba(0, 212, 255, 0.2);
    background: rgba(10, 14, 39, 0.95);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* 模態框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 21, 53, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-radius: 0;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.4), 0 0 120px rgba(255, 0, 110, 0.2), inset 0 0 30px rgba(0, 212, 255, 0.1);
    border: 3px solid rgba(0, 212, 255, 0.35);
    padding: 50px;
    max-width: 550px;
    width: 100%;
    position: relative;
    animation: modalIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: auto;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    font-weight: 900;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
    border-radius: 0;
}

.close:hover,
.close:focus {
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    background: rgba(0, 212, 255, 0.15);
    transform: rotate(90deg);
}

.modal-auth h2 {
    margin-bottom: 32px;
    background: linear-gradient(90deg, #00ffff, #ff006e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5));
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.form-group input {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    background: rgba(10, 14, 39, 0.7);
    border-radius: 0;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.4s;
    box-shadow: inset 0 0 8px rgba(0, 212, 255, 0.05);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5), inset 0 0 12px rgba(0, 212, 255, 0.15);
    background: rgba(10, 14, 39, 0.9);
}

.error-message {
    color: #ff0055;
    font-size: 13px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: rgba(255, 0, 85, 0.15);
    border: 2px solid rgba(255, 0, 85, 0.4);
    border-radius: 0;
    display: none;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.error-message:not(:empty) {
    display: block;
    animation: errorShake 0.4s ease-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.modal-auth .btn {
    width: 100%;
    margin-top: 15px;
}

.auth-switch {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 700;
}

.auth-switch a {
    color: #00ffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-switch a:hover {
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

/* 篩選部分 */
.filter-section {
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.7) 0%, rgba(15, 21, 53, 0.7) 100%);
    margin: 50px 0;
    border-radius: 0;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.15), inset 0 0 25px rgba(0, 212, 255, 0.05);
    border: 3px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-container h2 {
    margin-bottom: 28px;
    background: linear-gradient(90deg, #00ffff, #ff006e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 22px;
}

.category-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 13px 28px;
    border: 2px solid rgba(0, 212, 255, 0.4);
    background: rgba(10, 14, 39, 0.6);
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.4s;
    color: var(--text-color);
    font-weight: 800;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.category-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 0, 110, 0.05));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.category-btn:hover {
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
    background: rgba(10, 14, 39, 0.9);
    transform: translateY(-3px);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.category-btn.active {
    background: linear-gradient(135deg, #00d4ff, rgba(0, 212, 255, 0.5));
    border-color: #00ffff;
    color: #0a0e27;
    box-shadow: 0 0 35px rgba(0, 212, 255, 1), inset 0 0 20px rgba(0, 212, 255, 0.5);
    font-weight: 900;
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.sort-controls {
    display: flex;
    justify-content: flex-end;
}

.sort-select {
    padding: 13px 18px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    background: rgba(10, 14, 39, 0.7);
    border-radius: 0;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-color);
    font-weight: 800;
    transition: all 0.4s;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.12);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sort-select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5), inset 0 0 12px rgba(0, 212, 255, 0.15);
}

/* 房間列表 */
.rooms-section {
    padding: 60px 0;
}

.rooms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rooms-section h2 {
    margin-bottom: 40px;
    background: linear-gradient(90deg, #00ffff, #ff006e, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.room-card {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.85) 0%, rgba(15, 21, 53, 0.85) 100%);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.12), inset 0 0 15px rgba(0, 212, 255, 0.05);
    border: 3px solid rgba(0, 212, 255, 0.25);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
}

.room-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: all 0.6s;
    z-index: 1;
    pointer-events: none;
}

.room-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.6), 0 0 100px rgba(0, 212, 255, 0.3), inset 0 0 25px rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 1);
}

.room-card:hover::before {
    top: -50%;
    left: -50%;
}

.room-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: rgba(10, 14, 39, 0.8);
    border-bottom: 3px solid rgba(0, 212, 255, 0.25);
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.room-card:hover .room-image img {
    transform: scale(1.12) rotate(2deg);
    filter: brightness(1.2) saturate(1.3) hue-rotate(5deg);
}

.room-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.95), rgba(255, 0, 110, 0.75));
    color: white;
    padding: 8px 18px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 900;
    z-index: 10;
    max-width: 85%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8), inset 0 0 12px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.card-favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(10, 14, 39, 0.95);
    border: 3px solid rgba(0, 212, 255, 0.5);
    border-radius: 0;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.4s;
    z-index: 15;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.card-favorite-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    border-color: #00ffff;
    transform: scale(1.25) rotate(-20deg);
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.8);
}

.card-favorite-btn.favorited {
    border-color: #ff006e;
    box-shadow: 0 0 25px rgba(255, 0, 110, 0.6);
    background: rgba(255, 0, 110, 0.2);
}

.card-favorite-btn.favorited .heart-icon {
    color: #ff1493;
    text-shadow: 0 0 15px rgba(255, 0, 110, 0.9);
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.4); }
    50% { transform: scale(1); }
}

.room-info {
    padding: 25px;
    background: transparent;
    position: relative;
    z-index: 2;
}

.room-info h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #00ffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.room-location {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 700;
}

.room-meta {
    display: flex;
    gap: 18px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 700;
}

.room-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.stars {
    color: #ffd60a;
    font-size: 14px;
    text-shadow: 0 0 12px rgba(255, 190, 11, 0.8);
    letter-spacing: 1.5px;
    font-weight: 900;
}

.rating-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 800;
}

.room-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
    height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}

.amenity-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(255, 0, 110, 0.12));
    border: 2px solid rgba(0, 212, 255, 0.45);
    padding: 5px 12px;
    border-radius: 0;
    font-size: 11px;
    color: #00ffff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.25);
}

.room-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 2px solid rgba(0, 212, 255, 0.2);
}

.room-price {
    font-size: 22px;
    font-weight: 900;
    color: #ffd60a;
    text-shadow: 0 0 15px rgba(255, 190, 11, 0.8);
    text-transform: uppercase;
}

.availability {
    font-size: 11px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 255, 136, 0.12));
    color: #00ff88;
    padding: 7px 14px;
    border-radius: 0;
    font-weight: 900;
    border: 2px solid rgba(0, 255, 136, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

/* 加載動畫 */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.spinner {
    border: 5px solid rgba(0, 212, 255, 0.2);
    border-top: 5px solid #00ffff;
    border-right: 5px solid #ff006e;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spinnerRotate 1.2s linear infinite;
    margin-bottom: 25px;
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.7), 0 0 70px rgba(255, 0, 110, 0.4);
}

@keyframes spinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-secondary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

/* 無結果 */
.no-results {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* 關於部分 */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.7) 0%, rgba(15, 21, 53, 0.7) 100%);
    margin-top: 60px;
    border-radius: 0;
    border: 3px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.12), inset 0 0 40px rgba(0, 212, 255, 0.05);
    backdrop-filter: blur(10px);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-container h2 {
    text-align: center;
    margin-bottom: 55px;
    background: linear-gradient(90deg, #00ffff, #ff006e, #00ff88, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 40px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 2;
    font-weight: 700;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.feature-card {
    padding: 35px;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.8) 0%, rgba(15, 21, 53, 0.8) 100%);
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 0;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.12), inset 0 0 15px rgba(0, 212, 255, 0.05);
}

.feature-card:hover {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(15, 21, 53, 0.95) 100%);
    border-color: #00ffff;
    transform: translateY(-12px);
    box-shadow: 0 0 45px rgba(0, 212, 255, 0.5), 0 0 90px rgba(0, 212, 255, 0.25), inset 0 0 30px rgba(0, 212, 255, 0.15);
}

.feature-icon {
    font-size: 55px;
    display: block;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    animation: iconFloat 3.5s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.feature-card h3 {
    margin-bottom: 14px;
    color: #00ffff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
}

/* 頁腳 */
.footer {
    background: linear-gradient(90deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 21, 53, 0.98) 100%);
    color: var(--text-secondary);
    text-align: center;
    padding: 40px 30px;
    margin-top: 80px;
    border-top: 3px solid rgba(0, 212, 255, 0.35);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 -15px 40px rgba(0, 212, 255, 0.15);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .navbar-menu {
        gap: 20px;
    }

    .navbar-menu a {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .pixelated-text {
        font-size: 42px;
        letter-spacing: 2px;
    }

    .pixelated-text-sm {
        font-size: 18px;
    }

    .hero-search {
        flex-direction: column;
    }

    .category-buttons {
        justify-content: center;
    }

    .rooms-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 24px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .modal-content {
        max-width: 90%;
        padding: 35px;
    }

    .sort-controls {
        justify-content: center;
        margin-top: 25px;
    }

    .hero-section {
        min-height: 500px;
        padding: 80px 20px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        flex-wrap: wrap;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-brand {
        font-size: 22px;
        letter-spacing: 1.5px;
    }

    .pixelated-text {
        font-size: 30px;
        letter-spacing: 1px;
    }

    .modal-content {
        padding: 28px;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .category-buttons {
        flex-direction: column;
    }

    .category-btn {
        width: 100%;
        white-space: normal;
    }

    .room-info h3 {
        font-size: 15px;
    }

    .room-description {
        font-size: 12px;
    }

    .about-container h2 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .feature-icon {
        font-size: 40px;
    }
}