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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #FFFFFF;
    color: #000000;
    line-height: 1.6;
}

.container {
    display: flex;
    height: 100vh;
    width: 100%;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    background: #000000;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    z-index: 100;
}

.agreement-section a{
    color: #888888;
    text-decoration: none;
}

.agreement-section a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.sidebar a {
    color: #888888;
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: none;
}

.dropdown-item a {
    color: #000000;
    text-decoration: none;
}

.logo {
    display: flex;
    text-align: center;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px 20px 0 20px;
}

.menu {
    display: none;
    cursor: pointer;
    color: #888888;
    font-size: 20px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-left: 20px;
    filter: brightness(0) invert(1);
}


.logo-text {
    font-size: 14px;
    font-weight: 700;
    margin-left: 6px;
    color: #FFFFFF;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 4px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #888888;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-item:hover {
    background: #1A1A1A;
    color: #FFFFFF;
    transform: translateX(4px);
}

.nav-item.active {
    background: #1A1A1A;
    color: #FFFFFF;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-item.active:hover {
    background: #2A2A2A;
    transform: translateX(4px);
}


.nav-item i {
    margin-right: 12px;
    width: 16px;
}

/* 历史记录容器：自动填满剩余空间 */
#sidebarHistory {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 80px;
    max-height: calc(100vh - 120px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}


#sidebarHistory::-webkit-scrollbar {
    display: none;
}

/* 任务项样式 */
.task-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #1A1A1A;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 13px;
    line-height: 1.4;
    color: #888888;
}
.task-item:hover {
    background-color: #2A2A2A;
    transform: translateX(3px);
    border-left-color: #FFFFFF;
}
.task-item:active {
    background-color: #3A3A3A;
}

/* 用户区域：固定在底部，保持漂浮状态 */
.user-section {
    padding: 12px;
    border-top: 1px solid #2A2A2A;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #000000;
    z-index: 10;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #1A1A1A;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #2A2A2A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    margin-right: 8px;
    overflow: hidden;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
}
.login-btn {
    width: 100%;
    padding: 12px;
    background: #FFFFFF;
    border: none;
    border-radius: 8px;
    color: #000000;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.login-btn:hover {
    background: #E0E0E0;
}

/* 下拉菜单（向上弹出） */
.user-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    margin-bottom: 8px;
    overflow: hidden;
    z-index: 10;
    display: none;
}
.user-more {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #FFFFFF;
}

.dropdown-item {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dropdown-item:hover {
    background: #F5F5F5;
    color: #000000;
}
.dropdown-item i {
    margin-right: 8px;
    color: #000000;
}

/* 主内容区 */
.main-content {
    margin-left: 240px;
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    max-width: calc(100% - 240px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 返回按钮样式 */
.back-button {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background-color: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 20px;
    cursor: pointer;
    z-index: 200;
}

/* 移动端返回按钮样式 */
.mobile-back-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: #000000;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.mobile-back-btn i {
    margin-right: 5px;
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background-color: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 20px;
    cursor: pointer;
    z-index: 200;
}


 .show-menu-btn {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 999;
        background: #000000;
        border: none;
        padding: 10px 15px;
        font-size: 16px;
        display: none;
        align-items: center;
        gap: 8px;
        border-radius: 8px;
        color: #FFFFFF;
}

/* 响应式设计 - 平板和手机设备 */
@media (max-width: 768px) {
    .container {
        width: 100%;
        position: relative;
    }

    .user-section {
        padding: 12px;
        border-top: 1px solid #2A2A2A;
        position: absolute;
        bottom: 0;
        width: 100%;
        background: #000000;
        z-index: 10;
    }

    #output-info {
        height: auto !important;
        min-height: 0;
        max-height: 180px;
    }

    .sidebar {
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        transform: translateX(0);
        transition: transform 0.3s ease-in-out;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding: 16px;
        z-index: 1;
    }

     .show-menu-btn {
            display: flex;
     }

    .sidebar.active {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .menu {
        display: block;
    }

    

    .back-button {
        display: flex;
    }

    .card {
        padding: 20px;
        border-radius: 12px;
    }

    .page-title {
        font-size: 26px;
    }

    .btn-primary {
        padding: 14px;
        font-size: 15px;
    }
}
.page-header { margin-bottom: 48px; }
.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000000;
}
.page-subtitle {
    color: #666666;
    font-size: 16px;
}
.card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    border: 1px solid #E5E5E5;
}
.form-group { margin-bottom: 24px; }
.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    display: block;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    background: #FFFFFF;
}
.form-control:focus {
    outline: none;
    border-color: #000000;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.btn-primary {
    width: 100%;
    padding: 16px;
    background: #000000;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}




.btn-primary:hover {
    background: #2A2A2A;
}
.btn-primary:active { background: #1A1A1A; }
.topics-section { margin-top: 32px; }
.topics-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 16px;
}
.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.topic-tag {
    padding: 8px 16px;
    background: #F5F5F5;
    border-radius: 20px;
    font-size: 13px;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s;
}
.topic-tag:hover {
    background: #000000;
    color: white;
    transform: translateY(-1px);
}

/* 微信登录模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show { display: flex; }

.modal-content {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    max-width: 320px;
    position: relative;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.close-btn
{
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 24px;
            cursor: pointer;
            color: #666666;
}


.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #CCCCCC;
}
.login-status { margin-top: 12px; font-size: 14px; color: #666666; }
.follow-prompt img { width: 120px; height: 120px; border-radius: 8px; }

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}
.toast.show { opacity: 1; }

/* 标题标签样式 */
label[for="show_text"] {
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666666;
}

label[for="show_text"]:hover {
    color: #000000;
    transform: translateY(-1px);
}

/* 字幕标签样式 */
#subtitleLabel {
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666666;
}

#subtitleLabel:hover {
    color: #000000;
    transform: translateY(-1px);
}

/* 标题设置浮窗 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 400px;
}

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

.popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.close-popup {
    font-size: 24px;
    cursor: pointer;
    color: #666666;
}

.popup-body {
    margin-bottom: 20px;
}

.color-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-option.selected {
    border-color: #000000;
}

.slider {
    width: 100%;
    margin-top: 10px;
}

.popup-footer {
    text-align: center;
}


/* 工具类 */
.hidden { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { flex-direction: column; }
.text-center { text-align: center; }
.text-white { color: white; }
.bg-primary { background: #000000; }
.bg-gray { background: #F5F5F5; }
.rounded { border-radius: 8px; }
.shadow { box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.padding { padding: 32px; }
.margin { margin: 24px; }
.margin-top { margin-top: 24px; }

/* output-info 自定义样式 */
#output-info {
    border: none !important;
    color: #666666 !important;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-y: auto;
    margin-top: 15px;
    height: 120px;
    max-height: 160px;
    width: 100%;
    display: block;
    padding: 10px;
    background-color: #FFFFFF;
    border-radius: 4px;
    resize: none;
    font-size: 12px;
    line-height: 1.6;
}

#output-info:focus {
    outline: none;
}

/* 内容区域样式 */
.content {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    background: #FFFFFF;
    resize: vertical;
    font-family: inherit;
}

.content:focus {
    outline: none;
    border-color: #000000;
}

/* 设置区域样式 */
.settings-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.settings {
    display: flex;
    gap: 10px;
}