/* 作者中心样式 */

body {
    padding-top: 56px; /* 精确匹配导航栏高度，消除缝隙 */
}

/* 作者中心横幅 - 紧贴导航栏，与其他页面保持完全一致 */
.author-banner.main-container {
    margin-top: 0 !important;
    height: 43.98px !important;
    background: linear-gradient(135deg, #1976d2, #42a5f5) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    border-radius: 0 0 10px 10px !important;
    text-align: center !important;
    color: white !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 0 !important;
    max-width: none !important;
    flex: none !important;
    position: relative !important;
    overflow: hidden !important;
    /* 禁用继承的动画效果 - 横幅容器本身不应该有动画 */
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.author-banner.main-container::before {
    display: none !important;
}

.author-banner h1 {
    font-size: 16px !important;
    margin: 0 !important;
    line-height: 1.1 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 1px !important;
    color: #fff !important;
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
}

.author-banner p {
    font-size: 12px !important;
    margin: 2px auto 0 !important;
    line-height: 1.2 !important;
    max-width: 600px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
}

/* 主容器样式 */
.author-container {
    max-width: 1200px;
    margin: 20px auto 50px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 作者资料部分 */
.author-profile-section {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.author-profile-card {
    flex: 1;
    display: flex;
    padding: 25px;
}

.author-avatar {
    position: relative;
    margin-right: 25px;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-level {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #1976d2;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
}

.author-basic-info {
    flex: 1;
}

.author-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-id {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.author-sign {
    width: 280px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #f8f0f0;
    color: #1976d2;
    padding: 0 16px;
    border-radius: 15px;
    font-size: 14px;
    margin-bottom: 15px;
    overflow: hidden;
    word-break: break-all;
}

.author-sign i {
    margin-right: 5px;
}

.author-fans {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.author-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 10px;
    margin-left: 24px;
}

.author-actions button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.author-actions button:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.author-actions .edit-profile-btn {
    background-color: #ffebee !important;
    color: #1976d2 !important;
    border: none !important;
    border-radius: 20px !important;
    width: 100px !important;
    height: 100px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    box-shadow: 0 2px 8px rgba(211,47,47,0.08) !important;
    font-weight: 500 !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s !important;
    padding: 0 !important;
}

.author-actions .edit-profile-btn:hover {
    background-color: #ffcdd2 !important;
    color: #1976d2 !important;
    box-shadow: 0 4px 16px rgba(211,47,47,0.15) !important;
    transform: translateY(-2px) scale(1.04) !important;
}

.author-actions .edit-profile-btn i {
    font-size: 24px !important;
    margin-bottom: 5px !important;
}

/* 作者中心导航栏Tab统一宽高比例 */
.author-navigation {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    margin-top: 1px;
    width: 100%;
}
.author-navigation .nav-item {
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 15px;
    color: #1976d2;
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s, color 0.2s;
    font-weight: 500;
}
.author-navigation .nav-item.active,
.author-navigation .nav-item:hover {
    background: #fbeaea;
    color: #1976d2;
    box-shadow: 0 4px 16px rgba(211,47,47,0.08);
}
.author-navigation .nav-item i {
    font-size: 24px;
    margin-bottom: 6px;
}
@media (max-width: 600px) {
    .author-navigation {
        gap: 8px;
    }
    .author-navigation .nav-item {
        width: 70px;
        height: 60px;
        font-size: 13px;
    }
    .author-navigation .nav-item i {
        font-size: 18px;
    }
}

/* 主要内容区 */
.author-content {
    background-color: #fff !important;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.author-tab-content {
    display: none;
    background-color: #fff !important;
}

.author-tab-content.active {
    display: block;
    background-color: #fff !important;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background-color: #fff !important;
}

.section-header h2 {
    color: #333;
    font-size: 20px;
    margin: 0;
}

/* 作品管理提示图标样式 */
.works-tip-container {
    position: relative;
    display: inline-block;
}

.works-tip-icon {
    color: #666;
    font-size: 16px;
    cursor: help;
    transition: color 0.2s ease;
}

.works-tip-icon:hover {
    color: #1976d2;
}

.works-tip-tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.works-tip-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.works-tip-container:hover .works-tip-tooltip {
    opacity: 1;
    visibility: visible;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .works-tip-tooltip {
        font-size: 11px;
        padding: 6px 10px;
        top: -40px;
    }
    
    .works-tip-tooltip::after {
        border-width: 4px;
    }
}

.create-new-btn, .withdraw-btn {
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.create-new-btn:hover, .withdraw-btn:hover {
    background-color: #6B0000;
}

/* 作品列表筛选 */
.works-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    background-color: #fff !important;
}

.filter-tabs {
    display: flex;
    gap: 20px;
}

.filter-tab {
    padding: 5px 0;
    cursor: pointer;
    position: relative;
    color: #666;
}

.filter-tab.active {
    color: #1976d2;
    font-weight: 500;
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1976d2;
}

.filter-tools {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-mini {
    position: relative;
}

.search-mini input {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px 8px 35px;
    font-size: 14px;
    width: 180px;
}

.search-mini i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.sort-select {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    background-color: white;
}

/* 作品列表 */
.works-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #fff !important;
}

.work-item {
    display: flex;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s;
    background-color: #fff !important;
}

.work-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.work-cover {
    position: relative;
    margin-right: 20px;
    overflow: hidden;
}

.work-cover img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.work-status {
    position: absolute;
    top: 0;
    left: 0;
    padding: 4px 12px;
    color: white !important;
    font-size: 12px;
    font-weight: bold;
    border-radius: 8px 0 8px 0;
    z-index: 10 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.work-status.serializing {
    background-color: #1976d2;
}

.work-status.completed {
    background-color: #1976d2;
}

.work-status.draft {
    background-color: #aaa;
}

/* Review status styles */
.review-status {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 8px;
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 0 0 0 8px;
    z-index: 9;
}

.review-status.review-pending {
    background-color: #2196f3;
}

.review-status.review-approved {
    background-color: #4caf50;
}

.review-status.review-rejected {
    background-color: #f44336;
}

.work-info {
    flex: 1;
}

.work-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.work-category {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.work-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.work-stats span {
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.work-stats span i {
    font-size: 12px;
    width: 14px;
    text-align: center;
}

/* 章节数和字数的特殊样式 */
.work-stats span:nth-child(4) i,
.work-stats span:nth-child(5) i {
    color: #1976d2;
}

.work-stats span:nth-child(4),
.work-stats span:nth-child(5) {
    font-weight: 500;
}

.work-update {
    display: flex;
    color: #666;
    font-size: 14px;
}

.update-time {
    color: #999;
}

.work-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.action-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.2s;
}

.write-btn:hover {
    background-color: #f8f0f0;
    border-color: #1976d2;
    color: #1976d2;
}

.promote-btn {
    background: #FF6B35 !important;
    color: #fff !important;
    border: none !important;
    transition: all 0.2s;
}

.promote-btn:hover {
    background: #E55A2B !important;
    transform: translateY(-1px);
}

.manage-btn:hover {
    background-color: #f0f5ff;
    border-color: #1976D2;
    color: #1976D2;
}

.publish-btn {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.publish-btn:hover {
    background-color: #388E3C;
    border-color: #388E3C;
}

.action-dropdown {
    position: relative;
}

.action-dropdown-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.action-dropdown-btn:hover {
    background-color: #f5f5f5;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    width: 120px;
    display: none;
    z-index: 10;
}

.action-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

/* 数据统计 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-title {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.stat-trend.up {
    color: #4CAF50;
}

.stat-trend.down {
    color: #F44336;
}

.stats-charts {
    margin-bottom: 30px;
}

.chart-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.chart-legend {
    display: flex;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-container.half {
    margin-bottom: 0;
}

.chart-placeholder {
    height: 300px;
    background-color: #f9f9f9;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 收益管理 */
.income-overview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.income-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.income-title {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.income-value {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.income-action {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
}

.income-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.income-trend.up {
    color: #4CAF50;
}

.income-trend.down {
    color: #F44336;
}

.income-detail {
    color: #0066CC;
    font-size: 14px;
    cursor: pointer;
}

.income-detail:hover {
    text-decoration: underline;
}

.income-sources {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.income-sources h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.income-source-chart {
    height: 200px;
    margin-bottom: 20px;
}

.income-source-legend {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.source-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.source-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-bottom: 5px;
}

.source-name {
    font-size: 14px;
    color: #666;
}

.source-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.source-percent {
    font-size: 12px;
    color: #999;
}

.income-history {
    margin-top: 30px;
}

.income-history h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.income-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.filter-option {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-option:hover {
    background-color: #f5f5f5;
}

.filter-option.active {
    background-color: #f8f0f0;
    color: #1976d2;
}

.date-range-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range-picker input {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 14px;
}

.apply-date {
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
}

.apply-date:hover {
    background-color: #e0e0e0;
}

.income-table {
    width: 100%;
    border-collapse: collapse;
}

.income-table th, .income-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.income-table th {
    font-weight: 600;
    color: #333;
    background-color: #f9f9f9;
}

.income-table tr:hover {
    background-color: #f9f9f9;
}

.status-success {
    color: #4CAF50;
}

.status-pending {
    color: #FF9800;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-page, .next-page {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.prev-page:hover, .next-page:hover {
    background-color: #f5f5f5;
}

.prev-page:disabled, .next-page:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 10px;
    margin: 0 15px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.page-number:hover {
    background-color: #f5f5f5;
}

.page-number.active {
    background-color: #1976d2;
    color: white;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1976d2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #a30000;
    transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .stats-overview, .income-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-row {
        grid-template-columns: 1fr;
    }

    .income-source-legend {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .author-profile-section {
        flex-direction: column;
    }

    .author-profile-card {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .author-navigation {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .stats-overview, .income-overview {
        grid-template-columns: 1fr;
    }

    .work-item {
        flex-direction: column;
    }

    .work-cover {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .work-cover img {
        width: 100%;
        height: 200px;
    }

    .work-actions {
        flex-direction: row;
        margin-top: 15px;
    }

    .income-filter {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .author-banner h1 {
        font-size: 24px;
    }
    
    .author-banner p {
        font-size: 14px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* 创建新作品模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 30px auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.close-modal {
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

/* 表单样式 */
#newBookForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1976d2;
    outline: none;
}

.form-group textarea {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 15px;
    transition: border-color 0.2s;
    resize: vertical;
}

.form-group textarea:focus {
    border-color: #1976d2;
    outline: none;
}

.form-group textarea.error {
    border-color: #ff4d4f;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
}

.word-count {
    text-align: right;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.word-count.error {
    color: #ff4d4f;
}

.required {
    color: #1976d2;
}

.cover-upload {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cover-preview {
    width: 200px;
    height: 270px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
    padding: 20px;
}

.cover-preview img {
    max-width: 100%;
    max-height: 100%;
    display: none;
}

.cover-preview p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

#bookCover {
    padding: 12px 0;
}

.radio-group, .checkbox-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label, .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: normal;
    font-size: 15px;
    margin: 0;
}

.agreement {
    margin-top: 10px;
}

.agreement label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: normal;
    font-size: 15px;
    margin: 0;
}

.agreement-link {
    color: #1976d2;
    text-decoration: none;
}

.agreement-link:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.cancel-btn, .submit-btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn {
    background: none;
    border: 1px solid #ddd;
    color: #666;
}

.cancel-btn:hover {
    background-color: #f5f5f5;
}

.submit-btn {
    background-color: #1976d2;
    border: none;
    color: white;
}

.submit-btn:hover {
    background-color: #6B0000;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .modal-header, .modal-body {
        padding: 15px;
    }
    
    .radio-group, .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* 导航栏相关样式 */
.hidden {
    display: none !important;
}

.user-avatar-container {
    position: relative;
    cursor: pointer;
    z-index: 1000;
    display: inline-block;
}

.user-avatar-container:hover .user-avatar {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 鼠标悬停时显示下拉菜单 */
.user-avatar-container:hover .user-dropdown {
    display: block;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    vertical-align: middle;
    transition: all 0.2s ease;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    width: 150px;
    display: none;
    z-index: 1001;
    border: 1px solid #eee;
}

.user-dropdown a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-bottom: 1px solid #f5f5f5;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #f8f0f0;
    color: #1976d2;
}

#logoutBtn {
    color: #ff4d4f;
}

#logoutBtn:hover {
    background: #fff1f0;
    color: #ff4d4f;
}

.work-cover.clickable,
.work-title.clickable {
    cursor: pointer;
}

/* 数据统计日期Tab样式 */
.stats-date-tabs {
  display: flex;
  gap: 12px;
}
.stats-date-tabs .date-tab {
  padding: 6px 18px;
  background: #fff;
  border: 1.5px solid #1976d2;
  color: #1976d2;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.stats-date-tabs .date-tab.active {
  background: #1976d2;
  color: #fff;
  border-color: #1976d2;
  box-shadow: 0 2px 8px rgba(211,47,47,0.08);
}
.stats-date-tabs .date-tab:hover:not(.active) {
  background: #fbe9e7;
  color: #1976d2;
  border-color: #1976d2;
}

/* ========== 作品数据详情专属美化 ========== */
.detailed-stats {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(211,47,47,0.06);
  padding: 32px 28px 24px 28px;
  margin-top: 32px;
}
.detailed-stats h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1976d2;
  margin-bottom: 18px;
}
.detailed-stats .form-control,
.detailed-stats .form-select {
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  font-size: 15px;
  padding: 6px 12px;
  transition: border-color 0.2s;
}
.detailed-stats .form-control:focus,
.detailed-stats .form-select:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 2px rgba(211,47,47,0.08);
}
.detailed-stats .btn {
  border-radius: 6px;
  font-size: 15px;
  padding: 5px 16px;
  border: 1px solid #1976d2;
  color: #1976d2;
  background: #fff;
  transition: background 0.2s, color 0.2s;
}
.detailed-stats .btn:hover,
.detailed-stats .btn:focus {
  background: #1976d2;
  color: #fff;
}
.detailed-stats .stats-table {
  width: 100%;
  background: #faf9f9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0;
}
.detailed-stats .stats-table th,
.detailed-stats .stats-table td {
  text-align: center;
  padding: 12px 0;
  font-size: 15px;
}
.detailed-stats .stats-table th {
  background: #f5eaea;
  color: #1976d2;
  font-weight: 600;
  border-bottom: 2px solid #e0e0e0;
}
.detailed-stats .stats-table tr {
  transition: background 0.15s;
}
.detailed-stats .stats-table tbody tr:hover {
  background: #fff3f3;
}
.detailed-stats .stats-table td {
  color: #333;
}
.detailed-stats .pagination {
  margin-top: 18px;
}
.detailed-stats .pagination .page-item {
  margin: 0 2px;
}
.detailed-stats .pagination .page-link {
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  color: #1976d2;
  background: #fff;
  padding: 5px 14px;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
.detailed-stats .pagination .page-link:hover,
.detailed-stats .pagination .page-item.active .page-link {
  background: #1976d2;
  color: #fff;
  border-color: #1976d2;
}
.detailed-stats .pagination .page-item.disabled .page-link {
  color: #bbb;
  background: #f5eaea;
  border-color: #e0e0e0;
  cursor: not-allowed;
}
@media (max-width: 700px) {
  .detailed-stats {
    padding: 16px 4px 12px 4px;
  }
  .detailed-stats .table-responsive {
    font-size: 13px;
  }
}

/* 提现弹窗美化，统一网站风格 */
#withdrawModal .modal-content {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(25,118,210,0.10);
    border: none;
    padding: 0;
    max-width: 420px;
    margin: 60px auto;
    animation: modalFadeIn 0.3s;
}
#withdrawModal .modal-header {
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
    color: #fff;
    border-radius: 14px 14px 0 0;
    padding: 18px 28px;
    border-bottom: none;
    position: relative;
}
#withdrawModal .modal-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}
#withdrawModal .btn-close {
    filter: invert(1);
    opacity: 0.7;
}
#withdrawModal .modal-body {
    padding: 28px 28px 10px 28px;
}
#withdrawModal .form-label {
    color: #1976d2;
    font-weight: 500;
    margin-bottom: 6px;
}
#withdrawModal .form-control {
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
    padding: 10px 14px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}
#withdrawModal .form-control:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25,118,210,0.08);
}
#withdrawModal textarea.form-control {
    min-height: 48px;
    resize: vertical;
}
#withdrawModal .modal-footer {
    border-top: none;
    padding: 0 28px 22px 28px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: none;
}
#withdrawModal .btn-primary {
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
    border: none;
    color: #fff;
    border-radius: 20px;
    padding: 8px 28px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(25,118,210,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
#withdrawModal .btn-primary:hover {
    background: #42a5f5;
    color: #fff;
    box-shadow: 0 4px 16px rgba(25,118,210,0.13);
}
#withdrawModal .btn-secondary {
    background: #f5f5f5;
    color: #1976d2;
    border: none;
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}
#withdrawModal .btn-secondary:hover {
    background: #ffe0e0;
    color: #42a5f5;
}
#withdrawModal #withdrawError {
    color: #1976d2;
    font-size: 14px;
    margin-top: 2px;
    margin-bottom: 8px;
    display: none;
}
#withdrawModal .close-x {
    position: absolute;
    top: 50%;
    right: 28px;
    transform: translateY(-50%);
    font-size: 26px;
    color: #fff;
    background: none;
    border: none;
    opacity: 0.85;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    font-weight: bold;
    transition: opacity 0.2s, color 0.2s;
}
#withdrawModal .close-x:hover {
    opacity: 1;
    color: #ffe0e0;
}

.profile-divider {
    width: 1px;
    background: #f0f0f0;
    margin: 0 8px;
    align-self: center;
    height: 100px;
}
@media (max-width: 600px) {
    .profile-divider {
        margin: 0 16px;
    }
}

/* ========================================
   作者中心页面移动端全面优化
   ======================================== */

/* 移动端优化 (768px以下) */
@media (max-width: 768px) {
    /* 页脚隐藏 */
    .footer,
    footer {
        display: none !important;
    }
    
    /* 主容器布局适配 */
    .author-container {
        padding: 15px 10px;
        margin-top: 0;
    }
    
    /* 作者资料区域移动端适配 */
    .author-profile-section {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        margin-bottom: 15px;
        padding: 20px 15px;
    }
    
    .author-profile-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 0;
    }
    
    .author-avatar {
        margin-bottom: 0;
    }
    
    .author-avatar img {
        width: 80px;
        height: 80px;
    }
    
    .author-basic-info {
        text-align: center;
        margin: 0;
    }
    
    .author-name {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .author-id {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .author-sign {
        font-size: 14px;
        justify-content: center;
    }
    
    .author-actions {
        margin: 0;
        justify-content: center;
    }
    
    .edit-profile-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 40px;
    }
    
    /* 导航标签移动端适配 */
    .author-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 15px 0 0 0;
        border-top: 1px solid #f0f0f0;
    }
    
    .nav-item {
        flex: 1;
        min-width: 80px;
        max-width: 120px;
        text-align: center;
        padding: 12px 8px;
        font-size: 13px;
        border-radius: 20px;
        margin: 0;
    }
    
    .nav-item i {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .nav-item span {
        display: block;
        font-size: 12px;
    }
    
    /* 主要内容区域适配 */
    .author-content {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        padding: 20px 15px;
        margin-top: 15px;
    }
    
    /* 作品管理区域适配 */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .section-header h2 {
        font-size: 18px;
        margin: 0;
    }
    
    .create-new-btn {
        width: 100%;
        max-width: 200px;
        padding: 12px 20px;
        font-size: 15px;
        min-height: 44px;
    }
    
    /* 作品筛选适配 */
    .works-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .filter-tab {
        flex: 1;
        min-width: 80px;
        text-align: center;
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 15px;
    }
    
    /* 作品列表适配 */
    .works-list {
        gap: 15px;
    }
    
    .work-item {
        flex-direction: column;
        padding: 15px;
        border-radius: 8px;
    }
    
    .work-cover {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
        position: relative;
    }
    
    /* 确保移动端状态标签显示 */
    .work-status {
        display: block !important;
        visibility: visible !important;
    }
    
    .work-cover img {
        width: 100px;
        height: 130px;
    }
    
    .work-info {
        text-align: center;
    }
    
    .work-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .work-category {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .work-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .work-stats span {
        font-size: 12px;
    }
    
    .work-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .action-btn {
        flex: 1;
        min-width: 80px;
        padding: 10px 15px;
        font-size: 14px;
        min-height: 40px;
        border-radius: 20px;
    }
    
    /* 数据统计适配 */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    /* 收益管理适配 */
    .income-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .income-card {
        padding: 20px 15px;
        text-align: center;
    }
    
    .income-amount {
        font-size: 20px;
    }
    
    .income-label {
        font-size: 14px;
    }
}

/* 小屏幕移动端优化 (480px以下) */
@media (max-width: 480px) {
    .author-container {
        padding: 10px 5px;
    }
    
    .author-profile-section {
        padding: 15px 10px;
        margin-bottom: 10px;
    }
    
    .author-avatar img {
        width: 70px;
        height: 70px;
    }
    
    .author-name {
        font-size: 18px;
    }
    
    .author-id {
        font-size: 13px;
    }
    
    .author-sign {
        font-size: 13px;
    }
    
    .edit-profile-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .nav-item {
        min-width: 70px;
        max-width: 100px;
        padding: 10px 6px;
        font-size: 12px;
    }
    
    .nav-item i {
        font-size: 14px;
    }
    
    .nav-item span {
        font-size: 11px;
    }
    
    .author-content {
        padding: 15px 10px;
    }
    
    .section-header h2 {
        font-size: 16px;
    }
    
    .create-new-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .filter-tab {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .work-cover img {
        width: 90px;
        height: 120px;
    }
    
    .work-title {
        font-size: 15px;
    }
    
    .work-category {
        font-size: 13px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
    }
}

/* 超小屏幕优化 (360px以下) */
@media (max-width: 360px) {
    .author-container {
        padding: 8px 3px;
    }
    
    .author-profile-section {
        padding: 12px 8px;
    }
    
    .author-content {
        padding: 12px 8px;
    }
    
    .author-navigation {
        gap: 5px;
    }
    
    .nav-item {
        min-width: 60px;
        max-width: 90px;
        padding: 8px 4px;
    }
    
    .nav-item span {
        font-size: 10px;
    }
    
    .filter-tabs {
        gap: 5px;
    }
    
    .filter-tab {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .work-item {
        padding: 12px;
    }
    
    .work-cover img {
        width: 80px;
        height: 100px;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 32px;
    }
}

/* 横屏优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .author-profile-card {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    
    .author-basic-info {
        text-align: left;
        margin-left: 15px;
    }
    
    .author-navigation {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .nav-item {
        flex: none;
        min-width: 80px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .nav-item:hover,
    .filter-tab:hover,
    .action-btn:hover {
        transform: none;
    }
    
    .nav-item:active,
    .filter-tab:active,
    .action-btn:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
    
    .edit-profile-btn:hover {
        transform: none;
    }
    
    .edit-profile-btn:active {
        transform: scale(0.95);
    }
} 