/* PC端样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.main-nav a {
    margin-left: 30px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #3498db;
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

/* 主内容 */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

/* 章节标题 */
.section-title, .page-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* 首页欢迎区域 */
.welcome-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.welcome-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 18px;
    line-height: 2;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tutorial-section {
    margin-bottom: 30px;
}

.tutorial-section .section-title {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

.content-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid #3498db;
}

.content-subtitle {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.content-subtitle-small {
    font-size: 18px;
    color: #555;
    margin: 20px 0 12px 0;
    font-weight: bold;
}

.copy-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.copy-text {
    flex: 1;
    background: #fff;
    padding: 18px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.btn-copy-prompt {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.btn-copy-prompt::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-copy-prompt:hover::before {
    width: 300px;
    height: 300px;
}

.btn-copy-prompt:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-copy-prompt:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4);
}

.btn-copy-prompt.copied {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.5);
    animation: copySuccess 0.5s ease;
}

@keyframes copySuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 角色网格 */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.character-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.character-card:hover {
    transform: translateY(-5px);
}

.character-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.character-card h3 {
    padding: 15px;
    text-align: center;
    font-size: 16px;
}

/* 剧本网格 */
.script-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.script-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.script-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.script-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.script-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.script-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.script-card h3 {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.script-summary {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.script-actions {
    margin-top: auto;
}

.btn-view {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    text-align: center;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-view:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.script-meta {
    padding: 10px 15px;
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 15px;
}

/* 角色列表 */
.character-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.character-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.character-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.character-info {
    flex: 1;
}

.character-description pre {
    white-space: pre-wrap;
    font-family: inherit;
    line-height: 1.8;
    color: #666;
    margin: 10px 0;
}

.character-actions {
    margin-top: 15px;
}

/* 按钮 */
.btn-copy, .btn-favorite, .btn-unfavorite, .btn-primary, .btn-default {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: all 0.3s;
}

.btn-copy, .btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-copy:hover, .btn-primary:hover {
    background: #2980b9;
}

.btn-favorite {
    background: #e74c3c;
    color: #fff;
}

.btn-favorite:hover {
    background: #c0392b;
}

.btn-unfavorite {
    background: #95a5a6;
    color: #fff;
}

.btn-unfavorite:hover {
    background: #7f8c8d;
}

.btn-default {
    background: #ecf0f1;
    color: #333;
}

.btn-default:hover {
    background: #bdc3c7;
}

/* 剧本详情 */
.script-detail {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.script-title {
    font-size: 28px;
    margin-bottom: 20px;
}

/* 风格选择按钮 */
.style-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.style-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.style-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.style-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.script-cover-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 剧本简介区域 */
.script-summary-section {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 5px solid #667eea;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.summary-title {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.summary-title::before {
    content: '📖';
    margin-right: 10px;
    font-size: 24px;
}

.summary-content {
    font-size: 16px;
    line-height: 2.2;
    color: #444;
    white-space: pre-wrap;
    word-wrap: break-word;
    letter-spacing: 0.5px;
    text-align: justify;
}

/* PC端视频播放按钮 */
.script-video {
    margin-top: 30px;
}

/* 文章视频区域 */
.article-video {
    margin-top: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.article-video h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.pc-play-btn {
    width: 100%;
    max-width: 800px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    margin: 10px auto;
}

.pc-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.pc-play-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.4);
}

.pc-play-btn span {
    font-weight: 500;
}

/* PC端视频弹窗 */
.pc-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.pc-video-modal.active {
    display: flex;
}

.pc-video-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PC端关闭按钮 */
.pc-close-btn {
    position: absolute;
    top: -80px;
    right: 0;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    border: 4px solid #ffffff;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.8);
}

.pc-close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 71, 87, 1);
}

.pc-close-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.6);
}

.pc-close-btn span:first-child {
    font-size: 40px;
    line-height: 1;
    font-weight: bold;
}

.pc-close-btn .close-text {
    font-size: 11px;
    margin-top: -2px;
    font-weight: bold;
}

.pc-video-wrapper {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.9);
    max-height: 80vh;
}

.pc-video-wrapper .custom-video-player {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
    max-height: 80vh;
    object-fit: contain;
}

/* PC端自定义播放控制条 */
.pc-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 20px 15px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pc-video-wrapper:hover .pc-controls {
    opacity: 1;
}

.pc-controls .control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pc-controls .control-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.pc-controls .control-btn:active {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0.95);
}

.pc-controls .progress-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: visible;
    padding: 5px 0;
    margin: -5px 0;
}

.pc-controls .progress-bar:hover {
    height: 12px;
}

.pc-controls .progress-filled {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    width: 0%;
    transition: width 0.1s;
    position: relative;
}

.pc-controls .progress-filled::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.pc-controls .progress-bar:hover .progress-filled::after {
    opacity: 1;
}

.pc-controls .time-display {
    color: white;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 110px;
    text-align: center;
}

.pc-controls .fullscreen-btn svg {
    width: 20px;
    height: 20px;
}

.script-video video {
    width: 100%;
    max-width: 800px;
    margin-top: 10px;
}

.script-summary {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
}

.script-summary h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: bold;
}

.script-summary p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    display: block;
}

.script-meta-info {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 20px 0;
    color: #666;
}

/* 角色选择器 */
.character-selector {
    margin: 30px 0;
}

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

.selector-header h3 {
    margin: 0;
    font-size: 18px;
}

.random-actions {
    display: flex;
    gap: 10px;
}

.btn-random-all,
.btn-random-favorite {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-random-all {
    background: #3498db;
    color: #fff;
}

.btn-random-all:hover {
    background: #2980b9;
}

.btn-random-favorite {
    background: #e74c3c;
    color: #fff;
}

.btn-random-favorite:hover {
    background: #c0392b;
}

/* Tab切换 */
.character-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 8px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Tab内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 空消息 */
.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.empty-message a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.empty-message a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    /* 滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: #3498db #f1f1f1;
}

.selector-grid::-webkit-scrollbar {
    height: 8px;
}

.selector-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.selector-grid::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.selector-grid::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.selector-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    min-width: 100px;
}

.selector-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 6px;
}

.char-name {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-select-main, .btn-select-support {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
}

.btn-select-main {
    background: #3498db;
    color: #fff;
}

.btn-select-support {
    background: #2ecc71;
    color: #fff;
}

/* 横排按钮容器（PC端） */
.char-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}
.char-actions .btn-select-main,
.char-actions .btn-select-support {
    flex: 1;
    display: inline-block;
    width: auto;
    margin-top: 0;
}

/* 已选择角色 */
.selected-characters {
    margin: 30px 0;
}

.selected-list {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.selected-group {
    flex: 1;
}

.selected-items {
    min-height: 100px;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
}

.selected-item {
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 剧本内容 */
.script-content {
    margin-top: 30px;
}

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

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

.content-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    white-space: pre-wrap;
    line-height: 1.8;
}

.content-text.collapsed {
    max-height: 300px;
    overflow: hidden;
    position: relative;
}

.content-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, #f8f9fa);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 35px 0;
}

.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.page-num {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #667eea;
    border: 1px solid #e0e0e0;
}

.page-num:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.page-num.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    transform: scale(1.05);
}

.page-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    padding: 0 16px;
    border: none;
}

.page-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6ca5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.page-dots {
    color: #999;
    padding: 0 5px;
    font-weight: bold;
    box-shadow: none;
    background: transparent;
}

/* 登录页面 */
.login-page {
    padding: 50px 0;
}

.login-container {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.error-message {
    background: #e74c3c;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success-message {
    background: #27ae60;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 用户中心 */
.user-center {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-info {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.favorites-section {
    margin-bottom: 50px;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 底部 */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

/* 文章列表与内页样式 */
.article-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.article-categories .cat-item {
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}
.article-categories .cat-item:hover {
    border-color: #667eea;
    color: #667eea;
}
.article-categories .cat-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.article-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.article-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}
.article-cover.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #999;
    font-size: 12px;
}
.article-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.article-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}
.article-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.article-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 15px;
    margin-top: auto;
}

/* 文章内页 */
.article-detail {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.article-title-lg {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
}
.article-meta-line {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.article-cover-box img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}
.article-summary-section {
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 5px solid #667eea;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.article-content {
    font-size: 16px;
    line-height: 2;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    letter-spacing: 0.3px;
}