/* ==================== 面板 ==================== */
.panel {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    color: var(--text);
}

/* ==================== 模式切换 ==================== */
.mode-switch {
    display: flex;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: 14px;
}

.mode-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s;
    min-height: var(--touch-target);
}

.mode-btn.active {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    font-weight: 600;
}

/* ==================== 上传区域 ==================== */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.upload-placeholder svg {
    width: 40px;
    height: 40px;
}

.upload-placeholder p {
    font-size: 14px;
    font-weight: 500;
}

.upload-placeholder span {
    font-size: 11px;
    color: var(--text-muted);
}

.image-preview {
    max-width: 100%;
    max-height: 220px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    display: none;
}

/* 清除照片按钮 */
.clear-photo-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 5;
    transition: all 0.2s;
}

.clear-photo-btn:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

/* ==================== 按钮 ==================== */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: var(--touch-target);
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.97);
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-success {
    background: #409eff;
    color: #fff;
}

.btn-success:hover:not(:disabled) {
    background: #337ecc;
}

.btn-camera {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-camera:hover { background: var(--bg); }

.btn-gallery {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-gallery:hover { background: var(--bg); }

.btn-full {
    width: 100%;
    padding: 12px;
    font-size: 15px;
}

.photo-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.photo-actions .btn {
    flex: 1;
}

/* ==================== 表单 ==================== */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.text-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
    background: var(--bg);
    min-height: var(--touch-target);
    -webkit-appearance: none;
}

.text-input:focus {
    border-color: var(--primary);
    background: #fff;
}

/* ==================== 餐别选择器 ==================== */
.meal-type-selector {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.meal-type-selector::-webkit-scrollbar {
    display: none;
}

.mt-opt {
    flex: 1;
    min-width: 56px;
    padding: 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s;
    white-space: nowrap;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
}

.mt-opt.selected {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
}

.mt-opt:hover:not(:selected) {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==================== 加载动画 ==================== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ==================== 加载进度条 ==================== */
.progress-bar-wrap {
    width: 100%;
    max-width: 260px;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #66bb6a 0%, #43a047 50%, #2e7d32 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 2px;
}

/* ==================== 结果卡片 ==================== */
.result-card {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
    border-radius: var(--radius);
    border: 1px solid var(--primary-light);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.result-header h3 {
    font-size: 16px;
    color: var(--text);
}

.result-auto-saved {
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
    white-space: nowrap;
}

.result-calories {
    text-align: center;
    padding: 8px;
    margin-bottom: 8px;
}

.result-calories span {
    font-size: 38px;
    font-weight: 700;
    color: var(--warning);
}

.result-calories small {
    font-size: 14px;
    color: var(--text-secondary);
}

.result-macros {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.macro-item {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.macro-label {
    display: block;
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.macro-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.macro-unit {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 1px;
}

.result-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #fff;
    border-radius: var(--radius-sm);
    line-height: 1.4;
}

.result-actions {
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* ==================== 环形进度 ==================== */
.calorie-ring-wrap {
    text-align: center;
    margin-bottom: 16px;
}

.calorie-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #e8e8e8;
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease, stroke 0.5s;
}

.ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ring-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.ring-unit {
    font-size: 11px;
    color: var(--text-secondary);
}

.ring-label {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.ring-label strong {
    color: var(--text);
}

/* ==================== 营养汇总卡片 ==================== */
.macro-summary {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.macro-card {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    color: #fff;
}

.macro-card.protein {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.macro-card.carbs {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.macro-card.fat {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.mc-val {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.mc-label {
    display: block;
    font-size: 10px;
    opacity: 0.9;
    margin-top: 2px;
}

/* ==================== 餐食列表 ==================== */
.meal-list-section {
    margin-top: 8px;
}

.meal-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.meal-list-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.meal-count {
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 10px;
}

.meal-group {
    margin-bottom: 6px;
}

.meal-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
}

.meal-group-cal {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 400;
}

.meal-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 10px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.meal-item:last-child {
    border-bottom: none;
}

.meal-item-info strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.meal-kcal {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
}

.meal-note-toggle {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    color: #B98900;
    cursor: pointer;
    user-select: none;
}

.meal-note-toggle:hover {
    text-decoration: underline;
}

.meal-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #FFF8E1, #FFFDF5);
    border-left: 3px solid #FFB300;
    border-radius: 6px;
}

.meal-note-icon {
    font-size: 12px;
    line-height: 1.5;
    flex-shrink: 0;
}

.meal-note-text {
    font-size: 12px;
    color: #6B5B2A;
    line-height: 1.5;
    flex: 1;
    word-break: break-word;
}

.meal-del {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    font-size: 12px;
    flex-shrink: 0;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.meal-del:hover {
    color: var(--danger);
    background: #fef0f0;
}

.meal-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.meal-img-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 16px;
    flex-shrink: 0;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.meal-img-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* ==================== 图片弹窗 ==================== */
.image-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.image-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
}

.image-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    max-width: 92vw;
    max-height: 90vh;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

.image-modal-content img {
    max-width: 100%;
    max-height: calc(90vh - 16px);
    border-radius: 8px;
    display: block;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #333;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.image-modal-close:hover {
    background: #555;
}

/* ==================== 饮食热量卡片 ==================== */
.diet-calorie-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.diet-calorie-card:active {
    transform: scale(0.98);
}

.dcc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.dcc-header .panel-title {
    margin-bottom: 0;
    padding-bottom: 10px;
}

.dcc-arrow {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 700;
    padding-bottom: 10px;
}

.dcc-body {
    text-align: center;
    padding: 12px 0 8px;
}

.dcc-remaining {
    margin-bottom: 8px;
}

.dcc-remaining-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.dcc-remaining-value {
    font-size: 42px;
    font-weight: 700;
    color: #2e7d32;
    line-height: 1;
}

.dcc-remaining-unit {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 2px;
}

.dcc-summary {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dcc-summary-item strong {
    color: var(--text);
    font-size: 14px;
}

.dcc-summary-divider {
    color: var(--text-muted);
}

.dcc-meal-types {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.dcc-mt-btn {
    flex: 1;
    padding: 10px 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
    min-height: 40px;
    -webkit-tap-highlight-color: transparent;
}

.dcc-mt-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.dcc-mt-btn:active {
    transform: scale(0.96);
    background: var(--primary);
    color: #fff;
}

/* 饮食热量卡片 - 展开表单 */
.dcc-manual-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    animation: slideUp 0.3s ease;
}

.dcc-form-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
    text-align: center;
}

/* ==================== Panda相机 - 拍照子模式切换 ==================== */
.photo-submode {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.psm-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
}

.psm-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
}

.psm-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==================== 运动标签 ==================== */
.exercise-label {
    color: #ff6d00 !important;
}

/* ==================== 底部导航2项 ==================== */
.tab-bar .tab-item {
    flex: 1;
    max-width: none;
}

/* ==================== 饮食热量卡片内大按钮 ==================== */
.dcc-action-btn {
    width: 100%;
    padding: 14px 10px;
    margin-top: 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.dcc-action-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.dcc-action-btn:active {
    transform: scale(0.98);
    background: var(--primary-light);
}

.dcc-action-icon {
    font-size: 18px;
}

.dcc-action-exercise {
    border-color: #ffe0b2;
    background: #fff8e1;
}

.dcc-action-exercise:hover {
    background: #fff3e0;
    border-color: #ffb74d;
}

.dcc-action-sub {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 4px;
}

.dcc-action-sub strong {
    color: #e65100;
}

/* ==================== 手动录入弹窗 ==================== */
.meal-input-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.meal-input-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.meal-input-modal-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 20px 18px;
    width: 92vw;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}

.meal-input-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.meal-input-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

/* ==================== Panda相机弹窗 - 选择按钮 ==================== */
.camera-choose-btns {
    display: flex;
    gap: 10px;
}

.camera-choose-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.camera-choose-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.camera-choose-btn:active {
    transform: scale(0.97);
}

.camera-choose-icon {
    font-size: 32px;
}

.camera-choose-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.camera-choose-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==================== Panda相机弹窗 - 子模式提示 ==================== */
.camera-submode-hint {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    padding: 6px 12px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

/* ==================== 功夫熊猫相机按钮 ==================== */
.btn-panda-camera {
    width: 100%;
    padding: 28px 20px;
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(67, 160, 71, 0.35);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.btn-panda-camera::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-panda-camera:active::before {
    opacity: 1;
}

.btn-panda-camera:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.25);
}

.panda-camera-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.panda-camera-label {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.panda-camera-cost {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

/* 预览区容器 */
#exPreviewArea {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    background: var(--bg);
}

/* ==================== 积分排行榜 ==================== */
.leaderboard-panel {
    margin-bottom: 12px;
    animation: slideUp 0.4s ease;
}

.leaderboard-header {
    margin-bottom: 8px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leaderboard-loading,
.leaderboard-empty {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    padding: 12px 0;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    transition: transform 0.2s;
}

.leaderboard-item:active {
    transform: scale(0.98);
}

/* 金牌 */
.lb-gold {
    background: linear-gradient(135deg, #fffde7 0%, #fff8e1 100%);
    border: 1px solid #ffd54f;
}

/* 银牌 */
.lb-silver {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 1px solid #e0e0e0;
}

/* 铜牌 */
.lb-bronze {
    background: linear-gradient(135deg, #fff3e0 0%, #fbe9e7 100%);
    border: 1px solid #ffab91;
}

.lb-rank {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.lb-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    overflow: hidden;
}

.lb-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.lb-avatar-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
}

.lb-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-points {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    flex-shrink: 0;
    white-space: nowrap;
}

