/* 
  NewWeb Premium Design System
  Theme: Dark Glassmorphism & Cyber Nebula
*/

:root {
    --primary-glow: rgba(176, 38, 255, 0.4);
    --secondary-glow: rgba(0, 255, 255, 0.3);
    --bg-dark: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
    --accent: #d580ff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image: url('../Basemap.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* 全域深層文字陰影 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.3);
}

/* 訪客計數器樣式 */
#visitor-counter {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#visitor-counter:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(2px);
}

#counter-number {
    font-family: 'Monaco', 'Courier New', monospace;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
    font-size: 1.1rem;
    margin: 0 5px;
}

/* 頂部 Logo 區域 */
header {
    margin-top: 60px;
    text-align: center;
    z-index: 10;
}

.main-logo {
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(176, 38, 255, 0.5));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* 動態時鐘 */
#clock-container {
    margin: 30px 0;
    text-align: center;
    font-family: 'Monaco', 'Courier New', monospace;
    background: var(--card-bg);
    padding: 15px 40px;
    border-radius: 50px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.clock-date {
    font-size: 20px;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.5);
}

.clock-time {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 15px var(--accent), 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* 網格佈局 */
.section-title {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin: 40px 0 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    padding: 20px;
}

/* 玻璃卡片樣式 */
.link-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 25px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: 0.5s;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(176, 38, 255, 0.2);
}

.download-section {
    width: 90%;
    max-width: 1200px;
    padding: 20px;
}

.download-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    text-align: center;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: #ffaa00;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 15px rgba(255, 170, 0, 0.3);
}

.download-note {
    color: #ffd27f;
    font-size: 0.9rem;
    line-height: 1.6;
    letter-spacing: 1px;
    margin-top: 10px;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.2);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.link-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.link-label {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

/* 下方動畫提示 */
.status-footer {
    margin: 60px 0 40px;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: none;
    color: #ffffff;
    font-weight: 600;
    animation: pulse 2s infinite ease-in-out;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; text-shadow: 0 0 30px #ffffff, 2px 2px 5px rgba(0,0,0,0.8); }
}

/* 分隔線 */
.glow-line {
    width: 80%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    margin: 20px 0;
}
