/* ================================================================
   菜刀客在线工具页 · stopwatch.html 私有样式
   需在 /css/common.css 之后加载。
   ================================================================ */

/* ---- 秒表显示 ---- */
.stopwatch-display {
    text-align: center;
    padding: 30px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 42px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    user-select: none;
}

/* ---- 控制按钮区 ---- */
.controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.controls .btn {
    width: 100%;
    justify-content: center;
}

/* ---- 记录列表 ---- */
.record-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.record-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid #f3f4f6;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    color: #4b5563;
    transition: background 0.15s;
}

.record-list li:last-child {
    border-bottom: none;
}

.record-list li:hover {
    background: #fafbff;
}

.record-list li::before {
    content: "第 " attr(data-n) " 条";
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    color: #9ca3af;
}

/* ---- 小屏适配 ---- */
@media (max-width: 480px) {
    .stopwatch-display {
        font-size: 32px;
        letter-spacing: 1px;
        padding: 24px 10px;
    }
}
