/* 表单 */
.form-row {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
}

.required {
    color: var(--danger);
}

/* 标签组 */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    background: var(--light);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-close {
    cursor: pointer;
    color: #999;
}

/* 按钮 */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

/* 进度 */
.progress {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

/* 闪动动画：外发光闪烁 */
@keyframes blink {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2);
    }
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray);
}

.platform-progress {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 表格 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--light);
    font-weight: 600;
}

/* 排名 */
.rank {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
}

.no-rank {
    color: var(--gray);
    font-size: 13px;
}

/* 标签切换 */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.tab {
    cursor: pointer;
    font-weight: 500;
    color: #666;
}

.tab.active {
    color: var(--primary);
}

.layui-form input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    height: auto;
}

.layui-input-affix {
    line-height: 45px;
}

.layui-input-wrap {
    line-height: unset;
}

/* 标签输入 */
.tag-input-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px;
    min-height: 42px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.layui-form input.tag-input {
    border: none;
    flex: 1;
    min-width: 120px;
    padding: 6px;
    outline: none;
}

.layui-form input.tag-input:focus {
    box-shadow: none;
}

.tag {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag-remove {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    opacity: 0.6;
}

.tag-remove:hover {
    opacity: 1;
}

.tag-input {
    border: none;
    flex: 1;
    min-width: 120px;
    padding: 6px;
    outline: none;
}

/* 推荐标签 */
.recommend-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.rec-tag {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.layui-btn {
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    height: auto;
    line-height: unset;
}

.layui-bg-blue {
    background-color: #1a73e8!important;
    color: #fff!important;
}

/* 进度条（可选） */
.rate-bar {
    margin-top: 12px;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.rate-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    width: 0%;
}

.layui-tabs-header li {
    padding: 0 10px;
}

.question-items {
    margin-bottom: 10px;
}

.generate-question-btn {
    padding: 5px 15px;
    border: 1px solid #e67e22;
    background: #fef3e8;
    color: #e67e22;
}

.layui-btn.generate-question-btn:hover {
    color: #e67e22;
}

.detection-confirm {
    display: none;
}