/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0078d4;
    --secondary-color: #005a9e;
    --accent-color: #ffaa44;
    --light-gray: #f8f9fa;
    --mid-gray: #e9ecef;
    --dark-gray: #6c757d;
    --text-color: #333;
    --white: #fff;
    --success-color: #28a745;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

/* 段落样式 */
p {
    margin-bottom: 15px;
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.primary-btn:hover {
    background-color: var(--secondary-color);
}

.secondary-btn {
    background-color: var(--mid-gray);
    color: var(--text-color);
}

.secondary-btn:hover {
    background-color: var(--light-gray);
}

/* 页眉样式 */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 60px;
    border-radius: var(--border-radius);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* 主要内容区域样式 */
main {
    padding: 50px 0;
}

section {
    margin-bottom: 60px;
    padding: 0 40px;
}

.section-intro {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

/* 首页轮播图样式 */
.hero-section {
    margin-bottom: 60px;
}

.slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.slide {
    display: none;
    width: 100%;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-size: 1.5rem;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: var(--white);
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    user-select: none;
    transition: all 0.3s ease;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.dots-container {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: var(--mid-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--primary-color);
}

.fade {
    animation: fade 1.5s;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

/* 首页介绍区域样式 */
.intro-section {
    background-color: var(--light-gray);
    padding: 50px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 0 auto;
    max-width: 1000px;
}

.intro-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

/* 公告页面样式 */
.announcement-section h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.announcements-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.announcement-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-5px);
}

.announcement-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
}

.announcement-header h3 {
    margin-bottom: 5px;
}

.date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.announcement-content {
    padding: 20px;
}

.read-more {
    display: block;
    text-align: right;
    padding: 0 20px 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* 机型展示页面样式 */
.aircraft-section h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.aircraft-container {
    max-width: 1200px;
    margin: 0 auto;
}

.aircraft-item {
    display: flex;
    margin-bottom: 50px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.aircraft-image {
    flex: 1;
    min-width: 300px;
}

.aircraft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aircraft-info {
    flex: 2;
    padding: 30px;
}

.aircraft-info h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.aircraft-subtitle {
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 20px;
}

.aircraft-details {
    margin-top: 20px;
}

.features-list {
    margin-top: 20px;
    list-style-position: inside;
}

.features-list li {
    margin-bottom: 10px;
}

/* 购票页面样式 */
.booking-section h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.booking-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
}

.booking-step {
    margin-bottom: 30px;
}

.booking-step h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--mid-gray);
    border-radius: var(--border-radius);
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 1rem;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

/* 预订成功提示样式 */
.booking-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.booking-success h2 {
    color: var(--success-color);
    margin-bottom: 20px;
}

.booking-reference {
    margin: 30px 0;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    display: inline-block;
}

#booking-reference-number {
    font-weight: 700;
    color: var(--primary-color);
}

/* 页脚样式 */
footer {
    background-color: var(--light-gray);
    padding: 50px 40px 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--mid-gray);
    color: var(--dark-gray);
}

/* 响应式设计 */
@media (max-width: 992px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .nav-links li {
        margin: 0 10px;
    }
    
    .aircraft-item {
        flex-direction: column;
    }
    
    .aircraft-image {
        min-width: auto;
        max-height: 300px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .announcements-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .booking-container {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px 10px;
    }
    
    .slide img {
        height: 300px;
    }
    
    .slide-caption {
        font-size: 1.2rem;
        bottom: 30px;
    }
}
