/* --- 核心變數設定 --- */
:root {
    --bg-dark: #050505;
    --bg-panel: #0a0a0f;
    --accent: #00ff88;
    --accent-dim: rgba(0, 255, 136, 0.1);
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Chakra Petch', sans-serif;
    --border: 1px solid rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-body); overflow-x: hidden; line-height: 1.6; }

/* === 新增：滑鼠光暈效果 === */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    mix-blend-mode: screen;
    transition: width 0.2s, height 0.2s; /* 讓變化稍微平滑 */
}

/* Click to Enter */
#splash-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #000; z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.8s ease-out, visibility 0.8s; cursor: pointer; }
#splash-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-content { text-align: center; user-select: none; }
.splash-content h1 { font-size: 5rem; color: white; font-family: var(--font-head); margin-bottom: 10px; text-shadow: 0 0 20px var(--accent); }
.splash-sub { color: var(--text-muted); font-family: monospace; letter-spacing: 3px; margin-bottom: 40px; }
.click-prompt { font-size: 1.2rem; color: var(--accent); animation: blink 1s infinite; font-weight: bold; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* 基礎背景 */
#particle-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.grid-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px); background-size: 50px 50px; z-index: -1; perspective: 1000px; transform: translateZ(-100px); }

/* 導航欄 */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 5%; position: fixed; width: 100%; top: 0; z-index: 100; background: rgba(5, 5, 5, 0.8); backdrop-filter: blur(10px); border-bottom: var(--border); }
.nav-brand { font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: white; display: flex; align-items: center; gap: 10px; }
.cube-spin { color: var(--accent); animation: spin 4s infinite linear; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 600; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); text-shadow: 0 0 10px var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 15px; }
.icon-btn { background: transparent; border: 1px solid var(--accent); color: var(--accent); width: 35px; height: 35px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.icon-btn:hover { background: var(--accent); color: black; box-shadow: 0 0 10px var(--accent); }
.discord-btn { background: #5865F2; color: white; text-decoration: none; padding: 0.5rem 1.5rem; border-radius: 4px; font-weight: 700; clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%, 0% 20%); transition: 0.3s; }
.discord-btn:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 0 15px rgba(88, 101, 242, 0.4); }

/* Hero Section */
.hero-section { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; padding: 120px 20px 60px; }

/* === 修改：伺服器狀態圖排版優化 === */
.status-wrapper {
    margin-bottom: 40px;
    background: var(--bg-panel);
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.08);
    max-width: 500px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.status-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
}

.server-status-banner { 
    width: 100%; 
    border-radius: 4px; 
    overflow: hidden; 
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1); 
    transition: all 0.3s ease; 
}
.dynamic-banner { width: 100%; height: auto; display: block; }
.server-status-banner:hover { opacity: 0.9; }
/* === 結束修改 === */

.hero-title { font-family: var(--font-head); font-size: 5rem; line-height: 1; font-weight: 900; margin-bottom: 20px; }
.highlight-text { color: transparent; -webkit-text-stroke: 2px var(--accent); position: relative; }
.highlight-text::before { content: 'SURVIVAL'; position: absolute; left: 0; top: 0; color: var(--accent); width: 0%; overflow: hidden; white-space: nowrap; border-right: 4px solid var(--accent); animation: typing 4s ease-in-out infinite alternate; }
.hero-subtitle { color: var(--text-muted); font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 40px; }

/* IP Box (Vertical Layout) */
.server-connect-box { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-bottom: 30px; }
.ip-display-wrapper { background: rgba(0, 0, 0, 0.8); border: 1px solid var(--accent); padding: 15px 40px; border-radius: 4px; text-align: center; position: relative; box-shadow: 0 0 20px rgba(0, 255, 136, 0.1); }
.ip-label { display: block; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 2px; margin-bottom: 5px; }
.ip-text { font-family: 'Courier New', monospace; font-size: 1.8rem; font-weight: 900; color: white; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
.copy-btn-large { background: var(--accent); color: black; border: none; padding: 12px 30px; font-weight: 800; font-family: var(--font-body); font-size: 1rem; cursor: pointer; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: all 0.2s ease; display: flex; align-items: center; gap: 10px; }
.copy-btn-large:hover { background: white; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4); }
.copy-btn-large:active { transform: scale(0.98); }

.version-tag { color: var(--text-muted); font-size: 0.9rem; font-family: monospace; margin-bottom: 40px; }
.hero-buttons-group { display: flex; gap: 15px; justify-content: center; }
.btn { text-decoration: none; padding: 12px 25px; border-radius: 4px; font-weight: 700; transition: 0.3s; display: flex; align-items: center; gap: 8px; text-transform: uppercase; position: relative; z-index: 10; }
.btn-primary { background: var(--accent); color: var(--bg-dark); border: 2px solid var(--accent); box-shadow: 0 0 15px var(--accent-dim); }
.btn-primary:hover { background: white; transform: translateY(-2px); box-shadow: 0 5px 25px rgba(255, 255, 255, 0.4); }
.btn-secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-secondary:hover { background: var(--accent-dim); color: white; box-shadow: 0 0 10px var(--accent); transform: translateY(-2px); }
.pulse-btn { animation: pulse 2s infinite; }
.scroll-down { position: absolute; bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-muted); animation: bounce 2s infinite; }

/* Features */
.section-padding { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { font-family: var(--font-head); font-size: 3rem; text-align: center; margin-bottom: 60px; color: white; }
.section-title span { color: var(--accent); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-card { background: var(--bg-panel); padding: 40px 30px; position: relative; border: 1px solid rgba(255,255,255,0.05); overflow: hidden; transform-style: preserve-3d; transform: perspective(1000px); }
.card-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }
.feature-card h3 { color: white; font-family: var(--font-head); margin-bottom: 15px; font-size: 1.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 15px; }
.feature-details-list { list-style: none; padding-left: 0; margin-top: 10px; margin-bottom: 10px; }
.feature-details-list li { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.feature-details-list li i { color: var(--accent); font-size: 0.8rem; }
.card-border { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: 0.4s ease; }
.feature-card:hover .card-border { transform: scaleX(1); }

/* Gallery */
.gallery-bg { background: var(--bg-dark); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { position: relative; height: 300px; overflow: hidden; border-radius: 4px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(transparent, black); transform: translateY(100%); transition: 0.3s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.gallery-overlay h4 { color: var(--accent); font-family: var(--font-head); margin-bottom: 5px; }

/* === 修改：管理員區塊 (獨立 Section) === */
.admin-profile-wrapper { display: flex; justify-content: center; width: 100%; }
.admin-card { 
    display: flex; 
    align-items: center;
    gap: 30px; 
    background: var(--bg-panel); 
    padding: 30px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent);
    border-radius: 4px; 
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); 
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.admin-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,255,136,0.03) 10px, rgba(0,255,136,0.03) 20px); pointer-events: none; }
.admin-avatar { width: 100px; height: 100px; flex-shrink: 0; position: relative; }
.admin-avatar img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; border: 2px solid var(--accent); }
.online-indicator { position: absolute; bottom: -5px; right: -5px; width: 20px; height: 20px; background: var(--accent); border-radius: 50%; border: 3px solid var(--bg-panel); box-shadow: 0 0 10px var(--accent); }
.admin-details { text-align: left; flex-grow: 1; }
.admin-header h3 { color: white; font-family: var(--font-head); font-size: 1.8rem; line-height: 1.2; }
.role-badge { display: inline-block; font-size: 0.75rem; background: rgba(0,255,136,0.1); color: var(--accent); padding: 2px 8px; border-radius: 4px; margin-top: 5px; font-weight: bold; letter-spacing: 1px; }
.admin-quote { color: var(--text-muted); font-style: italic; margin: 15px 0; font-size: 0.95rem; border-left: 2px solid #333; padding-left: 10px; }

/* About Link Button */
.btn-about-link {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none; /* 連結樣式 */
    transition: all 0.3s;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 100%, 0 100%);
}
.btn-about-link:hover {
    background: var(--accent);
    color: black;
    box-shadow: 0 0 15px var(--accent-dim);
    padding-left: 25px;
}

/* Footer (Simplified) */
footer { border-top: 1px solid rgba(255,255,255,0.1); background: #020202; padding: 40px 0; }
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.socials { margin-top: 20px; font-size: 1.5rem; display: flex; gap: 20px; justify-content: center; }
.socials a { color: var(--text-muted); transition: 0.3s; }
.socials a:hover { color: var(--accent); }

/* Modal */
.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); backdrop-filter: blur(5px); justify-content: center; align-items: center; flex-direction: column; }
.modal.show { display: flex; animation: fadeIn 0.3s; }
.modal-content { text-align: center; max-width: 90%; max-height: 90%; position: relative; }
.modal-content img { max-width: 100%; max-height: 80vh; border: 2px solid var(--accent); box-shadow: 0 0 30px rgba(0, 255, 136, 0.3); border-radius: 4px; }
.modal-content h3 { color: white; font-family: var(--font-head); margin-bottom: 15px; font-size: 1.5rem; text-shadow: 0 0 10px var(--accent); }
.modal-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; z-index: 10001; }
.modal-close:hover { color: var(--accent); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { 0% { transform: rotateX(0) rotateY(0); } 100% { transform: rotateX(360deg) rotateY(360deg); } }
@keyframes typing { 0% { width: 0; } 50% { width: 100%; } 100% { width: 0; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(0, 255, 136, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); } }

@media (max-width: 768px) { 
    .hero-section { min-height: auto; padding: 120px 16px 60px; }
    .hero-title { font-size: 3rem; } 
    .nav-links { display: none; } 
    .server-connect-box { width: 100%; }
    .ip-display-wrapper { width: 100%; padding: 15px 20px; }
    .ip-text { font-size: 1.4rem; } 
    .hero-buttons-group { flex-direction: column; gap: 10px; } 
    .btn { width: 100%; justify-content: center; } 
    .admin-card { flex-direction: column; text-align: center; } 
    .admin-details { text-align: center; }
    .admin-quote { border-left: none; border-top: 2px solid #333; padding-left: 0; padding-top: 10px; }
    .cursor-glow { display: none; } /* 手機版隱藏游標特效以提升效能 */
}
