/* 全局样式 */
:root {
    --primary-color: #000000;
    --secondary-color: #222222;
    --accent-color: #ff9f1a;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #111111;
    --border-color: #e9ecef;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --gray-color: #6c757d;
    --hover-transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f4f7f9;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--hover-transition);
}

a:hover {
    color: #0088cc;
}

.text-link {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--hover-transition);
}

.text-link:hover {
    color: #0088cc;
    text-decoration: underline;
}

ul, ol {
    list-style-position: inside;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--dark-color);
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--secondary-color);
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--hover-transition);
    border: none;
    outline: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

/* 粒子背景 */
.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* 头部导航 */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.logo h1 span {
    color: var(--primary-color);
    font-weight: 400;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--hover-transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

/* 英雄区 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(34, 34, 34, 0.8)), url('https://images.unsplash.com/photo-1473968512647-3e447244af8f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #f4f7f9, transparent);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 公告栏 */
.announcements {
    background-color: white;
    padding: 80px 0;
}

.announcement-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
    transition: var(--hover-transition);
    border: 1px solid var(--border-color);
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.announcement-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.announcement-header .date {
    font-size: 1rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

.announcement-body {
    padding: 30px;
}

.announcement-body p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.announcement-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.announcement-body ul li {
    margin-bottom: 10px;
}

.announcement-footer {
    text-align: right;
    font-weight: 600;
    color: var(--gray-color);
    margin-top: 30px;
}

/* 赛事信息 */
.competition {
    background-color: #f8f9fa;
}

.competition-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.info-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--hover-transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-card .icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    font-size: 30px;
    margin: 0 auto 20px;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
}

.info-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.competition-details {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.competition-details h3 {
    margin-top: 30px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.competition-details h3:first-child {
    margin-top: 0;
}

.competition-details p {
    line-height: 1.8;
}

.competition-details ul {
    margin: 20px 0;
    padding-left: 20px;
}

.competition-details ul li {
    margin-bottom: 15px;
}

/* 参赛报名 */
.registration {
    background-color: white;
}

.registration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.registration-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 30px;
}

.registration-info h3:first-child {
    margin-top: 0;
}

.registration-info p {
    margin-bottom: 10px;
}

.registration-info ol {
    margin: 20px 0;
    padding-left: 20px;
}

.registration-info ol li {
    margin-bottom: 10px;
}

.registration-form {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.registration-form h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--hover-transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2);
}

/* 赛事成绩 */
.results {
    background-color: #f8f9fa;
}

.results-tabs {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background-color: #f1f3f5;
    border-bottom: 1px solid #dee2e6;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--hover-transition);
    color: var(--gray-color);
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary-color);
    background-color: white;
    border-bottom: 3px solid var(--primary-color);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.coming-soon {
    text-align: center;
    padding: 50px 0;
    color: var(--gray-color);
    font-size: 1.2rem;
}

/* 联系我们 */
.contact {
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-item .icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-item .text h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* 页脚 */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-logo h2 span {
    color: var(--primary-color);
    font-weight: 400;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.link-group h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.link-group ul li {
    margin-bottom: 15px;
}

.link-group ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--hover-transition);
}

.link-group ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--hover-transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--hover-transition);
}

.footer-nav a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .registration-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .registration-info {
        order: 2;
    }
    
    .registration-form {
        order: 1;
    }
}

@media (max-width: 768px) {
    header .container {
        height: 70px;
    }
    
    nav ul li {
        margin-left: 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .competition-info {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .announcement-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 0 50%;
        text-align: center;
        padding: 10px;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .contact-item .icon {
        margin: 0 auto;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* 赛事成绩表格 */
.result-table-container {
    overflow-x: auto;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.result-table th,
.result-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.result-table th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 500;
}

.result-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.result-table tbody tr:last-child td {
    border-bottom: none;
}

.btn-view-data {
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--hover-transition);
}

.btn-view-data:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* 比赛数据弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    transition: transform 0.4s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: var(--hover-transition);
}

.modal-close:hover {
    color: var(--primary-color);
}

#modal-title {
    margin-top: 0;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.match-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.match-info p {
    margin: 8px 0;
}

.team-data-container {
    overflow-x: auto;
}

.team-data-table {
    width: 100%;
    border-collapse: collapse;
}

.team-data-table th,
.team-data-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.team-data-table th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 500;
}

.team-data-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.team-data-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.member-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #e9ecef;
}

.member-item:last-child {
    border-bottom: none;
}

.drone-model {
    color: var(--gray-color);
    font-size: 0.9em;
}

.team-score {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .team-data-table th,
    .team-data-table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 90%;
        padding: 20px;
    }
} 