/* 全局容器 */
.wt-container {
    max-width: 900px;
    margin: 30px auto;
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
}

/* 状态栏 */
.wt-status-bar {
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
}
.wt-status-bar a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}
.wt-status-bar a:hover {
    text-decoration: underline;
}
.wt-record-count {
    background: #e2e8f0;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #475569;
}

/* 卡片通用 */
.wt-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 30px 35px;
    margin-bottom: 30px;
    transition: box-shadow 0.2s ease;
}
.wt-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.wt-card h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1.6rem;
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

/* 表单布局 */
.wt-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.wt-col {
    flex: 1;
    min-width: 180px;
}
.wt-col label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.wt-col input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.wt-col input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #ffffff;
}

/* 按钮 */
.wt-button {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.wt-button-primary {
    background: #3b82f6;
    color: #ffffff;
}
.wt-button-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}
.wt-button-danger {
    background: #ef4444;
    color: #ffffff;
    padding: 6px 16px;
    font-size: 0.85rem;
}
.wt-button-danger:hover {
    background: #dc2626;
}
.wt-button-success {
    background: #22c55e;
    color: #ffffff;
    padding: 6px 16px;
    font-size: 0.85rem;
}
.wt-button-success:hover {
    background: #16a34a;
}
.wt-button-page {
    background: #f1f5f9;
    color: #1e293b;
    padding: 6px 14px;
    font-size: 0.9rem;
    min-width: 36px;
}
.wt-button-page:hover {
    background: #e2e8f0;
}
.wt-button-page.active {
    background: #3b82f6;
    color: #ffffff;
}
.wt-button-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 消息提示 */
#wt-message {
    margin-top: 16px;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 500;
    display: none;
}
.success-message {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    display: block;
}
.error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}
.info-message {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
    display: block;
}

/* 记录列表 */
.wt-record-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 14px;
    border-left: 5px solid #3b82f6;
    transition: background 0.15s;
    position: relative;
}
.wt-record-item:hover {
    background: #f1f5f9;
}
.wt-record-item.temp-record {
    border-left-color: #f59e0b;
    background: #fffbeb;
}
.wt-record-item.temp-record:hover {
    background: #fef3c7;
}
.wt-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.wt-record-date {
    font-weight: 600;
    color: #0f172a;
    font-size: 1.05rem;
}
.wt-record-badge {
    font-size: 0.75rem;
    padding: 2px 12px;
    border-radius: 12px;
    background: #f59e0b;
    color: #ffffff;
    margin-left: 10px;
}
.wt-record-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}
.wt-record-stat {
    background: #ffffff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.wt-bmi-indicator {
    display: inline-block;
    padding: 4px 18px;
    border-radius: 30px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}
.wt-notes {
    margin-top: 8px;
    color: #475569;
    font-style: italic;
    font-size: 0.95rem;
    padding-left: 6px;
}
.wt-record-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.no-records {
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
    font-size: 1.1rem;
}

/* 分页导航 */
.wt-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}
.wt-pagination .wt-page-info {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 10px;
}

/* 加载动画 */
.wt-loading {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
}
.wt-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* 响应式 */
@media (max-width: 600px) {
    .wt-card {
        padding: 20px;
    }
    .wt-row {
        flex-direction: column;
        gap: 12px;
    }
    .wt-col {
        min-width: auto;
    }
    .wt-record-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .wt-status-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .wt-pagination {
        gap: 4px;
    }
    .wt-button-page {
        padding: 4px 10px;
        font-size: 0.8rem;
        min-width: 30px;
    }
}