/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
}

.title {
    font-size: 2.5rem;
    color: #4169e1;
    margin-bottom: 16px;
    font-weight: bold;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
}

.interview-image {
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.interview-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 按钮样式 */
.action-buttons {
    width: 100%;
    max-width: 600px;
}

.button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.button.primary {
    background-color: #4169e1;
    color: white;
}

.button.secondary {
    background-color: #f0f0f0;
    color: #666;
}

.button.disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.button.full-width {
    width: 100%;
    justify-content: center;
}

.button span {
    font-size: 1.2rem;
    font-weight: bold;
}

.button .description {
    font-size: 0.9rem;
    font-weight: normal;
    display: block;
    margin-top: 4px;
}

.button .arrow {
    font-size: 1.8rem;
    font-weight: normal;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 0.9rem;
}

/* 准备页面样式 */
.back-button {
    display: flex;
    align-items: center;
    color: #4169e1;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 20px;
}

.back-button:hover {
    text-decoration: underline;
}

.page-title {
    font-size: 1.8rem;
    color: #4169e1;
    margin-bottom: 24px;
}

.upload-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 16px;
}

.upload-area {
    border: 2px dashed #c0d3ff;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 16px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.upload-area:hover {
    background-color: #f8f9ff;
    border-color: #4169e1;
}

.upload-area.drag-over {
    background-color: #f0f4ff;
    border-color: #4169e1;
}

.upload-icon {
    font-size: 3rem;
    color: #4169e1;
    margin-bottom: 16px;
}

.upload-text {
    color: #666;
    margin-bottom: 8px;
}

.upload-formats {
    color: #999;
    font-size: 0.9rem;
}

/* 上传中状态 */
.upload-loading {
    text-align: center;
    padding: 20px;
    margin-top: 16px;
}

.upload-loading .spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4169e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 上传预览区域 */
.upload-preview {
    margin-top: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f8f9ff;
    border-bottom: 1px solid #eee;
}

.preview-header h3 {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.delete-button {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.delete-button:hover {
    background-color: #fee;
}

.delete-button svg {
    margin-right: 4px;
}

.preview-image {
    padding: 16px;
    text-align: center;
}

.preview-image img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
}

.upload-status {
    color: #666;
    font-size: 0.9rem;
    padding: 0 16px 16px;
    margin: 0;
}

.hidden {
    display: none;
}

.input-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

textarea {
    width: 100%;
    min-height: 150px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #4169e1;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.action-bar .button {
    margin-bottom: 0;
    padding: 12px 24px;
    flex: 1;
}

.action-bar .button:first-child {
    margin-right: 12px;
}

/* 结果页面样式 */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-info {
    color: #666;
    font-size: 1.1rem;
    text-align: right;
}

.result-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.result-title {
    font-size: 1.4rem;
    color: #333;
    margin: 0;
}

.copy-button {
    display: flex;
    align-items: center;
    color: #4169e1;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.copy-button:hover {
    text-decoration: underline;
}

.copy-button svg {
    margin-right: 6px;
}

/* Markdown内容框样式 */
.markdown-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    min-height: 400px;
    flex: 1;
    font-family: 'PingFang SC', 'Microsoft YaHei', monospace;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    position: relative;
}

.markdown-content h1, 
.markdown-content h2, 
.markdown-content h3, 
.markdown-content h4, 
.markdown-content h5, 
.markdown-content h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #333;
}

.markdown-content h1 {
    font-size: 2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3em;
}

.markdown-content h2 {
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3em;
}

.markdown-content h3 {
    font-size: 1.25em;
}

.markdown-content h4 {
    font-size: 1em;
}

.markdown-content p {
    margin-bottom: 16px;
}

.markdown-content ul, 
.markdown-content ol {
    margin-bottom: 16px;
    padding-left: 2em;
}

.markdown-content li {
    margin-bottom: 4px;
}

.markdown-content code {
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(27, 31, 35, 0.05);
    border-radius: 3px;
}

.markdown-content pre {
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f6f8fa;
    border-radius: 3px;
    margin-bottom: 16px;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
}

.markdown-content blockquote {
    padding: 0 1em;
    color: #6a737d;
    border-left: 0.25em solid #dfe2e5;
    margin-bottom: 16px;
}

.markdown-content hr {
    height: 0.25em;
    padding: 0;
    margin: 24px 0;
    background-color: #e1e4e8;
    border: 0;
}

/* 打字指示器样式 */
.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 10px 0;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    float: left;
    margin: 0 1px;
    background-color: #4169e1;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
}

.typing-indicator span:nth-of-type(1) {
    animation: typing 1s infinite;
}

.typing-indicator span:nth-of-type(2) {
    animation: typing 1s 0.33s infinite;
}

.typing-indicator span:nth-of-type(3) {
    animation: typing 1s 0.66s infinite;
}

@keyframes typing {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.4;
        transform: scale(1);
    }
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.result-actions .button {
    flex: 0 0 auto;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
}

.result-actions .button svg {
    margin-right: 8px;
}

.error {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
} 