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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #007bff;
    margin: 15px auto;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
    position: relative;
}
.logo img{
    position: absolute;
    display:block;
    width:auto;
    height:62px;
    left:0;top:-33px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

.nav-links a.active {
    color: #007bff;
    font-weight: bold;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1920x1080') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: #0056b3;
}

/* 项目展示样式 */
.projects {
    background: #f8f9fa;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    padding: 20px 20px 0;
}

.project-card p {
    padding: 10px 20px 20px;
}

/* 服务样式 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #007bff;
}

/* AI经验样式 */
.ai-experience {
    background: linear-gradient(rgba(0, 123, 255, 0.9), rgba(0, 123, 255, 0.9)), url('https://via.placeholder.com/1920x1080') no-repeat center center/cover;
    color: white;
    text-align: center;
}

.ai-experience .section-title::after {
    background: white;
}

.experience-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

/* 题库样式 */
.question-bank {
    text-align: center;
}

.question-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

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

.stat h3 {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 10px;
}

.question-bank-link {
    margin-top: 30px;
}

/* 题库专题样式 */
.question-bank-detail {
    padding-top: 100px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
}

#search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

#search-button {
    padding: 12px 25px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#search-button:hover {
    background: #0056b3;
}

.question-content-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.category-navigation {
    flex: 1;
    max-width: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

.category-navigation h2,
.question-area h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.category-section {
    margin-bottom: 30px;
}

.category-section h3 {
    margin-bottom: 15px;
    color: #007bff;
    font-size: 1.3rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.category-list li a {
    text-decoration: none;
    color: #333;
    display: block;
    transition: color 0.3s;
}

.category-list li a:hover {
    color: #007bff;
}

.category-list li a.active {
    color: #007bff;
    font-weight: bold;
}

.category-list .sub-category {
    padding-left: 20px;
    display: none;
}

.category-list .sub-category.active {
    display: block;
}

.question-area {
    flex: 2;
}

.question-list .question-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.question-item h3 {
    margin-bottom: 15px;
    color: #007bff;
}

.question-meta {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.question-category {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.question-date {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.options {
    list-style: upper-alpha;
    padding-left: 20px;
    margin-bottom: 30px;
}

.options li {
    margin-bottom: 8px;
}

/* 联系方式样式 */
.contact {
    text-align: center;
    background: #f8f9fa;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}
.footer a{
    color:inherit;
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-in {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in.appear {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.appear {
    opacity: 1;
    transform: translateX(0);
}
.category-list .on a{
    color:#007bff;font-weight: bold;
}

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

    .nav-links {
        margin-top: 20px;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .question-content-wrapper {
        flex-direction: column;
    }

    .category-navigation {
        max-width: 100%;
    }

    .question-meta {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 15px;
        justify-content: flex-end;
    }
}
