/* CSS变量定义 */
:root {
    /* 亮色主题 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #eeeeee;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #dddddd;
    --border-color: #ddd;
    --border-light: #eee;
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    --scrollbar-track: transparent;
    --scrollbar-thumb: rgba(102, 126, 234, 0.5);
    --scrollbar-thumb-hover: rgba(102, 126, 234, 0.75);
    --icon-filter: none;
}

/* 暗黑主题 */
[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-tertiary: #cccccc;
    --border-color: #303030;
    --border-light: #222222;
    --accent-primary: #7c8aed;
    --accent-secondary: #8a5fb8;
    --accent-gradient: linear-gradient(135deg, #7c8aed 0%, #8a5fb8 100%);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-heavy: rgba(0, 0, 0, 0.7);
    --scrollbar-track: #404040;
    --scrollbar-thumb: rgba(124, 138, 237, 0.5);
    --scrollbar-thumb-hover: rgba(124, 138, 237, 0.75);
    --icon-filter: invert(1);
}

/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 全局自定义滚动条样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

/* Webkit浏览器滚动条样式 */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
    transition: all 0.3s ease;
    animation: scrollbar-fade-in 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-thumb:active {
    background: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

@keyframes scrollbar-fade-in {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

/* 滚动后延迟淡出效果 */
.scrollbar-fade-out *::-webkit-scrollbar-thumb {
    animation: scrollbar-fade-out 0.3s ease 2s forwards;
}

@keyframes scrollbar-fade-out {
    from {
        background: rgba(102, 126, 234, 0.75);
    }
    to {
        background: rgba(102, 126, 234, 0.5);
    }
}

/* 页面模态框iframe内容滚动条样式 */
.page-modal-body iframe::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.page-modal-body iframe::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

.page-modal-body iframe::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-modal-body iframe::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.page-modal-body iframe::-webkit-scrollbar-corner {
    background: transparent;
}

/* 详情模态框滚动条样式 */
.detail-modal-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.detail-modal-content::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

.detail-modal-content::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.detail-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.detail-modal-content::-webkit-scrollbar-corner {
    background: transparent;
}

/* 轮播图样式 */
.banner-section {
    margin: 10px 0;
}

.banner-slider {
    position: relative;
    height: 80px;
    overflow: hidden;
    border-radius: 16px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    transform: scale(1);
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.banner-content h2 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.banner-content p {
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 5px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #667eea50;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dot:hover {
    background: #667eea75;
    transform: scale(1.2);
}

.dot.active {
    background: #667eea;
    transform: scale(1.3);
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.banner-dot.active {
    background: white;
}

/* 页面模态框样式 - 移除遮罩和标题栏 */
.page-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    height: 100vh;
    display: none;
}

.page-modal-content {
    width: 100%;
    height: 100%;
}

.page-modal-body {
    width: 100%;
    height: 100%;
}

.page-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 页面模态框返回按钮样式 */
.page-modal-back-btn {
    position: absolute;
    top: 30px;
    left: 35px;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgb(102, 126, 234);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-modal-back-btn:hover {
    background: rgba(102, 126, 234, 1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-2px) translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 页面模态框返回按钮圆形样式（滚动到顶部时） */
.page-modal-back-btn.scroll-to-top {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    gap: 0;
}

.page-modal-back-btn.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 平台头部样式 */
.platform-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-align: center;
    flex-direction: column;
    color: #fff;
}

/* 导航栏选择状态样式 */
.quick-action-item.selected {
    pointer-events: none;
    font-size: 0.9rem;
    height: 50px;
    border: none;
    border-right: 2px solid #fff;
}

.feature-card.selected {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    pointer-events: none;
    font-size: 0.9rem;
    height: 60px;
    border: none;
    opacity: 1;
}

.gallery-grid {
    display: block;
    width: 100%;
    font-size: 0; /* 消除inline-block间隙 */
    border-radius: 12px;
    overflow: hidden;
}

.waterfall-column {
    display: inline-block;
    vertical-align: top;
    font-size: 14px; /* 恢复字体大小 */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    width: 100%;
    margin-bottom: 1px;
}

/* 右侧图片任务样式 */
.image-task-right {
    position: relative;
    height: 250px;
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--shadow-light);
    overflow: hidden;
}
.right-story {
    /* JS动态控制布局，移除固定跨列 */
    width: 100%;
}

/* 悬停在隐藏.gallery-item时显示gallery-item-info元素 */
.gallery-item:hover .gallery-item-info {
    opacity: 1;
}

.gallery-item-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-item-image {
    margin-bottom: 2px;
    width: calc(100% - 2px);
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.gallery-item-image.loaded {
    opacity: 1;
}

.gallery-item-image:hover {
    transform: scale(1.05);
}

.gallery-item-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    pointer-events: none;
    transition: background 0.3s ease;
}

.gallery-item:hover .gallery-item-play-icon {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-item-info {
    padding: 6px;
    padding-top: 16px;
    position: absolute;
    bottom: 0;
    width: calc(100% - 12px);
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-item-author {
    display: flex;
    align-items: center;
}

.gallery-item-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 6px;
}

.gallery-item-username {
    color: #fff;
}

.gallery-item-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #fff;
}

.gallery-item-likes {
    display: flex;
    align-items: center;
}

.gallery-item-time {
    padding-right: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* 详情模态框样式 */
.detail-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.detail-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    margin: auto;
    padding: 15px;
    border-radius: 16px;
    width: calc(95vw - 30px);
    height: calc(90vh - 30px);
    min-width: 320px;
    min-height: 400px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    outline: none; /* 移除获取焦点时的默认黑色边框 */
}

.detail-modal-content:focus {
    outline: none; /* 确保焦点状态下也不显示边框 */
}

.detail-modal-body {
    display: flex;
    flex: 1;
    gap: 20px;
    overflow: hidden;
}

.detail-image-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    min-width: 0;
    position: relative;
}

/* 图片容器自适应 */
.detail-image-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.05;
    z-index: 0;
}

.detail-info-section {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 模态框关闭按钮样式 */
.detail-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.detail-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.detail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.detail-video {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    background: #000;
}

/* 原图按钮样式 */
.original-image-buttons {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1002;
}

.original-image-btn {
    background: white;
    color: black;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 60px;
}

.original-image-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    color: white;
    transform: scale(1.05);
}

.original-image-btn.active {
    background: rgba(74, 144, 226, 0.9);
    color: white;
}

/* 图片导航按钮样式 */
.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 1002;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.image-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* 图片计数器样式 */
.image-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1002;
}

/* 图片对比容器样式 */
.image-comparison-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.image-comparison-container .detail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.image-comparison-container .original-image {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    transition: clip-path 0.1s ease;
}

.image-comparison-container .work-image {
    z-index: 1;
}

/* 分割线样式 */
.comparison-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 3;
    transform: translateX(-50%);
    transition: left 0.1s ease;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.comparison-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.comparison-divider::after {
    content: '⟷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 12px;
    font-weight: bold;
}

/* 图片标签样式 */
.image-label {
    position: absolute;
    top: 15px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    z-index: 4;
    backdrop-filter: blur(5px);
}

.image-label.work-label {
    right: 65px;
}

.image-label.original-label {
    left: 15px;
}

/* 图片加载状态 */
.detail-image:not([src]), .detail-image[src=""] {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image:not([src])::after, .detail-image[src=""]::after {
    content: '加载中...';
    color: #999;
    font-size: 14px;
}

.detail-info {
    padding: 0;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.detail-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.detail-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.detail-username {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 15px;
}

.detail-params {
    background: rgba(0, 100, 200, 0.1);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 100, 200, 0.2);
}

.detail-params-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.detail-param-item {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.detail-like-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    margin-right: 10px;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-like-btn:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 71, 87, 0.2);
}

.detail-like-btn.liked {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.3);
}

.detail-like-count {
    margin-left: 5px;
    font-weight: 600;
}

.detail-time {
    font-size: 12px;
    color: #999;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 评论区域样式 */
.detail-comments {
    margin-top: 20px;
    border-top: 2px solid var(--border-light);
    flex: 1;
    min-height: 0;
    padding-top: 15px;
}

.comments-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 16px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
}

.comment-input-area {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.comment-input-area textarea {
    width: calc(100% - 22px);
    min-height: 80px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
}

.comment-input-area textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--shadow-light);
    background: var(--bg-primary);
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.comment-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-comment {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-medium);
}

.btn-comment:hover {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.btn-comment:disabled {
    background: var(--text-tertiary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.comment-login-prompt {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.comment-login-prompt a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.comment-login-prompt a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.comments-loading {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-tertiary);
    font-style: italic;
}

.comment-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px var(--shadow-light);
}

.comment-item:hover {
    background: var(--bg-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px var(--shadow-medium);
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

.comment-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.comment-time {
    font-size: 12px;
    color: var(--text-tertiary);
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.comment-content {
    line-height: 1.6;
    font-size: 14px;
    word-wrap: break-word;
    color: var(--text-secondary);
    padding: 8px 0;
}

.comment-actions-item {
    margin-top: 10px;
    text-align: right;
}

.comment-delete {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.comment-delete:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    color: var(--text-tertiary);
    font-style: italic;
}

/* 主布局样式 */
.main-container {
    display: flex;
    min-height: 100vh;
}

.left-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 80px;
    padding: 10px 0;
    overflow-y: auto;
    position: fixed;
    height: calc(100vh - 20px);
    z-index: 100;
    background: var(--accent-gradient);
}

/* 暗黑主题下的左侧导航栏 */
[data-theme="dark"] .left-sidebar {
    background: var(--bg-primary);
}

/* 暗黑主题下的导航栏内部元素 */
[data-theme="dark"] .left-sidebar .feature-card {
    color: var(--text-primary);
}

[data-theme="dark"] .left-sidebar .quick-action-item {
    color: var(--text-primary);
}

[data-theme="dark"] .left-sidebar .user-section {
    color: var(--text-primary);
}

[data-theme="dark"] .left-sidebar .auth-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .left-sidebar .auth-btn:hover {
    background: var(--bg-tertiary);
}

/* 作品详情模态框暗黑主题样式 */
[data-theme="dark"] .detail-params {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .detail-params-title {
    color: var(--text-primary);
}

[data-theme="dark"] .detail-param-item {
    color: var(--text-secondary);
}

[data-theme="dark"] .detail-like-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .detail-like-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
    color: #ff4757;
}

[data-theme="dark"] .detail-like-btn.liked {
    background: rgba(255, 71, 87, 0.25);
    border-color: #ff4757;
    color: #ff4757;
}

[data-theme="dark"] .detail-time {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .detail-author {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .detail-avatar {
    border: 2px solid var(--bg-primary);
    box-shadow: 0 2px 8px var(--shadow-medium);
}

[data-theme="dark"] .detail-username {
    color: var(--text-primary);
}

[data-theme="dark"] .detail-comments {
    border-top: 2px solid var(--border-color);
}

.right-content {
    flex: 1;
    margin-left: 90px;
    padding: 5px 15px 15px 5px;
    overflow-y: auto;
    height: 100vh;
    box-sizing: border-box;
}

/* 用户信息区域样式 */
.user-section {
    border-radius: 16px;
    color: var(--text-primary);
    text-align: right;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.auth-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--accent-primary);
}

.login-btn {
    color: var(--accent-primary);
}

.register-btn {
    color: var(--accent-primary);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-direction: column;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 8px;
}

.user-details {
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.nickname {
    font-weight: bold;
    margin-bottom: 5px;
}

/* 分区标题样式 */
.section-title {
    font-weight: bold;
    color: var(--text-primary);
    padding-bottom: 5px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

/* 灵感广场标题栏样式 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 15px;
}

.section-header .section-title {
    margin-bottom: 0;
    flex-shrink: 0;
}

/* 筛选标签样式 */
.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-tag {
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tag:hover {
    color: white;
}

.filter-tag.active {
    background: var(--bg-tertiary);
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.search-box input {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 12px;
    width: 150px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: var(--accent-primary);
}

.search-box button {
    padding: 2px 8px;
    border: 1px solid var(--accent-primary);
    border-radius: 15px;
    background: var(--accent-primary);
    color: white;
    cursor: pointer;
    font-size: 1px;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.back-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background: var(--accent-secondary);
}

/* 快捷功能区样式 */
.quick-actions {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: #fff;
}

.quick-action-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 10px;
}

.quick-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-item span {
    font-size: 14px;
    font-weight: 500;
}

/* 应用功能列表样式 */
.features-grid {
    display: grid;
    grid-template-columns: 1;
    gap: 20px;
    justify-content: center;
}

.feature-card {
    position: relative;
    overflow: hidden;
    color: #fff;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0.7;
    padding: 0 5px;
}

.feature-card b2 {
    position: absolute;
    right: 0.5rem;
    top: -1.2rem;
    font-size: 0.6rem;
}

/* 页面模态框样式 */
.page-modal {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    width: calc(100% - 80px);
    height: 100%;
    background: var(--bg-primary);
}

.page-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--accent-gradient);
    color: white;
}

.page-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.page-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
}

.page-modal-close:hover {
    color: #ffeb3b;
}

.page-modal-body {
    flex: 1;
    overflow-y: auto;
    height: calc(100vh - 80px);
    box-sizing: border-box;
}

.page-modal-body iframe {
    width: 100%;
    height: calc(100% - 5px);
    border: none;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    margin: auto;
    padding: 30px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 登录方式切换动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 微信登录区域样式 */
.wechat-login-section {
    animation: fadeIn 0.3s ease-out;
}

.password-login-section {
    animation: fadeIn 0.3s ease-out;
}

.modal-content h4 {
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: bold;
}

.close {
    color: #999;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover {
    color: #667eea;
}

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

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input {
    width: calc(100% - 32px);
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    background: var(--accent-gradient);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    display: none;
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.modal-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 内嵌样式类名 */
.platform-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.platform-title {
    text-align: center;
}

.platform-title-main {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

.platform-title-sub {
    font-size: 12px;
    margin-top: 2px;
}

.checkin-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.history-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.user-functions {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-modal-content {
    width: 400px;
    max-width: 70%;
    min-width: 0;
}

.register-modal-content {
    width: 400px;
    max-width: 90%;
    min-width: 0;
}

.page-info-hidden {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-app{
        display: flex;
        flex-direction: column;
        align-items: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-info {
        position: fixed;
        top: 5px;
        right: 10px;
        align-items: normal;
        flex-direction: row;
    }
    .app-functions{
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding-top: 10px;
        background: var(--accent-gradient);
    }
    [data-theme="dark"] .app-functions {
        background: var(--bg-primary);
        border-right: 1px solid var(--border-color);
    }
    .user-app{
        position: fixed;
        left: 70px;
        top: 5px;
        justify-content: space-between;
        flex-direction: unset;
    }
    .quick-action-item{
        width: 40px;
    }
    .section-title {
        flex-direction: column;
    }
    
    /* 手机端隐藏灵感广场的搜索和筛选组件 */
    .gallery-filter-controls {
        display: none !important;
    }
    .platform-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .search-box input {
        width: 40px;
    }
    .gallery-grid {
        column-count: auto;
    }
    
    .page-modal {
        width: 100%;
    }
    
    .banner-slider {
        height: 70px;
    }
    
    .banner-content p {
        font-size: 0.8rem;
    }

    .gallery-item-stats {
        font-size: 10px;
    }

    .detail-modal-content {
        width: calc(100vw - 40px);
        height: calc(100vh - 30px);
        border-radius: 0;
        max-width: none;
        max-height: none;
    }

    .detail-modal-body {
        flex-direction: column;
        gap: 15px;
    }

    .detail-image-section {
        flex: 0 0 auto;
        height: 60vh;
        max-height: 500px;
        min-height: 250px;
    }

    .detail-info-section {
        flex: 1;
        width: auto;
        min-width: auto;
        min-height: 0;
    }

    .quick-action-item.selected {
        border: none;
        border-bottom: 2px solid #fff;
    }

    .feature-card.selected {
        border: none;
    }

    .main-container {
        flex-direction: column;
    }

    .left-sidebar {
        padding: 5px 15px;
        width: calc(100% - 30px);
        height: auto;
        position: fixed;
    }

    .features-grid {
        display: flex;
    }
    
    .feature-card {
        text-align: center;
        height: 62px;
    }

    .feature-card b2 {
        right: 0rem;
        top: -1.2rem;
        font-size: 4.5rem;
    }

    .right-content {
        margin: 70px 0 70px 10px;
        overflow-y: clip;
        height: calc(100vh - 140px);
        box-sizing: border-box;
    }

    .gallery-item-image {
        height: auto;
    }

    .page-modal {
        width: 100%;
        height: calc(100% - 142px);
        right: 0;
        top: 70px;
    }
    
    .page-modal-content {
        width: 100%;
    }
}

/* ========== Universal Prompt/Confirm Modal (No overlay) ========== */
.app-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 100000; display: none; width: min(88vw, 420px); max-width: 420px; }
.app-modal.open { display: block; animation: appModalFadeIn .18s ease-out; }
.app-modal .modal-box { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 0px 20px var(--scrollbar-thumb-hover); overflow: hidden; }
.app-modal .modal-header { padding: 12px 14px; border-bottom: 1px solid var(--border-color); font-weight: 600; font-size: 14px; background: var(--bg-tertiary); }
.app-modal .modal-body { padding: 16px 14px; font-size: 14px; line-height: 1.6; word-break: break-word; }
.app-modal .modal-actions { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 14px; border-top: 1px solid var(--border-color); background: var(--bg-tertiary); }
.app-modal .btn { appearance: none; border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-primary); padding: 6px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: all .15s ease; }
.app-modal .btn:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.app-modal .btn-primary { background: var(--accent-primary); border-color: var(--accent-primary); color: #fff; }
.app-modal .btn-primary:hover { filter: brightness(1.05); }
@keyframes appModalFadeIn { from { opacity: 0; transform: translate(-50%, -54%); } to { opacity: 1; transform: translate(-50%, -50%); } }