/* ===========================
   年度小结生成器 - 专用样式
   =========================== */

/* 左右布局 */
.as-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: var(--spacing-lg, 24px);
    align-items: start;
}
.as-input-panel {
    position: sticky;
    top: var(--spacing-lg, 24px);
}

/* 简介输入框 */
.as-bio-input {
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
    line-height: 1.6;
}

/* 结果卡片 */
.as-result-card {
    min-height: 500px;
    display: flex;
    flex-direction: column;
}
.as-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md, 16px);
    flex-wrap: wrap;
    gap: 8px;
}
.as-result-header h3 {
    margin: 0;
}
.as-result-actions {
    display: flex;
    gap: 6px;
}

/* 结果正文 */
.as-result-body {
    flex: 1;
    padding: var(--spacing-lg, 24px);
    background: var(--bg-main, #F9FAFB);
    border: 1px solid var(--border, #E5E7EB);
    border-radius: var(--radius-lg, 12px);
    font-size: var(--text-sm, 14px);
    line-height: 2;
    color: var(--text-primary, #111827);
    min-height: 400px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 占位提示 */
.as-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    color: var(--text-muted, #9CA3AF);
    text-align: center;
}
.as-placeholder i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}
.as-placeholder p {
    font-size: var(--text-sm, 14px);
    line-height: 1.8;
}

/* 字数统计 */
.as-word-count {
    text-align: right;
    padding-top: 8px;
    font-size: var(--text-xs, 12px);
    color: var(--text-muted, #9CA3AF);
}

/* 生成中遮罩 */
.as-generating {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    gap: 16px;
}

/* 响应式 */
@media (max-width: 900px) {
    .as-layout {
        grid-template-columns: 1fr;
    }
    .as-input-panel {
        position: static;
    }
}
