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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #e2e8f0;
}

/* 新布局容器 */
.container-new {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏切换按钮 */
.sidebar-toggle {
    display: none;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 36px;
    height: 60px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 16px;
}

.sidebar-toggle:hover {
    background: rgba(102, 126, 234, 0.3);
}

.sidebar-toggle span {
    transition: transform 0.3s ease;
}

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

/* 左侧边栏 */
.sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 99;
}

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

/* 品牌区域 */
.brand-section {
    margin-bottom: 32px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 32px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-slogan {
    font-size: 12px;
    color: #64748b;
    padding-left: 44px;
}

/* 用户信息区域 */
.user-section {
    margin-bottom: 32px;
}

.user-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.user-avatar-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.5);
}

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

.user-nickname-lg {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-score {
    font-size: 12px;
    color: #fbbf24;
}

.login-btn-lg {
    width: 100%;
    padding: 12px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* 功能导航 */
.function-nav {
    flex: 1;
    margin-bottom: 24px;
}

.function-nav h3 {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.function-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.function-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.function-tab.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-left: 3px solid #2cb1fa;
}



.function-tab.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.function-tab .nav-icon {
    width: 24px;
    height: 24px;
    background: var(--svg) center/contain no-repeat;
    color: #ffffff;
}

.function-tab .nav-icon.select {
    background-color: #2cb1fa;
    background-image: none;
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}

.ic_txt2vid {
    --svg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23ffffff' d='M24 6H8a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3zm1 17a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v14zM10 11h8v2h-8v-2zm0 4h8v2h-8v-2zm0 4h5v2h-5v-2zm11.5-2.5l3 2a.5.5 0 0 1 0 .83l-3 2a.5.5 0 0 1-.78-.42v-4a.5.5 0 0 1 .78-.41z'/%3E%3C/svg%3E")
}

.ic_img2vid {
    --svg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23ffffff' d='M24 6H8a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3zm1 17a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v14zM11 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-2 2a2 2 0 0 1 2-2 2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2zm12.5 3.5l3 2a.5.5 0 0 1 0 .83l-3 2a.5.5 0 0 1-.78-.42v-4a.5.5 0 0 1 .78-.41zM10 17l3 4 3-3 4 5H10l-3-4 3-2z'/%3E%3C/svg%3E")
}

.ic_vid2vid {
    --svg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23ffffff' d='M21.427 6c1.104 0 1.992-.001 2.71.057.728.06 1.368.186 1.96.488a5 5 0 0 1 2.186 2.185c.301.592.426 1.233.486 1.961.059.717.059 2.605.059 3.71v6.286c0 1.104 0 1.992-.059 2.71-.06.728-.185 1.368-.486 1.96a5 5 0 0 1-2.186 2.186c-.592.301-1.232.428-1.96.487-.718.059-1.606.058-2.71.058h-9.03c-1.104 0-2.992 0-3.709-.058-.729-.06-1.369-.186-1.961-.487a5 5 0 0 1-2.185-2.186c-.302-.592-.428-1.232-.488-1.96-.058-.718-.057-1.606-.057-2.71v-5.643a1 1 0 0 1 2 0v5.643c0 1.137 0 1.93.05 2.546.05.605.143.954.277 1.217a3 3 0 0 0 1.31 1.31c.264.135.612.226 1.217.276.617.05 2.41.052 3.546.052h9.03c1.137 0 1.93-.002 2.546-.052.605-.05.953-.141 1.216-.276a3 3 0 0 0 1.311-1.31c.135-.263.226-.612.276-1.217.05-.617.052-1.41.052-2.546V14.4c0-1.136-.002-2.929-.052-3.546-.05-.605-.141-.953-.276-1.217a3 3 0 0 0-1.311-1.31c-.263-.134-.61-.227-1.216-.276C23.356 8 22.563 8 21.427 8h-8.015a1 1 0 0 1 0-2zm-8.079 7.59a.87.87 0 0 1 1.336-.737l6 3.79a.87.87 0 0 1 0 1.473l-6 3.79a.87.87 0 0 1-1.336-.736zM6.987 5.942l3.51 1.299-3.51 1.299-1.299 3.51-1.299-3.51L.88 7.24l3.51-1.299 1.299-3.51z'/%3E%3C/svg%3E")
}

.ic_img2img {
    --svg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23ffffff' d='M25.15 6.005a4.054 4.054 0 0 1 3.846 4.049v13.892l-.005.208a4.055 4.055 0 0 1-3.84 3.841l-.209.005H8.05A4.054 4.054 0 0 1 4 24.154l-.005-.208V10.054A4.054 4.054 0 0 1 8.05 6h16.892zM8.05 8a2.054 2.054 0 0 0-2.043 1.844l-.01.21v13.892C5.996 25.08 6.915 26 8.05 26h8.147a3.04 3.04 0 0 0 .8-2.054V10.054a3.04 3.04 0 0 0-.8-2.054zm9.388 0c.354.602.558 1.304.558 2.054v13.892l-.005.208A4 4 0 0 1 17.438 26h7.504c1.135 0 2.054-.92 2.054-2.054V10.054c0-1.134-.92-2.054-2.054-2.054zm-6.78 8.44a.973.973 0 0 1 1.68 0l1.807 3.096a.973.973 0 0 1-.84 1.464H9.692a.974.974 0 0 1-.84-1.464zm9.695 1.424a.81.81 0 0 1 1.296 0l1.38 1.838a.811.811 0 0 1-.65 1.298h-2.756a.812.812 0 0 1-.65-1.298zm3.187-4.404L25 14l-1.46.54L23 16l-.54-1.46L21 14l1.46-.54L23 12zM13.5 12a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M4.604 4.071l2.072.767-2.072.766-.766 2.072-.767-2.072L1 4.838l2.071-.767L3.838 2z'/%3E%3C/svg%3E")
}

.ic_txt2img {
    --svg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23ffffff' d='M23.197 7.2a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4h-13.6a4 4 0 0 1-3.994-3.794l-.005-.206v-12a4 4 0 0 1 3.794-3.995l.206-.005zm-13.6 2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h13.6a2 2 0 0 0 2-2v-12a2 2 0 0 0-2-2zM21 20a1 1 0 1 1 0 2H11a1 1 0 1 1 0-2zm-6-4a1 1 0 1 1 0 2h-4a1 1 0 1 1 0-2zm6.81-1.81L24 15l-2.19.81L21 18l-.81-2.19L18 15l2.19-.81L21 12zM15 12a1 1 0 1 1 0 2h-4a1 1 0 1 1 0-2zm14.738-4.14 1.46.54-1.46.54-.54 1.46-.54-1.46-1.46-.54 1.46-.54.54-1.46zM5.154 5.243 7.198 6l-2.044.756L4.398 8.8l-.756-2.044L1.598 6l2.044-.756.756-2.044z'/%3E%3C/svg%3E")
}

.ic_img2txt {
    --svg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23ffffff' d='M24 6H8a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3zm1 17a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v14zM10 11h8v2h-8v-2zm0 4h8v2h-8v-2zm0 4h5v2h-5v-2zm12.5-2l2 1.5-2 1.5v-3z'/%3E%3C/svg%3E")
}



.nav-text {
    font-size: 14px;
    color: #94a3b8;
}

.function-tab.active .nav-text {
    color: #e2e8f0;
    font-weight: 500;
}

/* 语言切换 */
.language-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.language-section label {
    font-size: 12px;
    color: #64748b;
}

.language-select-sm {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 12px;
    cursor: pointer;
}

.language-select-sm:focus {
    outline: none;
    border-color: #667eea;
}

.language-select-sm option {
    background: #1a1a2e;
    color: #e2e8f0;
}

/* 右侧主内容区 */
.main-area {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-area.full-width {
    margin-left: 0;
}

/* 顶部搜索栏 */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #94a3b8;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 20px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #a5b4fc;
    font-size: 14px;
    font-weight: 500;
}

.platform-icon {
    font-size: 18px;
}

/* 顶部操作区域 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 充值按钮 */
.recharge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
    line-height: 1;
}

.recharge-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.recharge-btn:hover::before {
    left: 100%;
}

.recharge-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

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

.recharge-btn .ic_icon {

    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M8 1l1.54 3.13L13 4.63l-2.5 2.43.6 3.44L8 9.38l-3.09 1.13.6-3.44-2.5-2.43L6.46 4.13 8 1zm0 1.92l-1.04 2.12-2.34.34 1.69 1.65-.4 2.33L8 8.38l2.09.98-.4-2.33 1.69-1.65-2.34-.34L8 2.92z'/%3E%3C/svg%3E");
}

.recharge-btn > span:not(.ic_icon) {
    line-height: 1;
    white-space: nowrap;
}

/* 视频案例展示 */
.video-cases {
    margin-bottom: 24px;
}

.video-cases h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #f1f5f9;
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
}

.case-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.case-card.featured {
    grid-column: span 2;
}

.case-video {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 350px;
}

.case-video video,
.case-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-video.small {
    height: 120px;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #667eea;
    transition: all 0.3s ease;
}

.case-card:hover .play-btn {
    transform: scale(1.1);
}

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

.case-info {
    padding: 12px;
}

.case-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.case-info p {
    font-size: 12px;
    color: #64748b;
}

.case-card:not(.featured) {
    position: relative;
    overflow: hidden;
}

.case-card:not(.featured) .case-image {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.case-card:not(.featured) .case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-card:not(.featured):hover .case-image img {
    transform: scale(1.08);
}

.case-card:not(.featured) .case-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    text-align: center;
}

.case-card:not(.featured) .case-info h3 {
    color: #fff;
    font-size: 15px;
}

.case-card:not(.featured) .case-info p {
    color: rgba(255, 255, 255, 0.8);
}

/* 平台选择器 */
.platform-selector-new {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-selector-new label {
    font-weight: 600;
    color: #cbd5e1;
}

.platform-select {
    padding: 12px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    min-width: 200px;
    cursor: pointer;
}

.platform-select:focus {
    outline: none;
    border-color: #667eea;
}

.platform-select option {
    background: #1a1a2e;
    color: #e2e8f0;
    padding: 8px 12px;
}

/* 主内容区域 */
.main-content-new {
    display: flex;
    gap: 24px;
}

.panel {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
}

.panel-left {
    width: 420px;
    flex-shrink: 0;
}

.panel-right {
    flex: 1;
    min-height: 500px;
}

.panel h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f1f5f9;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 500;
}

.input,
.select,
.textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    font-family: inherit;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: #667eea;
}

.textarea {
    min-height: 100px;
    resize: vertical;
}

.select {
    cursor: pointer;
}

.select option {
    background: #1a1a2e;
    color: #e2e8f0;
    padding: 8px 12px;
}

.inline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.button-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.button {
    flex: 1;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* 状态和日志 */
.status-box {
    display: flex;
    flex-direction: column;
}

.badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.22);
    width: fit-content;
    margin-bottom: 16px;
}

.badge-success {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.24);
}

.badge-error {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.22);
}

.badge-running {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.22);
}

.log {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 16px;
    font-size: 13px;
    color: #94a3b8;
    font-family: 'Consolas', 'Monaco', monospace;
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.2);
    color: #64748b;
    min-height: 300px;
    text-align: center;
    padding: 24px;
}

.result-text {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 300px;
}

.result-image {
    max-width: 100%;
    border-radius: 12px;
    display: none;
}

.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.result-actions .button {
    flex: none;
}

.tips {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 0, 0.1);
    color: #fbbf24;
    font-size: 12px;
    line-height: 1.6;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    margin-top: 5px;
}

.upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.upload-icon.add-icon {
    --svg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' viewBox='0 0 48 48'%3E%3Crect width='45' height='45' x='1.5' y='1.5' stroke='%2364748b' stroke-width='3' rx='10.5'/%3E%3Cpath fill='%23ffffff' d='M14.872 24.397c1.88-3.398 6.635-3.734 8.975-.635l2.644 3.503c2.332-1.914 5.938-1.538 7.77 1.08l1.653 2.363C37.77 33.358 35.872 37 32.637 37H14.685c-3.046 0-4.974-3.27-3.5-5.936zm7.379.57c-1.467-1.944-4.45-1.732-5.628.399l-3.688 6.667c-.737 1.332.228 2.967 1.75 2.968h17.952c1.618 0 2.566-1.821 1.638-3.147l-1.653-2.363c-1.307-1.868-4.057-1.913-5.425-.09l-.797 1.062-.8-1.06zM33.094 12a1 1 0 0 1 1 1v2h1.902a1 1 0 0 1 0 2h-1.902v2a1 1 0 0 1-2 0v-2h-2.098a1 1 0 0 1 0-2h2.098v-2a1 1 0 0 1 1-1'/%3E%3C/svg%3E");
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto 12px;
    background: var(--svg) center / contain no-repeat;
}

.upload-icon.add-icon-small {
    --svg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' viewBox='0 0 48 48'%3E%3Crect width='45' height='45' x='1.5' y='1.5' stroke='%2364748b' stroke-width='3' rx='10.5'/%3E%3Cpath fill='%23ffffff' d='M14.872 24.397c1.88-3.398 6.635-3.734 8.975-.635l2.644 3.503c2.332-1.914 5.938-1.538 7.77 1.08l1.653 2.363C37.77 33.358 35.872 37 32.637 37H14.685c-3.046 0-4.974-3.27-3.5-5.936zm7.379.57c-1.467-1.944-4.45-1.732-5.628.399l-3.688 6.667c-.737 1.332.228 2.967 1.75 2.968h17.952c1.618 0 2.566-1.821 1.638-3.147l-1.653-2.363c-1.307-1.868-4.057-1.913-5.425-.09l-.797 1.062-.8-1.06zM33.094 12a1 1 0 0 1 1 1v2h1.902a1 1 0 0 1 0 2h-1.902v2a1 1 0 0 1-2 0v-2h-2.098a1 1 0 0 1 0-2h2.098v-2a1 1 0 0 1 1-1'/%3E%3C/svg%3E");
    width: 28px;
    height: 28px;
    display: block;
    margin: 0 auto 12px;
    background: var(--svg) center / contain no-repeat;
}

.upload-icon.add-icon-small {
    --svg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' viewBox='0 0 48 48'%3E%3Crect width='45' height='45' x='1.5' y='1.5' stroke='%2364748b' stroke-width='3' rx='10.5'/%3E%3Cpath fill='%23ffffff' d='M14.872 24.397c1.88-3.398 6.635-3.734 8.975-.635l2.644 3.503c2.332-1.914 5.938-1.538 7.77 1.08l1.653 2.363C37.77 33.358 35.872 37 32.637 37H14.685c-3.046 0-4.974-3.27-3.5-5.936zm7.379.57c-1.467-1.944-4.45-1.732-5.628.399l-3.688 6.667c-.737 1.332.228 2.967 1.75 2.968h17.952c1.618 0 2.566-1.821 1.638-3.147l-1.653-2.363c-1.307-1.868-4.057-1.913-5.425-.09l-.797 1.062-.8-1.06zM33.094 12a1 1 0 0 1 1 1v2h1.902a1 1 0 0 1 0 2h-1.902v2a1 1 0 0 1-2 0v-2h-2.098a1 1 0 0 1 0-2h2.098v-2a1 1 0 0 1 1-1'/%3E%3C/svg%3E");
    width: 28px;
    height: 28px;
    display: block;
    margin: 0 auto 12px;
    background: var(--svg) center / contain no-repeat;
}

.upload-area .add-icon-video {
    --svg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23ffffff' d='M21.427 6c1.104 0 1.992-.001 2.71.057.728.06 1.368.186 1.96.488a5 5 0 0 1 2.186 2.185c.301.592.426 1.233.486 1.961.059.717.059 2.605.059 3.71v6.286c0 1.104 0 1.992-.059 2.71-.06.728-.185 1.368-.486 1.96a5 5 0 0 1-2.186 2.186c-.592.301-1.232.428-1.96.487-.718.059-1.606.058-2.71.058h-9.03c-1.104 0-2.992 0-3.709-.058-.729-.06-1.369-.186-1.961-.487a5 5 0 0 1-2.185-2.186c-.302-.592-.428-1.232-.488-1.96-.058-.718-.057-1.606-.057-2.71v-5.643a1 1 0 0 1 2 0v5.643c0 1.137 0 1.93.05 2.546.05.605.143.954.277 1.217a3 3 0 0 0 1.31 1.31c.264.135.612.226 1.217.276.617.05 2.41.052 3.546.052h9.03c1.137 0 1.93-.002 2.546-.052.605-.05.953-.141 1.216-.276a3 3 0 0 0 1.311-1.31c.135-.263.226-.612.276-1.217.05-.617.052-1.41.052-2.546V14.4c0-1.136-.002-2.929-.052-3.546-.05-.605-.141-.953-.276-1.217a3 3 0 0 0-1.311-1.31c-.263-.134-.61-.227-1.216-.276C23.356 8 22.563 8 21.427 8h-8.015a1 1 0 0 1 0-2zm-8.079 7.59a.87.87 0 0 1 1.336-.737l6 3.79a.87.87 0 0 1 0 1.473l-6 3.79a.87.87 0 0 1-1.336-.736zM6.987 5.942l3.51 1.299-3.51 1.299-1.299 3.51-1.299-3.51L.88 7.24l3.51-1.299 1.299-3.51z'/%3E%3C/svg%3E");
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto 12px;
    background: var(--svg) center / contain no-repeat;
}

.upload-text {
    color: #94a3b8;
    font-size: 14px;
}

.upload-hint {
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
}

.preview-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 12px;
    display: none;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.upload-item {
    aspect-ratio: 1;
    border: 2px dashed rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.upload-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-item.has-image {
    border-style: solid;
    border-color: #667eea;
}

.upload-item .upload-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.upload-item .upload-text {
    font-size: 11px;
    color: #64748b;
}

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

.upload-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-item:hover .remove-btn {
    opacity: 1;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-container img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

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

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

/* 弹窗遮罩 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

/* 登录弹窗 */
.login-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    width: 90%;
    max-width: 420px;
}

.modal-content {
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: white;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #94a3b8;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input::placeholder {
    color: #64748b;
}

.modal-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.modal-btn.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-btn.register-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

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

.switch-form {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #94a3b8;
}

.switch-form a {
    color: #667eea;
    text-decoration: none;
    margin-left: 4px;
}

.switch-form a:hover {
    text-decoration: underline;
}

/* 退出确认弹窗 */
.logout-confirm {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 100;
    min-width: 120px;
}

.logout-confirm.show {
    display: block;
}

.logout-confirm p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #e2e8f0;
}

.logout-confirm .confirm-btn {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.logout-confirm button {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-confirm .btn-confirm {
    background: #ef4444;
    color: white;
}

.logout-confirm .btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .cases-grid {
        grid-template-columns: 1fr 1fr;
    }

    .case-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 960px) {
    .case-card.featured .case-info {
        position: static;
        background: none;
        padding: 12px;
        text-align: center;
    }

    .case-card:not(.featured) .case-info {
        position: static;
        background: none;
        padding: 12px;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 260px;
        z-index: 100;
        transform: translateX(0);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: none;
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
        background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    }

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

    .sidebar-toggle {
        display: flex;
        left: 260px;
    }

    .sidebar-toggle.collapsed {
        left: 0;
    }

    .main-area {
        margin-left: 0;
        padding: 16px;
    }

    .main-area.full-width {
        margin-left: 0;
    }

    .main-content-new {
        flex-direction: column;
    }

    .panel-left {
        width: 100%;
    }

    .panel-right {
        min-width: 100%;
    }

    .top-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

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

    .recharge-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .platform-badge {
        justify-content: center;
    }

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

    .function-tab {
        padding: 10px 12px;
    }

    .nav-text {
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .sidebar {
        padding: 16px;
        width: 240px;
        background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    }

    .sidebar-toggle {
        left: 240px;
    }

    .sidebar-toggle.collapsed {
        left: 0;
    }

    .brand-section {
        margin-bottom: 20px;
    }

    .user-section {
        margin-bottom: 20px;
    }

    .function-nav {
        margin-bottom: 16px;
    }

    .cases-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .case-card.featured {
        grid-column: span 1;
    }

    .case-video {
        height: 180px;
    }

    .case-video.small {
        height: 150px;
    }

    .platform-selector-new {
        flex-direction: column;
        align-items: stretch;
    }

    .platform-select {
        min-width: 100%;
    }

    .button-row {
        flex-direction: column;
    }

    .panel {
        padding: 16px;
    }
}