﻿/* ===== 全局样式变量 ===== */
:root {
    --primary-color: #5b9a6f;
    --primary-dark: #4a8a5f;
    --primary-light: #7fb895;
    --bg-color: #f5f7f6; /* 浅暖灰色背景 */
    --white: #ffffff;
    --text-color: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e5e6eb;
    --border-light: #eeeeee;
    --bg-light: #f5f5f5;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* ===== 导出弹窗样式 ===== */
.export-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.export-section:last-of-type {
    border-bottom: none;
}

.export-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.export-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.export-label {
    min-width: 80px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.export-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    background: var(--white);
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.2s;
}

.export-select:focus {
    outline: none;
    border-color: #5b9a6f;
    box-shadow: 0 0 0 2px rgba(91, 154, 111, 0.1);
}

/* 删除确认按钮醒目样式 */
.btn-delete-confirm {
    background: #ef4444;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transition: all 0.3s;
}

.btn-delete-confirm:hover {
    background: #dc2626;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* ===== 全局固定导航栏 ===== */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.star-animation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo 绿色光芒发散 - 用 filter: drop-shadow 避免透明PNG出现方块边框 */
.star-animation img {
    border-radius: 0;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 4px rgba(91,154,111,0.3)); }
    100% { filter: drop-shadow(0 0 10px rgba(91,154,111,0.6)); }
}

.star-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.15; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}

.platform-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
}

/* ===== 通屏绿色大横幅 ===== */
.green-banner {
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    z-index: 99;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(91, 154, 111, 0.25);
    overflow: hidden;
}

.green-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.5s ease;
    pointer-events: none;
}

.green-banner:hover::before {
    left: 100%;
    transition: all 1.5s ease;
}

.green-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.banner-title {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.banner-title svg {
    font-size: 1.2rem;
}

.banner-subtitle {
    font-size: 0.9rem;
    opacity: 0.95;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.banner-right {
    flex-shrink: 0;
}

.btn-banner-enter {
    padding: 8px 20px;
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-banner-enter:hover {
    background-color: #f0f7f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== 主内容容器 ===== */
.main-container {
    display: flex;
    padding-top: 124px; /* 导航栏64px + 横幅约56px + 间距4px */
    padding-bottom: 40px;
}

/* ===== 左侧边栏 ===== */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    background-color: transparent;
    border-right: none;
    padding: 0;
}

/* ===== 用户信息卡片 ===== */
.user-info-card {
    margin: 0 1.5rem 1.5rem;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.user-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar svg {
    width: 20px;
    height: 20px;
}

.user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.user-email {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.user-avatar {
    cursor: pointer;
    position: relative;
}

.user-avatar:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    pointer-events: none;
}

.user-avatar:hover::before {
    content: '\u270E';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.25rem;
}

.btn-edit-nickname {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.btn-edit-nickname:hover {
    color: #5b9a6f;
}

.nickname-current-info {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.nickname-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-right: 6px;
}

.nickname-current-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.nickname-input-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 6px;
    font-weight: 500;
}

.nickname-tip {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 8px 0 0;
    line-height: 1.5;
}

.nickname-error {
    font-size: 0.8rem;
    color: #ef4444;
    margin: 6px 0 0;
    line-height: 1.5;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 16px 0;
}

.avatar-option {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-option:hover {
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: #5b9a6f;
    transform: scale(1.1);
}

.btn-logout-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-secondary);
}

.btn-logout-icon:hover {
    background-color: #e0e0e0;
    color: var(--primary-color);
}

.user-action-buttons {
    display: flex;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.6rem;
}

/* ===== 用户信息卡片中的操作按钮（联系我们、查看教程）===== */
.user-action-buttons .btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.35rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    min-width: 0;
}

.user-action-buttons .btn-action svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.user-action-buttons .btn-action:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 154, 111, 0.3);
}

.user-action-buttons .btn-action:hover svg {
    stroke: white;
}

/* ===== 会员信息卡 ===== */
.user-membership-card {
    margin: 0 1.5rem 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 10px;
    text-align: center;
}
.membership-level {
    font-size: 14px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 2px;
}
.membership-expire {
    font-size: 12px;
    color: #15803d;
}
.user-membership-card.trial {
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    border-color: #e5e7eb;
}
.user-membership-card.trial .membership-level { color: #6b7280; }
.user-membership-card.trial .membership-expire { color: var(--text-light); }

/* ===== 创作作品大按钮 ===== */
.create-work-section {
    margin: 0 1.5rem 1.5rem;
}

.btn-create-work-large {
    width: 100%;
    background: linear-gradient(135deg, #5b9a6f 0%, #3d7a52 100%);
    color: white;
    border: 2px solid #2d5a3a;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-create-work-large:hover {
    background: linear-gradient(135deg, #4a8a5f 0%, #2d6a42 100%);
    border-color: #1e4a2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(91, 154, 111, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}

.create-work-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.create-work-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.create-work-subtitle {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

/* ===== 漫剧工坊按钮 ===== */
.drama-work-section {
    margin: 0 1.5rem 1.5rem;
}

.btn-drama-work-large {
    width: 100%;
    background: linear-gradient(135deg, #b8d4a8 0%, #a5c495 100%);
    color: #2a4a32;
    border: 2px solid #6a9a5e;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.2);
    box-sizing: border-box;
}

.btn-drama-work-large:hover {
    background: linear-gradient(135deg, #a5c495 0%, #96b886 100%);
    border-color: #5a8a4e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(91, 154, 111, 0.15), inset 0 1px 0 rgba(255,255,255,0.25);
}

body.dark-theme .btn-drama-work-large {
    background: linear-gradient(135deg, #1f3825 0%, #2a4a32 100%);
    color: #86efac;
    border-color: #3d7a52;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.06);
}

body.dark-theme .btn-drama-work-large:hover {
    background: linear-gradient(135deg, #2a4a32 0%, #356040 100%);
    border-color: #5b9a6f;
    box-shadow: 0 6px 20px rgba(91, 154, 111, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ===== 写作辅助卡片 ===== */
.writing-assist-card {
    margin: 0 1.5rem 1.5rem;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.writing-assist-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.writing-assist-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.25s ease;
}

.sidebar-btn:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-light);
}

/* ===== 右侧主内容区 ===== */
.content-area {
    flex: 1;
    padding: 1.5rem 2.5rem;
}

/* ===== 我的书架模块 ===== */
.bookshelf-module {
    margin-bottom: 2rem;
}

.bookshelf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.bookshelf-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bookshelf-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bookshelf-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.bookshelf-count {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.bookshelf-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 220px;
    padding: 0.6rem 0.6rem 0.6rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: border-color 0.25s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    position: absolute;
    left: 0.8rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

/* ===== 书籍展示区 ===== */
.books-container {
    display: grid;
    grid-template-columns: repeat(5, 160px);
    gap: 22px;
    padding: 8px 0.5rem 8px;
    background: transparent;
    border-radius: var(--radius-lg);
    justify-content: center;
}

.book-card {
    position: relative;
    background-color: transparent;
    border: none;
    border-radius: var(--radius-md);
    overflow: visible;
    transition: all 0.3s ease;
    perspective: 1000px;
}

.book-card:hover {
    transform: translateY(-4px);
}

.book-3d-wrapper {
    width: 100%;
    max-width: 160px;
    height: 215px;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 auto;
}

/* 书籍立体效果 - 左侧书脊阴影 */
.book-3d-wrapper::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 80px;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.22) 25%,
        rgba(0, 0, 0, 0.12) 50%,
        rgba(0, 0, 0, 0.04) 80%,
        transparent 100%);
    transform: skewY(-2deg);
    border-radius: 8px 0 0 8px;
    z-index: 0;
}

/* 书籍立体效果 - 底部阴影 */
.book-3d-wrapper::after {
    content: '';
    position: absolute;
    left: 10px;
    bottom: 2px;
    right: 2px;
    height: 8px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 50%;
    filter: blur(5px);
    z-index: 0;
}

.book-body {
    flex: 1;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #FFB74D, #FF9800, #F57C00);
    border-radius: 3px 8px 8px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    box-shadow: 0 4px 14px rgba(255, 152, 0, 0.25),
                inset 1px 0 4px rgba(255, 255, 255, 0.3),
                inset -1px 0 4px rgba(0, 0, 0, 0.1);
    border: none;
    border-left: 2px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 封面图片适配（300x400 缩放到 160x215 等比例填充，不变形） */
.book-body.has-cover {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.book-icon {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.book-name-wrapper {
    display: none;
}

.book-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-align: center;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.4;
}

.book-footer {
    display: none;
}

/* 书名显示在卡片下方（固定高度20px，两行共40px） */
.book-title-below {
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
    padding: 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 20px;
}

/* 日期显示在右下角 */
.book-date-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.35);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 3px;
    z-index: 2;
    letter-spacing: 0.3px;
}

.book-menu-trigger {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.9);
    z-index: 5;
    backdrop-filter: blur(4px);
}

.book-card:hover .book-menu-trigger {
    opacity: 1;
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.35);
}

.book-menu-trigger:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.book-dropdown-menu {
    position: absolute;
    top: 48px;
    right: 12px;
    width: 140px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 6px 0;
    display: none;
    z-index: 10;
}

.book-dropdown-menu.active {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
}

.dropdown-item.dropdown-danger {
    color: #ef4444;
}

.dropdown-item.dropdown-danger:hover {
    background-color: #fef2f2;
}

/* 下拉菜单分隔线 */
.dropdown-divider {
    height: 1px;
    background-color: #e5e6eb;
    margin: 4px 0;
}

/* ===== 书架分页栏 ===== */
.bookshelf-pagination {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 0;
}

.bookshelf-pagination.show {
    display: flex;
}

.bookshelf-pagination .pagination-numbers {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

.bookshelf-pagination .pagination-btn {
    min-width: 36px;
    height: 32px;
    padding: 0 0.75rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.bookshelf-pagination .pagination-btn:hover {
    background-color: #f5f7fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.bookshelf-pagination .pagination-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.bookshelf-pagination .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bookshelf-pagination .pagination-btn:disabled:hover {
    background-color: var(--white);
    border-color: var(--border-color);
    color: var(--text-color);
}

/* ===== 全局弹窗样式 ===== */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-container.active {
    display: flex;
}

.modal {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-width: 95vw;
    width: 960px;
    animation: modalSlideIn 0.3s ease;
}

/* 弹窗加宽样式 */
.modal-content-small {
    width: 960px;
    max-width: 95vw;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content {
    padding: 0;
}

.modal-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #e0e0e0;
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-tip {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.modal-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* ===== Toast 提示样式 ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 12px 18px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d6b3f;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .main-container {
        padding-top: 130px;
    }

    .sidebar {
        width: 200px;
    }

    .books-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .user-info-card {
        padding: 1rem;
    }

    .btn-action {
        font-size: 0.7rem;
        padding: 0.4rem 0.3rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding-top: 130px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 1rem 0;
    }

    .user-info-card {
        margin: 0 1rem 1rem;
    }

    .user-action-buttons {
        flex-direction: column;
    }

    .btn-action {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .content-area {
        padding: 1rem;
    }

    .books-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .book-3d-wrapper {
        height: 320px;
    }

    .book-body {
        min-height: 260px;
    }

    .green-banner {
        top: 90px;
        width: calc(100% - 24px);
        padding: 0.6rem 0.8rem;
    }

    .banner-left {
        flex-direction: column;
        gap: 0.25rem;
    }

    .banner-title {
        font-size: 1rem;
    }

    .banner-subtitle {
        font-size: 0.75rem;
    }

    .btn-banner-enter {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .global-header {
        padding: 0 1rem;
    }

    .platform-name {
        font-size: 1rem;
    }

    .star-animation svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 576px) {
    .global-header {
        padding: 0 0.75rem;
    }

    .green-banner {
        top: 80px;
        padding: 0.5rem 0.6rem;
        width: calc(100% - 16px);
    }

    .banner-title {
        font-size: 0.9rem;
    }

    .banner-subtitle {
        display: none;
    }

    .content-area {
        padding: 0.75rem;
    }

    .books-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .book-3d-wrapper {
        height: 260px;
    }

    .book-body {
        min-height: 200px;
        padding: 1rem;
    }

    .book-name {
        font-size: 0.85rem;
    }

    .user-info-card {
        padding: 0.8rem;
    }

    .user-name {
        font-size: 0.95rem;
    }

    .user-email {
        font-size: 0.75rem;
    }

    .btn-action {
        font-size: 0.7rem;
        gap: 0.25rem;
    }

    .btn-action svg {
        width: 12px;
        height: 12px;
    }
}

/* ===== 空状态样式 ===== */
.empty-books {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-books svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-books p {
    margin-top: 1rem;
    font-size: 1rem;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* ===== 联系我们弹窗样式 ===== */
.customer-service-modal {
    max-width: 960px !important;
    width: 95vw !important;
}

.customer-service-modal .modal-content {
    width: 100%;
    max-width: 960px !important;
}

.customer-service-modal .modal-header {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-bottom: none;
    padding: 1.5rem;
}

.customer-service-modal .modal-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.customer-service-modal .modal-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.customer-service-modal .modal-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.customer-service-modal .modal-body {
    padding: 1.5rem;
}

.customer-service-modal .modal-tip {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(91, 154, 111, 0.15);
    transform: translateX(4px);
}

.wechat-qrcode-card {
    cursor: pointer;
}

.wechat-icon {
    color: #07c160 !important;
    background: linear-gradient(135deg, #e8f8ee, #c3edcf) !important;
}

.wechat-qrcode-preview {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    margin-top: 0.5rem;
}

.contact-icon-wrapper {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 154, 111, 0.3);
}

.btn-copy:hover .copy-icon {
    stroke: white;
}

.btn-copy .copy-text {
    white-space: nowrap;
}

.btn-copy.copied {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
}

.contact-tip {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ===== 弹窗增强样式 ===== */
.modal-header-with-divider {
    border-bottom: none;
    padding-bottom: 12px;
}

.modal-divider {
    width: 100%;
    height: 1px;
    background-color: #e5e6eb;
    margin: 0;
}

.modal-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.modal-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-color);
    transition: border-color 0.2s;
    margin-bottom: 8px;
}

.modal-input:focus {
    outline: none;
    border-color: #5b9a6f;
    box-shadow: 0 0 0 2px rgba(91, 154, 111, 0.1);
}

.modal-tip {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}


/* ===================================================================
   UI 质感升级 (2026-05-27)
   以下样式均为新增，不影响上方已有样式
   =================================================================== */

/* ── 公告弹窗 - 整体容器 ── */
.announcement-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.announcement-popup-container {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    max-width: 520px;
    width: 92%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: popupSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupSlideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 弹窗外框 + 绿色火焰边框效果 */
.announcement-popup-container {
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
}

/* 绿色科技光晕层 */
.announcement-popup-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 22px;
    background: linear-gradient(
        45deg,
        rgba(70,160,130,0.08) 0%,
        rgba(91,154,111,0.25) 15%,
        rgba(80,180,150,0.15) 30%,
        rgba(60,140,110,0.3) 45%,
        rgba(100,190,160,0.18) 60%,
        rgba(70,160,130,0.22) 75%,
        rgba(91,154,111,0.12) 90%,
        rgba(70,160,130,0.08) 100%
    );
    background-size: 300% 300%;
    animation: fireGlow 8s ease-in-out infinite;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
}

/* 科技外层光晕 */
.announcement-popup-container::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 26px;
    background: linear-gradient(
        -45deg,
        rgba(70,160,130,0.0) 0%,
        rgba(80,180,150,0.1) 20%,
        rgba(60,140,120,0.06) 40%,
        rgba(90,170,140,0.12) 60%,
        rgba(70,160,130,0.08) 80%,
        rgba(70,160,130,0.0) 100%
    );
    background-size: 400% 400%;
    animation: fireGlowOuter 12s ease-in-out infinite reverse;
    z-index: -2;
    filter: blur(18px);
    opacity: 0.5;
}

@keyframes fireGlow {
    0% { background-position: 0% 50%; opacity: 0.55; }
    25% { background-position: 100% 0%; opacity: 0.7; }
    50% { background-position: 100% 100%; opacity: 0.6; }
    75% { background-position: 0% 100%; opacity: 0.68; }
    100% { background-position: 0% 50%; opacity: 0.55; }
}

@keyframes fireGlowOuter {
    0% { background-position: 100% 0%; opacity: 0.4; }
    25% { background-position: 0% 100%; opacity: 0.55; }
    50% { background-position: 0% 0%; opacity: 0.45; }
    75% { background-position: 100% 100%; opacity: 0.52; }
    100% { background-position: 100% 0%; opacity: 0.4; }
}

/* ── 弹窗背景柔和星点 ── */
.popup-star {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    animation: starTwinkle var(--dur) ease-in-out infinite alternate;
    opacity: 0;
}

@keyframes starTwinkle {
    0% { opacity: 0; transform: scale(0.6); }
    50% { opacity: 0.7; transform: scale(0.9); }
    100% { opacity: 0.15; transform: scale(0.7); }
}

/* ── 公告弹窗 - 头部（金属质感渐变） ── */
.announcement-popup-header {
    position: relative;
    padding: 28px 24px 24px;
    overflow: hidden;
}

/* 普通公告 - 绿色金属渐变 */
.announcement-popup-header.type-normal {
    background:
        linear-gradient(135deg,
            rgba(255,255,255,0.18) 0%,
            rgba(255,255,255,0) 40%,
            rgba(255,255,255,0.08) 100%),
        linear-gradient(135deg, #0d3d1f 0%, #1a5c34 35%, #2d8a52 65%, #3da567 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -1px 0 rgba(0,0,0,0.08);
}

/* 重要公告 - 琥珀金属渐变 */
.announcement-popup-header.type-important {
    background:
        linear-gradient(135deg,
            rgba(255,255,255,0.18) 0%,
            rgba(255,255,255,0) 40%,
            rgba(255,255,255,0.08) 100%),
        linear-gradient(135deg, #78350f 0%, #92400e 35%, #b45309 65%, #d97706 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -1px 0 rgba(0,0,0,0.08);
}

/* 紧急公告 - 红色金属渐变 */
.announcement-popup-header.type-urgent {
    background:
        linear-gradient(135deg,
            rgba(255,255,255,0.18) 0%,
            rgba(255,255,255,0) 40%,
            rgba(255,255,255,0.08) 100%),
        linear-gradient(135deg, #7f1d1d 0%, #991b1b 35%, #b91c1c 65%, #dc2626 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -1px 0 rgba(0,0,0,0.08);
}

.announcement-popup-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.announcement-popup-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}
.announcement-popup-close:hover {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

/* ── 公告弹窗 - 正文区域 ── */
.announcement-popup-body {
    padding: 2px 24px 12px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.85;
    color: var(--text-color);
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-break: break-word;
    position: relative;
}

/* 正文区内容容器 - 浅灰背景 */
.announcement-popup-body-inner {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 8px 22px;
    margin: 0 4px;
    position: relative;
}

/* 左侧装饰条 - 已移除，改为纯净浅灰背景 */
.announcement-popup-body-inner.type-normal { }
.announcement-popup-body-inner.type-important { }
.announcement-popup-body-inner.type-urgent { }

/* 首行居中（标题行） */
.announcement-popup-first-line {
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* 其余正文内容 */
.announcement-popup-rest {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.85;
}

/* ── 公告弹窗 - 底部区域 ── */
.announcement-popup-footer {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, #e5e6eb 30%, #e5e6eb 70%, transparent 100%) 1;
}

.announcement-popup-footer label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
}

/* "我知道了" 按钮 - 绿色渐变 + 微光泽 */
.announcement-popup-btn {
    background: linear-gradient(135deg, #2d7a4a 0%, #3d9a5e 50%, #5b9a6f 100%);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        0 2px 10px rgba(91, 154, 111, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.25s;
    letter-spacing: 0.5px;
}
.announcement-popup-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 4px 18px rgba(91, 154, 111, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.3);
}
.announcement-popup-btn:active {
    transform: translateY(0);
}

/* ── 公告弹窗 - 光芒已通过容器 box-shadow 动画实现，无需额外层 ── */


/* ── 联系我们弹窗 - 质感升级 ── */
.customer-service-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(91, 154, 111, 0.2),
        0 0 25px rgba(91, 154, 111, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.25);
}

.customer-service-modal .modal-header {
    background:
        linear-gradient(135deg,
            rgba(255,255,255,0.18) 0%,
            rgba(255,255,255,0) 40%,
            rgba(255,255,255,0.08) 100%),
        linear-gradient(135deg, #0d3d1f 0%, #1a5c34 35%, #2d8a52 65%, #3da567 100%);
    border-bottom: none;
    padding: 24px 24px 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.customer-service-modal .modal-title {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.customer-service-modal .modal-icon {
    background: rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(255,255,255,0.3);
}

.customer-service-modal .modal-icon svg {
    color: white !important;
}

.customer-service-modal .modal-close {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}
.customer-service-modal .modal-close:hover {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
    color: white;
}

/* 联系卡片 hover 发光 */
.contact-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.contact-card:hover {
    background: var(--white);
    border-color: rgba(91, 154, 111, 0.5);
    box-shadow:
        0 4px 16px rgba(91, 154, 111, 0.15),
        0 0 0 1px rgba(91, 154, 111, 0.2);
    transform: translateY(-2px);
}


/* ── 首页横幅 - 科技感升级 ── */
.green-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a5c34 0%, #2d8a52 30%, #4aa870 60%, #5b9a6f 100%) !important;
}

/* 柔和呼吸光晕 */
.green-banner .banner-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(91,154,111,0.3) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 40%, rgba(91,154,111,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(100,200,130,0.12) 0%, transparent 55%);
    animation: bannerGlow 10s ease infinite alternate;
}

@keyframes bannerGlow {
    0% { opacity: 0.7; }
    50% { opacity: 0.9; }
    100% { opacity: 0.7; }
}

/* AI科技感微光粒子 */
.green-banner .banner-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 30%, rgba(180,255,200,0.15) 0px, transparent 1px),
        radial-gradient(circle at 30% 70%, rgba(180,255,200,0.1) 0px, transparent 1px),
        radial-gradient(circle at 55% 20%, rgba(200,255,220,0.12) 0px, transparent 1px),
        radial-gradient(circle at 75% 60%, rgba(180,255,200,0.08) 0px, transparent 1px),
        radial-gradient(circle at 90% 40%, rgba(200,255,220,0.1) 0px, transparent 1px),
        radial-gradient(circle at 20% 80%, rgba(180,255,200,0.06) 0px, transparent 1px),
        radial-gradient(circle at 65% 85%, rgba(200,255,220,0.08) 0px, transparent 1px),
        radial-gradient(circle at 45% 45%, rgba(180,255,200,0.1) 0px, transparent 1px);
    animation: bannerParticles 12s ease-in-out infinite alternate;
}

@keyframes bannerParticles {
    0% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(-2px); }
    100% { opacity: 0.4; transform: translateY(0); }
}

/* 横幅底部微光线 */
.green-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(91,154,111,0.5) 20%,
        rgba(91,154,111,0.8) 50%,
        rgba(91,154,111,0.5) 80%,
        transparent 100%);
}

/* 横幅标题加文字发光 */
.green-banner .banner-title {
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 查看详情按钮 - 与横幅风格统一 */
.green-banner .btn-banner-enter {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.green-banner .btn-banner-enter:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    box-shadow:
        0 0 15px rgba(255,255,255,0.15),
        inset 0 1px 0 rgba(255,255,255,0.2);
}


/* ── 侧边栏按钮微光泽 ── */
.btn-create-work-large {
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255,255,255,0.15) !important;
}
.btn-create-work-large:hover {
    box-shadow:
        0 6px 20px rgba(91, 154, 111, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

.user-action-buttons .btn-action {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.user-action-buttons .btn-action:hover {
    box-shadow:
        0 4px 14px rgba(91, 154, 111, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

/* 会员信息卡（付费状态）绿色微脉动 */
.user-membership-card:not(.trial) {
    position: relative;
    overflow: hidden;
}
.user-membership-card:not(.trial)::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(91,154,111,0.08) 0%, transparent 70%);
    animation: membershipPulse 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes membershipPulse {
    0% { transform: translate(-10%, -10%); opacity: 0.5; }
    100% { transform: translate(10%, 10%); opacity: 1; }
}


/* ── 书籍卡片微升级 ── */
.book-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.book-card:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(91, 154, 111, 0.12));
}

/* ── 响应式适配 ── */
@media (max-width: 576px) {
    .announcement-popup-container {
        max-width: 95%;
        border-radius: 16px;
    }
    .announcement-popup-header {
        padding: 20px 18px 14px;
    }
    .announcement-popup-body {
        padding: 16px 18px;
    }
    .announcement-popup-footer {
        padding: 14px 18px;
        flex-direction: column;
        gap: 12px;
    }
    .announcement-popup-btn {
        width: 100%;
        text-align: center;
    }
}
