/**
 * 365关键词查询系统 - 科技感样式
 * 安徽谷创信息科技有限公司
 * 企业色: #0071e3
 */

:root {
    --primary: #0071e3;
    --primary-dark: #0051a8;
    --primary-light: #4d9fff;
    --bg-dark: #0a0f1a;
    --bg-card: rgba(20, 30, 48, 0.85);
    --text-light: #ffffff;
    --text-muted: #8899aa;
    --border-color: rgba(0, 113, 227, 0.3);
    --success: #00d26a;
    --warning: #ffc107;
    --danger: #ff4757;
    --glow: 0 0 20px rgba(0, 113, 227, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

/* 科技感背景 */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 113, 227, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 113, 227, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0f1a 0%, #141e30 100%);
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 113, 227, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 113, 227, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.header {
    background: rgba(10, 15, 26, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 113, 227, 0.5));
}

.brand h1 {
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-light);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* 主内容 */
.main-content {
    padding: 40px 0;
}

/* 搜索区域 */
.search-section {
    margin-bottom: 40px;
}

.search-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--glow);
}

.search-box h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.search-input-wrapper {
    display: flex;
    max-width: 700px;
    margin: 0 auto 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

#keywordInput {
    flex: 1;
    padding: 18px 25px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    outline: none;
}

#keywordInput::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 18px 35px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 0 25px rgba(0, 113, 227, 0.6);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 热门标签 */
.hot-keywords {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hot-keywords .label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 15px;
    background: rgba(0, 113, 227, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-light);
    cursor: pointer;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* 结果区域 */
.results-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.result-header h3 {
    font-size: 1.4rem;
}

.result-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 竞争卡片 */
.competition-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.engine-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.engine-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.engine-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.engine-name {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.score-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    position: relative;
}

.score-ring svg {
    transform: rotate(-90deg);
}

.score-ring circle {
    fill: none;
    stroke-width: 6;
}

.score-ring .bg {
    stroke: rgba(255,255,255,0.1);
}

.score-ring .progress {
    stroke: var(--primary);
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
    font-weight: bold;
}

.engine-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.engine-stats p {
    margin: 5px 0;
}

.difficulty-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-top: 10px;
}

.difficulty-badge.easy {
    background: rgba(0, 210, 106, 0.2);
    color: var(--success);
}

.difficulty-badge.medium {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

.difficulty-badge.hard {
    background: rgba(255, 71, 87, 0.2);
    color: var(--danger);
}

/* 综合评估 */
.overall-assessment {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.assessment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.assessment-level {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
}

.assessment-level.easy {
    background: linear-gradient(135deg, var(--success), #00a854);
    color: white;
}

.assessment-level.medium {
    background: linear-gradient(135deg, var(--warning), #e6ac00);
    color: #333;
}

.assessment-level.hard {
    background: linear-gradient(135deg, var(--danger), #c23616);
    color: white;
}

.assessment-stats {
    display: flex;
    gap: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.assessment-suggestion {
    color: var(--text-light);
    line-height: 1.8;
}

/* 推荐关键词 */
.recommendations-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.recommendations-section h3 {
    margin-bottom: 10px;
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.rec-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.rec-card:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: -5px 0 15px rgba(0, 113, 227, 0.3);
}

.rec-keyword {
    font-size: 1.1rem;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.rec-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.rec-reason {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.level-tag {
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.level-tag.low {
    background: rgba(0, 210, 106, 0.2);
    color: var(--success);
}

.level-tag.medium {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

.level-tag.high {
    background: rgba(255, 71, 87, 0.2);
    color: var(--danger);
}

/* 功能特点 */
.features-section {
    margin-top: 50px;
}

.features-section h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h4 {
    color: var(--primary-light);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.copyright {
    margin-top: 10px;
    font-size: 0.8rem !important;
}

.footer-links h4 {
    color: var(--primary-light);
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .nav-menu {
        gap: 15px;
    }

    .search-box {
        padding: 25px 20px;
    }

    .search-box h2 {
        font-size: 1.4rem;
    }

    .search-input-wrapper {
        flex-direction: column;
        border-radius: 15px;
    }

    #keywordInput {
        padding: 15px 20px;
        text-align: center;
    }

    .search-btn {
        padding: 15px;
        border-radius: 0 0 13px 13px;
    }

    .hot-keywords {
        flex-direction: column;
    }

    .competition-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .competition-cards {
        grid-template-columns: 1fr;
    }

    .brand h1 {
        font-size: 1.1rem;
    }
}

/* ========== 关于我们页面样式 ========== */

.page-hero {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 30px;
}

.page-hero h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 公司介绍卡片 */
.about-section {
    margin-bottom: 40px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
}

.about-card .card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.about-card p {
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 15px;
    text-indent: 2em;
}

.about-card p strong {
    color: var(--primary-light);
}

/* 核心业务 */
.services-section {
    margin-bottom: 40px;
}

.services-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow);
    border-color: var(--primary);
}

.service-card .service-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: block;
}

.service-card h4 {
    color: var(--primary-light);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* 企业理念 */
.values-section {
    margin-bottom: 40px;
}

.values-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.values-content {
    flex: 2;
    min-width: 300px;
}

.values-content h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-light);
}

.value-item {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(0, 113, 227, 0.1);
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
}

.value-label {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.value-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.slogan {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.2), rgba(0, 113, 227, 0.05));
    border-radius: 15px;
    text-align: center;
}

.slogan span {
    font-size: 1.3rem;
    color: var(--primary-light);
    font-weight: bold;
}

.values-stats {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-light);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 合作邀请 */
.cta-section {
    margin-bottom: 40px;
}

.cta-card {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.3), rgba(0, 113, 227, 0.1));
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: var(--glow);
}

.cta-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.4);
}

/* 关于页面响应式 */
@media (max-width: 768px) {
    .page-hero h2 {
        font-size: 1.6rem;
    }

    .about-card {
        padding: 25px;
    }

    .values-card {
        padding: 25px;
        flex-direction: column;
    }

    .values-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-item {
        min-width: 100px;
    }

    .cta-card {
        padding: 30px 20px;
    }

    .cta-card h3 {
        font-size: 1.4rem;
    }
}

/* ========== 查询历史页面样式 ========== */

.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
}

.stat-card .stat-num {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-light);
}

.stat-card .stat-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 筛选区域 */
.history-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
}

.filter-left {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

.filter-select:focus {
    border-color: var(--primary);
}

.filter-select option {
    background: var(--bg-dark);
}

.filter-input {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    outline: none;
    min-width: 250px;
    transition: border-color 0.3s;
}

.filter-input:focus {
    border-color: var(--primary);
}

.filter-input::placeholder {
    color: var(--text-muted);
}

/* 历史表格 */
.history-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
}

.history-table-wrapper {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.history-table th {
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary-light);
    font-weight: 600;
    white-space: nowrap;
}

.history-table tr:hover {
    background: rgba(0, 113, 227, 0.05);
}

.history-table tr:last-child td {
    border-bottom: none;
}

.keyword-text {
    color: var(--text-light);
    font-weight: 500;
}

.industry-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.industry-tag.agri {
    background: rgba(0, 210, 106, 0.2);
    color: var(--success);
}

.industry-tag.build {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

.industry-tag.manu {
    background: rgba(0, 113, 227, 0.2);
    color: var(--primary-light);
}

.industry-tag.user {
    background: rgba(156, 39, 176, 0.2);
    color: #ce93d8;
}

.industry-tag.other {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.count-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 113, 227, 0.15);
    border-radius: 10px;
    color: var(--primary-light);
    font-size: 0.85rem;
}

.action-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.4);
}

.history-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

/* 历史页面响应式 */
@media (max-width: 768px) {
    .history-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-left {
        width: 100%;
    }

    .filter-select {
        flex: 1;
    }

    .filter-input {
        min-width: auto;
        width: 100%;
    }

    .history-table th,
    .history-table td {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-card .stat-num {
        font-size: 1.5rem;
    }
}

