/* --- 基础样式，从 main.css 复制以确保独立性 --- */
:root {
    --primary-color: #c84e45; /* 主题红色 */
    --secondary-color: #d89c5f; /* 主题橙色/棕色 */
    --background-color: #fffaf0; /* 背景米黄色 */
    --text-color: #5c3a21; /* 主要文字颜色 */
    --light-text-color: #a08c7d; /* 浅色文字 */
    --border-color: #f0e0c8; /* 边框颜色 */
    --label-color: #6a5542;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    display: flex; justify-content: center; align-items: flex-start;
    min-height: 100vh; padding: 20px;
}
.container {
    width: 100%; max-width: 400px; background-color: rgba(255, 255, 255, 0.85);
    border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.header {
    display: flex; /* 添加 flex 布局 */
    align-items: center; /* 垂直居中对齐 */
    justify-content: space-between; /* 调整为两端对齐 */
    padding: 15px; /* 添加内边距 */
    position: relative;
}
.back-button {
    position: absolute; /* 绝对定位，脱离文档流 */
    left: 15px; /* 定位到左侧 */
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    color: var(--text-color);
    z-index: 10;
}
.page-title {
    flex-grow: 1; /* 让标题占据可用空间 */
    text-align: center; /* 标题居中 */
    color: var(--text-color);
    font-size: 24px;
    margin: 0; /* 移除默认外边距 */
}
.records-list {
    display: flex;
    flex-direction: column;
    padding: 0 30px; 
}
.record-card {
    background-color: white; 
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}
.card-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.card-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}
.card-dates {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: var(--text-color);
    flex-grow: 1; 
    margin-right: 15px;
}
.card-dates .label {
    font-weight: bold;
    color: var(--light-text-color);
    margin-right: 5px;
}
.score-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}
.card-footer {
    display: none;
}
.no-records {
    text-align: center;
    color: var(--light-text-color);
    margin-top: 50px;
}
.no-records .cta-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
}
.container {
    width: 100%;
    max-width: 400px;
    background-image: url('../images/bg1.38caa22b.png'); /* 替换为您的图片路径 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}