/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #377db5; /* 主色调 */
    --primary-light: #5a9dd3;
    --primary-dark: #2a6090;
    --accent: #2ecc71;
    --warning: #f39c12;
    --light-bg: #f8fafc;
    --border: #e2e8f0;
    --text: #334155;
    --text-light: #64748b;
    --card-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--light-bg);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 顶部导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--card-bg);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 16px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.submit-link {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(55, 125, 181, 0.3);
}

/* 企业区域 */

#tmBox{
    position: relative;
    border-radius: 30px;
    margin-bottom: 20px;
}

.tmLogo img{
    max-width: 300px;
    vertical-align: middle;
}

.tmSlogn{
    font-size: 32px;
    margin: 10px 0;
    font-weight: bold;
}

.tmLogo span {
    background-color: #337ab7;
    color: #fff;
    border-radius: 5px;
    padding: 5px 8px;
    margin-left: 10px;
}

.tmLink {
    position: absolute;
    right: 15px;
    top: 15px;
    text-align: right;
}

/* 搜索区域 */
.search-container {
    margin: 30px auto 20px;
    padding: 0;
    text-align: center;
    z-index: 999;
    position: relative;
}

.search-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-weight: 700;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 16px 25px;
    border: none;
    border-radius: 50px 50px 50px 0px;
    background: white;
    color: var(--text);
    font-size: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(55, 125, 181, 0.2);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 8px 25px rgba(55, 125, 181, 0.2), 0 0 0 2px var(--primary);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 6px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(55, 125, 181, 0.3);
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 125, 181, 0.4);
}

/* 下拉提示框 */
.suggestions-container {
    position: absolute;
    width: 100%;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 10px;
    z-index: 50;
    display: none;
    border: 1px solid var(--border);
}

.suggestions-section {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.suggestions-section:last-child {
    border-bottom: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.section-title i {
    font-size: 18px;
    color: var(--primary);
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-item {
    background: rgba(55, 125, 181, 0.08);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
    border: 1px solid rgba(55, 125, 181, 0.15);
}

.suggestion-item:hover {
    background: rgba(55, 125, 181, 0.15);
    transform: translateY(-2px);
}

.model-suggestion {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.15);
    color: #1a7d4e;
}

.model-suggestion:hover {
    background: rgba(46, 204, 113, 0.15);
}

.no-suggestions {
    color: var(--text-light);
    font-style: italic;
    padding: 5px 0;
}

/* 主要内容区域 - 三列布局 */
.main-content {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px 50px;
    gap: 30px;
}

.results-column {
    flex: 1;
    min-width: 0;
}

.ai-column {
    width: 350px;
    margin-top: 30px;
}

.ads-column {
    width: 300px;
    margin-top: 30px;
}

/* 企业展示卡片 */
.tmCard_container {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(56, 189, 248, 0.2),
        inset 0 0 15px rgba(56, 189, 248, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.tmCard_container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

.tmCard_content {
    display: flex;
    flex: 1;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.tmCard_info {
    flex: 0 0 300px;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.1);
}

.tmCard_infoItem {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.tmCard_infoLabel {
    width: 60px;
    font-weight: 600;
    color: #94a3b8;
}

.tmCard_infoValue {
    flex: 1;
    color: #f1f5f9;
    font-weight: 500;
}

.tmCard_infoValue a {
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.3s;
}

.tmCard_infoValue a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.tmCard_products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.tmCard_productTag {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.tmCard_intro {
    flex: 1;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.1);
    position: relative;
    overflow: hidden;
}

.tmCard_introTitle {
    font-size: 18px;
    margin-bottom: 15px;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tmCard_introText {
    line-height: 1.7;
    font-size: 15px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.tmCard_typingCursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: #38bdf8;
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink 1s infinite;
}

.tmCard_actionBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

/* 动画效果 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(56, 189, 248, 0.5); }
    50% { box-shadow: 0 0 20px rgba(56, 189, 248, 0.8); }
    100% { box-shadow: 0 0 5px rgba(56, 189, 248, 0.5); }
}

.tmCard_container {
    animation: glow 3s infinite;
    display: none;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .tmCard_content {
        flex-direction: column;
        gap: 20px;
    }
    
    .tmCard_container {
        height: auto;
    }
    
    .tmCard_info {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .tmCard_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tmCard_infoItem {
        flex-direction: column;
        gap: 5px;
    }
    
    .tmCard_infoLabel {
        width: 100%;
    }
}


/* 搜索结果区域 */
.results-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.results-title {
    font-size: 22px;
    color: var(--primary-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-title i {
    color: var(--primary);
    font-size: 24px;
}

.results-count {
    font-size: 16px;
    color: var(--text-light);
    background: rgba(55, 125, 181, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
}

/* 结果列表 */
.results-list {
    margin-top: 20px;
}

.result-item {
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    background: var(--card-bg);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: relative;
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(55, 125, 181, 0.1);
    border-left: 4px solid var(--primary-light);
}

.result-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.result-favicon {
    width: 24px;
    height: 24px;
    background: var(--border);
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
}

.result-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0;
    flex: 1;
}

.result-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.result-title a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.result-url {
    color: var(--primary-light);
    font-size: 15px;
    margin-bottom: 15px;
    display: block;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-preview {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 20px;
    position: relative;
}

.highlight {
    background: rgba(255, 212, 59, 0.3);
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 500;
}

.result-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.result-tag {
    background: rgba(55, 125, 181, 0.1);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.result-type {
    background: rgba(46, 204, 113, 0.1);
    color: #1a7d4e;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.result-company {
    background: rgba(155, 89, 182, 0.1);
    color: #8e44ad;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover, .page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 关联词区域样式 */
.related-keywords-section {
    max-width: 1000px;
    margin: 0 auto 40px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    animation: fadeIn 0.8s ease-out;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #377db5;
}

.section-title {
    font-size: 20px;
    color: #2a6090;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    gap: 10px;
}

.section-title i {
    color: #377db5;
    font-size: 22px;
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.keyword-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 15px;
}

.keyword-item {
    flex: 1;
    min-width: 0;
    background: rgba(55, 125, 181, 0.08);
    border-radius: 8px;
    padding: 12px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(55, 125, 181, 0.15);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.keyword-item:hover {
    background: rgba(55, 125, 181, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(55, 125, 181, 0.1);
}

.keyword-item.highlight {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: #1a7d4e;
}

.keyword-item.highlight:hover {
    background: rgba(46, 204, 113, 0.15);
}

.keyword-item.hot::after {
    content: "HOT";
    position: absolute;
    top: -8px;
    right: -20px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 12px 5px 2px;
    transform: rotate(45deg);
    width: 40px;
    text-align: center;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .keyword-row {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .keyword-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .keyword-item {
        flex: 0 0 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* 加载状态 */
.loading-results {
    text-align: center;
    padding: 40px;
}

.loading-results i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.no-results i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--border);
}

#dictBox,#tmsImgs{display: none;}

/* AI区域 */
.ai-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.ai-icon {
    width: 40px;
    height: 40px;
    background: rgba(46, 204, 113, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 18px;
}

.ai-title {
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
}

.ai-response {
    background: rgba(55, 125, 181, 0.03);
    padding: 20px;
    border-radius: 10px;
    line-height: 1.7;
    border-left: 3px solid var(--accent);
}

.ai-highlight {
    background: rgba(46, 204, 113, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text);
    font-weight: 500;
}

/* 词云模块整体样式 */
.wordcloud-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    border-top: 4px solid #5a9dd3;
}

.wordcloud-section .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.wordcloud-section .section-header i {
    font-size: 24px;
    color: #5a9dd3;
}

.wordcloud-section .section-header h3 {
    font-size: 20px;
    color: #2a6090;
    font-weight: 600;
    margin: 0;
}

/* 词云容器布局 */
.wordcloud-container {
    gap: 20px;
}

.wordcloud-column {
    margin-bottom: 20px;
    min-width: 0;
    background: rgba(55, 125, 181, 0.03);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

/* 词云标题 */
.wordcloud-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    color: #2a6090;
    font-weight: 600;
}

.wordcloud-title i {
    color: #5a9dd3;
    font-size: 18px;
}

/* 词云内容 */
.wordcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    min-height: 200px;
    align-content: flex-start;
}

.wordcloud-item {
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.wordcloud-item.company {
    background: rgba(55, 125, 181, 0.1);
    color: #2a6090;
    border: 1px solid rgba(55, 125, 181, 0.2);
}

.wordcloud-item.model {
    background: rgba(46, 204, 113, 0.1);
    color: #1a7d4e;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.wordcloud-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* 词云尺寸 - 根据词频设置不同大小 */
.wordcloud .size-1 { font-size: 14px; padding: 6px 12px; }
.wordcloud .size-2 { font-size: 16px; padding: 7px 14px; }
.wordcloud .size-3 { font-size: 18px; padding: 8px 16px; font-weight: 500; }
.wordcloud .size-4 { font-size: 20px; padding: 9px 18px; font-weight: 500; }
.wordcloud .size-5 { font-size: 22px; padding: 10px 20px; font-weight: 600; }

/* 九宫格广告区域 */
.ad-section{
    padding-bottom: 20px;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ad-item {
    background: #f1f5f9;
    border-radius: 8px;
    aspect-ratio: 1/1; /* 保持正方形 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px dashed #cbd5e1;
}

.ad-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #94a3b8;
}

.ad-item.size-2 {
    grid-column: span 2; /* 横跨两列 */
    aspect-ratio: 2/1;  /* 宽高比 2:1 */
}

.ad-placeholder {
    color: #94a3b8;
    text-align: center;
    padding: 15px;
    font-size: 14px;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ad-item:hover .ad-image {
    transform: scale(1.05);
}

.ad-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 12px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.ad-item:hover .ad-label {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .wordcloud-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .wordcloud {
        min-height: 150px;
    }
    
    .wordcloud-item {
        padding: 6px 12px;
    }
    
    .size-1 { font-size: 12px; }
    .size-2 { font-size: 14px; }
    .size-3 { font-size: 16px; }
    .size-4 { font-size: 18px; }
    .size-5 { font-size: 20px; }

    .ad-section { width: 100%; }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }
    
    .ai-column, .ads-column {
        width: 100%;
    }
    
    .ai-column {
        display: flex;
        gap: 20px;
    }
    
    .ai-container {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .search-title {
        font-size: 1.8rem;
    }
    
    .ai-column {
        flex-direction: column;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}