/* AI文章工坊样式 v2 */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 15px;
}

.header-card .layui-card-body {
    padding: 20px 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

.header-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.stat-item b {
    color: #ffd700;
    font-size: 16px;
}

/* 公众号选择 */
.account-list {
    display: flex;
    gap: 10px;
}

.account-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e6e6e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.account-item:hover {
    border-color: #1e9fff;
    background: #f0f9ff;
}

.account-item.active {
    border-color: #5fb878;
    background: #f0f9eb;
}

.account-item.active .account-check {
    color: #5fb878;
}

.account-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.account-info {
    flex: 1;
    margin-left: 10px;
}

.account-name {
    font-weight: 600;
    font-size: 14px;
}

.account-stats {
    font-size: 12px;
    color: #999;
}

.account-check {
    font-size: 18px;
    color: #999;
}

.account-tip {
    margin-top: 10px;
    padding: 8px;
    background: #fff9e6;
    border-radius: 6px;
    font-size: 12px;
    color: #e6a23c;
}

/* 设置项 */
.setting-item {
    margin-bottom: 15px;
}

.setting-item label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.setting-item select {
    width: 100%;
}

.setting-item textarea {
    width: 100%;
    resize: vertical;
}

/* 批量按钮 */
.batch-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.selected-info {
    text-align: center;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.selected-info b {
    color: #1e9fff;
    font-size: 18px;
}

/* 游戏瀑布流 */
.game-waterfall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    min-height: 300px;
    padding: 10px;
}

.game-card {
    background: white;
    border: 2px solid #e6e6e6;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.game-card:hover {
    border-color: #1e9fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,159,255,0.2);
}

.game-card.selected {
    border-color: #5fb878;
    background: #f0f9eb;
}

.game-card.selected::after {
    content: "✓";
    position: absolute;
    top: 5px;
    right: 5px;
    background: #5fb878;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.game-icon {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 8px;
    display: block;
    border: 1px solid #eee;
}

.game-title {
    font-size: 12px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}

.loading-tip {
    text-align: center;
    padding: 40px;
    color: #999;
    grid-column: 1/-1;
}

/* 头部工具栏 */
.header-tools {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-tools input {
    width: 150px;
    height: 32px;
}

/* 分页控件 */
.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-top: 15px;
}

.page-info {
    font-size: 14px;
    color: #666;
    padding: 0 10px;
}

.page-jump {
    width: 60px;
    height: 32px;
    text-align: center;
}

/* 进度面板 */
.progress-card {
    margin-top: 15px;
}

.progress-bar-container {
    margin-bottom: 20px;
}

.progress-text {
    float: right;
    color: #1e9fff;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.task-card {
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
}

.task-card.waiting {
    background: #f8f8f8;
    border: 1px solid #ddd;
}

.task-card.running {
    background: #e6f7ff;
    border: 2px solid #1e9fff;
    animation: pulse 1.5s infinite;
}

.task-card.success {
    background: #f6ffed;
    border: 2px solid #52c41a;
}

.task-card.error {
    background: #fff2f0;
    border: 2px solid #ff4d4f;
}

.task-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.task-status {
    font-size: 10px;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.progress-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
}

.progress-stats b {
    font-size: 18px;
}

.progress-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* 滚动条美化 */
.game-waterfall::-webkit-scrollbar,
.task-grid::-webkit-scrollbar {
    width: 6px;
}

.game-waterfall::-webkit-scrollbar-thumb,
.task-grid::-webkit-scrollbar-thumb {
    background: #1e9fff;
    border-radius: 3px;
}
