/* GEO品牌AI引用监测系统样式 */

/* 主色调定义 */
:root {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-light: rgba(102, 126, 234, 0.1);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
}

/* 通用容器 */
.geo-jiankong-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 页面标题区域 */
.page-hero {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
}

.page-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* 主体内容区域 */
.main-content {
    padding: 50px 0;
    background: var(--bg-light);
}

/* 查询表单区域 */
.query-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.section-inner {
    margin: 0 auto;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 表单项 */
.form-item {
    margin-bottom: 30px;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.form-label {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.form-label-hint {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 6px;
}

/* 通配符按钮 */
.wildcard-btn {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 12px;
    font-family: monospace;
    color: var(--primary-color);
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wildcard-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.required {
    color: #ef4444;
    margin-right: 6px;
}

/* 文本输入 */
.input-wrapper {
    position: relative;
}

.layui-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.layui-textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
    background: var(--bg-card);
}

.input-tips {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: right;
}

.outLen {
    color: #ef4444 !important;
}

/* 推荐按钮 */
.recommended-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    height: auto;
    line-height: 1.5;
}

.recommended-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.recommended-btn i {
    font-size: 13px;
    vertical-align: middle;
}

/* 标签输入 */
.tag-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-height: 40px;
    transition: all 0.2s ease;
    background: var(--bg-card);
    margin-top: 20px;
}

.tag-input-wrapper:focus-within {
    border-color: var(--primary-color);
}

.tag-input {
    flex: 1;
    min-width: 150px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: rgb(24, 144, 255);
    background: rgb(230, 247, 255);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(145, 213, 255);
    border-image: initial;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 2px 5px 2px 0px;
}

.tag-item .tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background 0.2s ease;
}

.tag-item .tag-remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tag-tips {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

/* AI平台选择 */
.platform_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 14px;
    justify-items: stretch;
    margin-top: 20px;
}

.platform_list .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-card);
    min-height: 100px;
}

.platform_list .item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.platform_list .item.item_active,
.platform_list .item.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.platform_list .item_img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid #f1f5f9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.platform_list .item_img img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.platform_list .item_name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform_list .item_check {
    display: none;
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 6px;
}

.platform_list .item.item_active .item_check,
.platform_list .item.selected .item_check {
    display: block;
}

/* 提交按钮区域 */
.submit-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.submit_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    background: var(--primary-gradient);
    border: none;
    border-radius: 25px;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.submit_btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.4s ease;
}

.submit_btn:hover::before {
    left: 100%;
}

.submit_btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.4);
}

.submit_btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.submit_btn i {
    font-size: 15px;
}

/* 查询结果区域 */
.results-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

#monitorBtn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(64, 129, 255, 0.15);
    padding: 10px;
}

#monitorBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(64, 129, 255, 0.25);
}

#monitorBtn:active {
    transform: translateY(0);
}

#monitorBtn:not(:disabled):before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

#monitorBtn:not(:disabled):hover:before {
    left: 100%;
}

#monitorBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#monitorBtn i {
    margin-right: 4px;
}

/* 操作列样式 */
.col-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 6px;
}

/* 操作按钮基础样式 */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    line-height: 1;
}

/* 操作按钮图标 */
.action-btn i {
    font-size: 18px;
    line-height: 1;
}

/* 删除按钮样式 */
.delete-btn {
    background-color: #fff;
    color: #d93026;
    border: 1px solid #ff7875;
    box-shadow: 0 1px 2px rgba(217, 48, 38, 0.1);      
    font-size: 12px;
}

.delete-btn:hover {
    background-color: #d93026;
    color: #fff;
    border-color: #d93026;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(217, 48, 38, 0.3);
}

.delete-btn:active {
    transform: scale(0.98);
}

.delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 更新按钮样式 */
.update-btn {
    background-color: #fff;
    color: #096dd9;
    border: 1px solid #59a5f5;
    box-shadow: 0 1px 2px rgba(9, 109, 217, 0.1);
    font-size: 12px;
}

.update-btn:hover {
    background-color: #096dd9;
    color: #fff;
    border-color: #096dd9;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(9, 109, 217, 0.3);
}

.update-btn:active {
    transform: scale(0.98);
}

.update-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 报告按钮样式 */
.report-btn {
    background-color: #fff;
    color: #722ed1;
    border: 1px solid #b37feb;
    box-shadow: 0 1px 2px rgba(114, 46, 209, 0.1);
    font-size: 12px;
}

.report-btn:hover {
    background-color: #722ed1;
    color: #fff;
    border-color: #722ed1;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(114, 46, 209, 0.3);
}

.report-btn:active {
    transform: scale(0.98);
}

.report-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.results-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.results-count {
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 12px;
    margin-right: 10px;
}

.score-hint {
    font-size: 14px;
    color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    border: 1px solid #fcd34d;
}

.header-info-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 14px;
}

.header-info-bar > span {
    font-size: inherit;
}

.results-progress {
    margin-bottom: 20px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    color: var(--text-muted);
}

.results-list {
    overflow-y: auto;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--bg-card);
    transition: all 0.2s ease;
}

.result-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-platform {
    display: flex;
    align-items: center;
    width: 120px;
    flex-shrink: 0;
}

.result-platform img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

.result-platform span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.result-keyword {
    flex: 1;
    padding: 0 20px;
}

.result-keyword .keyword {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.result-keyword .question {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-status {
    width: 150px;
    text-align: center;
    flex-shrink: 0;
}

.result-status .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.result-status .status-badge.success {
    background: #dcfce7;
    color: #16a34a;
}

.result-status .status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.result-status .status-badge.error {
    background: #fee2e2;
    color: #dc2626;
}

.result-stats {
    width: 200px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-shrink: 0;
}

.result-stats .stat-item {
    text-align: center;
}

.result-stats .stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.result-stats .stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* 功能说明区域 */
.feature-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.feature-section .section-title {
    margin-bottom: 40px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.feature-card i {
    font-size: 40px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 推荐问题弹窗 - 适配 layui layer */
.common_questions {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 30px 100px rgba(102, 126, 234, 0.35);
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    box-sizing: border-box;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.popup-header h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.popup-header .close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-header .close:hover {
    color: var(--text-primary);
}

.popup-body {
    padding: 20px;
}

/* AI推荐区域 */
.ai-recommend {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-recommend input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: var(--bg-card);
}

.ai-recommend input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.ai-recommend input::placeholder {
    color: var(--text-muted);
}

.ai-recommend .layui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    height: auto;
    line-height: 2;
    transition: all 0.2s ease;
}

.ai-recommend .layui-btn:hover {
    opacity: 0.9;
}

/* 关键词列表 - 表格布局 */
.keyword-list {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    overflow: hidden;
}

.keyword-list::-webkit-scrollbar {
    width: 6px;
}

.keyword-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.keyword-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.keyword-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 表格头部 */
.keyword-list .table-header {
    display: flex;
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.keyword-list .table-header .col-index {
    flex: 0.5;
    text-align: center;
}

.keyword-list .table-header .col-keyword {
    flex: 3;
}

.keyword-list .table-header .col-hot {
    flex: 1;
    text-align: center;
}

.keyword-list .table-header .col-category {
    flex: 1.5;
    text-align: center;
}

.keyword-list .table-header .col-action {
    flex: 2;
    text-align: right;
}

/* 表格主体 */
.keyword-list .table-body {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

.keyword-list .table-body::-webkit-scrollbar {
    width: 6px;
}

.keyword-list .table-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.keyword-list .table-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.keyword-list .table-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 类目筛选样式 */
.category-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.filter-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    background: #f1f5f9;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.filter-tag:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.filter-tag.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: var(--primary-color);
}

/* 列表项 */
.keyword-list .table-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.keyword-list .table-row:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* 正在处理的行高亮样式 */
.results-table tbody tr.processing-row {
    background: linear-gradient(135deg, rgba(250, 240, 215, 0.8) 0%, rgba(253, 230, 138, 0.6) 100%);
    border-left: 4px solid #f59e0b;
    animation: pulse-processing 2s ease-in-out infinite;
}

/* 积分不足提示层 */
.score-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.score-warning-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.score-warning-content .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.score-warning-content .close-btn:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.score-warning-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-warning-icon i {
    font-size: 40px;
    color: #d97706;
}

.score-warning-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px;
}

.score-warning-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px;
    line-height: 1.6;
}

.score-warning-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.score-warning-actions .layui-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

@keyframes pulse-processing {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}
.keyword-list .table-row:last-child {
    border-bottom: none;
}

.keyword-list .table-row .col-index {
    flex: 0.5;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.keyword-list .table-row .col-keyword {
    flex: 3;
    font-size: 14px;
    color: var(--text-primary);
}

.keyword-list .table-row .col-hot {
    flex: 1;
    text-align: center;
}

.keyword-list .table-row .col-hot span {
    font-size: 12px;
    color: #dc2626;
    font-weight: 600;
}

.keyword-list .table-row .col-hot .hot-common {
    color: #dc2626;
}

.keyword-list .table-row .col-category {
    flex: 1.5;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.keyword-list .table-row .col-action {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.keyword-list .table-row .layui-btn {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.keyword-list .list-item .action-btn.add-detect {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.keyword-list .list-item .action-btn.add-detect:hover {
    opacity: 0.9;
}

.keyword-list .list-item .action-btn.copy {
    background: #e0e7ff;
    color: #667eea;
}

.keyword-list .list-item .action-btn.copy:hover {
    background: #c7d2fe;
}

/* 空状态 */
.keyword-list.empty {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 28px;
    color: var(--text-muted);
}

.empty-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.empty-hint {
    font-size: 13px;
    color: #94a3b8;
}



/* 全局按钮样式覆盖 */
.layui-btn {
    font-family: inherit;
}

.layui-btn-primary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .geo-jiankong-container {
        padding: 0 16px;
    }

    .page-hero {
        padding: 40px 0;
    }

    .page-title {
        font-size: 28px;
    }

    .page-desc {
        font-size: 16px;
    }

    .main-content {
        padding: 30px 0;
    }

    .query-section {
        padding: 24px;
    }

    .section-title {
        font-size: 20px;
    }

    .platform_list {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .platform_list .item {
        padding: 15px 10px;
        min-height: 90px;
    }

    .platform_list .item_img {
        width: 44px;
        height: 44px;
    }

    .platform_list .item_name {
        font-size: 12px;
    }

    .submit_btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-card i {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .platform_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .platform_list .item {
        min-height: 85px;
    }

    .ai-recommend {
        flex-direction: column;
    }

    .ai-recommend .layui-btn {
        padding: 12px;
    }
}

/* 弹窗遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* 弹窗样式 */
.common_questions.modal-active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.common_questions .popup-body {
    overflow-y: auto;
    flex: 1;
}

/* Toast提示样式 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -150%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-show {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.toast-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.toast-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.toast-error .toast-icon {
    background: #dc2626;
    color: #fff;
}

.toast-success .toast-icon {
    background: #16a34a;
    color: #fff;
}

.toast-text {
    line-height: 1.5;
}
/* 登录提示样式 */
.login-tip {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    margin-top: 20px;
}

.login-tip .tip-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #92400e;
}

.login-tip .tip-content i {
    font-size: 18px;
}

.login-tip .login-link {
    padding: 4px 12px;
    background: #f59e0b;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.login-tip .login-link:hover {
    background: #d97706;
}

/* 检测结果表格样式 */
.results-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.results-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.results-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.results-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.results-table tbody tr:hover {
    background: #f8fafc;
}

.results-table td {
    font-size: 14px;
    color: #334155;
}

/* 平台列 */
.col-platform {
    width: 120px;
}

.platform-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.platform-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
}

.platform-name {
    font-weight: 500;
    color: #1e293b;
}

/* 问题列 */
.col-question {
    min-width: 200px;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 关键词列 */
.col-keyword {
    width: 120px;
}

/* 是否推荐列 */
.col-recommend {
    width: 100px;
}

.recommend-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    width: 60px;
    text-align: center;
}

.recommend-badge.recommend {
    background: #dcfce7;
    color: #16a34a;
}

.recommend-badge.not-recommend {
    background: #fef2f2;
    color: #dc2626;
}

/* 曝光次数列 */
.col-exposure {
    width: 90px;
}

.exposure-count {
    color: #dc2626;
    font-weight: 600;
    font-size: 13px;
}

/* 检索次数列 */
.col-retrieval {
    width: 90px;
}

/* 曝光率列 */
.col-rate {
    width: 90px;
}

.rate-value {
    color: #f59e0b;
    font-weight: 600;
    font-size: 14px;
}

/* 历史监控链接样式 */
.history-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 28px;
    background: #ffffff;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.history-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.history-link:hover {
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.history-link:hover::before {
    opacity: 1;
}

.history-link:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25);
}

.history-link i {
    font-size: 14px;
}

/* 调试日志面板样式 */
.debug-panel {
    margin-top: 20px;
    padding: 16px;
    background: #0f172a;
    border-radius: 8px;
    border: 1px solid #334155;
    overflow: hidden;
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #334155;
    margin-bottom: 12px;
}

.debug-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
}

.debug-actions {
    display: flex;
    gap: 8px;
}

.debug-content {
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.debug-content::-webkit-scrollbar {
    width: 6px;
}

.debug-content::-webkit-scrollbar-track {
    background: #1e293b;
}

.debug-content::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

.debug-content::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.debug-empty {
    text-align: center;
    color: #64748b;
    padding: 20px;
}

.debug-item {
    margin-bottom: 16px;
    padding: 12px;
    background: #1e293b;
    border-radius: 6px;
    border-left: 3px solid #64748b;
}

.debug-item.debug-success {
    border-left-color: #22c55e;
}

.debug-item.debug-error {
    border-left-color: #ef4444;
}

.debug-item.debug-pending {
    border-left-color: #f59e0b;
}

.debug-item:last-child {
    margin-bottom: 0;
}

.debug-time {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
}

.debug-request {
    color: #94a3b8;
    margin-bottom: 8px;
}

.debug-request .label {
    color: #fbbf24;
    font-weight: 500;
}

.debug-request .value {
    color: #a5b4fc;
    word-break: break-all;
}

.debug-response {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #334155;
}

.debug-response .label {
    color: #22d3ee;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.debug-response .success-text {
    color: #22c55e;
}

.debug-response .error-text {
    color: #ef4444;
}

.debug-response .data {
    color: #d1fae5;
    word-break: break-all;
    max-height: 150px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.debug-summary {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #334155;
    font-size: 13px;
}

.summary-item {
    color: #94a3b8;
}

.summary-item .success-count {
    color: #22c55e;
    font-weight: 600;
}

.summary-item .fail-count {
    color: #ef4444;
    font-weight: 600;
}

.summary-item .total-count {
    color: #a5b4fc;
    font-weight: 600;
}

/* AI响应弹窗样式 */
.ai-response-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    -ms-flex-align: center;
    -ms-flex-pack: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ai-response-modal {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    margin: auto;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-response-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid var(--border-color);
}

.ai-response-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-response-modal-header h3::before {
    content: '🤖';
    font-size: 24px;
}

.ai-response-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.ai-response-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.ai-response-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.ai-response-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.ai-response-info .info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-response-info .info-item label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-response-info .info-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
}

.ai-response-content {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
}

.ai-response-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-response-content h4::before {
    content: '📝';
    font-size: 18px;
}

.ai-response-text {
    background: #0d1117;
    border-radius: 8px;
    padding: 16px;
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #21262d;
}

.ai-response-text::-webkit-scrollbar {
    width: 8px;
}

.ai-response-text::-webkit-scrollbar-track {
    background: #0d1117;
    border-radius: 4px;
}

.ai-response-text::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

.ai-response-text::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* 查看按钮样式 */
.view-btn {
    background-color: #fff;
    color: #52c41a;
    border: 1px solid #73d13d;
    box-shadow: 0 1px 2px rgba(82, 196, 26, 0.1);
    font-size: 12px;
}

.view-btn:hover {
    background-color: #52c41a;
    color: #fff;
    border-color: #52c41a;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

.view-btn:active {
    transform: scale(0.98);
}

.view-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}