* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
}

.front-body {
    background: #f0f2f5;
    min-height: 100vh;
}

.front-nav {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-brand {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header .card-title {
    margin-bottom: 0;
}

.form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-control:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 2px rgba(74,108,247,0.1);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.3rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 400 !important;
}

.radio-label input[type="radio"] {
    accent-color: #4a6cf7;
    width: 16px;
    height: 16px;
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.3rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #4a6cf7;
    width: 16px;
    height: 16px;
}

.form-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background: #4a6cf7;
    color: #fff;
}

.btn-primary:hover {
    background: #3b5de7;
}

.btn-success {
    background: #52c41a;
    color: #fff;
}

.btn-success:hover {
    background: #45b017;
}

.btn-warning {
    background: #faad14;
    color: #fff;
}

.btn-warning:hover {
    background: #e09e0e;
}

.btn-danger {
    background: #ff4d4f;
    color: #fff;
}

.btn-danger:hover {
    background: #e04345;
}

.btn-info {
    background: #1890ff;
    color: #fff;
}

.btn-info:hover {
    background: #0e80e8;
}

.btn-default {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d9d9d9;
}

.btn-default:hover {
    background: #e8e8e8;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.7rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.88rem;
}

.table th {
    background: #fafafa;
    font-weight: 600;
    color: #555;
}

.table tr:hover {
    background: #f8f9ff;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-status-0 {
    background: #fff7e6;
    color: #d48806;
}

.badge-status-1 {
    background: #e6f7ff;
    color: #0958d9;
}

.badge-status-2 {
    background: #f6ffed;
    color: #389e0d;
}

.badge-level-1 {
    background: #f0f0f0;
    color: #666;
}

.badge-level-2 {
    background: #f0f5ff;
    color: #2f54eb;
}

.badge-level-3 {
    background: #fff7e6;
    color: #d48806;
}

.badge-level-4 {
    background: #fff0f6;
    color: #c41d7f;
}

.pagination {
    margin-top: 1rem;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    margin: 0 2px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    color: #333;
}

.pagination .active {
    background: #4a6cf7;
    color: #fff;
    border-color: #4a6cf7;
}

.actions {
    white-space: nowrap;
}

.actions .btn {
    margin-right: 0.3rem;
}

.timer-card {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.timer-display {
    font-size: 4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1a1a2e;
    letter-spacing: 2px;
}

.timer-ms {
    font-size: 2rem;
    color: #999;
    margin-bottom: 1.5rem;
}

.timer-controls {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.timer-controls .btn {
    min-width: 80px;
}

.timer-laps {
    text-align: left;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.timer-laps h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.timer-laps .btn-sm {
    margin-left: 0.8rem;
    vertical-align: middle;
}

.timer-laps ul {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.timer-laps li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
}