/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: PingFang SC, arial, tahoma, Hiragino Sans GB, Microsoft YaHei, sans-serif;;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 全局加载提示样式 */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.global-loader-content {
    background-color: #2A2A2A;
    border-radius: 12px;
    padding: 30px 50px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.global-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #00D96B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.global-loader-text {
    color: #ffffff;
    font-size: 12px;
}

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

/* 全局提示通知样式 */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-box {
    background-color: #2A2A2A;
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-left: 4px solid #00D96B;
    font-size: 14px;
    max-width: 400px;
    display: none;
}

/* 自定义title提示样式 */
.custom-tooltip {
    position: fixed;
    background-color: #2A2A2A;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-left: 3px solid #00D96B;
    z-index: 10001;
    pointer-events: none;
    display: none;
    word-wrap: break-word;
}

.txt_font {
    font-family: PingFang SC, arial, tahoma, Hiragino Sans GB, Microsoft YaHei, sans-serif;
}




/* Main Container */
.main-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 200px;
    background-color: #121212;
    border-right: 1px solid #2a2a2a;
    flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .sidebar-logo img {
    height: 24px;
}

.sidebar.collapsed .sidebar-link span {
    display: none;
}

.sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.sidebar.collapsed .sidebar-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar.collapsed .user-details {
    display: none;
}

.sidebar.collapsed .user-info {
    justify-content: center;
    padding: 0.5rem;
}

.sidebar.collapsed .user-avatar {
    width: 32px;
    height: 32px;
}

.sidebar.collapsed .sidebar-header {
    padding: 1rem;
    justify-content: space-between;
}

.sidebar.collapsed .sidebar-header .sidebar-logo {
    margin-right: 0.5rem;
}

.sidebar.collapsed .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #2a2a2a;
}

.sidebar-toggle {
    background-color: transparent;
    border: none;
    color: #b0b0b0;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.sidebar-toggle:hover {
    background-color: #1e1e1e;
    color: #ffffff;
}

.sidebar.collapsed .sidebar-toggle {
    transform: rotate(180deg);
}

.sidebar-logo {
    padding: 0;
}

.sidebar-logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.sidebar-menu {
    list-style: none;
    flex: 1;
}

.sidebar-item {
    margin-bottom: 0.3rem;
}

.sidebar-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem 0.5rem;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: none;
    border-bottom: 2px solid transparent;
    position: relative;
    width: 100%;
    text-align: center
}

.sidebar-link:hover {
    background-color: #1e1e1e;
    color: #ffffff;
}

.sidebar-link.active {
    background-color: #1e1e1e;
    color: #ffffff;
    border-left-color: #0066cc;
}

.sidebar-link.active i {
    color: #0066cc;
    transform: scale(1.1);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #0066cc;
    border-radius: 0 3px 3px 0;
}

.sidebar-link i {
    font-size: 1.2rem;
    width: 20px;
}

/* User Profile in Sidebar */
.user-profile {
    padding: 1rem 2rem;
    border-top: 1px solid #2a2a2a;
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.user-details {
    flex: 1;
    min-width: 0;
}

.user-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-details p {
    font-size: 0.9rem;
    color: #0066cc;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 0rem;
    height: 100%;
    font-size: 0.875rem;
    overflow-y: auto;
}

/* Page Title */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0rem;
    color: #ffffff;
}

/* Dashboard Styles */
.dashboard-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.dashboard-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0rem;
    color: #ffffff;
}

.dashboard-hero p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.create-btn {
    background-color: #ffffff;
    color: #0066cc;
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(156, 39, 176, 0.3);
}

/* Trending Section */
.trending-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.view-more {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: #004c99;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.trending-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 9/16;
    background-color: #1e1e1e;
    border: 2px solid transparent;
}

.trending-item:hover {
    transform: translateY(-5px);
    border-color: #0066cc;
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
}

.trending-item.selected {
    border-color: #0066cc;
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

.trending-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.trending-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trending-item:hover .trending-thumbnail img {
    transform: scale(1.05);
}

.views-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    color: #ffffff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.trending-item:hover .video-overlay {
    transform: translateY(0);
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.video-creator {
    font-size: 0.8rem;
    color: #b0b0b0;
    margin-bottom: 0.75rem;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #b0b0b0;
    margin-bottom: 0.75rem;
}

.like-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.use-template-btn {
    width: 100%;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.use-template-btn:hover {
    background-color: #004c99;
}

/* Creation Center Styles */
.creation-center {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 1px;
    height: 100vh;
    background-color: #2a2a2a;
}

.left-panel {
    background-color: #121212;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.panel-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reset-btn {
    background-color: transparent;
    border: none;
    color: #b0b0b0;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background-color: #1e1e1e;
    color: #ffffff;
}

.workspace-btn {
    color: #0066cc;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
}

.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 10px;
    max-width: 90%;
}

.ai-message {
    background-color: #1e1e1e;
    border-top-left-radius: 0;
    align-self: flex-start;
}

.user-message {
    background-color: #0066cc;
    color: #ffffff;
    border-top-right-radius: 0;
    align-self: flex-end;
    margin-left: auto;
}

.user-input-area {
    border-top: 1px solid #2a2a2a;
    padding-top: 0.3rem;
}

.prompt-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0rem;
}

.action-btn {
    background-color: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0.5rem;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #2a2a2a;
    color: #ffffff;
}

.user-input-area > .prompt-actions {
    display: block;
}

.input-container {
    position: relative;
    margin-bottom: 0.1rem;
}

.prompt-input {
    width: 100%;
    background-color: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 0.75rem;
    color: #ffffff;
    font-size: 0.875rem;
    min-height: 180px;
    resize: vertical;
    padding-bottom: 40px;
}

.prompt-input:focus {
    outline: none;
    border-color: #00D96b;
}

.input-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #1e1e1e;
    border-top: 1px solid #2a2a2a;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.input-footer .prompt-actions {
    display: flex;
    gap: 0.25rem;
    flex: 1;

}

.input-footer .action-btn {
    padding: 0.3rem;
    font-size: 0.8rem;
}

.input-footer .model-settings {
    flex: 2;
    display: flex;
    gap: 0.5rem;
    margin-top: 0;
}

.input-footer .setting-item {
    flex: 1;
    position: relative;
}

.input-footer .setting-item select {
    width: 100%;
    background-color: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    color: #ffffff;
    font-size: 0.7rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b0b0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11l-5-5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 20px;
    padding-left: 0.5rem;
}

.input-footer .send-btn {
    position: static;
    background-color: #00D96b;
    border: none;
    border-radius: 10rem;
    width: 120px;
    height: 24px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    gap:5px;
}

.input-footer .send-btn:hover {
    background-color: #004c99;
}

.model-settings {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.setting-item {
    flex: 1;
    position: relative;
}

.setting-item select {
    width: 100%;
    background-color: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 0.5rem 0.5rem;
    color: #ffffff;
    font-size: 0.7rem;
    appearance: none;
    background-repeat: no-repeat;
    background-position: 10px center;
    padding-left: 30px;
}

.model-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23b0b0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3zm0 14a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/%3E%3C/svg%3E");
}

.duration-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23b0b0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 3a.5.5 0 0 1 .5.5V5H10a.5.5 0 0 1 0 1H8.5v1.5a.5.5 0 0 1-1 0V6H6a.5.5 0 0 1 0-1h1.5V3.5A.5.5 0 0 1 8 3zm3.5 3a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zM1 8a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3A.5.5 0 0 0 4.5 4h-3A.5.5 0 0 0 1 4.5v3zM8 9a.5.5 0 0 1 .5-.5h3A.5.5 0 0 1 12 9v3a.5.5 0 0 1-.5.5h-3A.5.5 0 0 1 8 12V9z'/%3E%3C/svg%3E");
}

.aspect-ratio-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23b0b0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8.5 2.5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1h5zM3 4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-9A.5.5 0 0 1 3 11V4zm1.5 2.5A.5.5 0 0 0 1 3v9a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-13zm13 1h-13v7h13v-7z'/%3E%3C/svg%3E");
}

.center-panel {
    background-color: #121212;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.center-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    text-align: left;
}

.center-panel .panel-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.workspace-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credits-estimate {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.export-btn {
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.export-btn:hover {
    background-color: #004c99;
}

.center-panel .video-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.video-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16/9;
    background-color: #1e1e1e;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.preview-placeholder i {
    font-size: 4rem;
    color: #2a2a2a;
}

.video-player {
    width: 100%;
    max-width: 600px;
    margin-bottom: 0rem;

}

.video-player video {
    width: 100%;
    border-radius: 10px;
    height: 200px;
}

.loading-progress {
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #1e1e1e;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background-color: #00D96b;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    color: #b0b0b0;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

.center-panel p {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin: 0;
}

.right-panel {
    background-color: #121212;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

 /* 工作台头部样式 */
.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #1e1e1e;
    border-bottom: 1px solid #333;
}


.workspace-tabs {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.workspace-tab {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.workspace-tab.active {
    color: #00D96B;
    background: rgba(0, 217, 107, 0.1);
}

.workspace-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.workspace-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.workspace-checkbox input[type="checkbox"] {
    accent-color: #00D96B;
}

.workspace-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.view-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.view-btn.active {
    background-color: #2a2a2a;
    color: #00D96B;
    border-color: #00D96B;
}

.asset-btn {
    background: none;
    border: 1px solid #333;
    color: #888;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.asset-btn:hover {
    color: #ffffff;
    border-color: #555;
}

.workspace-content {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 1px;
    flex: 1;
    overflow: hidden;
    background-color: #2a2a2a;
}

.video-section {
    background-color: #121212;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.image-section {
    background-color: #121212;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.params-section {
    background-color: #121212;
    padding: 1rem;
    overflow-y: auto;
}

.params-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.params-section h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #b0b0b0;
}

.param-group {
    margin-bottom: 0.2rem;
}

.param-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #b0b0b0;
}

.param-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.param-btn {
    background-color: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.param-btn.active {
    background-color: #0066cc;
    border-color: #0066cc;
    color: #ffffff;
}

.param-btn:hover:not(.active) {
    background-color: #2a2a2a;
    color: #ffffff;
}

.style-select {
    width: 100%;
    background-color: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 1rem;
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.advanced-toggle {
    background-color: transparent;
    border: none;
    color: #0066cc;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Template Library */
.template-library {
    padding: 2rem;
}

.template-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 0rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #0066cc;
    border-color: #0066cc;
    color: #ffffff;
}

.filter-btn:hover:not(.active) {
    background-color: #2a2a2a;
    color: #ffffff;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.template-item {
    position: relative;
    background-color: #1e1e1e;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.template-item:hover {
    transform: translateY(-5px);
    border-color: #0066cc;
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
}

.template-item.selected {
    border-color: #0066cc;
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

.template-thumbnail {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
}

.template-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.template-item:hover .template-thumbnail img {
    transform: scale(1.05);
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.template-item:hover .template-overlay {
    opacity: 1;
}

.use-template-btn {
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.use-template-btn:hover {
    background-color: #004c99;
    transform: scale(1.05);
}

.template-info {
    padding: 1.5rem;
}

.template-category {
    font-size: 0.8rem;
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.template-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.template-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    background-color: #121212;
    border-radius: 10px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: #b0b0b0;
}

/* Profile Page */
.profile-page {
    padding: 2rem;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 2rem;
    background-color: #121212;
    border-radius: 15px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #0066cc;
    flex-shrink: 0;
}

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

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.1rem;
}

.profile-info-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pro-badge {
    background-color: #0066cc;
    color: #ffffff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-info p {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 0;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.edit-btn, .share-btn {
    background-color: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    color: #ffffff;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* Tabs */
.tabs {
    display: flex;
    gap: 2rem;
    margin-bottom: 0rem;
    border-bottom: 1px solid #2a2a2a;
}

.tab {
    padding: 1rem 0;
    color: #b0b0b0;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    color: #ffffff;
    border-bottom-color: #00D96B;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 9/16;
    background-color: #1e1e1e;
    border: 2px solid transparent;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: #0066cc;
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
}

.portfolio-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-thumbnail img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-actions-btn {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #0066cc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.portfolio-actions-btn:hover {
    background-color: #0066cc;
    transform: scale(1.1);
}

/* Pricing Page */
.pricing-page {
    padding: 2rem;
    text-align: left;
}

.pricing-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0rem;
    color: #ffffff;
}

.pricing-page p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #b0b0b0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.pricing-card {
    background-color: #1e1e1e;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #2a2a2a;
    position: relative;
    transition: transform 0.3s ease;
}

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

.pricing-card.popular {
    border-color: #00D96B;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #00D96B;
    color: #ffffff;
    padding: 0.1rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0rem;
    color: #ffffff;
}

.pricing-card .price-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
}

.pricing-card .billing-cycle {
    font-size: 1rem;
    color: #b0b0b0;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    color: #b0b0b0;
    border-bottom: 1px solid #2a2a2a;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: #4caf50;
}

.pricing-btn {
    width: 100%;
    background-color: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-card.popular .pricing-btn {
    background-color: #00D96B;
    border-color: #00D96B;
}

.pricing-btn:hover {
    background-color: #2a2a2a;
}

.pricing-card.popular .pricing-btn:hover {
    background-color: #4caf50;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .creation-center {
        grid-template-columns: 1fr;
        height: auto;
        gap: 1rem;
    }

    .left-panel, .center-panel, .right-panel {
        height: auto;
        min-height: 0;
    }

    .sidebar {
        width: 200px;
    }

    .content-area {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

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

    .content-area {
        padding: 1rem;
    }

    .dashboard-hero {
        padding: 2rem;
    }

    .dashboard-hero h1 {
        font-size: 2rem;
    }

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

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

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

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

    .pricing-card.popular {
        transform: none;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .profile-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-actions {
        flex-direction: column;
        align-items: flex-end;
    }

    .credits {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .export-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .dashboard-hero h1 {
        font-size: 1.8rem;
    }

    .create-btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

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

    .profile-stats {
        gap: 1rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-card .price {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00D96b;
    animation: spin 1s ease-in-out infinite;
}

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

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

/* 新的侧边栏样式 */
.sidebar {
    width: 80px;
    background-color: #0a0a0a;
    display: flex;
    flex-direction: column;
    height: 100vh;
    border-right: 1px solid #2a2a2a;
}

.sidebar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-top: 0.5rem;
}

.sidebar-logo img {
    height: 40px;
    width: auto;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0rem 0;
    flex: 1;
    justify-content: flex-end;
}

.sidebar-menu.small-menu {
    /* 顶部留出更大间距：与上方主菜单（剪辑）拉开距离，视觉分层更专业 */
    padding: 1.4rem 0 0.1rem;
    gap: 0.01rem;
    margin-top: auto;
    margin-bottom: 0.5rem;
}

.sidebar-item {
    margin-bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}



.sidebar-menu.small-menu .sidebar-link {
    padding: 0.26rem 0.25rem;
    font-size: 0.75rem;
}

.sidebar-menu.small-menu .sidebar-link i {
    font-size: 0.95rem;
}

.sidebar-link:hover {
    background-color: transparent;
    color: #00D96B;
}

.sidebar-link.active {
    background-color: transparent;
    color: #00D96B;
    border-left-color: transparent;
    border-bottom-color: #00D96B;
}

.sidebar-link.active i {
    color: #00D96B;
    transform: scale(1);
}

.sidebar-link.active::before {
    display: none;
}

.sidebar-link i {
    font-size: 1rem;
    width: auto;
}

.sidebar-link span {
    font-size: 10px;
    text-align: center;
}

.notification-btn, .announcement-btn {
    position: relative;
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

.notification-btn:hover, .announcement-btn:hover {
    color: #ffffff;
    background-color: #1e1e1e;
}

.notification-dot {
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    width: 8px;
    height: 8px;
    background-color: #ff4444;
    border-radius: 50%;
}

.user-profile {
    padding: 0.5rem;
    border-top: 1px solid #2a2a2a;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

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

.user-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

.user-details .sidebar-link {
    width: 100%;
    text-align: center;
    padding: 0.25rem 0 !important;
    font-size: 12px;
}

.user-details .sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* User Popup Styles */
.user-info-container {
    position: relative;
    width: 100%;
}

.user-popup {
    position: fixed;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 300px;
    z-index: 9999;
}

.user-popup::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 80%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent #1e1e1e transparent transparent;
}

.user-popup-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #3a3a3a;
}

.user-popup-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}

.user-popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-popup-info {
    flex: 1;
}

.user-popup-name {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.user-popup-name span {
    color: #ffffff;
    font-weight: 600;
    margin-right: 8px;
}

.user-popup-id {
    background: #3a3a3a;
    color: #ffffff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
}

.user-popup-profile-btn {
    color: #00D96B;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.user-popup-divider {
    height: 1px;
    background: #3a3a3a;
}

.user-popup-section {
    padding: 16px;
}

.user-popup-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.user-popup-section-header span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.user-popup-section-link {
    color: #00D96B;
    text-decoration: none;
    font-size: 12px;
}

.user-popup-space {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

.user-popup-space-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
}

.user-popup-space-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-popup-space-info {
    flex: 1;
}

.user-popup-space-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.user-popup-space-visibility {
    color: #b0b0b0;
    font-size: 12px;
}

.user-popup-space-status {
    width: 8px;
    height: 8px;
    background: #00D96B;
    border-radius: 50%;
}

.user-popup-add-space {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    border-radius: 6px;
    padding: 12px;
    color: #b0b0b0;
    font-size: 14px;
    cursor: not-allowed;
    transition: background 0.3s ease;
}

.user-popup-add-space:hover {
    background: #3a3a3a;
}

.user-popup-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #3a3a3a;
    background: #2a2a2a;
    border-radius: 0 0 8px 8px;
}

.user-popup-footer-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #b0b0b0;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    padding: 4px 0;
    transition: color .15s;
}

.user-popup-footer-item:hover {
    color: #00D96B;
}

.user-popup-footer-item i {
    margin-right: 4px;
    color: #00D96B;
}

/* 消息弹窗样式 */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 3000;
    padding-top: 50px;
}

.notification-modal-content {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

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

.notification-tab {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 16px;
}

.notification-tab.active {
    color: #00D96B;
    border-bottom-color: #00D96B;
}

.notification-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.notification-modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

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

.notification-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: #1e1e1e;
    border-radius: 8px;
}

.notification-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2a2a2a;
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-icon i {
    font-size: 20px;
    color: #00D96B;
}

.notification-content {
    flex: 1;
}

.notification-content h5 {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 16px;
}

.notification-content p {
    margin: 0 0 8px 0;
    color: #b0b0b0;
    font-size: 14px;
}

.notification-time {
    color: #888;
    font-size: 12px;
}

    /* 图片预览弹窗：z-index 必须高于 base.html 移动端汉堡按钮（99999） */
    .image-preview-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: rgba(0, 0, 0, 0.94);
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        overflow: hidden;
        padding: calc(56px + env(safe-area-inset-top)) 12px calc(72px + env(safe-area-inset-bottom));
        overscroll-behavior: contain;
        z-index: 100000;
    }

    .image-preview-content {
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 128px);
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .image-preview-content img,
    .image-preview-content video {
        max-width: 100%;
        max-height: calc(100dvh - 128px);
        object-fit: contain;
    }

    .image-preview-close {
        position: fixed;
        top: calc(10px + env(safe-area-inset-top));
        right: 12px;
        z-index: 100001;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.28);
        background: rgba(0, 0, 0, 0.72);
        color: #ffffff;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }

    /* 预览打开时锁住页面滚动，并隐藏会遮挡关闭按钮的汉堡菜单 */
    body.img-lb-open { overflow: hidden; }
    body.img-lb-open .mobile-menu-btn { display: none !important; }

/* ========================================
   首页新样式 - Hero + Feature + Inspiration
   ======================================== */

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    background-color: #0a0a0a;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.55) 0%,
        rgba(10, 10, 10, 0.35) 40%,
        rgba(10, 10, 10, 0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 0 40px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    letter-spacing: 1px;
}

/* =============== 积分弹窗样式 =============== */

/* --- 积分明细弹窗 --- */
.credits-modal-mask,
.credits-buy-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

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

.credits-modal,
.credits-buy-modal {
    background: #1e1e1e;
    border-radius: 16px;
    width: 860px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.25s ease;
}

.credits-buy-modal {
    width: 860px;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.credits-modal-header,
.credits-buy-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.credits-modal-title,
.credits-buy-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.credits-modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.credits-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* --- 汇总区 --- */
.credits-summary {
    margin: 20px 24px 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.credits-summary-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.credits-summary-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.credits-summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #00D96B;
}

.credits-summary-item:first-child .credits-summary-value {
    font-size: 26px;
}

.credits-summary-eq,
.credits-summary-plus {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    padding-top: 18px;
}

.credits-buy-btn {
    margin-left: auto;
    background: linear-gradient(135deg, #00D96B 0%, #00b85c 100%);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.credits-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 217, 107, 0.4);
}

/* --- 即将过期提醒 --- */
.credits-expire-tip {
    margin: 12px 24px 0;
    padding: 10px 14px;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.25);
    border-radius: 8px;
    color: #ffaa00;
    font-size: 13px;
    line-height: 1.5;
}

.credits-expire-tip b {
    color: #ffcc44;
}

/* 消耗积分标红 */
.credits-expense-value {
    color: #ff4757 !important;
}

/* --- Tab --- */
.credits-tabs {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 20px 24px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 16px;
}

.credits-tab {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}

.credits-tab:hover {
    color: rgba(255, 255, 255, 0.9);
}

.credits-tab.active {
    color: #ffffff;
    font-weight: 600;
}

.credits-tab.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 2px;
    background: #00D96B;
    border-radius: 2px;
}

.credits-rules-link {
    margin-left: auto;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.2s;
}

.credits-rules-link:hover {
    color: #00D96B;
}

/* --- 流水列表 --- */
.credits-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    max-height: 320px;
}

.credits-record-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.credits-record-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.credits-record-left {
    display: flex;
    flex-direction: column;
}

.credits-record-name {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 4px;
}

.credits-record-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.credits-record-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.credits-record-amount {
    font-size: 15px;
    font-weight: 600;
}

.credits-record-amount.positive {
    color: #00D96B;
}

.credits-record-amount.negative {
    color: #ff4757;
}

.credits-record-expire {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}

/* --- 购买弹窗 --- */
.credits-buy-body {
    display: flex;
    gap: 24px;
    padding: 24px;
    flex: 1;
    min-height: 360px;
}

.credits-packages {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.credits-pkg {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.credits-pkg:hover {
    border-color: rgba(0, 217, 107, 0.4);
    background: rgba(0, 217, 107, 0.06);
}

.credits-pkg.active {
    border-color: #00D96B;
    background: rgba(0, 217, 107, 0.1);
    box-shadow: 0 0 0 2px rgba(0, 217, 107, 0.2);
}

.credits-pkg-amount {
    font-size: 22px;
    font-weight: 700;
    color: #00D96B;
    line-height: 1.2;
}

.credits-pkg-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    background: #00D96B;
    color: #000;
    font-size: 12px;
    font-weight: 800;
    border-radius: 4px;
    margin-right: 4px;
    vertical-align: middle;
}

.credits-pkg-detail {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.credits-pkg-price {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 4px;
}

.credits-pkg-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b81 0%, #ff4757 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
}

/* --- 二维码面板 --- */
.credits-qr-panel {
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 24px;
}

.credits-qr-wrap {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credits-qr-placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    text-align: center;
}

.credits-qr-hint {
    font-size: 12px;
}

.credits-pay-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.credits-pay-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.credits-pay-icons {
    display: flex;
    gap: 12px;
}

.credits-pay-alipay,
.credits-pay-wechat {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
}

.credits-pay-alipay:hover,
.credits-pay-wechat:hover {
    background: rgba(0, 217, 107, 0.2);
    color: #00D96B;
}

.credits-buy-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.credits-tips {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

/* Scrollbar */
.credits-list::-webkit-scrollbar {
    width: 6px;
}
.credits-list::-webkit-scrollbar-track {
    background: transparent;
}
.credits-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
.credits-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* =============== hero section fallback =============== */
.hero-cta-btn {
    background: linear-gradient(135deg, #00D96B 0%, #00b85c 100%);
    color: #ffffff;
    border: none;
    padding: 12px 48px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 217, 107, 0.35), 0 0 0 1px rgba(0, 217, 107, 0.2);
    letter-spacing: 1px;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 217, 107, 0.5), 0 0 0 1px rgba(0, 217, 107, 0.4);
}

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

/* Feature Cards Section */
.feature-section {
    margin-bottom: 32px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px 20px;
    background: linear-gradient(
        145deg,
        rgba(30, 30, 30, 0.95) 0%,
        rgba(20, 20, 20, 0.95) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(0, 217, 107, 0.3) 0%,
        transparent 50%,
        rgba(0, 102, 204, 0.2) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(
        145deg,
        rgba(40, 40, 40, 0.98) 0%,
        rgba(28, 28, 28, 0.98) 100%
    );
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 217, 107, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.feature-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(0, 217, 107, 0.15) 0%,
        rgba(0, 102, 204, 0.15) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 18px;
    background: linear-gradient(135deg, #00D96B 0%, #0066cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-info {
    flex: 1;
    min-width: 0;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.feature-desc {
    font-size: 12px;
    color: rgba(176, 176, 176, 0.85);
    line-height: 1.4;
    margin: 0;
}

.feature-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-arrow i {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-arrow {
    background: rgba(0, 217, 107, 0.15);
}

.feature-card:hover .feature-arrow i {
    color: #00D96B;
    transform: translateX(2px);
}

/* Inspiration Section */
.inspiration-section {
    margin-bottom: 24px;
}

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

.inspiration-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.inspiration-label {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.inspiration-tabs {
    display: flex;
    gap: 8px;
}

.inspiration-tab {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(176, 176, 176, 0.9);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.inspiration-tab:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(40, 40, 40, 0.9);
}

.inspiration-tab.active {
    background: linear-gradient(135deg, #00D96B 0%, #00b85c 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 217, 107, 0.3);
}

.inspiration-view-all {
    font-size: 13px;
    color: rgba(176, 176, 176, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.25s ease;
}

.inspiration-view-all:hover {
    color: #00D96B;
}

.inspiration-view-all i {
    font-size: 10px;
    transition: transform 0.25s ease;
}

.inspiration-view-all:hover i {
    transform: translateX(2px);
}

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.inspiration-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background-color: #1e1e1e;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inspiration-item:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.inspiration-thumb {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.inspiration-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.inspiration-item:hover .inspiration-thumb img {
    transform: scale(1.06);
}

.inspiration-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 100%
    );
    padding: 40px 14px 14px;
    color: #ffffff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.inspiration-item:hover .inspiration-overlay {
    opacity: 1;
    transform: translateY(0);
}

.inspiration-video-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    color: #ffffff;
}

.inspiration-video-creator {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.inspiration-video-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.inspiration-video-stats i {
    margin-right: 3px;
    font-size: 10px;
}

.inspiration-video-stats span {
    display: flex;
    align-items: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .inspiration-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 260px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .hero-cta-btn {
        padding: 10px 36px;
        font-size: 14px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .inspiration-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .inspiration-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .inspiration-left {
        gap: 16px;
    }
}

/* ========== 发送按钮积分消耗（参考可灵/即梦：🔥60 生成） ========== */
.input-footer .send-btn.send-credit-btn {
    position: static;
    width: auto;
    min-width: 76px;
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #00D96B 0%, #5BE88A 100%);
    color: #0c2316;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 217, 107, 0.25);
    transition: filter 0.2s ease, box-shadow 0.2s ease;
}
.input-footer .send-btn.send-credit-btn:hover {
    background: linear-gradient(90deg, #00c260 0%, #4ad67a 100%);
    box-shadow: 0 3px 12px rgba(0, 217, 107, 0.4);
}
.input-footer .send-btn.send-credit-btn .fa-fire {
    font-size: 13px;
    color: #0c2316;
}
.input-footer .send-btn.send-credit-btn #send-credits {
    font-weight: 800;
}
/* 积分不足：红色警示态 */
.input-footer .send-btn.send-credit-btn.not-enough {
    background: linear-gradient(90deg, #e74c3c 0%, #ff7a6b 100%);
    color: #ffffff;
    animation: cc-blink 1.4s ease-in-out infinite;
}
.input-footer .send-btn.send-credit-btn.not-enough .fa-fire {
    color: #ffffff;
}
@keyframes cc-blink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
    50% { box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.18); }
}
@media (max-width: 768px) {
    .input-footer .send-btn.send-credit-btn {
        min-width: 64px;
        padding: 0 10px;
        font-size: 12px;
    }
}

/* ===== 移动端导航（汉堡菜单 + 抽屉侧边栏） ===== */
.mobile-menu-btn {
    display: none;
}
.mobile-mask {
    display: none;
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    .content-area {
        height: auto;
        min-height: 100vh;
    }

    /* 右上角汉堡按钮 */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        position: fixed;
        top: 14px;
        right: 14px;
        z-index: 9999;
        width: 40px;
        height: 40px;
        padding: 0;
        background: rgba(20, 20, 20, 0.92);
        border: 1px solid #2a2a2a;
        border-radius: 10px;
        cursor: pointer;
    }
    .mobile-menu-btn span {
        display: block;
        width: 18px;
        height: 2px;
        background: #d8d8d8;
        border-radius: 1px;
        transition: transform .25s ease, opacity .2s ease;
    }
    .mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* 遮罩层 */
    .mobile-mask {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9997;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
    }
    .mobile-mask.show {
        opacity: 1;
        pointer-events: auto;
    }

    /* 侧边栏：默认隐藏，打开时从右侧滑出 */
    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        left: auto !important;
        width: 200px;
        height: 100vh;
        height: 100dvh;
        z-index: 9998;
        background: #0f0f0f;
        border-left: 1px solid #2a2a2a;
        border-right: none;
        transform: translateX(100%);
        transition: transform .28s ease;
        box-shadow: -12px 0 30px rgba(0, 0, 0, 0.45);
    }
    .sidebar.active {
        transform: translateX(0);
    }

    /* ===== 创作页（图片/视频生成）移动端适配 ===== */
    .creation-center {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        overflow: visible !important;
    }
    .left-panel, .center-panel {
        flex: none !important;
        height: auto !important;
        overflow: visible !important;
    }
    .right-panel {
        flex: none !important;
        height: auto !important;
        min-height: 50vh;
        min-height: 50dvh;
        overflow: visible !important;
    }
    /* 过滤筛选：只保留全部/图片/视频，隐藏音频 */
    .workspace-tab[data-action="audio"] { display: none !important; }
    /* 隐藏右侧小图列表（手机端主区域内可正常滑动浏览） */
    .params-section, .asset-rail, .wp-rail, [class*="asset-rail"], [class*="right-rail"] { display: none !important; }
    /* 主内容区：撤掉 flex 分栏，占满全宽，避免右侧残留占位 */
    .workspace-content { display: block !important; width: 100% !important; }
    .image-section { width: 100% !important; flex: none !important; padding: 0.5rem !important; }
    .image-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important; }
    .right-panel { width: 100% !important; }
    .workspace-header { flex-wrap: wrap; gap: 8px; padding: 0.75rem; }
    .workspace-tabs { flex-wrap: wrap; gap: 6px; }
    .workspace-tab { padding: 0.4rem 0.7rem; font-size: 13px; }
}

/* ===== 会员页（membership/plan/） ===== */
.ms-wrap {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.ms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background-color: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 2rem;
}
.ms-header-left { display: flex; align-items: center; gap: 1rem; }
.ms-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    overflow: hidden; border: 2px solid #2a2a2a; flex-shrink: 0;
}
.ms-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ms-user-meta { display: flex; flex-direction: column; gap: 6px; }
.ms-user-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ms-nickname { color: #ffffff; font-size: 16px; font-weight: 600; }
.ms-plan-badge {
    display: inline-block; padding: 2px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
    background: linear-gradient(90deg, #f6d365, #fda085); color: #5a3d00;
}
.ms-plan-badge.level-0 { background: #2a2a2a; color: #b0b0b0; }
.ms-plan-badge.level-2 { background: linear-gradient(90deg, #a18cd1, #fbc2eb); color: #3d1a5a; }
.ms-expire { font-size: 12px; color: #888; }
.ms-credits-pill {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    background: rgba(0,217,107,0.12); border: 1px solid rgba(0,217,107,0.35);
    color: #00D96b; border-radius: 20px; padding: 4px 14px; font-size: 13px;
    transition: background .2s;
}
.ms-credits-pill:hover { background: rgba(0,217,107,0.22); }
.ms-credits-arrow { font-size: 10px; margin-left: 2px; opacity: .8; }
.ms-buy-btn {
    background-color: #00D96b; color: #04120c;
    border: none; border-radius: 22px; padding: 10px 26px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: opacity .2s;
}
.ms-buy-btn:hover { opacity: .9; }

/* 档位卡片：三列居中整齐分布 */
.ms-plan-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 24px;
}
.ms-plan-card {
    position: relative;
    width: 300px;
    background-color: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 26px 24px;
    display: flex; flex-direction: column;
    transition: transform .2s, border-color .2s;
}
.ms-plan-card:hover { transform: translateY(-3px); border-color: #3a3a3a; }
.ms-plan-card.current { border-color: #00D96b; }
.ms-plan-name { font-size: 18px; font-weight: 700; color: #ffffff; margin-bottom: 4px; }
.ms-plan-daily { font-size: 12px; color: #00D96b; margin-bottom: 14px; }
.ms-plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 18px; }
.ms-plan-price .amount { font-size: 32px; font-weight: 700; color: #ffffff; }
.ms-plan-price .amount::before { content: '￥'; font-size: 16px; }
.ms-plan-price .cycle { font-size: 13px; color: #888; }
.ms-benefits { list-style: none; padding: 0; margin: 0 0 22px 0; flex: 1; }
.ms-benefits li {
    font-size: 13px; color: #b0b0b0; padding: 5px 0;
    display: flex; gap: 8px; align-items: center;
}
.ms-benefits li i { color: #00D96b; font-size: 11px; }
.ms-plan-btn {
    width: 100%; border: none; border-radius: 22px; padding: 11px 0;
    font-size: 14px; font-weight: 600; cursor: pointer;
    background-color: #00D96b; color: #04120c;
    transition: opacity .2s;
}
.ms-plan-btn:hover { opacity: .9; }
.ms-plan-btn.achieved { background-color: #2a2a2a; color: #777; cursor: not-allowed; }
.ms-plan-btn.achieved:hover { opacity: 1; }
.ms-current-tag {
    position: absolute; top: 14px; right: 14px;
    font-size: 11px; color: #00D96b; border: 1px solid #00D96b;
    border-radius: 12px; padding: 1px 10px;
}

/* 支付弹窗 */
.ms-pay-mask {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.7); align-items: center; justify-content: center;
}
.ms-pay-modal {
    background-color: #1e1e1e; border: 1px solid #2a2a2a;
    border-radius: 12px; width: 360px; padding: 24px; text-align: center;
}
.ms-pay-title { font-size: 16px; font-weight: 600; color: #ffffff; margin-bottom: 4px; }
.ms-pay-amount { font-size: 26px; font-weight: 700; color: #00D96b; margin: 8px 0 16px; }
.ms-pay-qr {
    width: 200px; height: 200px; margin: 0 auto; background: #fff;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.ms-pay-qr img { width: 190px; height: 190px; }
.ms-pay-hint { font-size: 12px; color: #888; margin-top: 12px; }
.ms-pay-methods { font-size: 12px; color: #b0b0b0; margin-top: 8px; }
.ms-pay-close {
    margin-top: 18px; background-color: #2a2a2a; color: #b0b0b0;
    border: none; border-radius: 18px; padding: 8px 30px; cursor: pointer; font-size: 13px;
}
@media (max-width: 768px) {
    .ms-wrap { padding: 1rem; }
    .ms-header { padding: 1rem; }
    .ms-plan-card { width: 100%; }
}


/* ========== 侧栏/移动菜单 用户昵称·积分·切换账号 ========== */
.user-nickname-link {
    width: 100%;
    text-align: center;
    color: #e8e8e8;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
    box-sizing: border-box;
}
.user-nickname-link:hover { color: #00D96B; }
.user-credits-pill {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.user-switch-link {
    width: 100%;
    text-align: center;
    color: #9a9a9a;
    font-size: 11.5px;
    text-decoration: none;
    padding: 2px 0;
    border-radius: 4px;
}
.user-switch-link:hover { color: #ff8a8a; background: rgba(255,255,255,.06); }

/* 移动端抽屉顶部用户区 */
.m-user-head { padding: 4px 22px 14px; border-bottom: 1px solid #242424; margin-bottom: 8px; }
.m-user-head a { text-decoration: none; }
.m-user-row { display: flex; align-items: center; gap: 12px; }
.m-user-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: 0 0 46px; background: #222; }
.m-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.m-user-meta { min-width: 0; }
.m-user-name { display: block; color: #f0f0f0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.m-user-credits {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 5px;
    background: rgba(0,217,107,.12); color: #00D96B; font-size: 12px;
    border-radius: 999px; padding: 2px 10px;
}
.m-user-login-btn {
    display: block; width: 100%; box-sizing: border-box; margin-top: 12px;
    background: #00D96B; color: #08210f; border: none; border-radius: 999px;
    padding: 9px 0; font-size: 14px; font-weight: 700; text-align: center;
}
.m-user-guest-tip { display: block; color: #8a8a8a; font-size: 12.5px; }
.m-user-switch {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    margin-top: 10px; color: #9a9a9a; font-size: 12.5px;
}
.m-user-switch:active { color: #ff8a8a; }
