/* S5 极度干预架构师 - 视觉规范
   设计哲学：系统、克制、锋利
*/

:root {
    --bg-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-color: #000000; /* 绝对黑，代表逻辑的确定性 */
    --border-color: #e0e0e0;
    --warning-bg: #f4f4f4;
    --font-main: -apple-system, "Inter", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

/* 容器：限制宽度以保证阅读深度 */
#form-container {
    width: 100%;
    max-width: 640px;
    padding: 40px 24px;
    animation: fadeIn 0.8s ease-out;
}

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

h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.intro {
    background: var(--warning-bg);
    padding: 20px;
    border-left: 2px solid var(--accent-color);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

/* 模块标题：结构化视觉标志 */
.module-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 56px 0 24px;
    display: flex;
    align-items: center;
}

.module-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin-left: 16px;
}

/* 问题组 */
.question-group {
    margin-bottom: 32px;
}

label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* 输入框：去装饰化，强调输入行为 */
textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 0; /* 放弃圆角，追求工业感 */
    padding: 16px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    min-height: 120px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
}

textarea::placeholder {
    color: #ccc;
    font-style: italic;
}

/* 提交按钮：强制性的动作 */
button#submit-btn {
    width: 100%;
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 20px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    margin-top: 40px;
    transition: background 0.2s;
}

button#submit-btn:hover {
    background: #333;
}

button#submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 对话框全屏覆盖 */
#coze-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 10000;
}

/* 适配移动端 */
@media (max-width: 480px) {
    #form-container {
        padding: 32px 20px;
    }
    h2 { font-size: 1.5rem; }
}