* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    color: #333;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
  }
  
  .section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 90vh;
    display: flex;
    flex-direction: column;
  }
  
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }
  
  .section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
  }
  
  .refresh-btn {
    background: none;
    border: none;
    color: #1890ff;
    cursor: pointer;
    font-size: 14px;
  }
  
  .refresh-btn:hover {
    text-decoration: underline;
  }
  
  /* 遮罩层样式 */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .overlay-content {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 16px;
  }
  
  /* 热门话题样式 */
  .source-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    padding: 10px 0;
  }
  
  .source-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .source-btn.active {
    background: #1890ff;
    color: white;
  }
  
  .topics-container {
    flex-grow: 1;
    overflow-y: auto;
  }
  
  .topics-container::-webkit-scrollbar {
    width: 6px;
  }
  
  .topics-container::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .topics-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
  }
  
  .topics-list {
    list-style: none;
  }
  
  .topics-list li {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .topics-list li:hover {
    background-color: #f9f9f9;
  }
  
  .topic-rank {
    width: 30px;
    font-weight: bold;
    color: #666;
  }
  
  .topic-rank.top3 {
    color: #ff3852;
  }
  
  .topic-title {
    flex: 1;
    margin-right: 10px;
    font-size: 14px;
  }
  
  .topic-badge {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
  }
  
  .topic-badge.hot {
    background: #ff4d4f;
    color: white;
  }
  
  .topic-badge.new {
    background: #52c41a;
    color: white;
  }
  
  .topic-count {
    font-size: 12px;
    color: #999;
  }
  
  .topic-title img {
    height: 28px;
    vertical-align: middle;
  }
  
  /* 内容生成区域样式 */
  .custom-topic {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .custom-topic input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
  }
  
  .custom-topic button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #1890ff;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .custom-topic button:hover {
    background: #40a9ff;
  }
  
  .custom-topic button:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
  }
  
  .content-section {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
  }
  
  .content-section.hidden {
    display: none;
  }
  
  .content-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .ai-response-container {
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
  }
  
  .ai-response {
    padding: 15px;
    background: #fafafa;
    border-radius: 4px;
    white-space: pre-wrap;
  }
  
  .ai-response[contenteditable="true"] {
    border: 2px solid #1890ff;
    outline: none;
  }
  
  .ai-response-container::-webkit-scrollbar {
    width: 6px;
  }
  
  .ai-response-container::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .ai-response-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
  }
  
  .content-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
  }
  
  .content-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .content-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  #customPlayBtn {
    background: #d9d9d9;
    color: #666;
  }
  
  #customPlayBtn:not(:disabled) {
    background: #1890ff;
    color: white;
  }
  
  #customPlayBtn:not(:disabled):hover {
    background: #40a9ff;
  }
  
  #editBtn {
    background: #52c41a;
    color: white;
  }
  
  #editBtn:hover {
    background: #73d13d;
  }
  
  /* 音频卡片样式 */
  .audio-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
  }
  
  .audio-cards::-webkit-scrollbar {
    width: 6px;
  }
  
  .audio-cards::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .audio-cards::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
  }
  
  .audio-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border: 2px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .audio-card.active {
    border-color: #1890ff;
  }
  
  .audio-card.expanded {
    background-color: #fafafa;
  }
  
  .audio-card-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
  }
  
  .audio-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    margin-bottom: 5px;
  }
  
  .audio-info {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 12px;
  }
  
  .audio-card-content {
    display: none;
    margin-top: 15px;
  }
  
  .audio-card.expanded .audio-card-content {
    display: block;
  }
  
  .audio-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .audio-buttons {
    display: flex;
    gap: 15px;
  }
  
  .audio-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #1890ff;
  }
  
  .audio-progress {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
  }
  
  .progress-bar {
    height: 100%;
    background: #1890ff;
    width: 0;
    transition: width 0.1s linear;
  }
  
  .audio-duration {
    font-size: 12px;
    color: #666;
    text-align: right;
  }
  
  .audio-lyrics {
    font-size: 14px;
    color: #666;
    white-space: pre-wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
  }
  
  /* 加载动画 */
  .topics-loading-container,
  .audio-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  
  .loader {
    width: 24px;
    height: 24px;
    border: 3px solid #f0f0f0;
    border-top-color: #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  /* 响应式布局 */
  @media (max-width: 1200px) {
    .container {
      grid-template-columns: 1fr;
    }
  }
  
  /* 对话样式 */
  .dialogue {
    display: flex;
    margin-bottom: -30px; /* 缩短了上下间隙 */
  }
  
  .dialogue-left {
    justify-content: flex-start;
  }
  
  .dialogue-right {
    justify-content: flex-end;
  }
  
  .dialogue-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
  }
  
  .dialogue-right .dialogue-avatar {
    margin-right: 0;
    margin-left: 10px;
  }
  
  .dialogue-content {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 10px;
    max-width: 70%;
  }
  
  .dialogue-left .dialogue-content {
    border-top-left-radius: 0;
  }
  
  .dialogue-right .dialogue-content {
    border-top-right-radius: 0;
  }
  
  #responseLoader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  
