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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background:#fff ;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    background-color: #f8fafc;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    z-index: 100;
}

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

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

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

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

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

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

.logo-icon {
    width: 40px;
    height: 40px;
    margin-left: 15px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    margin-left: 12px;
    color: #1a1a1a;
}

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

.nav-item:hover {
    background: #f1f5f9;
    color: #667eea;
}

.nav-item.active {
    background: #fff; /* 使用淡色背景 */
    color: #23252c;
    border-radius: 15px; /* 添加圆角 */
    transition: all 0.2s; /* 添加过渡效果 */
}

.nav-item.active:hover {
    background: #d9e2f0; /* 鼠标悬停时颜色加深 */
    transform: translateY(1px); /* 模拟按下效果 */
}


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

/* 历史记录容器：自动填满剩余空间 */
#sidebarHistory {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 12px;
    /* 隐藏滚动条 */
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/Edge */
}
#sidebarHistory::-webkit-scrollbar {
    display: none;                /* Chrome/Safari/Edge */
}

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

/* 用户区域：固定在底部 */
.user-section {
    padding: 12px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto; /* 推到最下方 */
}

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

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1c2030, #1e112c);
    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;
}
.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1c2030, #1e112c);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 下拉菜单（向上弹出） */
.user-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 -2px 12px 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;
}

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

/* 主内容区 */
.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;
}
.page-header { margin-bottom: 48px; }
.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1c2030, #1e112c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-subtitle {
    color: #64748b;
    font-size: 16px;
}
.card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}
.form-group { margin-bottom: 24px; }
.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1c2030, #1e112c);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}




.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102,126,234,0.3);
}
.btn-primary:active { transform: translateY(0); }
.topics-section { margin-top: 32px; }
.topics-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}
.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.topic-tag {
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}
.topic-tag:hover {
    background: #667eea;
    color: white;
}

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

.modal.show { display: flex; }

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    max-width: 320px;
    position: relative;
    width: 90%;
}

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


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

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

/* 响应式 */
@media (max-width: 768px) {
    .sidebar { width: 100%; height: auto; position: relative; }
    .main-content { margin-left: 0; padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
}

/* 工具类 */
.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: linear-gradient(135deg, #1c2030, #1e112c); }
.bg-gray { background: #f1f5f9; }
.rounded { border-radius: 8px; }
.shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.padding { padding: 32px; }
.margin { margin: 24px; }
.margin-top { margin-top: 24px; }
