* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 页面头部 */
.header {
    margin-bottom: 40px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 48px;
    width: auto;
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

/* 主要内容 */
.main-content {
    max-width: 1000px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

/* 考生信息 */
.candidate-info {
    margin-bottom: 50px;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
    align-items: baseline;
}

.info-row .label {
    font-weight: 500;
    color: #333333;
    min-width: 250px;
    font-size: 14px;
}

.info-row .value {
    color: #1a1a1a;
    font-size: 14px;
}

.result-row .result-passed {
    color: #16a34a;
    font-weight: 600;
}

.score-value {
    font-weight: 600;
    color: #1a1a1a;
}

/* 成绩分析部分 */
.performance-section {
    border-top: 2px solid #e5e7eb;
    padding-top: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.chart-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.chart-area {
    flex: 1;
    max-width: 600px;
}

/* 分数图表 */
.score-chart {
    display: flex;
    height: 200px;
    margin-bottom: 20px;
    border: 1px solid #d1d5db;
    background: #ffffff;
}

.y-axis {
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-right: 1px solid #d1d5db;
}

.axis-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.chart-content {
    flex: 1;
    position: relative;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.score-bar-container {
    width: 200px;
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 置信区间范围 */
.confidence-range {
    width: 180px;
    height: 60px;
    background: rgba(147, 197, 253, 0.4);
    border: none;
    position: absolute;
    border-radius: 2px;
    top: 40px;
}

/* 您的分数线 */
.your-score-line {
    width: 180px;
    height: 2px;
    background: #1f2937;
    position: absolute;
    z-index: 2;
    top: 65px;
}

/* 最低及格分数线 */
.mps-line {
    width: 180px;
    height: 1px;
    background: transparent;
    border-top: 1px dotted #6b7280;
    position: absolute;
    bottom: 20px;
    z-index: 1;
}

.mps-label {
    position: absolute;
    bottom: 0px;
    left: 0;
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}

/* 图表说明 */
.chart-note {
    margin-top: 15px;
}

.chart-note p {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
    max-width: 450px;
}

/* 图例 */
.legend {
    width: 320px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 16px;
    height: fit-content;
    margin-left: 20px;
}

.legend-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.legend-line {
    width: 20px;
    height: 2px;
    margin-top: 6px;
    flex-shrink: 0;
}

.solid-line {
    background: #1f2937;
}

.dotted-line {
    border-top: 1px dotted #6b7280;
    background: transparent;
    height: 1px;
}

.legend-box {
    width: 20px;
    height: 12px;
    margin-top: 4px;
    flex-shrink: 0;
    border-radius: 1px;
}

.confidence-box {
    background: rgba(147, 197, 253, 0.4);
    border: none;
}

.legend-text {
    font-size: 12px;
    color: #374151;
    line-height: 1.3;
}

/* 输入框状态样式 */
.input-group.focused .email-input,
.input-group.focused .password-input {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.input-group.valid .email-input,
.input-group.valid .password-input {
    border-color: #22c55e;
}

.input-group.invalid .email-input,
.input-group.invalid .password-input {
    border-color: #ef4444;
}

/* 消息提示样式 */
.error-message,
.success-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

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

/* 按钮样式 */
.continue-btn,
.signin-btn {
    width: 100%;
    height: 48px;
    background: #4A90E2;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.continue-btn:hover,
.signin-btn:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.continue-btn:active,
.signin-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.continue-btn:disabled,
.signin-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.continue-btn:disabled:hover,
.signin-btn:disabled:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

/* 忘记密码链接 */
.forgot-password {
    text-align: right;
    margin-bottom: 24px;
}

.forgot-link {
    color: #4A90E2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #3a7bc8;
    text-decoration: underline;
}

/* 注册链接 */
.signup-link {
    text-align: center;
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

.signup-link-text {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.signup-link-text:hover {
    color: #3a7bc8;
    text-decoration: underline;
}

/* 第二屏：主题领域表现 */
.topic-performance-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.topic-intro {
    margin-bottom: 30px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.topic-intro p {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    max-width: 800px;
    margin: 0;
    font-weight: 400;
}

/* 主题图表容器 */
.topic-chart-container {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

/* 带轴的图表 */
.chart-with-axis {
    flex: 1;
    display: flex;
    gap: 20px;
    min-width: 0;
}

/* Y轴容器 */
.y-axis-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    width: 100px;
}

.y-axis-label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}

.y-axis-marks {
    display: flex;
    flex-direction: column;
    height: 200px;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.axis-mark {
    font-size: 12px;
    color: #6b7280;
    position: absolute;
}

.axis-mark:first-child {
    top: 10%; /* 对应70%网格线 */
    transform: translateY(-50%);
}

.axis-mark:last-child {
    top: 30%; /* 对应50%网格线 */
    transform: translateY(-50%);
}

/* 图表区域 */
.chart-area {
    flex: 1;
    position: relative;
    height: 200px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    min-width: 0;
}

/* 网格背景 */
.chart-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.grid-line-70 {
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.grid-line-50 {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

/* 条形图容器 */
.bars-container {
    display: flex;
    height: 100%;
    padding: 10px 0;
    gap: 0;
    align-items: flex-end;
}

/* 单个条形组 */
.bar-group {
    flex: 1;
    position: relative;
    height: 100%;
    margin: 0 1px;
}

/* 置信区间 */
.confidence-interval {
    position: absolute;
    left: 25%;
    right: 25%;
    background: rgba(147, 197, 253, 0.4);
    border: 1px solid rgba(147, 197, 253, 0.6);
    border-radius: 1px;
}

/* 分数标记线 */
.score-mark {
    position: absolute;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #1f2937;
}

/* 主题标签容器 */
.topic-labels-container {
    margin-top: 10px;
    display: flex;
    gap: 20px;
}

/* 主题表格 */
.topic-table {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-left: 100px; /* 与Y轴容器对齐 */
}

.topic-table-row {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.topic-table-row:last-child {
    border-bottom: none;
}

.topic-table-cell {
    flex: 1;
    padding: 8px 4px;
    text-align: center;
    font-size: 10px;
    color: #374151;
    border-right: 1px solid #e5e7eb;
    line-height: 1.3;
    min-width: 0;
    word-wrap: break-word;
}

.topic-table-cell:last-child {
    border-right: none;
}

.header-cell {
    background: #f9fafb;
    font-weight: 600;
    color: #6b7280;
    min-width: 100px;
    flex: 0 0 100px;
    text-align: left;
    padding-left: 12px;
    margin-left: -100px; /* 补偿表格的左边距 */
}

.topic-header .topic-table-cell:not(.header-cell) {
    background: #f9fafb;
    font-weight: 500;
    font-size: 10px;
    word-wrap: break-word;
    hyphens: auto;
}

/* 图例 */
.chart-legend {
    width: 280px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

.chart-legend .legend-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.legend-line {
    width: 20px;
    height: 2px;
    background: #1f2937;
    margin-top: 8px;
    flex-shrink: 0;
}

.legend-box {
    width: 20px;
    height: 16px;
    background: rgba(147, 197, 253, 0.4);
    border: 1px solid rgba(147, 197, 253, 0.6);
    border-radius: 1px;
    margin-top: 4px;
    flex-shrink: 0;
}

.legend-description {
    font-size: 12px;
    color: #374151;
    line-height: 1.4;
}

/* 底部说明 */
.topic-note {
    margin-top: 30px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 4px solid #e5e7eb;
}

.topic-note p {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    max-width: 800px;
    margin: 0;
}

/* 页面底部 */
.page-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: #4A90E2;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #3a7bc8;
    text-decoration: underline;
}

.copyright {
    color: #6b7280;
    font-size: 13px;
}

.page-number {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

/* 页码部分 */
.page-number-section {
    margin-top: 70px;
    margin-bottom: 40px;
    text-align: center;
    padding: 20px 0;
}

/* 响应式设计 */    
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .chart-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .legend {
        width: 100%;
    }
    
    .info-row {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 12px;
    }
    
    .info-row .label {
        min-width: auto;
        font-weight: 600;
    }
    
    .score-chart {
        height: 250px;
    }
    
    .confidence-range,
    .your-score-line,
    .mps-line {
        width: 200px;
    }
    
    .email-input,
    .password-input,
    .continue-btn,
    .signin-btn {
        height: 44px;
        font-size: 15px;
    }
    
    .footer-content {
        font-size: 12px;
        gap: 8px;
        padding: 0 10px;
    }
    
    .footer {
        padding: 12px 16px;
    }
    
    .logo img {
        height: 56px;
        max-width: 180px;
    }
    
         /* 第二屏响应式 */
     .topic-chart-container {
         flex-direction: column;
         gap: 20px;
     }
     
     .chart-legend {
         width: 100%;
     }
     
     .chart-with-axis {
         flex-direction: column;
         gap: 15px;
     }
     
     .y-axis-container {
         flex-direction: row;
         min-width: auto;
         justify-content: flex-start;
         gap: 20px;
     }
     
     .y-axis-label {
         writing-mode: horizontal-tb;
         text-orientation: mixed;
         margin-bottom: 0;
         text-align: center;
     }
     
     .y-axis-marks {
         flex-direction: row;
         height: auto;
         gap: 40px;
         position: static;
     }
     
     .axis-mark:first-child,
     .axis-mark:last-child {
         position: static;
         transform: none;
         top: auto;
     }
    
    .topic-table-cell {
        font-size: 9px;
        padding: 6px 2px;
    }
    
    .topic-table {
        margin-left: 0;
    }
    
    .header-cell {
        margin-left: 0;
    }
    
    .page-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .page-number-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px 24px;
        margin: 20px;
        border-radius: 8px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .email-input,
    .password-input,
    .continue-btn,
    .signin-btn {
        height: 44px;
        font-size: 15px;
    }
    
    .footer-content {
        font-size: 12px;
        gap: 8px;
        padding: 0 10px;
    }
    
    .footer {
        padding: 12px 16px;
    }
    
    .logo img {
        height: 48px;
        max-width: 160px;
    }
    
    .logo-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .brand-name {
        font-size: 18px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .score-chart {
        height: 200px;
    }
    
    .confidence-range,
    .your-score-line,
    .mps-line {
        width: 150px;
    }
    
    .legend {
        padding: 15px;
    }
    
    /* 第二屏小屏响应式 */
    .topic-performance-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .topic-chart-content {
        height: 200px;
    }
    
    .topic-table-cell {
        font-size: 9px;
        padding: 4px 2px;
    }
    
    .header-cell {
        min-width: 80px;
        flex: 0 0 80px;
        font-size: 9px;
    }
    
         .chart-legend {
         padding: 15px;
     }
    
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .page-number-section {
        text-align: center;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: 24px 20px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 4px;
    }
    
    .separator {
        display: none;
    }
    
    .logo img {
        height: 48px;
        max-width: 160px;
    }
    
    .page-number-section {
        text-align: center;
    }
} 