@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;
}

/* ... (其他样式保持不变) ... */
/* 引入主站的通用样式变量 */
/* 引入主站的通用样式变量 */

/* 秒表页面特有样式 */

.stopwatch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* 间距略微减小 */
    margin-top: 25px; /* 顶部外边距略微减小 */
    margin-bottom: 35px; /* 底部外边距略微减小 */
}

.stopwatch-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.8em; /* 字体大小减小 */
    color: var(--primary-color);
    text-shadow: 0 0 12px var(--primary-color); /* 发光效果略微减弱 */
    letter-spacing: 1.5px; /* 字间距略微减小 */
    background-color: rgba(0, 0, 0, 0.4);
    padding: 18px 25px; /* 内边距减小 */
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 8px rgba(0, 255, 204, 0.2); /* 阴影效果略微减弱 */
    min-width: 280px; /* 确保在小屏幕上也有足够宽度 */
    text-align: center;
}

.stopwatch-controls {
    display: flex;
    flex-wrap: wrap; /* 允许按钮换行 */
    justify-content: center;
    gap: 12px; /* 按钮间距减小 */
    width: 100%;
    max-width: 550px; /* 限制最大宽度 */
}

.control-btn {
    padding: 10px 20px; /* 按钮内边距减小 */
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background-color: rgba(0, 255, 204, 0.1);
    color: var(--primary-color);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1em; /* 字体大小减小 */
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-grow: 1; /* 允许按钮增长填充空间 */
    min-width: 110px; /* 最小宽度略微减小 */
}

.control-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 12px var(--primary-color); /* 发光效果略微减弱 */
    transform: translateY(-2px);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: none;
}

/* 按钮特定颜色 */
.start-btn { border-color: #28a745; color: #28a745; }
.start-btn:hover:not(:disabled) { background-color: #28a745; color: white; box-shadow: 0 0 12px #28a745; }

.stop-btn { border-color: #dc3545; color: #dc3545; }
.stop-btn:hover:not(:disabled) { background-color: #dc3545; color: white; box-shadow: 0 0 12px #dc3545; }

.lap-btn { border-color: #00aaff; color: #00aaff; }
.lap-btn:hover:not(:disabled) { background-color: #00aaff; color: white; box-shadow: 0 0 12px #00aaff; }

.reset-btn { border-color: #ffaa00; color: #ffaa00; }
.reset-btn:hover:not(:disabled) { background-color: #ffaa00; color: white; box-shadow: 0 0 12px #ffaa00; }

.set-target-btn { border-color: #6f42c1; color: #6f42c1; }
.set-target-btn:hover:not(:disabled) { background-color: #6f42c1; color: white; box-shadow: 0 0 12px #6f42c1; }


.stopwatch-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* 间距减小 */
    width: 100%;
    justify-content: center;
}

.lap-times-section, .target-time-section {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px; /* 内边距减小 */
    box-shadow: inset 0 0 6px rgba(0, 255, 204, 0.1); /* 阴影效果略微减弱 */
    flex: 1; /* 占据可用空间 */
    min-width: 260px; /* 最小宽度略微减小 */
    max-width: 48%; /* PC端最大宽度，使其之间有更多空间 */
    box-sizing: border-box;
}

.lap-times-section h3, .target-time-section h3 {
    color: var(--secondary-color);
    font-size: 1.2em; /* 字体大小减小 */
    margin-top: 0;
    margin-bottom: 12px; /* 间距减小 */
    text-shadow: 0 0 4px var(--secondary-color); /* 发光效果略微减弱 */
    text-align: center;
}

.lap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px; /* 限制高度，使其可滚动，略微减小 */
    overflow-y: auto;
    scrollbar-width: none;  /* For Firefox */
    -ms-overflow-style: none;   /* For Internet Explorer and Edge */
}
.lap-list::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.lap-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0; /* 内边距减小 */
    border-bottom: 1px dashed rgba(0, 255, 204, 0.1);
    color: var(--text-light);
    font-size: 0.9em; /* 字体大小减小 */
}

.lap-list li:last-child {
    border-bottom: none;
}

.lap-number {
    color: var(--primary-color);
    font-weight: bold;
}

.lap-time {
    color: var(--text-light);
}

.target-input-group {
    display: flex;
    gap: 8px; /* 间距减小 */
    margin-bottom: 12px; /* 间距减小 */
}

.target-input-group input[type="number"] {
    flex-grow: 1;
    padding: 8px; /* 输入框内边距减小 */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.95em; /* 字体大小略微减小 */
    outline: none;
    box-shadow: inset 0 0 4px rgba(0, 255, 204, 0.1); /* 阴影效果略微减弱 */
}

.target-input-group input[type="number"]::placeholder {
    color: var(--text-dim);
}

.target-input-group input[type="number"]:focus {
    border-color: var(--primary-color);
    box-shadow: inset 0 0 6px var(--primary-color); /* 阴影效果略微减弱 */
}

.target-status {
    color: #ffaa00; /* 橙色 */
    font-size: 0.9em; /* 字体大小减小 */
    text-align: center;
    min-height: 1.4em; /* 占位，防止内容跳动 */
}

/* 导航链接区域 */
.sub-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px; /* 间距减小 */
    margin-top: 30px; /* 顶部外边距减小 */
    padding-top: 15px; /* 内边距减小 */
    border-top: 1px dashed var(--border-color);
}

.nav-link-btn {
    display: flex;
    align-items: center;
    gap: 6px; /* 图标和文本间距减小 */
    padding: 8px 18px; /* 内边距减小 */
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    color: var(--secondary-color);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.95em; /* 字体大小减小 */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-shadow: 0 0 4px var(--secondary-color); /* 发光效果略微减弱 */
}

.nav-link-btn:hover {
    background-color: var(--secondary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 12px var(--secondary-color); /* 发光效果略微减弱 */
    transform: translateY(-2px);
    text-shadow: none;
}

.nav-link-btn i {
    font-size: 1.1em; /* 图标大小略微减小 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stopwatch-display {
        font-size: 3em; /* 手机端字体大小减小 */
        padding: 12px 18px;
        width: 95%;
    }

    .stopwatch-controls {
        flex-direction: column; /* 按钮垂直堆叠 */
        gap: 8px; /* 间距减小 */
        max-width: 280px; /* 限制按钮组宽度 */
    }

    .control-btn {
        width: 100%; /* 按钮撑满父容器 */
        font-size: 0.95em; /* 字体大小减小 */
        padding: 8px 15px;
    }

    .stopwatch-features {
        flex-direction: column; /* 特性部分垂直堆叠 */
        gap: 15px; /* 间距减小 */
    }

    .lap-times-section, .target-time-section {
        max-width: 100%; /* 占据全部宽度 */
        padding: 15px;
    }

    .lap-times-section h3, .target-time-section h3 {
        font-size: 1.1em; /* 字体大小减小 */
    }

    .lap-list li {
        font-size: 0.85em; /* 字体大小减小 */
    }

    .target-input-group {
        flex-direction: column;
        gap: 8px;
    }
    .target-input-group input, .target-input-group button {
        width: 100%;
        font-size: 0.9em; /* 字体大小减小 */
        padding: 8px 10px;
    }

    .sub-nav-links {
        flex-direction: column;
        gap: 8px;
    }
    .nav-link-btn {
        width: 90%;
        max-width: 280px;
        margin: 0 auto; /* 居中 */
        font-size: 0.9em; /* 字体大小减小 */
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .stopwatch-display {
        font-size: 2.5em; /* 更小屏幕字体大小 */
        padding: 10px 12px;
    }
    .control-btn {
        font-size: 0.85em;
        padding: 6px 12px;
    }
    .lap-times-section h3, .target-time-section h3 {
        font-size: 1em;
    }
    .lap-list li {
        font-size: 0.8em;
    }
    .target-input-group input, .target-input-group button {
        font-size: 0.85em;
    }
    .nav-link-btn {
        font-size: 0.85em;
        padding: 6px 10px;
    }
}

