/* 作者专区 - 现代化工作台样式 */

/* ===== 顶部欢迎横幅 ===== */
.modern-welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 24px 32px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.modern-welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.greeting-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.time-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.greeting-text .greeting-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.greeting-text .greeting-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.quick-actions {
    display: flex;
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-action-btn.primary-action {
    background: #ffffff;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-action-btn.primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.quick-action-btn.secondary-action {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.quick-action-btn.secondary-action:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== 数据统计卡片组（已隐藏） ===== */
.dashboard-stats-grid {
    display: none;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--card-accent, #667eea) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-card.today-stats {
    --card-accent: #667eea;
}

.stat-card.monthly-income {
    --card-accent: #f093fb;
}

.stat-card.total-creation {
    --card-accent: #4facfe;
}

.stat-card.total-reads {
    --card-accent: #43e97b;
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, var(--card-accent, #667eea), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    color: #ffffff;
}

.today-stats .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.monthly-income .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.total-creation .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.total-reads .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-body {
    margin-bottom: 16px;
}

.stat-main {
    margin-bottom: 16px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: #999;
}

.stat-detail {
    display: flex;
    gap: 24px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: #999;
}

.detail-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.stat-progress {
    margin-top: 16px;
}

.progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.stat-card-footer {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.trend-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #43e97b;
    font-weight: 600;
}

.trend-indicator.down {
    color: #f5576c;
}

.trend-indicator i {
    font-size: 14px;
}

.card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #764ba2;
}

.achievement-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #f5a623;
    font-weight: 600;
}

.achievement-badge i {
    font-size: 16px;
}

/* ===== 功能区域横向布局 ===== */
.dashboard-features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* ===== 最近作品区域（全宽） ===== */
.recent-works-section-full {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 32px;
}

/* 工作台作品列表 */
.dashboard-books-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

/* 工作台作品卡片 */
.dashboard-books-list .novel-card {
    display: flex;
    flex-direction: row;
    min-height: 160px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-books-list .novel-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* 作品封面 */
.dashboard-books-list .novel-cover {
    width: 120px;
    min-width: 120px;
    height: 160px;
    flex-shrink: 0;
    background: #f5f5f5;
    overflow: hidden;
}

.dashboard-books-list .cover-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

.dashboard-books-list .cover-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 作品内容区 */
.dashboard-books-list .novel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    min-width: 0;
}

.dashboard-books-list .novel-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-books-list .novel-stats {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.dashboard-books-list .book-summary {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    flex: 1;
}

/* 作品操作区 */
.dashboard-books-list .novel-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-left: 1px solid #f0f0f0;
    min-width: 140px;
    justify-content: center;
}

.dashboard-books-list .novel-action {
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #666;
}

.dashboard-books-list .novel-action:hover {
    background: #e9ecef;
    color: #333;
}

.dashboard-books-list .novel-action.create-chapter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.dashboard-books-list .novel-action.create-chapter:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.section-title-modern i {
    font-size: 22px;
    color: #667eea;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #764ba2;
    gap: 8px;
}

/* ===== 单个功能卡片基础样式 ===== */
.dashboard-features-row > * {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

/* 创作提示卡片 */
.tips-card {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(253, 203, 110, 0.3);
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tips-header i {
    font-size: 24px;
    color: #d63031;
}

.tips-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
}

.tips-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tip-item {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.tip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.tip-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    margin: 0 0 4px 0;
}

.tip-text p {
    font-size: 12px;
    color: #636e72;
    margin: 0;
}

/* 快捷功能卡片 */
/* 基础样式由 .dashboard-features-row > * 提供 */

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.functions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.function-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.function-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.function-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    flex-shrink: 0;
}

.function-icon.invite {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.function-icon.cert {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.function-icon.wallet {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.function-info {
    flex: 1;
}

.function-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.function-info p {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.function-item > i {
    color: #d1d5db;
    font-size: 16px;
}

/* 平台公告卡片（已隐藏） */
.announcements-card {
    display: none;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .dashboard-features-row {
        grid-template-columns: 1fr;
    }

    .dashboard-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .modern-welcome-banner {
        padding: 24px;
    }

    .banner-content {
        flex-direction: column;
        gap: 20px;
    }

    .greeting-section {
        flex-direction: column;
        text-align: center;
    }

    .greeting-text .greeting-title {
        font-size: 24px;
    }

    .quick-actions {
        width: 100%;
        flex-direction: column;
    }

    .quick-action-btn {
        justify-content: center;
    }

    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 28px;
    }

    .dashboard-features-row {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modern-welcome-banner {
        padding: 20px;
    }

    .greeting-text .greeting-title {
        font-size: 20px;
    }

    .greeting-text .greeting-subtitle {
        font-size: 14px;
    }

    .stat-card {
        padding: 20px;
    }

    .recent-works-section {
        padding: 20px;
    }
}
