/* Main Styles for OpenArt Workflows */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Loading Page Styles */
.loading-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-page.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.loading-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo-image {
    height: 56px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    filter: brightness(1.1);
}

.loading-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 300px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #2d2d2d;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a855f7, #c084fc);
    border-radius: 3px;
    width: 0%;
    animation: loading-progress 3s ease-in-out infinite;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

.loading-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    opacity: 0.9;
}

@keyframes loading-progress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Layout Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Left Sidebar */
.sidebar {
    width: 280px;
    background-color: #2d2d2d;
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease, width 0.3s ease;
    left: 0;
    top: 0;
}

.sidebar.collapsed {
    transform: translateX(-100%);
    width: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    cursor: pointer;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.collapse-icon {
    font-size: 16px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}

.collapse-icon:hover {
    color: #ffffff;
}

/* 折叠状态下的logo容器 */
.collapsed-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
    order: -1; /* 确保汉堡菜单在logo前面 */
}

.collapsed-logo-container.hidden {
    display: none;
}

.collapsed-logo .logo-image {
    height: 32px;
    width: auto;
}

/* 汉堡菜单样式 */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hamburger-menu:hover {
    background-color: #444;
}

.hamburger-menu span {
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-section {
    margin-bottom: 25px;
}

.nav-title {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
    position: relative;
}

.nav-item:hover {
    background-color: #3a3a3a;
}

.nav-item.active {
    background-color: #4a4a4a;
}

.nav-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-text {
    flex: 1;
    font-size: 14px;
}

.nav-tag {
    background-color: #10b981;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

/* Copyright Section */
.copyright-section {
    margin-top: 30px;
    padding: 15px;
    background-color: #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copyright-icon {
    font-size: 16px;
    color: #888;
    font-weight: bold;
}

.copyright-text {
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    background-color: #1a1a1a;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

/* Header */
.header {
    background-color: #252525;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.header-left {
    display: flex;
    align-items: center;
}

.main-site-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.main-site-link:hover {
    color: #8b5cf6;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 微信联系按钮样式 */
.contact-wechat-container {
    position: relative;
}

.contact-wechat-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.contact-wechat-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.wechat-icon {
    width: 22px;
    height: 22px;
}

/* 微信二维码弹窗样式 */
.wechat-qr-popup {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.wechat-qr-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qr-content {
    text-align: center;
}

.qr-code-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
}

.qr-text {
    color: #333;
    font-size: 12px;
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
}

/* Content Area */
.content {
    padding: 30px;
}

/* Page Content Styles */
.page-content {
    display: none;
}

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

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.5;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.video-card {
    background-color: #252525;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* 强制16:9比例 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #fbbf24;
    color: #1a1a1a;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.video-duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffffff;
}

.video-description {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.4;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.content-card {
    background-color: #252525;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid #333;
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #8b5cf6;
}

.article-category-card.active {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139,92,246,0.35);
}

.card-action {
    color: #8b5cf6;
    font-size: 14px;
    margin-top: 12px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.content-card:hover .card-action {
    opacity: 1;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffffff;
}

.card-description {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #252525;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #8b5cf6;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #cccccc;
}

.list-content {
    background-color: #252525;
    border-radius: 12px;
    padding: 20px;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

.list-item:last-child {
    border-bottom: none;
}

.list-icon {
    margin-right: 12px;
    font-size: 16px;
}

.list-text {
    flex: 1;
    font-size: 14px;
    color: #ffffff;
}

.list-meta {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #333;
    margin-top: 40px;
}

.loading-text {
    font-size: 16px;
    color: #888;
    margin-bottom: 20px;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-radius: 50%;
    border-top-color: #8b5cf6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.load-more-btn {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s;
}

.load-more-btn:hover {
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

/* ===== 三级页面样式 ===== */

/* 视频播放页面样式 (第一种显示方式) */
.video-player-container {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.video-back-btn {
    margin-bottom: 20px;
}

.back-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #8b5cf6;
}

.video-title h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.video-title p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 30px;
}

.video-player-area {
    background: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* 强制16:9比例 */
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.openart-banner {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    width: fit-content;
}

.openart-banner .logo {
    font-size: 18px;
    font-weight: bold;
}

.video-text-overlay {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    align-self: flex-start;
    margin-top: auto;
    margin-bottom: 20px;
}

.video-text-overlay span {
    font-size: 1.5rem;
    font-weight: bold;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button span {
    font-size: 2rem;
    color: #333;
    margin-left: 4px;
}

.video-meta {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
}

.video-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-logo {
    background: #ff0000;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.video-lesson-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
}

.video-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: none;
    border: 1px solid #555;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #444;
    border-color: #666;
}

.external-link {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #cccccc;
}

.youtube-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 500;
}

.youtube-link img {
    width: 24px;
    height: 24px;
}

.lesson-description {
    background: #2d2d2d;
    padding: 30px;
    border-radius: 12px;
}

.lesson-description h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.description-content {
    color: #cccccc;
    line-height: 1.6;
    font-size: 1rem;
}

/* 工作流详情页面样式 (第二种显示方式) */
.workflow-detail-container {
    display: flex;
    gap: 30px;
    padding: 20px;
}

.workflow-main-content {
    flex: 1;
}

.breadcrumb {
    margin-bottom: 20px;
    color: #cccccc;
    font-size: 14px;
}

.breadcrumb-item {
    color: #8b5cf6;
    cursor: pointer;
}

.breadcrumb-item.current {
    color: #ffffff;
    cursor: default;
}

.breadcrumb-separator {
    margin: 0 8px;
}

.workflow-header {
    margin-bottom: 20px;
}

.workflow-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.workflow-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.rating-text {
    color: #cccccc;
    font-size: 1rem;
}

.engagement-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-number {
    font-size: 1rem;
    font-weight: 500;
}

.workflow-image-gallery {
    margin-bottom: 30px;
}

.main-image-container {
    position: relative;
    margin-bottom: 15px;
}

.main-image-container img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 8px;
}

.image-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.nav-arrow {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: all;
    transition: background 0.3s ease;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.thumbnail-container {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: #8b5cf6;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workflow-description {
    background: #2d2d2d;
    padding: 30px;
    border-radius: 12px;
}

.workflow-description h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.workflow-description h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.workflow-description p {
    color: #cccccc;
    line-height: 1.6;
}

/* 右侧详情栏 */
.workflow-sidebar {
    width: 300px;
    background: #2d2d2d;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

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

.download-btn {
    width: 100%;
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #7c3aed;
}

.action-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.icon-btn {
    background: #444;
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.icon-btn:hover {
    background: #555;
}

.author-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}

.author-section h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.author-logo {
    background: #8b5cf6;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.author-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
}

.author-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.author-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cccccc;
    font-size: 0.9rem;
}

.reviews-section, .versions-section {
    margin-bottom: 20px;
}

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

.reviews-header h4, .versions-header h4 {
    color: #ffffff;
    font-size: 1.1rem;
}

.dropdown-arrow {
    background: none;
    border: none;
    color: #cccccc;
    cursor: pointer;
    font-size: 1.2rem;
}

.add-review-btn {
    width: 100%;
    background: none;
    border: 1px solid #555;
    color: #ffffff;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.add-review-btn:hover {
    background: #444;
    border-color: #666;
}

.review-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.review-rating {
    color: #ffd700;
    font-size: 1rem;
    margin-bottom: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.reviewer-avatar {
    background: #8b5cf6;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
}

.review-time {
    color: #888;
    font-size: 0.8rem;
}

.review-text {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

.version-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #333;
    border-radius: 6px;
}

.version-name {
    color: #cccccc;
    font-size: 0.9rem;
}

.download-icon-btn {
    background: none;
    border: none;
    color: #8b5cf6;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.download-icon-btn:hover {
    background: #444;
}

/* 讨论页面样式 (第三种显示方式) */
.discussion-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.info-box {
    background: #1e40af;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

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

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

.discussion-section {
    background: #2d2d2d;
    padding: 30px;
    border-radius: 12px;
}

.discussion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.discussion-icon {
    font-size: 1.5rem;
}

.discussion-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0;
}

.comment-input-area {
    margin-bottom: 30px;
}

.comment-textarea {
    width: 100%;
    background: #444;
    border: 1px solid #555;
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.comment-textarea::placeholder {
    color: #888;
}

.comment-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
}

.editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.toolbar-btn {
    background: #555;
    border: 1px solid #666;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.toolbar-btn:hover {
    background: #666;
    border-color: #777;
}

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

.comment-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.comment-btn:hover {
    background: #7c3aed;
}

.shortcut-hint {
    color: #888;
    font-size: 0.9rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
}

.comment-avatar {
    background: #8b5cf6;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

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

.commenter-name {
    color: #ffffff;
    font-weight: 500;
}

.comment-time {
    color: #888;
    font-size: 0.9rem;
}

.comment-text {
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 10px;
}

.comment-text p {
    margin: 0 0 8px 0;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

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

.comment-action-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.comment-action-btn:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 15px 20px;
    }

    .content {
        padding: 20px;
    }

    /* 三级页面移动端适配 */
    .workflow-detail-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .workflow-sidebar {
        width: 100%;
        position: static;
    }
    
    .video-title h1 {
        font-size: 2rem;
    }
    
    .engagement-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .main-image-container img {
        height: 300px;
    }
    
    .thumbnail-container {
        justify-content: center;
    }
}

/* 搜索中心样式 */
.search-container {
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 20px;
    border: 1px solid #404040;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    padding: 12px 16px;
    outline: none;
}

.search-input::placeholder {
    color: #888;
}

.search-btn {
    background: #8b5cf6;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #7c3aed;
}

.search-suggestions {
    margin-bottom: 20px;
}

.suggestion-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #404040;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tag:hover {
    background: #8b5cf6;
}

.search-results {
    margin-top: 20px;
}

.result-category h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #404040;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-item:hover {
    background: #333;
    border-color: #8b5cf6;
}

.result-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.result-content {
    flex: 1;
}

.result-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.result-description {
    color: #888;
    font-size: 14px;
    line-height: 1.4;
}

/* 卡片副标题样式 */
.card-subtitle {
    color: #888;
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.3;
}

/* 区域标题样式 */
.section-header {
    margin: 40px 0 30px 0;
    text-align: center;
}

.section-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #888;
    font-size: 16px;
    line-height: 1.5;
}

/* 更新日志样式 */
.update-log-container {
    max-width: 800px;
    margin: 0 auto;
}

/* 加载占位符样式 */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #888;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-placeholder p {
    font-size: 16px;
    margin: 0;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #ccc;
}

.empty-state p {
    margin: 0;
    line-height: 1.6;
}

.update-item {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #404040;
    transition: all 0.3s ease;
}

.update-item:hover {
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.update-version {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.update-type-badge {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.update-scope {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #333;
    border-radius: 6px;
    font-size: 14px;
    color: #ccc;
}

.update-description {
    line-height: 1.6;
    color: #e0e0e0;
    font-size: 15px;
}

.update-content h4 {
    color: #ffffff;
    font-size: 16px;
    margin: 15px 0 10px 0;
}

.update-content ul {
    color: #cccccc;
    margin: 10px 0;
    padding-left: 20px;
}

.update-content li {
    margin: 5px 0;
    line-height: 1.5;
}

/* 条款页面样式 */
.terms-container {
    max-width: 800px;
    margin: 0 auto;
}

.terms-section {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #404040;
}

.terms-section h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.terms-section p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.terms-section ul {
    color: #cccccc;
    margin: 10px 0;
    padding-left: 20px;
}

.terms-section li {
    margin: 8px 0;
    line-height: 1.5;
}

/* 管理员后台样式 */
.admin-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-section {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #404040;
}

.admin-section h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.admin-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
}

.admin-btn:active {
    transform: translateY(0);
}

/* 管理员登录提示动画 */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* 管理员后台响应式设计 */
@media (max-width: 768px) {
    .admin-dashboard {
        padding: 15px;
    }
    
    .admin-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .admin-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .admin-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* 视频列表管理样式 */
.video-list-container {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #404040;
}

.filter-section {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #404040;
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #404040;
    overflow: hidden;
    flex: 1;
    min-width: 300px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
}

.search-box input::placeholder {
    color: #888;
}

.search-btn {
    background: #8b5cf6;
    border: none;
    color: white;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 16px;
}

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

.filter-controls select {
    background: #1a1a1a;
    border: 1px solid #404040;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.batch-actions {
    background: #1e40af;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.batch-info {
    color: white;
    font-weight: 500;
}

.batch-buttons {
    display: flex;
    gap: 10px;
}

.video-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #404040;
}

.list-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #8b5cf6;
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    background: #404040;
    border: none;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.view-btn.active {
    background: #8b5cf6;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-controls select {
    background: #1a1a1a;
    border: 1px solid #404040;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.sort-btn {
    background: #404040;
    border: none;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.video-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #404040;
    transition: all 0.3s ease;
    position: relative;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.video-card.selected {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

/* Immersive article layout */
.immersive-article {
    background: #ffffff;
    color: #0f172a;
    border-radius: 32px;
    padding: 42px;
    box-shadow: 0 40px 90px rgba(15, 23, 42, 0.15);
    line-height: 1.85;
    margin: 0 auto 32px;
    max-width: 900px;
}

.immersive-article--preview {
    box-shadow: 0 25px 60px rgba(15,23,42,0.08);
}

.dark .immersive-article {
    background: rgba(15,23,42,0.85);
    color: #f8fafc;
}

.immersive-article--compact {
    background: rgba(15,23,42,0.75);
    color: #f8fafc;
    border-radius: 28px;
    padding: 32px;
}

.immersive-hero {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.8rem;
    color: rgba(15,23,42,0.55);
}

.immersive-hero-title {
    font-size: 2.6rem;
    letter-spacing: 0.08em;
    margin: 16px 0 10px;
    text-transform: uppercase;
}

.immersive-hero-subtitle {
    text-transform: none;
    font-size: 1rem;
    letter-spacing: normal;
    color: rgba(15,23,42,0.65);
}

.immersive-hero-image img,
.immersive-section-image img {
    width: 100%;
    border-radius: 26px;
    margin: 28px 0;
    box-shadow: 0 45px 80px rgba(0,0,0,0.25);
}

.immersive-intro {
    font-size: 1.05rem;
    color: rgba(15,23,42,0.8);
    margin-bottom: 36px;
}

.immersive-section {
    margin: 38px 0;
}

.immersive-section h2 {
    letter-spacing: 0.12em;
    font-size: 1.05rem;
    color: #94a3b8;
}

.immersive-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.immersive-gallery img {
    width: 100%;
    border-radius: 18px;
}

.immersive-quote {
    background: #111827;
    color: white;
    border-radius: 24px;
    padding: 30px;
    font-size: 1.2rem;
    margin-top: 30px;
}

.immersive-quote .quote-author {
    margin-top: 12px;
    opacity: 0.7;
    font-size: 0.95rem;
}

.immersive-open-btn {
    margin-top: 16px;
    background: #fbbf24;
    color: #111827;
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
}

.immersive-snippet {
    color: rgba(255,255,255,0.75);
    margin-top: 12px;
}

.immersive-card {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(15,23,42,0.75);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    box-shadow: 0 25px 45px rgba(0,0,0,0.5);
}

.immersive-card-media {
    width: 100%;
    padding-top: 56%;
    background-size: cover;
    background-position: center;
}

.immersive-card-body {
    padding: 20px 24px 28px;
}

.immersive-card-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
}

.immersive-card-body h3 {
    margin: 12px 0;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
}

.immersive-card-snippet {
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

.card-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.card-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8b5cf6;
}

.card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* 强制16:9比例 */
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.no-thumbnail {
    font-size: 48px;
    opacity: 0.5;
}

.card-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-draft {
    background: #fbbf24;
    color: #1a1a1a;
}

.status-published {
    background: #10b981;
    color: white;
}

.status-archived {
    background: #6b7280;
    color: white;
}

.card-content {
    padding: 15px;
}

.card-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-description {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #888;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: #404040;
    border: none;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.action-btn:hover {
    background: #555;
}

.edit-btn:hover {
    background: #3b82f6;
}

.preview-btn:hover {
    background: #10b981;
}

.delete-btn:hover {
    background: #ef4444;
}

.video-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

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

.video-table th {
    background: #333;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.video-table td {
    color: #cccccc;
    font-size: 14px;
}

.video-table tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

.video-table tr.selected {
    background: rgba(139, 92, 246, 0.1);
}

.table-thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.title-content h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.title-content p {
    color: #888;
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell .action-btn {
    margin-right: 5px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination-controls {
    display: flex;
    gap: 5px;
}

.page-btn {
    background: #404040;
    border: none;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.page-btn:hover {
    background: #555;
}

.page-btn.active {
    background: #8b5cf6;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #2a2a2a;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px;
    border-top: 1px solid #404040;
}

/* 搜索相关样式 */
.search-container {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    display: flex;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #404040;
    border-radius: 8px 0 0 8px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #8b5cf6;
}

.search-btn {
    padding: 15px 20px;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #7c3aed;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 8px;
    margin-top: 5px;
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 20px;
    color: #ffffff;
    cursor: pointer;
    border-bottom: 1px solid #404040;
    transition: background-color 0.3s ease;
}

.suggestion-item:hover {
    background: #404040;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.search-history {
    padding: 10px 0;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: #888;
    font-size: 14px;
    border-bottom: 1px solid #404040;
}

.clear-history-btn {
    background: none;
    border: none;
    color: #8b5cf6;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.clear-history-btn:hover {
    background: #404040;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.tag:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* 搜索结果样式 */
.search-results {
    margin-top: 30px;
}

.search-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #404040;
}

.search-header h3 {
    color: #ffffff;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.search-summary {
    color: #888;
    font-size: 14px;
    margin: 0;
}

.result-category {
    margin-bottom: 40px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 20px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #8b5cf6;
}

.category-icon {
    font-size: 24px;
}

.result-list {
    display: grid;
    gap: 20px;
}

.result-item {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #404040;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #8b5cf6;
}

.result-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.result-content {
    flex: 1;
}

.result-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.result-description {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.meta-item {
    color: #888;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.result-tags .tag {
    font-size: 12px;
    padding: 4px 8px;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 80px;
}

.view-btn {
    background: #8b5cf6;
    color: white;
}

.view-btn:hover {
    background: #7c3aed;
}

.like-btn {
    background: #404040;
    color: #ffffff;
}

.like-btn:hover {
    background: #505050;
}

/* 无结果状态 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    color: #ffffff;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.no-results p {
    font-size: 16px;
    margin: 0 0 30px 0;
}

.related-suggestions {
    margin-top: 30px;
}

.related-suggestions h4 {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 15px 0;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #404040;
    border-top: 4px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态 */
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.error-state h3 {
    color: #ffffff;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.error-state p {
    font-size: 16px;
    margin: 0 0 20px 0;
}

.retry-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.retry-btn:hover {
    background: #7c3aed;
}

/* 提示消息 */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2a2a2a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #404040;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* 搜索响应式设计 */
@media (max-width: 768px) {
    .search-input {
        font-size: 14px;
        padding: 12px 16px;
    }

    .search-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .result-item {
        flex-direction: column;
        gap: 15px;
    }

    .result-actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .result-meta {
        flex-direction: column;
        gap: 8px;
    }

    .suggestion-tags {
        justify-content: center;
    }
}

/* 提示消息样式 */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
}

.alert.show {
    opacity: 1;
    transform: translateX(0);
}

.alert-success {
    background: #10b981;
    border: 1px solid #059669;
}

.alert-error {
    background: #ef4444;
    border: 1px solid #dc2626;
}

.alert-warning {
    background: #f59e0b;
    border: 1px solid #d97706;
}

.alert-info {
    background: #3b82f6;
    border: 1px solid #2563eb;
}

/* 文件上传区域样式 */
.file-upload-area {
    border: 2px dashed #404040;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #1a1a1a;
}

.file-upload-area:hover {
    border-color: #8b5cf6;
    background: #2a2a2a;
}

.file-upload-area.dragover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.file-upload-placeholder {
    color: #888;
}

.file-upload-placeholder .upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.file-upload-placeholder .upload-text {
    font-size: 16px;
    margin-bottom: 8px;
    color: #ffffff;
}

.file-upload-placeholder .upload-hint {
    font-size: 14px;
    color: #888;
}

.file-upload-preview {
    margin-top: 20px;
}

.file-upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.file-info {
    margin-top: 10px;
    font-size: 14px;
    color: #888;
}

.file-info p {
    margin: 4px 0;
}

/* 预览模态框样式 */
.preview-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.preview-content {
    padding: 20px;
}

.preview-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #404040;
}

.preview-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.preview-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.meta-item {
    color: #888;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.preview-description,
.preview-content {
    margin-bottom: 20px;
}

.preview-description h3,
.preview-content h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 10px 0;
}

.preview-description p,
.preview-content p {
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

.content-preview {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #404040;
}

.content-preview h1,
.content-preview h2,
.content-preview h3,
.content-preview h4,
.content-preview h5,
.content-preview h6 {
    color: #ffffff;
    margin: 16px 0 8px 0;
}

.content-preview p {
    color: #cccccc;
    line-height: 1.6;
    margin: 8px 0;
}

.content-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.preview-featured-image {
    margin-top: 20px;
}

.preview-featured-image h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 10px 0;
}

.preview-featured-image img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Feedback Form Styles */
.feedback-form-container {
    margin-bottom: 40px;
}

.feedback-form {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #404040;
}

.feedback-form h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.4em;
}

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

.feedback-form label {
    display: block;
    margin-bottom: 8px;
    color: #e5e7eb;
    font-weight: 500;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.feedback-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.image-preview {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.image-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #404040;
}

/* My Feedback List */
.my-feedback-container {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #404040;
}

.my-feedback-container h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.4em;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feedback-item {
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.feedback-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

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

.feedback-title {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.feedback-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #9ca3af;
    flex-wrap: wrap;
}

.feedback-content {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feedback-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8em;
    font-weight: 500;
}

.feedback-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.feedback-status.processing {
    background: #dbeafe;
    color: #1e40af;
}

.feedback-status.resolved {
    background: #d1fae5;
    color: #065f46;
}

.feedback-status.closed {
    background: #f3f4f6;
    color: #374151;
}

.feedback-reply {
    background: #374151;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border-left: 4px solid #3b82f6;
}

.feedback-reply-header {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.feedback-reply-content {
    color: #e5e7eb;
    line-height: 1.6;
}

.feedback-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.feedback-images img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #404040;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feedback-images img:hover {
    transform: scale(1.1);
}

.empty-feedback {
    text-align: center;
    color: #9ca3af;
    padding: 40px;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .alert {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .preview-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .preview-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .file-upload-area {
        padding: 20px 10px;
    }
    
    .file-upload-placeholder .upload-icon {
        font-size: 36px;
    }
}
