:root {
    --primary-color: #4a90e2;
    --secondary-color: #777;
    --ai-color: #f5a623;
    --bg-color: #f4f7f9;
    --text-color: #333;
    --border-color: #e0e6ed;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.step {
    display: none;
    flex-direction: column;
    height: 100%;
}
.step.active {
    display: flex;
}

header {
    background-color: #fff;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

header h1 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary-color);
}

.step-content {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
}

/* 手风琴样式 */
.accordion-title {
    background-color: #fff;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    user-select: none;
}
.accordion-title::after {
    content: '▼';
    position: absolute;
    right: 15px;
    transition: transform 0.3s;
}
.accordion-title.active::after {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    margin-top: -10px;
    padding: 0 15px;
}
.accordion-content.show {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-top: none;
}

.suggestion-item label {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.suggestion-item input {
    margin-right: 10px;
    width: 20px; height: 20px;
}

/* 文本域样式 */
textarea {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
    line-height: 1.6;
    resize: none;
}
#draft-comment {
    height: calc(100vh - 150px);
}
#final-comment-container {
    height: 200px; /* 最终预览区高度 */
    margin-bottom: 15px;
}

/* 固定底部按钮 */
.step-footer {
    flex-shrink: 0;
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}
.footer-multi-button {
    display: flex;
    gap: 15px;
}
.btn {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-primary { background-color: var(--primary-color); }
.btn-secondary { background-color: var(--secondary-color); }
.btn-ai { background-color: var(--ai-color); }
.btn-copy { background-color: #28a745; margin-top: 10px; }

/* 步骤三的工具组 */
.tool-group { margin-bottom: 20px; }
.tool-group h3 { margin-top: 0; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }

#quotes-container .quote-item { /* ... (可复用PC端样式) ... */ }
.time-limit-group { /* ... (可复用PC端样式) ... */ }

#final-actions {
    padding: 0 15px 15px 15px;
    background-color: #fff;
}

/* 加载动画 */
#loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    color: white;
}
.spinner {
    width: 50px; height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* --- 在 mobile.css 文件末尾添加 --- */

/* 结果视图的样式 */
/* 当 #step-3 拥有 .result-view-active 这个class时，以下样式生效 */

.step.result-view-active #quote-tool-group,
.step.result-view-active #settings-tool-group {
    display: none; /* 隐藏工具区块 */
}

.step.result-view-active #final-comment-container {
    /* 将最终点评区的高度扩大，填满屏幕 */
    height: calc(100vh - 230px); /* 这个值可以微调，以适应你的设备 */
    transition: height 0.3s ease-in-out;
}
