* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
}

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

/* 左侧边栏 */
.sidebar {
    width: 320px;
    background-color: #1e1e1e;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.logo h2 {
    font-size: 18px;
    font-weight: 600;
}

.logo p {
    font-size: 12px;
    color: #aaa;
}

.nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-item {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
    cursor: pointer;
}

.tab-item.active {
    background-color: #2a2a2a;
    color: #ffc107;
}

.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.cat-tab {
    padding: 4px 12px;
    border-radius: 16px;
    background-color: #2a2a2a;
    font-size: 13px;
    color: #aaa;
    white-space: nowrap;
    cursor: pointer;
}

.cat-tab.active {
    background-color: #00bcd4;
    color: #fff;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 16px;
}

.search-box i {
    color: #666;
    margin-right: 8px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
}

.model-list {
    flex: 1;
    overflow-y: auto;
}

.model-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.model-item:hover {
    background-color: #2a2a2a;
}

.model-item.active {
    background-color: #1a365d;
}

.model-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-info .model-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.model-name .tag {
    font-size: 11px;
    background-color: #ff9800;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.model-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.sidebar-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #333;
}

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

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.username {
    font-size: 14px;
    font-weight: 500;
}

.status {
    font-size: 12px;
    color: #4caf50;
}

.recharge-btn {
    background-color: #f44336;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recharge-btn .badge {
    background-color: #fff;
    color: #f44336;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* 右侧聊天区 */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #121212;
}

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

.new-chat-btn {
    background-color: #ffc107;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
}

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

.action-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

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

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.message {
    margin-bottom: 24px;
    max-width: 80%;
}

.user-message {
    margin-left: auto;
}

.ai-message {
    margin-right: auto;
}

.message-content {
    background-color: #1e1e1e;
    padding: 16px;
    border-radius: 12px;
    line-height: 1.6;
}

.user-message .message-content {
    background-color: #2a2a2a;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.thinking-tag {
    background-color: #ffc107;
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expand-btn {
    background-color: #ffc107;
    color: #000;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

.chat-footer {
    padding: 16px;
    border-top: 1px solid #333;
}

.input-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.feature-btn {
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
}

.feature-btn.active {
    background-color: #2a2a2a;
    color: #ffc107;
    border-color: #ffc107;
}

.input-box {
    display: flex;
    align-items: center;
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 8px;
}

.input-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px;
    outline: none;
    font-size: 14px;
}

.input-box button {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.input-box button:hover {
    color: #fff;
}

.send-btn {
    background-color: #ffc107;
    color: #000;
}