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

body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    color: #333;
}

.navbar {
    background: #1a73e8;
    color: white;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar .logo {
    font-size: 18px;
    font-weight: bold;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.navbar .nav-links a:hover {
    background: rgba(255,255,255,0.2);
}

.navbar .user-info {
    font-size: 14px;
}

.navbar .user-info .btn-logout {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 12px;
    font-size: 14px;
}

.container {
    max-width: 960px;
    margin: 24px auto;
    padding: 0 24px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.card h2 {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-primary {
    background: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background: #1557b0;
}

.btn-success {
    background: #0f9d58;
    color: white;
}

.btn-success:hover {
    background: #0b8043;
}

.btn-danger {
    background: #ea4335;
    color: white;
}

.btn-danger:hover {
    background: #c5221f;
}

.btn-default {
    background: #f1f3f4;
    color: #333;
}

.btn-default:hover {
    background: #e0e0e0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table th {
    background: #f5f5f5;
    padding: 10px 12px;
    text-align: left;
    font-weight: 500;
    border-bottom: 2px solid #e0e0e0;
}

table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.alert {
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 14px;
}

.alert-error {
    background: #fce8e6;
    color: #c5221f;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #e6f4ea;
    color: #0b8043;
    border: 1px solid #ceead6;
}

.upload-area {
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    margin-bottom: 16px;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #1a73e8;
    background: #f8fbff;
}

.upload-area .upload-icon {
    font-size: 48px;
    color: #bbb;
    margin-bottom: 8px;
}

.upload-area p {
    color: #888;
    font-size: 14px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 16px;
}

.tabs .tab {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tabs .tab:hover {
    color: #1a73e8;
}

.tabs .tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
    font-weight: 500;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.result-field {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.result-field label {
    width: 80px;
    flex-shrink: 0;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.result-field input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.result-field .calibrated-badge {
    display: inline-block;
    background: #e6f4ea;
    color: #0b8043;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 8px;
}

.row-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f0f2f5;
}

.auth-card {
    background: white;
    border-radius: 8px;
    padding: 40px;
    width: 380px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.auth-card h1 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 28px;
    color: #1a73e8;
}

.auth-card .link-text {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #888;
}

.auth-card .link-text a {
    color: #1a73e8;
    text-decoration: none;
}
