/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.容器 {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* 头部样式 */
.头部 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.头部 h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.副标题 {
    font-size: 1.1em;
    opacity: 0.9;
}

/* 导航标签样式 */
.导航标签 {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 0;
}

.标签按钮 {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.1em;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.标签按钮:hover {
    background: #e9ecef;
    color: #667eea;
}

.标签按钮.激活 {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
}

/* 内容区域切换 */
.内容区域 {
    display: none;
    padding: 30px;
}

.内容区域.激活 {
    display: block;
}

/* 主要内容区域 */
.主要内容 {
    min-height: 600px;
}

/* 两列布局（分享页面） */
.两列布局 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .两列布局 {
        grid-template-columns: 1fr;
    }
}

/* 输入区域样式 */
.输入区域 {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.输入区域 h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.表单组 {
    margin-bottom: 20px;
}

.表单组 label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.表单组 input,
.表单组 textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.表单组 input:focus,
.表单组 textarea:focus {
    outline: none;
    border-color: #667eea;
}

.表单组 textarea {
    resize: vertical;
    min-height: 120px;
}

.发送按钮 {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.发送按钮:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.发送按钮:active {
    transform: translateY(0);
}

.发送按钮:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.状态提示 {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.状态提示.成功 {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.状态提示.错误 {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* 点子列表区域样式 */
.点子列表区域 {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    max-height: 800px;
    overflow-y: auto;
}

.点子列表区域 h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
    position: sticky;
    top: 0;
    background: #f8f9fa;
    padding-bottom: 10px;
    z-index: 10;
}

.点子列表 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.空状态 {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* 点子卡片样式 */
.点子卡片 {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: 滑入 0.3s ease-out;
    transition: transform 0.2s, box-shadow 0.2s;
}

.点子卡片:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes 滑入 {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.点子内容 {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.点子元信息 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #666;
    padding-top: 10px;
    border-top: 1px solid #eee;
    gap: 15px;
}

.元信息左侧 {
    display: flex;
    gap: 15px;
    flex: 1;
}

.操作按钮组 {
    display: flex;
    gap: 10px;
}

.查新按钮 {
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.查新按钮:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.查新按钮:active {
    transform: translateY(0);
}

.作者 {
    font-weight: 600;
    color: #667eea;
}

.时间 {
    color: #999;
}

/* 底部样式 */
.底部 {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    border-top: 1px solid #e9ecef;
}

/* 滚动条样式 */
.点子列表区域::-webkit-scrollbar {
    width: 8px;
}

.点子列表区域::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.点子列表区域::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.点子列表区域::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* 查询界面样式 */
.查询界面 {
    max-width: 1000px;
    margin: 0 auto;
}

.查询界面 h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
}

.查询表单 {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid #e9ecef;
}

.查询行 {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .查询行 {
        grid-template-columns: 1fr;
    }
}

.查询组 {
    display: flex;
    flex-direction: column;
}

.查询组 label {
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.95em;
}

.查询组 input,
.查询组 select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.查询组 input:focus,
.查询组 select:focus {
    outline: none;
    border-color: #667eea;
}

.查询按钮 {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.查询按钮:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.查询结果区域 {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    min-height: 400px;
    max-height: 800px;
    overflow-y: auto;
}

.结果标题 {
    font-size: 1.2em;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.加载中 {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 1.1em;
}

/* 对比界面样式 */
.对比界面 {
    max-width: 1400px;
    margin: 0 auto;
}

.对比界面 h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
}

.对比说明 {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.对比操作区 {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.操作按钮 {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    background: #e9ecef;
    color: #333;
}

.操作按钮:hover {
    background: #dee2e6;
    transform: translateY(-2px);
}

.操作按钮.主要 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.操作按钮.主要:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.操作按钮.Cursor按钮 {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-weight: 600;
}

.操作按钮.Cursor按钮:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.操作按钮:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.对比两列 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 1024px) {
    .对比两列 {
        grid-template-columns: 1fr;
    }
}

.可选点子列表,
.对比结果区域 {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    min-height: 500px;
    max-height: 800px;
    overflow-y: auto;
}

.可选点子列表 h3,
.对比结果区域 h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3em;
    position: sticky;
    top: 0;
    background: #f8f9fa;
    padding-bottom: 10px;
    z-index: 10;
}

/* 可选择的点子卡片 */
.点子卡片.可选择 {
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.点子卡片.可选择:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.点子卡片.可选择.已选中 {
    border-left-color: #28a745;
    background: #d4edda;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.点子卡片.可选择.已选中::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

/* 对比表格样式 */
.对比表格 {
    width: 100%;
    border-collapse: collapse;
}

.对比行 {
    display: grid;
    grid-template-columns: 150px repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: #e9ecef;
    margin-bottom: 1px;
}

.对比行.表头 {
    background: #667eea;
    color: white;
    font-weight: bold;
}

.对比列 {
    background: white;
    padding: 15px;
    word-wrap: break-word;
}

.对比列.属性列 {
    background: #f8f9fa;
    font-weight: 600;
    color: #667eea;
}

.对比行.表头 .对比列 {
    background: #667eea;
    color: white;
    font-weight: bold;
}

.对比行.表头 .对比列.属性列 {
    background: #5568d3;
}

/* 查新模态框样式 */
.查新模态框 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.查新模态框内容 {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: 滑入 0.3s ease-out;
}

.查新模态框头部 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.查新模态框头部 h2 {
    margin: 0;
    font-size: 1.5em;
}

.关闭按钮 {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2em;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    line-height: 1;
    padding: 0;
}

.关闭按钮:hover {
    background: rgba(255, 255, 255, 0.3);
}

.查新模态框主体 {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.查新关键词 {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #667eea;
    border-left: 4px solid #667eea;
}

.查新结果区域 {
    margin-bottom: 30px;
}

.查新结果区域 h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.查新结果表格 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.查新结果项 {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s, box-shadow 0.2s;
}

.查新结果项:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.结果标题 {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.结果标题 a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.结果标题 a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.结果详情 {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.结果详情 span {
    padding: 4px 8px;
    background: white;
    border-radius: 4px;
}

.结果摘要 {
    color: #555;
    line-height: 1.6;
    font-size: 0.95em;
}

.无结果,
.错误信息 {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

.错误信息 {
    color: #dc3545;
    background: #f8d7da;
    border-radius: 8px;
    padding: 15px;
}

/* 榜单区域样式 */
.榜单界面 {
    max-width: 1200px;
    margin: 0 auto;
}

.榜单界面 h2 {
    color: #667eea;
    text-align: center;
    margin-bottom: 20px;
}

.榜单双列 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .榜单双列 {
        grid-template-columns: 1fr;
    }
}

.注册卡片,
.榜单卡片 {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
}

.表单组列 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.榜单标题栏 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.榜单列表 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.榜单卡片行 {
    background: white;
    border-radius: 10px;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.榜单头 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #eef2ff;
    border-bottom: 1px solid #e9ecef;
}

.名次 {
    font-weight: 700;
    color: #28a745;
}

.标题 {
    font-size: 1.05em;
    font-weight: 600;
    color: #333;
}

.奖励 {
    color: #ff9800;
    font-weight: 600;
}

.榜单体 {
    padding: 12px 16px 16px;
}

.方案 {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.信息行 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.95em;
    color: #666;
}

.提交卡片 {
    margin-top: 16px;
    background: #fff;
    border: 1px dashed #667eea;
    border-radius: 10px;
    padding: 12px;
}

.提交卡片 h4 {
    margin-bottom: 10px;
    color: #667eea;
}

/* 完成提交样式 */
.完成界面 {
    max-width: 1200px;
    margin: 0 auto;
}

.完成界面 h2 {
    color: #28a745;
    text-align: center;
    margin-bottom: 20px;
}

.完成双列 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 992px) {
    .完成双列 {
        grid-template-columns: 1fr;
    }
}

.提交表单卡片,
.完成列表卡片 {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
}

.完成标题栏 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.完成列表 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.完成卡片行 {
    background: white;
    border-radius: 10px;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.完成卡片头 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #e9f7ef;
    border-bottom: 1px solid #e9ecef;
    gap: 10px;
}

.完成卡片体 {
    padding: 12px 16px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.完成字段 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #555;
}

.完成字段 strong {
    color: #333;
}

.完成链接 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.完成链接 a {
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
}

.完成链接 a:hover {
    text-decoration: underline;
}

/* 分析结果模态框样式 */
.分析模型信息 {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
}

.分析结果卡片 {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.分析结果卡片:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.分析结果头部 {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.分析结果头部 h3 {
    color: #667eea;
    font-size: 1.3em;
    margin-bottom: 8px;
}

.分析结果元信息 {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #666;
}

.分析结果原始内容 {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.分析结果原始内容 h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.分析结果原始内容 p {
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.分析结果解读内容 {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.分析结果解读内容 h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.解读内容文本 {
    color: #333;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.解读内容文本 h1,
.解读内容文本 h2,
.解读内容文本 h3 {
    color: #667eea;
    margin-top: 15px;
    margin-bottom: 10px;
}

.解读内容文本 h1 {
    font-size: 1.5em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}

.解读内容文本 h2 {
    font-size: 1.3em;
}

.解读内容文本 h3 {
    font-size: 1.1em;
}

.解读内容文本 strong {
    color: #764ba2;
    font-weight: 600;
}

.解读内容文本 ul,
.解读内容文本 ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

.解读内容文本 li {
    margin-bottom: 5px;
    line-height: 1.6;
}

.解读内容文本 p {
    margin-bottom: 10px;
}

.分析结果统计 {
    padding: 15px;
    background: #eef2ff;
    border-radius: 8px;
    border: 1px solid #667eea;
}

.分析结果统计 h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.分析结果统计 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.分析结果统计 li {
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95em;
}