/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A7CB3;
    --secondary-color: #3A6299;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-color: #fff;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}    

.navbar {
    background: var(--light-color);
    padding: 1.5rem 0;  /* 增加上下内边距 */
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 100px;  /* 设置最小高度 */
}

.nav-brand {
    margin-left: 0;  /* 重置左边距，防止被浏览器界面遮挡 */
    position: relative;
    display: flex;
    flex-direction: column;
}

.nav-slogan {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    padding-left: 45px;  /* 调整左边距，使"本"字与汉堡菜单按钮对齐 */
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-right: 0;
    white-space: nowrap;
    margin-left: 0;
    padding-left: 20px;  /* 添加左侧内边距，确保文字可见 */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    margin-top: 0.4rem;
    padding-left: 0;
    justify-content: center;  /* 居中对齐导航菜单 */
    flex-wrap: wrap;  /* 允许菜单项换行 */
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;  /* 调整导航项字体大小 */
}

.nav-menu a:hover {
    background: var(--primary-color);
    color: var(--light-color);
}
/* 5条横线的汉堡菜单样式 */
.hamburger-menu {
    display: inline-flex;
    flex-direction: column;
    cursor: pointer;
    margin-right: 12px;
    vertical-align: middle;
    height: 50px;  /* 增加高度，提供更多空间 */
    justify-content: space-between;  /* 改为space-between均匀分布 */
    margin-top: -2px;
}
.bar {
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    transition: 0.3s;
    border-radius: 1px;
    margin: 4px 0;  /* 进一步增加线条间距 */
}

/* 5条横线的汉堡菜单动画 */
.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 8px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(4) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(5) {
    transform: rotate(45deg) translate(-6px, -8px);
}

/* 移动端导航菜单样式 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--light-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .hamburger-menu {
        display: inline-block;
        margin-top: 5px;  /* 在小屏幕下稍微向下移动汉堡菜单按钮 */
    }
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

/* Hero Section */
.hero {
    height: 80vh;  /* 从100vh调整为80vh，减小高度 */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;  /* 移除背景渐变 */
}
.hero-video {
    position: absolute;
    top: 45%;
    left: 50%;
    width: 90%;
    max-width: 1400px;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: contain;
    border-radius: 0;  /* 移除圆角效果，恢复直角 */
    box-shadow: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--light-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.btn-secondary:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sm:hover {
    background: var(--secondary-color);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Routes Section */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.route-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.route-card:hover {
    transform: translateY(-5px);
}

.route-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.route-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.route-highlight {
    background: var(--accent-color);
    color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
}

/* Ships Section - Strict Parallel Layout */
.ships-grid {
    display: flex;
    gap: 2rem;
}

.ship-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 50%;
    flex: 1;
}

.ship-card:first-child {
    margin-right: 1rem;
}

.ship-card:last-child {
    margin-left: 1rem;
}

.ship-images {
    display: flex;
    gap: 0.8rem;
    padding: 1.2rem;
}

.ship-exterior, 
.ship-interior {
    flex: 1;
    min-width: 0;
}

.ship-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.ship-info {
    padding: 1.2rem;
    padding-top: 0;
}

.ship-badge {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 0.25rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.ship-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.ship-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.spec-item {
    display: flex;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid #eee;
}

.spec-label {
    color: #666;
    font-size: 0.85rem;
    margin-right: 0.8rem;
    min-width: 60px;
}

.spec-value {
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
    flex: 1;
    text-align: left;
}

.ship-description {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 0.8rem;
}

/* Responsive Design for Ships */
@media (max-width: 768px) {
    .ships-grid {
        flex-direction: column;
    }
    
    .ship-card {
        width: 100%;
        margin: 0 0 2rem 0 !important;
    }
    
    .ship-images {
        flex-direction: column;
    }
}

/* Timetable Section */
.timetable-section {
    background: var(--gray-light);
}

.timetable-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
}

.form-group select,
.form-group input {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--accent-color);
}

/* Destination Navigation */
.destination-nav {
    background: var(--gray-light);
    padding: 2rem 0;
}

.destination-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.destination-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
}

.destination-link.active {
    color: #4A7CB3;
}

.destination-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4A7CB3;
}

.destination-link:hover {
    color: #4A7CB3;
}

/* Attractions Section */
.attractions-section {
    background-color: var(--gray-light);
    padding: 1.5rem 0 3rem 0;
    margin-top: -1px;
}

.attractions-section .section-title {
    margin-bottom: 1.5rem;
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}

.attraction-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.attraction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.attraction-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.attraction-content {
    padding: 1rem;
}

.attraction-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.attraction-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.attraction-date {
    color: #ccc;
    text-align: right;
    font-size: 0.8rem;
}

/* Responsive Design for Attractions */
@media (max-width: 1200px) {
    .attractions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .attractions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .destination-menu {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .attractions-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-brand {
        margin-left: 0;  /* 在小屏幕下重置左边距 */
        text-align: center;
    }
    
    .nav-slogan {
        font-size: 0.8rem;  /* 减小标语字体大小 */
        margin-bottom: 0.3rem;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;  /* 减小标题字体大小 */
    }
    
    .nav-menu {
        flex-direction: column;
        text-align: center;
        margin-top: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .timetable-form {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        margin-left: 0;
    }
    
    .nav-slogan {
        font-size: 0.7rem;
        display: none;  /* 在超小屏幕下隐藏标语 */
    }
    
    .nav-brand h1 {
        font-size: 1.3rem;
    }
    
    .container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.route-card,
.ship-card,
.news-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--light-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}