.page-title {
    font-size: 18px;
    font-weight: 600;
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    background: var(--bg);
    border-radius: 50%;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--border);
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

.tabs {
    display: flex;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    color: var(--text-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.tab-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 500;
}

.records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.record-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease-out;
}

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

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

.record-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.record-status.pending {
    background: rgba(250, 173, 20, 0.1);
    color: var(--warning);
}

.record-status.processing {
    background: rgba(79, 172, 254, 0.1);
    color: var(--primary);
}

.record-status.completed {
    background: rgba(82, 196, 26, 0.1);
    color: var(--success);
}

.record-status.failed {
    background: rgba(255, 77, 79, 0.1);
    color: var(--danger);
}

.record-body {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.record-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.record-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.record-thumb svg {
    width: 28px;
    height: 28px;
    opacity: 0.5;
}

.record-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.record-info-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.record-label {
    color: var(--text-lighter);
}

.record-value {
    color: var(--text);
    font-weight: 500;
}

.record-actions {
    display: flex;
    gap: 10px;
}

.record-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.record-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.record-btn.secondary {
    background: var(--bg);
    color: var(--text-light);
}

.record-btn:hover {
    transform: translateY(-2px);
}

.record-btn svg {
    width: 16px;
    height: 16px;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
}

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

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

.loading-state p {
    color: var(--text-lighter);
    font-size: 14px;
}

.refresh-tip {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.refresh-tip button {
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .app-nav {
        display: none;
    }
    
    .app-container {
        padding-bottom: 0;
    }
    
    .records-list {
        max-width: 800px;
        margin: 0 auto;
    }
}