/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 16px;
    color: #333;
}

.container {
    max-width: 480px;
    margin: 0 auto;
}

/* 实验信息横幅 */
.experiment-banner {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 实验列表 */
.experiment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.experiment-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.experiment-item:hover {
    background: #f0f0f0;
    transform: translateX(4px);
}

.experiment-item.excellent {
    border-left-color: #4CAF50;
}

.experiment-item.pass {
    border-left-color: #FF9800;
}

.experiment-item.fail {
    border-left-color: #F44336;
}

.experiment-item.pending {
    opacity: 0.6;
    cursor: default;
}

.experiment-item.pending:hover {
    transform: none;
    background: #f8f9fa;
}

.exp-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.exp-score {
    display: flex;
    align-items: baseline;
}

.score-num {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.score-unit {
    font-size: 12px;
    color: #888;
    margin-left: 2px;
}

.exp-status {
    font-size: 14px;
    color: #999;
}

.exp-arrow {
    font-size: 20px;
    color: #ccc;
    margin-left: 8px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

/* 登录卡片 */
.login-card {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    margin-top: 60px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.header {
    text-align: center;
    margin-bottom: 32px;
}

.icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.header h1 {
    font-size: 22px;
    color: #333;
    margin-bottom: 8px;
}

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

/* 输入框 */
.input-group {
    margin-bottom: 20px;
}

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

.input-group input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* 按钮 */
.btn-primary {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    width: 100%;
    height: 48px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    color: #666;
    font-size: 15px;
    cursor: pointer;
    margin-top: 12px;
}

/* 错误提示 */
.error-msg {
    color: #f44336;
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
    min-height: 20px;
}

.footer {
    text-align: center;
    margin-top: 24px;
    color: #888;
    font-size: 13px;
}

/* 学生信息 */
.student-info {
    display: flex;
    align-items: center;
}

.avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-right: 16px;
}

.info h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

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

/* 成绩卡片 */
.score-card {
    position: relative;
    text-align: center;
    padding: 24px;
}

.score-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #888;
}

.score-label {
    font-weight: 500;
}

.total-score {
    font-size: 72px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 8px;
}

.score-ring {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 80px;
    height: 80px;
}

.score-ring svg {
    transform: rotate(-90deg);
}

.score-ring circle.bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 8;
}

.score-ring circle.progress {
    fill: none;
    stroke: #4CAF50;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

/* 分项得分 */
.score-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.score-item {
    display: grid;
    grid-template-columns: 90px 1fr 50px;
    align-items: center;
    gap: 12px;
}

.score-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.tech { background: #2196F3; }
.dot.algo { background: #4CAF50; }
.dot.ai { background: #FF9800; }
.dot.process { background: #9C27B0; }

.score-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.score-bar .bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.score-bar:nth-child(1) .bar { background: #2196F3; }
.score-item:nth-child(1) .bar { background: #2196F3; }
.score-item:nth-child(2) .bar { background: #4CAF50; }
.score-item:nth-child(3) .bar { background: #FF9800; }
.score-item:nth-child(4) .bar { background: #9C27B0; }

.score-value {
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.info-item .label {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.info-item .value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 操作按钮 */
.actions {
    margin-top: 8px;
}

/* 导航栏 */
.nav-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.btn-back {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}

.btn-export {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    color: #667eea;
    font-weight: 500;
}

/* 报告内容 */
.report-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.report-content h1 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #333;
}

.report-content h2 {
    font-size: 18px;
    margin: 24px 0 12px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.report-content h3 {
    font-size: 16px;
    margin: 16px 0 8px;
    color: #555;
}

.report-content p {
    margin-bottom: 12px;
}

.report-content ul, .report-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.report-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.report-content th, .report-content td {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    text-align: left;
}

.report-content th {
    background: #f8f9fa;
}

.report-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

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

/* 空状态 */
.no-report, .error {
    text-align: center;
    padding: 40px;
    color: #888;
}

.no-report .hint, .error .hint {
    font-size: 13px;
    margin-top: 8px;
    color: #aaa;
}

/* 底部信息 */
.footer-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 16px;
    padding-bottom: 20px;
}

/* 响应式 */
@media (max-width: 380px) {
    .score-item {
        grid-template-columns: 80px 1fr 45px;
        font-size: 13px;
    }
}
