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

        .main-content {
            padding-top: 0px;
            background-color: #f7f8fa;
            display: flex;
            height: 93vh;
        }

        /* 左侧边栏 - 豆包风格 */
        .sidebar {
            width: 260px;
            background-color: #ffffff;
            border-right: 1px solid #e5e7eb;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }

        .sidebar-header {
            padding: 16px;
            border-bottom: 1px solid #e5e7eb;
        }

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

        .app-info {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .app-icon {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .app-name {
            font-size: 16px;
            font-weight: 600;
            color: #1f2937;
            text-decoration: none;
            transition: color 0.2s;
        }

        .app-name:hover {
            color: #4f46e5;
        }

        .new-chat-btn {
            width: 100%;
            padding: 10px 16px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            background-color: #ffffff;
            color: #4b5563;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
            transition: all 0.2s;
        }

        .new-chat-btn:hover {
            background-color: #f9fafb;
            border-color: #d1d5db;
        }

        .history-section {
            flex: 1;
        }

        .history-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px 12px 16px;
            margin-bottom: 8px;
        }

        .history-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px 12px 16px;
            margin-bottom: 8px;
        }

        .history-header span {
            font-size: 12px;
            font-weight: 600;
            color: #9ca3af;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .clear-history-btn {
            background: none;
            border: none;
            color: #6b7280;
            font-size: 12px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .clear-history-btn:hover {
            background-color: #f3f4f6;
            color: #374151;
        }

        .history-list {
            padding: 0 8px;
        }

        .history-item {
            padding: 10px 8px;
            cursor: pointer;
            font-size: 14px;
            color: #4b5563;
            border-radius: 6px;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            transition: all 0.2s;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .history-item:hover {
            background-color: #f9fafb;
        }

        .history-item span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
        }

        /* 主内容区 */
        .main-content1 {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow-y: hidden;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        .main-header {
            padding: 12px 16px;
            border-bottom: 1px solid #e5e7eb;
            background-color: #ffffff;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .main-header .model-tag {
            background-color: #e0e7ff;
            color: #4f46e5;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 12px;
        }

        .main-body {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 24px;
            overflow-y: hidden;
        }

        /* 聊天内容区域 */
        .chat-content {
            width: 100%;
            margin: 0 auto;
            flex: 1;
            overflow-y: auto;
            min-height: 400px;
            max-height: calc(100vh - 300px);
            display: flex;
            flex-direction: column;
        }

        .welcome-message {
            text-align: center;
            margin: 100px auto;
            max-width: 600px;
            padding: 40px;
        }

        .greeting {
            font-size: 28px;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 16px;
        }

        .subtitle {
            color: #6b7280;
            font-size: 16px;
            margin-bottom: 32px;
            max-width: 600px;
            line-height: 1.5;
            margin-left: auto;
            margin-right: auto;
        }

        .assistant-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            width: 100%;
            max-width: 720px;
            margin-bottom: 32px;
        }

        .assistant-card {
            background-color: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 16px;
            text-align: left;
            cursor: pointer;
            transition: all 0.2s;
        }

        .assistant-card:hover {
            border-color: #d1d5db;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .card-icon {
            font-size: 20px;
            margin-bottom: 8px;
        }

        .card-title {
            font-size: 16px;
            font-weight: 500;
            color: #1f2937;
            margin-bottom: 4px;
        }

        .card-desc {
            font-size: 14px;
            color: #6b7280;
            line-height: 1.4;
        }



        /* 自定义滚动条 */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        /* 结果区域 */
        .result {
            padding: 20px;
            min-height: 300px;
            max-height: 550px;
            overflow: auto;
            background-color: #ffffff;
            border-radius: 16px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .chat_row {
            width: 100%;
            margin: 16px 0;
            padding: 0 20px;
            display: flex;
            animation: fadeIn 0.3s ease-out;
        }

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

        .user_result_p {
            margin-left: auto;
            max-width: 70%;
            width: fit-content;
            display: flex;
        }

        .user_result {
            background-color: #e0f2fe;
            border-radius: 18px 18px 4px 18px;
            padding: 16px 20px;
            width: fit-content;
            vertical-align: top;
            margin-right: 8px;
            display: inline-block;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
            font-size: 14px;
            line-height: 1.5;
        }

        .ai_result_p {
            max-width: 70%;
            width: fit-content;
            display: flex;
        }

        .ai_result {
            background-color: #ffffff;
            border-radius: 18px 18px 18px 4px;
            padding: 16px 20px;
            width: fit-content;
            max-width: 100%;
            vertical-align: top;
            margin-left: 8px;
            display: inline-block;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
            font-size: 14px;
            line-height: 1.5;
            border: 1px solid #f1f5f9;
        }

        .ai_result img {
            max-width: 100%;
            max-height: 500px;
            border-radius: 8px;
            margin: 10px 0;
        }

        .ai_result video {
            max-width: 100%;
            max-height: 500px;
            border-radius: 8px;
            margin: 10px 0;
        }

        .copy {
            height: 24px;
            width: 24px;
            padding: 4px;
            background-color: rgb(251, 251, 252);
            border-radius: 5px;
            border: 0px;
            margin: auto 0 16px 16px;
            box-shadow: rgb(204, 204, 204) 2px 2px 2px;
        }

        /* 使用案例和场景 */
        .use-cases {
            margin-top: 32px;
        }

        .use-cases h3 {
            font-size: 18px;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 16px;
        }

        .case-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 32px;
        }

        .case-item {
            background-color: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 16px;
        }

        .case-question {
            font-size: 14px;
            color: #6b7280;
            margin-bottom: 8px;
        }

        .case-answer {
            font-size: 14px;
            color: #4b5563;
            line-height: 1.4;
            white-space: pre-wrap;
        }

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

        .scenario-item {
            background-color: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 16px;
            text-align: center;
        }

        .scenario-item img {
            max-width: 100%;
            height: auto;
            margin-bottom: 12px;
        }

        .scenario-item h4 {
            font-size: 16px;
            font-weight: 500;
            color: #1f2937;
            margin-bottom: 8px;
        }

        .scenario-item p {
            font-size: 14px;
            color: #6b7280;
            line-height: 1.4;
        }

        /* 输入区 */
        .input-area {
            padding: 16px;
            border-top: 1px solid #e5e7eb;
            background-color: #ffffff;
        }

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

        .input-toolbar .model-select {
            padding: 4px 8px;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            font-size: 14px;
            background-color: #f9fafb;
        }

        

        

        

        .input-container {
            position: relative;
        }

        .input-container textarea {
            width: 100%;
            padding: 12px 120px 12px 12px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            font-size: 14px;
            resize: none;
            min-height: 60px;
            background-color: #f9fafb;
        }

        .send-btn {
            position: absolute;
            right: 12px;
            bottom: 12px;
            padding: 6px 16px;
            background-color: #1f2937;
            color: #ffffff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
        }

        .send-btn:hover {
            background-color: #374151;
        }

        .stop-btn {
            position: absolute;
            right: 12px;
            bottom: 12px;
            padding: 6px 16px;
            background-color: #ef4444;
            color: #ffffff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
        }

        .stop-btn:hover {
            background-color: #dc2626;
        }

        /* 聊天内容区域 */
        .chat-content {
            width: 100%;
            margin: 0 auto;
            flex: 1;
            overflow-y: auto;
        }

        .function-btn {
          padding: 6px 12px;
          margin-right: 8px;
          border: 1px solid #ddd;
          border-radius: 4px;
          background-color: #f8f9fa;
          cursor: pointer;
          font-size: 14px;
          vertical-align: middle;
        }
        .function-btn:hover {
          background-color: #e9ecef;
        }
        .function-btn.active {
          background-color: #007bff;
          color: white;
          border-color: #007bff;
        }
        .model-select {
          padding: 6px 12px;
          border: 1px solid #ddd;
          border-radius: 4px;
          font-size: 14px;
          vertical-align: middle;
        }
        .toolbar-top {
          flex-wrap: wrap;
        }
        
        /* 历史记录项样式 */
        .history-item {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 10px 12px;
          margin-bottom: 6px;
          border-radius: 6px;
          cursor: pointer;
          transition: all 0.2s;
          background-color: #f9fafb;
        }
        .history-item:hover {
          background-color: #f3f4f6;
          transform: translateY(-1px);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        .history-item.active {
          background-color: #e3f2fd;
        }
        .history-text {
          flex: 1;
          margin-right: 12px;
          font-size: 14px;
          color: #374151;
          line-height: 1.4;
        }
        .delete-history-btn {
          padding: 4px 10px;
          font-size: 12px;
          border: none;
          border-radius: 4px;
          background-color: #f3f4f6;
          color: #6b7280;
          cursor: pointer;
          transition: all 0.2s;
          font-weight: 500;
        }
        .delete-history-btn:hover {
          background-color: #ef4444;
          color: white;
          box-shadow: 0 1px 2px rgba(239, 68, 68, 0.3);
        }
