* {
    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);
}

/* 搜索区域 */
.search-container {
    max-width: 800px;
    margin: 80px auto 60px;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.search-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 18px 25px;
    border: none;
    border-radius: 50px;
    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: 12px 35px;
    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;
}

/* 热门关键词板块容器 */
.hot-keywords-section {
    max-width: 1000px;
    margin: 30px auto;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* 板块头部 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    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;
    gap: 10px;
}

.section-title i {
    color: #377db5;
    font-size: 22px;
}

/* 刷新按钮 */
.refresh-btn {
    background: rgba(55, 125, 181, 0.1);
    color: #377db5;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn:hover {
    background: rgba(55, 125, 181, 0.2);
}

/* 关键词容器 */
.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;
}

.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);
}

/* 响应式设计 */
@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;
    }
}

/* 主要内容区域 */
.main-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 50px;
    gap: 25px;
    position: relative;
    z-index: 5;
    display: none;
}

.results-column {
    flex: 1;
    min-width: 0;
}

.ai-column, .ads-column {
    width: 300px;
}

.section-title-main {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    font-weight: 600;
}

.section-title-main i {
    color: var(--primary);
}

/* 搜索结果列表 */
.results-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid var(--border);
}

.result-item {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    background: var(--card-bg);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 8px var(--shadow);
}

.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-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-title a {
    color: inherit;
    text-decoration: none;
}

.result-title a:hover {
    text-decoration: underline;
    color: var(--primary);
}

.result-url {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 12px;
    display: block;
    font-weight: 500;
}

.result-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 5px;
}

.result-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.result-model {
    background: rgba(46, 204, 113, 0.1);
    color: #1a7d4e;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.result-specs {
    background: rgba(243, 156, 18, 0.1);
    color: #b16e0a;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* 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;
}

/* 广告区域 */
.ads-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid var(--border);
    border-top: 4px solid var(--warning);
}

.ad-item {
    background: rgba(243, 156, 18, 0.03);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.ad-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
}

.ad-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-title i {
    color: var(--warning);
}

.ad-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.ad-link {
    display: inline-block;
    background: rgba(55, 125, 181, 0.1);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.ad-link:hover {
    background: rgba(55, 125, 181, 0.2);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* 加载动画 */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(55, 125, 181, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--primary);
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .main-container {
        flex-direction: column;
    }
    
    .ai-column, .ads-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .search-title {
        font-size: 2rem;
    }
    
    .search-subtitle {
        font-size: 1rem;
    }
    
    .suggestions-section {
        flex-direction: column;
    }
}

/* 页脚 */
.footer {
    padding: 40px 5%;
    text-align: center;
    margin-top: 50px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #2a6090;
    text-decoration: none;
    transition: all 0.3s ease;
}

.copyright {
    font-size: 14px;
    color: rgba(78, 77, 77, 0.6);
    margin-top: 20px;
}