/* 添加必要的样式确保容器可见 */
.deepseek-section {
    display: block;
    width: 100%;
    min-height: 800px;
    background: #fff;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    padding: 80px 0;
}

.deepseek-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 600px;
}

.deepseek-container {
    position: relative; /* 改为相对定位 */
    width: 100%;
    height: 700px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    overflow: hidden;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 优化头部样式 */
.deepseek-header {
    padding: 40px;
    background: linear-gradient(135deg, #0A2540 0%, #1A4D8C 100%);
    text-align: center;
    color: white;
}

/* 新增品牌联合标识样式 */
.brand-collaboration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.brand-divider {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* 优化标题样式 */
.main-title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(90deg, #FFFFFF, #7DD3FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.subtitle-wrapper {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpIn 0.8s forwards 0.3s;
}

.primary-subtitle {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.secondary-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.message {
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpIn 0.5s forwards;
}

.message-content {
    padding: 16px;
    border-radius: 16px;
    background: #F8FAFC;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.capability-item {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.capability-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.input-area {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 12px;
}

textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.send-button {
    padding: 12px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0A2540 0%, #1A4D8C 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
    position: relative;
    z-index: 100;
    pointer-events: auto !important; /* 确保按钮可点击 */
    user-select: none;
}

.send-button:hover {
    background: linear-gradient(135deg, #0D2B4A 0%, #215BA0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.2);
}

.send-button:active {
    transform: translateY(0);
}

.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.send-button:not(:disabled) {
    cursor: pointer;
}

/* 修复loading spinner显示问题 */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.loading-spinner.hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#deepseekAssistantContainer {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.stream-container {
    position: relative;
    margin-bottom: 1rem;
}

.thinking-container {
    border-left: 3px solid #00cc88;
    padding: 1rem;
    background: rgba(0,204,136,0.05);
    margin-bottom: 1rem;
}

.content-container {
    min-height: 2em;
    white-space: pre-wrap;
    line-height: 1.6;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #00cc88;
    border-radius: 50%;
    animation: pulse 1.4s infinite;
    opacity: 0.6;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Markdown 样式 */
.content-container pre {
    background: #f6f8fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

.content-container code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
}

.content-container pre code {
    padding: 0;
    background: none;
}