@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
/* 引入适用于LED数字的字体，例如 'Digital-7' 或 'DS-Digital'。
   如果需要，您可能需要手动下载并引入这些字体。
   这里我们继续使用 Orbitron 并通过 text-shadow 模拟效果，
   或者您可以尝试使用 'Seven Segment' 或 'DSEG7 Classic' 等字体。
   例如：
   @font-face {
       font-family: 'Digital-7';
       src: url('fonts/Digital-7.woff2') format('woff2'),
            url('fonts/Digital-7.woff') format('woff');
       font-weight: normal;
       font-style: normal;
   }
*/


:root {
    --primary-color: #00ffcc; /* 科技绿 */
    --secondary-color: #00aaff; /* 科技蓝 */
    --bg-dark: #1a1a2e; /* 深蓝紫背景 */
    --card-bg: rgba(25, 25, 40, 0.85); /* 卡片背景 */
    --border-color: #005544; /* 边框颜色 */
    --text-light: #e0e0e0; /* 浅色文本 */
    --text-dim: #888; /* 暗淡文本 */
    --link-hover: #00e6b8; /* 链接悬停颜色 */
    --external-link-color: #ffaa00; /* 外部链接特殊颜色 */
    --led-color: #ff3333; /* LED数字的颜色，例如红色 */
    --led-shadow-color: rgba(255, 51, 51, 0.8); /* LED阴影颜色 */
}

body {
    font-family: 'Share Tech Mono', monospace; /* 科技感字体 */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 防止水平滚动 */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 内容从顶部开始 */
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: relative;
    padding-top: 30px; /* 顶部留白 */
    padding-bottom: 30px; /* 底部留白 */
    box-sizing: border-box;
}

/* 背景渐变效果 */
.background-gradient {
    position: fixed; /* 固定背景 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--bg-dark) 0%, #0a0a1a 100%);
    opacity: 0.9;
    z-index: -2;
}

/* 扫描线效果 */
.scan-line {
    position: fixed; /* 固定扫描线 */
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    animation: scan 5s linear infinite;
    opacity: 0.3;
    z-index: -1;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.container {
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3); /* 发光效果 */
    border-radius: 10px;
    width: 95%; /* 更宽的容器 */
    max-width: 900px; /* 最大宽度 */
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 1s ease-out;
}

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

.terminal-header {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 5px 5px 0 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.terminal-dots {
    display: flex;
    gap: 5px;
    margin-right: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.terminal-title {
    color: var(--primary-color);
    font-size: 0.9em;
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--primary-color);
}

.content-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: inset 0 0 10px rgba(0, 255, 204, 0.1);
    text-align: center; /* 确保内容居中 */
}

.card-title {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 0 0 8px var(--primary-color);
    letter-spacing: 1.5px;
}

.card-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-light);
}

.style-selector {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* 允许按钮换行 */
    gap: 10px; /* 按钮间距 */
}

.style-button {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1em;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

.style-button:hover {
    background-color: rgba(0, 255, 204, 0.1);
    border-color: var(--link-hover);
    box-shadow: 0 0 10px var(--link-hover);
}

.style-button.active {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    text-shadow: none; /* 激活时移除文本阴影 */
    font-weight: bold;
}

.clock-display-wrapper {
    min-height: 250px; /* 确保有足够空间 */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* 用于定位内部时钟样式 */
    overflow: hidden; /* 隐藏溢出内容 */
}

.clock-style {
    display: none; /* 默认隐藏所有样式 */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* 占据父容器宽度 */
    height: 100%; /* 占据父容器高度 */
    position: absolute; /* 绝对定位，方便切换 */
    top: 0;
    left: 0;
}

.clock-style.active {
    display: flex; /* 激活时显示 */
}

.time-text {
    font-family: 'Orbitron', sans-serif; /* 使用 Orbitron 字体 */
    font-size: 6em;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.date-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5em;
    color: var(--text-dim);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* 样式1: 默认数字时钟 */
#clock-style-default .time-text {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color);
}
#clock-style-default .date-text {
    color: var(--secondary-color);
    text-shadow: 0 0 8px var(--secondary-color);
}

/* 样式2: LED数字时钟 (新样式) */
.segment-text {
    font-family: 'Orbitron', monospace; /* 可以尝试更接近LED的字体，如 Digital-7 */
    font-size: 6.5em; /* 稍微大一点 */
    color: var(--led-color); /* LED的颜色 */
    text-shadow:
        0 0 5px var(--led-shadow-color),
        0 0 10px var(--led-shadow-color),
        0 0 20px var(--led-shadow-color),
        0 0 40px var(--led-shadow-color); /* 模拟辉光效果 */
    letter-spacing: 8px; /* 增加间距模拟LED段 */
    background-color: rgba(0, 0, 0, 0.2); /* 略微深色背景 */
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid rgba(255, 51, 51, 0.2);
}
.segment-date {
    color: var(--led-color);
    font-size: 1.6em;
    margin-top: 15px;
    text-shadow: 0 0 5px var(--led-shadow-color);
}


/* 样式3: 数字辉光时钟 */
.glow-text {
    color: #fff; /* 白色 */
    text-shadow:
        0 0 10px #00aaff, /* 蓝色光晕 */
        0 0 20px #00aaff,
        0 0 30px #00aaff,
        0 0 40px #00aaff,
        0 0 50px #00aaff,
        0 0 60px #00aaff,
        0 0 70px #00aaff;
    animation: pulse-glow 2s infinite alternate; /* 脉冲辉光动画 */
}
.glow-date {
    color: #fff;
    text-shadow: 0 0 5px #00aaff;
}
@keyframes pulse-glow {
    0% { text-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff; }
    100% { text-shadow: 0 0 20px #00aaff, 0 0 40px #00aaff, 0 0 60px #00aaff; }
}

/* 样式4: 矩阵流时钟 */
.matrix-text {
    color: #00ff00; /* 绿色 */
    text-shadow: 0 0 8px #00ff00;
    font-family: 'Share Tech Mono', monospace; /* 矩阵字体 */
    font-size: 5.5em; /* 略小 */
    letter-spacing: 3px;
    /*(animation: matrix-flicker 0.1s infinite alternate; /* 闪烁效果已关闭 */
}
.matrix-date {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    font-family: 'Share Tech Mono', monospace;
}
@keyframes matrix-flicker {
    0% { opacity: 1; }
    50% { opacity: 0.9; }
    100% { opacity: 1; }
}

/* 样式5: 简约线条时钟 */
.minimal-text {
    color: var(--text-light);
    font-family: 'Orbitron', sans-serif;
    font-size: 5.8em;
    font-weight: 400; /* 细一点 */
    letter-spacing: 2px;
    border-bottom: 2px solid var(--primary-color); /* 底部线条 */
    padding-bottom: 5px;
    margin-bottom: 15px;
}
.minimal-date {
    color: var(--text-dim);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.4em;
    text-transform: uppercase; /* 大写 */
}


/* 全屏模式样式 */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* 更深的背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

#fullscreen-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* 全屏模式下时钟文本的放大 */
.fullscreen-active-clock .time-text {
    font-size: 15vw; /* 视口宽度百分比，适应不同屏幕 */
    letter-spacing: 1.5vw;
}
.fullscreen-active-clock .date-text {
    font-size: 4vw;
    margin-top: 2vw;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        width: 98%;
    }

    .terminal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 10px 15px;
    }
    .terminal-dots {
        margin-bottom: 5px;
        margin-right: 0;
    }
    .terminal-title {
        width: 100%;
        text-align: left;
        margin: 0;
        white-space: normal;
        text-overflow: clip;
        font-size: 0.9em;
    }

    .card-title {
        font-size: 1.6em;
    }

    .card-description {
        font-size: 1em;
    }

    .style-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .time-text {
        font-size: 3.5em; /* 小屏幕上缩小 */
        letter-spacing: 3px;
    }

    .date-text {
        font-size: 1.2em; /* 小屏幕上缩小 */
    }

    /* LED数字时钟在小屏幕上的调整 */
    .segment-text {
        font-size: 4em;
        letter-spacing: 5px;
        padding: 8px 15px;
    }
    .segment-date {
        font-size: 1.3em;
    }

    /* 矩阵流时钟在小屏幕上的调整 */
    .matrix-text {
        font-size: 3.2em;
    }

    /* 简约线条时钟在小屏幕上的调整 */
    .minimal-text {
        font-size: 3.5em;
    }

    /* 全屏模式下时钟文本的进一步调整 */
    .fullscreen-active-clock .time-text {
        font-size: 20vw;
        letter-spacing: 2vw;
    }
    .fullscreen-active-clock .date-text {
        font-size: 5vw;
        margin-top: 3vw;
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 1.4em;
    }
    .terminal-title {
        font-size: 0.8em;
    }
    .style-button {
        font-size: 0.8em;
        padding: 6px 12px;
    }
    .time-text {
        font-size: 2.8em;
        letter-spacing: 2px;
    }
    .date-text {
        font-size: 1em;
    }
    /* LED数字时钟在更小屏幕上的调整 */
    .segment-text {
        font-size: 3.5em;
        letter-spacing: 4px;
        padding: 5px 10px;
    }
    .segment-date {
        font-size: 1.1em;
    }
    /* 全屏模式下时钟文本的进一步调整 */
    .fullscreen-active-clock .time-text {
        font-size: 25vw;
        letter-spacing: 2.5vw;
    }
    .fullscreen-active-clock .date-text {
        font-size: 6vw;
        margin-top: 4vw;
    }
}

/* 页脚样式 (与导航页保持一致) */
.terminal-footer {
    text-align: center;
    font-size: 0.8em;
    color: var(--text-dim);
    margin-top: 20px;
    padding: 10px 15px;
    box-sizing: border-box;
    width: 100%;
}
.terminal-footer p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.footer-separator {
    color: var(--text-dim);
    flex-shrink: 0;
}

.footer-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: text-shadow 0.3s ease, color 0.3s ease;
    font-size: 0.9em;
    flex-shrink: 0;
}

.footer-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

/* 响应式调整页脚 */
@media (max-width: 768px) {
    .terminal-footer {
        padding: 10px 10px;
    }
    .terminal-footer p {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    .footer-separator {
        display: none;
    }
    .footer-link {
        font-size: 0.85em;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-link {
        font-size: 0.8em;
    }
}
/* ... (其他样式保持不变) ... */

/* 新增：黑客帝国按钮样式 */
.style-button[data-style="hack"] {
    border-color: #00cc00; /* 绿色边框 */
    color: #00cc00; /* 绿色文本 */
    text-shadow: 0 0 5px rgba(0, 204, 0, 0.5);
}

.style-button[data-style="hack"]:hover {
    background-color: rgba(0, 204, 0, 0.1);
    border-color: #00ff00; /* 更亮的绿色 */
    box-shadow: 0 0 10px #00ff00;
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00;
}

.style-button[data-style="hack"].active {
    /* 如果您希望点击后保持激活状态（尽管它会跳转），可以这样设置 */
    background-color: #00cc00;
    color: var(--bg-dark); /* 深色背景文本 */
    border-color: #00cc00;
    box-shadow: 0 0 15px #00cc00;
    text-shadow: none;
    font-weight: bold;
}

/* ... (其他样式保持不变) ... */