/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90E2;
    --secondary-color: #50E3C2;
    --accent-color: #FFD700; /* 金色作为强调色 */
    --text-color: #333;
    --light-gray: #f5f5f5;
    --container-width: 1200px;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: transparent;
    box-shadow: none;
    position: absolute;
    width: 100%;
    top: 30px;
    z-index: 1000;
    padding: 0 60px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

.logo {
    font-size: 28px;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    display: inline-block;
    color: #FFD700; /* 使用金色 */
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.2),
        0 0 10px rgba(255,255,255,0.3); /* 添加光晕效果 */
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo:hover {
    color: #FFFFFF;
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.2),
        0 0 20px rgba(255,215,0,0.5); /* 悬停时增强光晕效果 */
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 8px 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    padding: 8px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.nav-links .login-btn {
    background: rgba(74, 144, 226, 0.1);
    color: #333;
}

.nav-links .register-btn {
    background: linear-gradient(45deg, var(--accent-color), #FFA500);
    color: #2C3E50;
    border: none;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.nav-links .login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.nav-links .register-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    background: linear-gradient(45deg, #FFA500, var(--accent-color));
}

/* 轮播图样式 */
.hero-slider {
    margin-top: 0;
    height: 35vh;
    min-height: 250px;
    max-height: 300px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.swiper-wrapper {
    height: 100%;
}

.swiper-slide {
    width: 100% !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(2.5px) brightness(0.9);
    transform: scale(1.02); /* 减小缩放比例，让图片更清晰 */
    z-index: 1;
    transition: all 0.5s ease;
}

.swiper-slide[data-theme="ai-tools"]::before {
    background-image: url('../images/ai-tools-bg.jpg');
}

.swiper-slide[data-theme="ai-tutorial"]::before {
    background-image: url('../images/ai-tutorial-bg.jpg');
    background-position: center 60%; /* 从40%调整到60%，使图片更往下移动 */
    filter: blur(2px) brightness(0.92); /* 稍微减小模糊度到2px使图片更清晰 */
}

.swiper-slide[data-theme="pc-apps"]::before {
    background-image: url('../images/pc-apps-bg.jpg');
}

.swiper-slide[data-theme="smart-products"]::before {
    background-image: url('../images/smart-products-bg.jpg');
}

.swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(74, 144, 226, 0.6), 
        rgba(80, 227, 194, 0.4),
        rgba(255, 215, 0, 0.2)
    ); /* 稍微降低渐变透明度，让背景更清晰 */
    z-index: 2;
}

.slide-content {
    width: 100%;
    text-align: center;
    color: white;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.slide-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background: linear-gradient(120deg, #FFFFFF, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.slide-subtitle {
    font-size: 22px;
    opacity: 0.95;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    color: #F0F8FF; /* 使用爱丽丝蓝，比纯白色柔和 */
}

.slide-button {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(45deg, var(--accent-color), #FFA500);
    color: #2C3E50; /* 深蓝灰色文字 */
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.slide-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    background: linear-gradient(45deg, #FFA500, var(--accent-color));
}

/* 轮播图导航按钮样式 */
.swiper-button-next,
.swiper-button-prev {
    width: 60px !important;
    height: 60px !important;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 32px !important;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: white;
}

/* 添加渐变过渡区域 */
.transition-section {
    height: 120px;
    background: linear-gradient(180deg, 
        rgba(74, 144, 226, 0.15) 0%,
        rgba(255, 255, 255, 0.95) 60%,
        rgba(255, 255, 255, 0.98) 100%
    );
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

/* 六大场景样式优化 */
.scenarios {
    padding: 30px 0 40px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.98) 0%,
        rgba(240, 248, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.98) 100%
    );
    position: relative;
    margin-top: -30px;
}

.scenarios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('../images/pattern-bg.png') center/cover;
    opacity: 0.04;
    pointer-events: none;
}

.scenarios .section-title {
    text-align: center;
    margin-bottom: 35px;
    padding: 0;
    font-size: 32px;
    font-weight: 600;
    position: relative;
    color: transparent;
    background: linear-gradient(120deg, 
        #4A90E2 20%,
        #50E3C2 50%,
        #FFD700 80%
    );
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
    letter-spacing: 1px;
}

.scenarios .container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.scenario-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.scenario-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.1),
        rgba(80, 227, 194, 0.1)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.scenario-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.2);
}

.scenario-item:hover::before {
    opacity: 1;
}

.scenario-item i {
    font-size: 3em;
    color: transparent;
    background: linear-gradient(120deg, #4A90E2, #50E3C2);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    position: relative;
}

.scenario-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

.scenario-item h3 {
    font-size: 24px;
    margin: 15px 0;
    color: #555;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.scenario-item:hover h3 {
    color: #000;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.scenario-item p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    position: relative;
}

/* 文件处理工具样式 */
.file-tools {
    padding: 30px 0 50px;
    background: linear-gradient(180deg,
        rgba(240, 248, 255, 0.9) 0%,
        rgba(245, 250, 255, 0.95) 30%,
        rgba(230, 240, 255, 0.8) 70%,
        rgba(240, 248, 255, 0.9) 100%
    );
    margin-top: -20px;
    position: relative;
    z-index: 5;
}

.file-tools h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    background: linear-gradient(120deg, #4A90E2 20%, #50E3C2 50%, #FFD700 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    position: relative;
    padding: 10px 0;
    letter-spacing: 1px;
}

.file-tools h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #4A90E2, #50E3C2);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.tool-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.2);
}

.tool-card i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.tool-card:hover i {
    transform: scale(1.1);
}

.tool-card h3 {
    font-size: 20px;
    margin: 15px 0;
    color: var(--text-color);
}

.tool-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.tool-features {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
}

.feature-tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: rgba(74, 144, 226, 0.15);
    color: #4A90E2;
    border-radius: 15px;
    margin: 4px 2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

.tool-card:hover .feature-tag {
    background-color: #4A90E2;
    color: #ffffff;
    transform: translateY(-1px);
}

/* 搜索框样式优化 */
.search-section {
    padding: 60px 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(240, 248, 255, 0.95) 100%
    );
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('../images/pattern-bg.png') center/cover;
    opacity: 0.03;
    pointer-events: none;
}

.search-box {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 20px 20px !important;
    height: 60px !important;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    line-height: 20px;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 4px 25px rgba(74, 144, 226, 0.2);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: linear-gradient(45deg, #4A90E2, #50E3C2);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 50px !important;
}

.search-box button:hover {
    background: linear-gradient(45deg, #3A80D2, #40D3B2);
    transform: translateY(-1px);
}

.search-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.search-tags span {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.search-tags span:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

/* AI Agent 部分样式 */
.ai-agent {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf5 100%);
}

.agent-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(45deg, #2196F3, #00BCD4, #3F51B5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.agent-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.15);
}

.agent-card i {
    font-size: 48px;
    color: #2196F3;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.agent-card:hover i {
    transform: scale(1.1);
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.agent-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.agent-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* AI Agent 响应式布局 */
@media (max-width: 1200px) {
    .agent-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .agent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .agent-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .agent-grid {
        grid-template-columns: 1fr;
    }
    
    .agent-title {
        font-size: 32px;
    }
}

/* 页脚样式优化 */
footer {
    background: linear-gradient(180deg, #2C3E50, #1A252F);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('../images/pattern-bg.png') center/cover;
    opacity: 0.05;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.footer-section {
    padding: 0 15px;
}

.footer-section h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 15px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 15px;
    line-height: 1.5;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
}

.footer-info p {
    margin: 0;
    line-height: 1.6;
}

.icp-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.police-badge {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.icp-info a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-info a:hover {
    color: var(--accent-color);
}

/* 响应式优化 */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .search-section {
        padding: 40px 0;
    }

    .search-box {
        max-width: 100%;
        padding: 0 30px;
    }

    .search-box input {
        padding: 15px 20px;
    }

    .search-box button {
        padding: 15px 30px;
    }

    .agent-interface {
        padding: 15px;
        margin: 15px auto;
        width: 98%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .footer-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-info p {
        font-size: 13px;
    }

    .footer-section {
        padding: 0 10px;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul li a {
        font-size: 14px;
    }

    .navbar {
        padding: 0 30px;
    }
}

@media (max-width: 480px) {
    .search-box {
        flex-direction: column;
    }

    .search-box input {
        border-radius: 30px;
        margin-bottom: 10px;
    }

    .search-box button {
        border-radius: 30px;
        width: 100%;
    }

    .search-tags {
        gap: 10px;
    }

    .search-tags span {
        padding: 6px 15px;
        font-size: 13px;
    }

    .agent-interface {
        padding: 10px;
        margin: 10px auto;
        width: 100%;
    }

    .navbar {
        padding: 0 20px;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .scenarios .container {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 50vh;
        min-height: 300px;
    }

    .scenarios .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }

    .tool-card {
        padding: 20px;
    }
    
    .slide-title {
        font-size: 36px;
    }
    
    .slide-subtitle {
        font-size: 20px;
    }
    
    .slide-button {
        padding: 10px 28px;
        font-size: 16px;
    }

    .navbar {
        padding: 0 30px;
    }

    .logo {
        font-size: 24px;
        padding: 8px 20px;
    }

    .nav-links {
        padding: 6px 12px;
    }

    .nav-links a {
        padding: 6px 16px;
        font-size: 15px;
    }

    .transition-section {
        height: 80px;
        margin-top: -25px;
    }

    .scenarios {
        margin-top: -25px;
    }

    .file-tools {
        padding: 15px 0 40px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }

    .scenario-item {
        min-height: 180px;
        padding: 25px 15px;
    }

    .scenario-item h3 {
        font-size: 20px;
    }

    .scenario-item p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 40vh;
        min-height: 250px;
    }

    .scenarios .container {
        grid-template-columns: repeat(1, 1fr);
        padding: 0 15px;
    }
    
    .scenario-item {
        min-height: 160px;
    }
    
    .navbar {
        padding: 0 20px;
    }

    .logo {
        font-size: 22px;
        padding: 6px 15px;
    }

    .nav-links {
        padding: 4px 10px;
    }
    
    .slide-title {
        font-size: 28px;
    }
    
    .slide-subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .slide-button {
        padding: 8px 24px;
        font-size: 15px;
    }

    .transition-section {
        height: 60px;
        margin-top: -20px;
    }

    .scenarios {
        margin-top: -20px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}

.contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.contact-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.contact-item:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .contact-info {
        justify-content: center;
    }
    
    .contact-item {
        font-size: 14px;
    }
}

/* Word处理功能弹出界面样式 */
.word-processing-modal,
.excel-processing-modal,
.ppt-processing-modal,
.pdf-processing-modal,
.audio-processing-modal,
.video-processing-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(120deg, 
        rgba(245, 250, 255, 0.97) 0%,
        rgba(240, 248, 255, 0.95) 50%,
        rgba(230, 240, 255, 0.97) 100%
    );
    z-index: 1000;
    overflow: hidden;
}

/* 为每个模态框添加独特的背景色调 */
.word-processing-modal {
    background: linear-gradient(120deg, 
        rgba(235, 245, 255, 0.97) 0%,
        rgba(225, 240, 255, 0.95) 50%,
        rgba(215, 235, 255, 0.97) 100%
    );
}

.excel-processing-modal {
    background: linear-gradient(120deg, 
        rgba(235, 255, 245, 0.97) 0%,
        rgba(225, 250, 240, 0.95) 50%,
        rgba(215, 245, 235, 0.97) 100%
    );
}

.ppt-processing-modal {
    background: linear-gradient(120deg, 
        rgba(255, 245, 235, 0.97) 0%,
        rgba(255, 240, 225, 0.95) 50%,
        rgba(250, 235, 220, 0.97) 100%
    );
}

.pdf-processing-modal {
    background: linear-gradient(120deg, 
        rgba(255, 235, 235, 0.97) 0%,
        rgba(250, 230, 230, 0.95) 50%,
        rgba(245, 225, 225, 0.97) 100%
    );
}

.audio-processing-modal {
    background: linear-gradient(120deg, 
        rgba(240, 240, 255, 0.97) 0%,
        rgba(235, 235, 250, 0.95) 50%,
        rgba(230, 230, 245, 0.97) 100%
    );
}

.video-processing-modal {
    background: linear-gradient(120deg, 
        rgba(235, 245, 255, 0.97) 0%,
        rgba(230, 240, 250, 0.95) 50%,
        rgba(225, 235, 245, 0.97) 100%
    );
}

.word-processing-content,
.excel-processing-content,
.ppt-processing-content,
.pdf-processing-content,
.audio-processing-content,
.video-processing-content {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
}

/* 标题样式 */
.word-processing-header h2,
.excel-processing-header h2,
.ppt-processing-header h2,
.pdf-processing-header h2,
.audio-processing-header h2,
.video-processing-header h2 {
    font-size: 32px;
    color: #333;
    margin: 0 0 25px 0;
    padding-left: 20px;
    background: linear-gradient(45deg, #2196F3, #00BCD4, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* 上传区域样式 */
.upload-area {
    max-width: 2000px;
    margin: 40px auto 50px;
    padding: 40px;
    border: 2px dashed #ccc;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.upload-area:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.upload-area i {
    font-size: 56px;
    color: #007bff;
    margin: 0 0 0 100px;
    flex-shrink: 0;
}

/* 音频和视频处理模态框的图标样式调整，减小宽度避免挤压文字 */
#audioProcessingModal .upload-area i {
    font-size: 42px;
    width: 60px;
    text-align: center;
    display: inline-block;
    transform: scaleX(1) scale(1);
    transform-origin: center;
    margin-left: -40px;
}

#videoProcessingModal .upload-area i {
    font-size: 42px;
    width: 60px;
    text-align: center;
    display: inline-block;
    transform: scaleX(1) scale(1);
    transform-origin: center;
    margin-left: -40px;
}

/* 选择文件按钮位置调整 */
#wordProcessingModal .select-file-btn,
#excelProcessingModal .select-file-btn,
#pptProcessingModal .select-file-btn,
#pdfProcessingModal .select-file-btn,
#audioProcessingModal .select-file-btn,
#videoProcessingModal .select-file-btn {
    margin-left: -20px; /* 向左移动 */
}

.select-file-btn {
    padding: 12px 36px;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.select-file-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.upload-text {
    text-align: center;
    flex-grow: 1;
    margin-left: -50px;
}

.upload-text h3 {
    font-size: 26px;
    color: #333;
    margin-bottom: 12px;
}

.upload-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* 关闭按钮样式调整 */
.close-modal {
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 36px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.close-modal:hover {
    transform: rotate(90deg);
    color: #ffffff;
    background: #c0392b;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.5);
}

@media (max-width: 992px) {
    .upload-area {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }

    .upload-text {
        text-align: center;
    }

    .close-modal {
        top: 20px;
        right: 20px;
        font-size: 32px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 576px) {
    .close-modal {
        top: 15px;
        right: 15px;
        font-size: 28px;
        width: 40px;
        height: 40px;
    }
}

/* 功能网格布局 */
.excel-features-grid,
.pdf-features-grid,
.audio-features-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: 1fr;
    gap: 20px;
    padding: 10px 20px;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
    overflow-x: auto;
}

/* 修复PPT模态框布局，确保所有项在一行 */
.ppt-features-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* 增加到8列以确保所有项目在一行 */
    grid-template-rows: 1fr;
    gap: 20px;
    padding: 10px 20px;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
    overflow-x: auto;
}

/* 视频处理工具居中显示 */
.video-features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 调整为6列以适应6个工具 */
    grid-template-rows: 1fr;
    gap: 20px;
    padding: 10px 20px;
    max-width: 1200px; /* 增加最大宽度以容纳6个工具 */
    margin: 0 auto;
    flex: 1;
    overflow-x: auto;
    justify-content: center;
}

.word-features-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    padding: 10px 20px;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
    overflow: visible;
}

/* 各处理模态框中的上传图标特殊样式 */
#wordProcessingModal .upload-area i {
    font-size: 56px;
    width: 112px;
    text-align: center;
    display: inline-block;
    transform: scaleX(1.5) scale(1.2);
    transform-origin: center;
    margin-left: -30px;
}

#excelProcessingModal .upload-area i {
    font-size: 56px;
    width: 112px;
    text-align: center;
    display: inline-block;
    transform: scaleX(1.5) scale(1.2);
    transform-origin: center;
    margin-left: -30px;
}

#pptProcessingModal .upload-area i {
    font-size: 56px;
    width: 112px;
    text-align: center;
    display: inline-block;
    transform: scaleX(1.5) scale(1.2);
    transform-origin: center;
    margin-left: -30px;
}

#pdfProcessingModal .upload-area i {
    font-size: 56px;
    width: 112px;
    text-align: center;
    display: inline-block;
    transform: scaleX(1.5) scale(1.2);
    transform-origin: center;
    margin-left: -30px;
}

/* 功能项样式 */
.excel-feature-item,
.ppt-feature-item,
.pdf-feature-item,
.audio-feature-item,
.video-feature-item {
    background: #fff;
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.word-feature-item {
    background: #fff;
    border-radius: 15px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
}

.excel-feature-item:hover,
.ppt-feature-item:hover,
.pdf-feature-item:hover,
.audio-feature-item:hover,
.video-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #007bff;
    background-color: rgba(74, 144, 226, 0.1);
}

.word-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #007bff;
    background-color: rgba(74, 144, 226, 0.1);
}

.excel-feature-item i,
.ppt-feature-item i,
.pdf-feature-item i,
.audio-feature-item i,
.video-feature-item i {
    font-size: 32px;
    color: #007bff;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.word-feature-item i {
    font-size: 32px;
    color: #007bff;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.excel-feature-item:hover i,
.ppt-feature-item:hover i,
.pdf-feature-item:hover i,
.audio-feature-item:hover i,
.video-feature-item:hover i {
    transform: scale(1.1);
    color: #ffffff;
    background-color: #4A90E2;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
}

.word-feature-item:hover i {
    transform: scale(1.1);
    color: #ffffff;
    background-color: #4A90E2;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
}

.excel-feature-item h4,
.ppt-feature-item h4,
.pdf-feature-item h4,
.audio-feature-item h4,
.video-feature-item h4 {
    font-size: 18px;
    color: #333;
    margin: 0 0 8px 0;
}

.word-feature-item h4 {
    font-size: 18px;
    color: #333;
    margin: 0 0 8px 0;
}

.excel-feature-item p,
.ppt-feature-item p,
.pdf-feature-item p,
.audio-feature-item p,
.video-feature-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.word-feature-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* 响应式布局 */
@media (max-width: 1400px) {
    .excel-features-grid,
    .pdf-features-grid,
    .audio-features-grid {
        grid-template-columns: repeat(7, 1fr);
        max-width: 1200px;
        gap: 15px;
    }
    
    .ppt-features-grid {
        grid-template-columns: repeat(8, 1fr);
        max-width: 1200px;
        gap: 15px;
    }
    
    .video-features-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1000px;
        gap: 15px;
    }
    
    .word-features-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1200px;
        gap: 15px;
    }
    
    .excel-feature-item,
    .ppt-feature-item,
    .pdf-feature-item,
    .audio-feature-item,
    .video-feature-item {
        min-height: 130px;
        padding: 15px 12px;
    }
    
    .word-feature-item {
        min-height: 130px;
        padding: 15px 12px;
    }
}

@media (max-width: 1200px) {
    .excel-features-grid,
    .pdf-features-grid,
    .audio-features-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 15px;
    }
    
    .ppt-features-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 15px;
    }
    
    .video-features-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
    }
    
    .word-features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .excel-features-grid,
    .pdf-features-grid,
    .audio-features-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 12px;
    }
    
    .ppt-features-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 12px;
    }
    
    .video-features-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
    
    .word-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .excel-features-grid,
    .pdf-features-grid,
    .audio-features-grid,
    .ppt-features-grid,
    .video-features-grid,
    .word-features-grid {
        grid-template-columns: 1fr;
    }
}

/* AI工具导航样式 */
.ai-tools-nav {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4ecfb 100%);
    position: relative;
    overflow: hidden;
}

.ai-tools-nav h2 {
    font-size: 36px;
    color: #2C3E50;
    font-weight: 700;
    text-align: center;
    width: fit-content;
    margin: 0 auto 40px;
    position: relative;
    z-index: 5;
}

.ai-tools-nav .tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
}

.ai-tools-nav .tool-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.1);
    cursor: pointer !important; /* 确保鼠标样式为可点击 */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px;
    width: 100%;
    user-select: none; /* 防止文本选择干扰点击 */
    z-index: 10; /* 确保卡片在上层 */
}

.ai-tools-nav .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(74, 144, 226, 0.5);
}

.ai-tools-nav .tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 5;
}

/* 移除最后一个卡片（排行榜）的特殊样式 */
.ai-tools-nav .tool-card:last-child {
    grid-column: auto;
    width: 100%;
}

.ai-tools-nav .tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.1),
        rgba(80, 227, 194, 0.1)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ai-tools-nav .tool-card:hover::before {
    opacity: 1;
}

.ai-tools-nav .tool-card i {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.ai-tools-nav .tool-card h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
    text-align: center;
}

.ai-tools-nav .tool-card p {
    font-size: 14px;
    margin: 0 0 15px 0;
    text-align: center;
    color: #666;
}

.ai-tools-nav .tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.ai-tools-nav .tool-features span {
    background: rgba(74, 144, 226, 0.1);
    padding: 6px 15px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 100px;
    text-align: center;
}

/* 响应式布局调整 */
@media (max-width: 1600px) {
    .ai-tools-nav .tools-grid {
        padding: 0 40px;
    }
    
    .ai-tools-nav .tool-card {
        padding: 35px 40px;
    }
}

@media (max-width: 1400px) {
    .ai-tools-nav .tools-grid {
        max-width: 100%;
        padding: 0 30px;
        gap: 25px;
    }
    
    .ai-tools-nav .tool-card {
        padding: 30px 35px;
    }
}

@media (max-width: 1200px) {
    .ai-tools-nav .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ai-tools-nav .tools-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .ai-tools-nav .tool-card {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .ai-tools-nav .tools-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .ai-tools-nav h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .ai-tools-nav .tool-card {
        padding: 15px;
    }
    
    .ai-tools-nav .tool-card i {
        font-size: 1.8em;
    }
    
    .ai-tools-nav .tool-features span {
        padding: 3px 10px;
        font-size: 12px;
    }
}

/* 放大特定数据集的图标 */
.tool-item img[src="images/logos/121.HuggingFace数据集.png"],
.tool-item img[src="images/logos/122.天池数据集.png"] {
    transform: scale(1.25);
    transition: transform 0.3s ease;
}

.tool-item:hover img[src="images/logos/121.HuggingFace数据集.png"],
.tool-item:hover img[src="images/logos/122.天池数据集.png"] {
    transform: scale(1.35);
}

/* 添加办公文件处理工具样式 */
.office-tools-container {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.office-tool-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.office-tool-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
    width: calc(33.333% - 20px);
    min-width: 300px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.office-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
}

.office-tool-card h3 {
    font-size: 1.5rem;
    margin: 15px 0;
    color: #555;
    transition: all 0.3s ease;
    position: relative;
}

.office-tool-card:hover h3 {
    color: #000;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.office-tool-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.tool-features {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
}

.feature-tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: rgba(74, 144, 226, 0.15);
    color: #4A90E2;
    border-radius: 15px;
    margin: 4px 2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

.feature-tag:hover {
    background-color: #4A90E2;
    color: #ffffff;
    transform: translateY(-1px);
}

/* 搜索区域样式 */
.search-section {
    background: #f8f9fa;
    padding: 40px 0;
    text-align: center;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 20px 20px !important;
    height: 60px !important;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    line-height: 20px;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 4px 25px rgba(74, 144, 226, 0.2);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: linear-gradient(45deg, #4A90E2, #50E3C2);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 50px !important;
}

.search-button:hover {
    background: linear-gradient(45deg, #3A80D2, #40D3B2);
    transform: translateY(-1px);
}

.search-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-block;
    padding: 6px 15px;
    background-color: rgba(74, 144, 226, 0.15);
    color: #4A90E2;
    border-radius: 20px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-tag:hover {
    background-color: #4A90E2;
    color: #ffffff;
    transform: translateY(-1px);
}

/* AI Agent 助手样式 */
.ai-agent-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    text-align: center;
}

.ai-agent-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #2C3E50;
    text-align: center;
}

.agent-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding: 0 20px;
}

.agent-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    width: 200px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.agent-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    object-fit: contain;
}

.agent-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.agent-card p {
    font-size: 14px;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .office-tool-card {
        width: calc(50% - 15px);
    }
    
    .agent-card {
        width: calc(33.333% - 20px);
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .office-tool-card {
        width: 100%;
    }
    
    .agent-card {
        width: calc(50% - 15px);
    }
    
    .search-button {
        position: relative;
        right: auto;
        top: auto;
        margin-top: 15px;
        width: 50%;
    }
    
    .search-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .search-input {
        border-radius: 15px;
    }
}

/* 添加文本颜色类 */
.text-primary {
    color: #4A90E2 !important;
}

.text-success {
    color: #42b983 !important;
}

.text-danger {
    color: #e74c3c !important;
}

.text-warning {
    color: #f39c12 !important;
}

.text-info {
    color: #3498db !important;
}

/* 添加垂直间距类 */
.mb-3 {
    margin-bottom: 15px;
}

/* 排行榜样式修复 */
.ranking-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #e0f7fa 0%, #bbdefb 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.ranking-section h2 {
    font-size: 32px;
    color: #2C3E50;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.ranking-section h2 span {
    color: #4A90E2;
}

.scrolling-background {
    display: flex;
    width: fit-content;
    animation: scrollBackground 60s linear infinite;
    margin: 0 auto;
    overflow: hidden;
}

@keyframes scrollBackground {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tool-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    margin: 0 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 10px;
    background: white;
    padding: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.tool-icon span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.tool-icon:hover {
    transform: translateY(-5px);
}

.ranking-link-section {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: #4A90E2;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.ranking-link-section:hover {
    background: #2175d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.4);
}

/* AI工具模态框样式 */
.tool-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tool-modal-content {
    width: 85%;
    max-width: 1200px;
    max-height: 85vh;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    transition: transform 0.3s ease;
    opacity: 1;
}

.tool-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tool-modal .close-modal:hover {
    transform: rotate(90deg);
    color: #e74c3c;
}

.tool-modal-header {
    margin-bottom: 25px;
    text-align: center;
}

.tool-modal-header h2 {
    font-size: 28px;
    color: #2C3E50;
    margin-bottom: 10px;
}

.tool-modal-description p {
    color: #7f8c8d;
    font-size: 16px;
}

.tool-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.tool-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-color: #4A90E2;
}

.tool-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.tool-item h4 {
    color: #2C3E50;
    font-size: 16px;
    margin: 0 0 5px 0;
}

.tool-item p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

.no-tools {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 工具模态框响应式调整 */
@media (max-width: 1200px) {
    .tool-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tool-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-modal-content {
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .tool-list {
        grid-template-columns: 1fr;
    }
    
    .tool-modal-header h2 {
        font-size: 24px;
    }
}

/* 额外修复样式 */
#datasetAiModal {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#datasetAiModal.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

/* 确保只有在JS调用显示时才显示模态框 */
.tool-modal {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.tool-modal.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

/* 修复z-index以确保叠加顺序正确 */
.tool-card {
    z-index: 10;
}

.tool-modal {
    z-index: 2000;
}

#datasetAiModal {
    z-index: 2100;
}

/* 模态框样式增强 */
.tool-modal {
  display: none; /* 默认隐藏 */
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.tool-modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* 特别处理数据集AI模态框 */
#datasetAiModal {
  display: none !important; /* 强制隐藏，防止自动显示 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#datasetAiModal.show,
#datasetAiModal[style*="display: flex"] {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.tool-modal-content {
  width: 85%;
  max-width: 1200px;
  background: white;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.tool-modal.show .tool-modal-content,
#datasetAiModal[style*="display: flex"] .tool-modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 30px;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease;
}

.close-modal:hover {
  transform: scale(1.1);
}

/* 保证工具卡片的可点击性 */
.tool-card {
  cursor: pointer;
  position: relative;
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 确保排行榜滚动效果 */
.ranking-section {
  position: relative;
  overflow: hidden;
  margin: 60px 0;
  padding: 40px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.scrolling-background {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 20px;
  animation: scrollBackground 60s linear infinite;
  width: 200%;
  position: relative;
}

@keyframes scrollBackground {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
} 