:root {
    --bg: #fdfdfd;
    --text: #111827;
    --text-light: #6b7280;
    --primary: #2563eb;
    --border: #e5e7eb;
    --card-bg: #ffffff;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding: 60px 20px;
    line-height: 1.5;
}

.app-container {
    max-width: 860px;
    margin: 0 auto;
}

.main-header {
    text-align: center;
    margin-bottom: 50px;
}

.logo {
    width: 38px;
    margin-bottom: 12px;
}

.main-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 6px;
}

/* 卡片样式 */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    margin-bottom: 24px;
}

.card-tag {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--text);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.guide {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

/* 步骤列表对齐优化 */
.step-list {
    list-style-position: inside;
    margin-bottom: 24px;
}

.step-list li {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 6px;
    line-height: 1.6;
}

/* 输入框组合 */
.input-group {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f9fafb;
    overflow: hidden;
}

.input-prefix {
    padding: 12px 16px;
    color: var(--text-light);
    font-size: 14px;
    background: #f3f4f6;
    border-right: 1px solid var(--border);
}

input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    font-size: 14px;
}

#toggle-pwd {
    border: none;
    background: transparent;
    padding: 0 16px;
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
}

/* 按钮 */
.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* 结果框 */
.result-box {
    margin-top: 20px;
}

.chat-item {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.chat-info strong {
    display: block;
    font-size: 13px;
}

.chat-info span {
    font-size: 11px;
    color: var(--text-light);
    font-family: 'JetBrains Mono';
}

.copy-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
}

/* 响应式网格 */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

.footer {
    text-align: center;
    margin-top: 60px;
    color: var(--text-light);
    font-size: 12px;
}

.reset-link {
    background: none;
    border: none;
    color: #dc2626;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 8px;
}

/* 辅助样式：空状态与加载 */
.loading,
.empty,
.error {
    font-size: 13px;
    color: var(--text-light);
    padding: 10px 0;
}

.error {
    color: #dc2626;
}