/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 导航栏 */
.navbar {
    background-color: #1a365d;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #f6ad55;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.9)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=professional%20football%20match%20analysis%20dashboard%20with%20data%20visualization&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background-color: #f6ad55;
    color: #1a365d;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #ed8936;
    transform: translateY(-2px);
}

/* 核心服务 */
.services {
    padding: 80px 0;
    background-color: white;
}

.services h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1a365d;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #1a365d;
}

/* 赛事分析 */
.matches {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.matches h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1a365d;
}

.match-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.match-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.league {
    font-weight: bold;
    color: #1a365d;
}

.date {
    color: #666;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 20px 0;
}

.team {
    text-align: center;
}

.team-name {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #1a365d;
}

.team-form {
    font-size: 0.9rem;
    color: #666;
}

.vs {
    font-weight: bold;
    font-size: 1.2rem;
    color: #f6ad55;
}

.match-analysis h5 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #1a365d;
}

.prediction {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.prediction .label {
    font-weight: bold;
    color: #666;
}

.prediction .result {
    font-weight: bold;
    color: #f6ad55;
    margin-left: 10px;
}

/* 预测模型 */
.predictions {
    padding: 80px 0;
    background-color: white;
}

.predictions h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1a365d;
}

.model-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.model-description h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1a365d;
}

.model-description ul {
    margin: 20px 0;
    padding-left: 20px;
}

.model-description li {
    margin-bottom: 10px;
}

.model-accuracy h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1a365d;
    text-align: center;
}

.accuracy-text {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
}

.accuracy-text span {
    font-weight: bold;
    color: #f6ad55;
    font-size: 1.2rem;
}

/* 数据分析 */
.data-analysis {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.data-analysis h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1a365d;
}

.data-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.data-category {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.data-category h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #1a365d;
    text-align: center;
}

.data-chart {
    height: 200px;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: white;
}

.about h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1a365d;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1a365d;
}

.about-features h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1a365d;
}

.about-features ul {
    padding-left: 20px;
}

.about-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.about-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f6ad55;
    font-weight: bold;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background-color: #1a365d;
    color: white;
}

.contact h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* 页脚 */
footer {
    background-color: #152a47;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.footer-links h5,
.footer-contact h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f6ad55;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
    }

    .nav-links li {
        margin-left: 0;
        margin-right: 20px;
        margin-bottom: 10px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .model-info,
    .about-content {
        grid-template-columns: 1fr;
    }

    .match-cards {
        grid-template-columns: 1fr;
    }

    .match-card {
        padding: 20px;
    }

    .team-name {
        font-size: 1rem;
    }

    .services,
    .matches,
    .predictions,
    .data-analysis,
    .about,
    .contact {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services h3,
    .matches h3,
    .predictions h3,
    .data-analysis h3,
    .about h3,
    .contact h3 {
        font-size: 1.5rem;
    }

    .match-teams {
        flex-direction: column;
        gap: 15px;
    }

    .vs {
        margin: 10px 0;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.match-card,
.data-category {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1a365d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f6ad55;
}