/* style.css - 海鹏国旅 网站通用样式表 (蓝白渐变+深蓝配色) */

/* === 基础重置与通用 === */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}
:root {
    /* 海鹏国旅品牌配色方案 */
    --primary: #0F2C50;        /* 主色：深邃藏蓝 - 标题、导航、核心按钮 */
    --primary-dark: #0B2C48;   /* 深海军蓝 - 页脚、深色区域 */
    --gradient-start: #1E90FF; /* 渐变蓝起点 */
    --gradient-end: #4682B4;   /* 渐变蓝终点 */
    --accent: #1E90FF;         /* 强调色：亮蓝 */
    --accent-light: #A5D8FF;   /* 浅蓝强调色 */
    --muted: #55606a;          /* 辅助文本颜色 */
    --bg-light: #FCF9F2;       /* 米白底色 */
    --bg-card: #FFFFFF;        /* 卡片底色 */
    --text-primary: #333;
    --text-dark: #122028;
    --maxw: 1200px;
}

/* 统一字体和颜色 */
body { 
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', Arial, sans-serif; 
    line-height: 1.6;
    background: #fff; 
    color: var(--text-primary); 
}
.container { 
    width: 100%; 
    max-width: var(--maxw); 
    margin: 0 auto;
    padding: 0 15px; 
}
a { 
    color: var(--accent); 
    text-decoration: none; 
}
a:hover { 
    text-decoration: underline; 
}
ul { padding-left: 20px; margin-top: 10px; }
li { margin-bottom: 8px; color: #555; }


/* === Header / Navigation 统一样式 === */
header { 
    background: #fff; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
}
.header-container { 
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 0; 
}

/* LOGO 样式 */
.header-logo {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

.menu { 
    display: flex;
}
.menu-item { 
    margin-left: 25px; 
    text-decoration: none; 
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}
.menu-item:hover { 
    color: var(--accent);
    text-decoration: none;
}
.mobile-menu-btn { 
    display: none; 
    font-size: 24px; 
    background: none; 
    border: none; 
    color: var(--text-primary);
}


/* === Footer 统一样式 === */
footer { 
    background: var(--primary-dark); 
    color: white;
    padding: 50px 0 20px; 
    margin-top: 40px;
}
.footer-content { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between;
}
.footer-column { 
    flex: 1; 
    min-width: 250px; 
    margin-bottom: 30px;
}
.footer-column h4 { 
    font-size: 1.2rem; 
    margin-bottom: 15px; 
    color: var(--accent-light);
}
.footer-column p {
    color: #ccc;
}
.social-links { 
    display: flex; 
    gap: 15px; 
    margin: 15px 0;
}
.social-links a {
    color: var(--accent-light);
    transition: color 0.3s;
}
.social-links a:hover {
    color: #fff;
}
.copyright { 
    text-align: center; 
    margin-top: 30px; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.2);
}
.copyright p {
    color: #aaa;
}


/* === Index.html 专属样式 === */
.hero-slider {
    position: relative;
    height: 80vh;
    overflow: hidden; 
    margin-top: 80px; 
}
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    opacity: 0; 
    transition: opacity 1s ease-in-out;
}
.slide.active {
    opacity: 1;
}
/* 为幻灯片添加渐变遮罩，增强文字可读性 */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,44,80,0.7) 0%, rgba(30,144,255,0.3) 100%);
    z-index: 1;
}
.hero-content { 
    text-align: center; 
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); 
    max-width: 800px; 
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.hero-title { 
    font-size: 3rem; 
    margin-bottom: 20px;
    font-weight: 700;
}
.hero-subtitle { 
    font-size: 1.5rem; 
    margin-bottom: 30px;
}
.btn { 
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white; 
    padding: 12px 30px; 
    border: none;
    border-radius: 30px; 
    font-size: 18px; 
    cursor: pointer; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30,144,255,0.4);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,144,255,0.6);
}
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active {
    background-color: var(--accent);
    border: 2px solid white;
    transform: scale(1.2);
}
.section { 
    padding: 80px 0;
}
.section-title { 
    text-align: center; 
    font-size: 2.5rem; 
    margin-bottom: 40px; 
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}
.services { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px;
}
.service-card { 
    flex: 1; 
    min-width: 300px; 
    max-width: 350px; 
    background: var(--bg-card); 
    padding: 30px;
    border-radius: 12px; 
    text-align: center; 
    box-shadow: 0 3px 15px rgba(15,44,80,0.08); 
    transition: all 0.3s ease;
    border: 1px solid rgba(30,144,255,0.1);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(15,44,80,0.15);
    border-color: var(--accent-light);
}
.service-card h3 { 
    font-size: 1.5rem;
    margin-bottom: 15px; 
    color: var(--primary); 
}
.service-card p {
    color: #666;
}
.tours { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 25px; 
    margin: 40px 0;
}
.tour-card { 
    background: white;
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 8px 25px rgba(15,44,80,0.08);
    transition: all 0.3s ease;
    height: 100%;
}
.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(15,44,80,0.15);
}
.tour-image { 
    width: 100%;
    height: 220px; 
    object-fit: cover;
    transition: transform 0.3s ease;
}
.tour-card:hover .tour-image {
    transform: scale(1.05);
}
.tour-content { 
    padding: 25px;
}
.tour-content h3 { 
    font-size: 1.4rem;
    color: var(--primary); 
    margin-bottom: 12px;
    transition: color 0.3s ease;
}
.tour-card:hover h3 {
    color: var(--accent);
}
.tour-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}


/* ======================================================= */
/* === About.html 专属样式 === */
/* ======================================================= */
.content-wrap { 
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px; 
    margin-top: 100px;
    padding-bottom: 50px;
}
/* hero-banner 样式 */
.hero-banner { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-end) 100%);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(15,44,80,0.2);
    margin-bottom: 40px;
    color: white;
}
.hero-banner h1 { 
    margin: 0 0 8px; 
    color: #fff; 
    font-size: 2.2rem;
}
.hero-banner p { 
    color: rgba(255,255,255,0.9); 
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 网格布局 */
.grid { 
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
    margin-top: 0;
}

/* 卡片样式 */
.card {
    background: var(--bg-card); 
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(15,44,80,0.06);
    margin-top: 30px;
    border: 1px solid rgba(30,144,255,0.08);
    transition: all 0.3s ease;
}
.card:hover {
    box-shadow: 0 5px 20px rgba(15,44,80,0.1);
    border-color: var(--accent-light);
}
.card:first-child { 
    margin-top: 0;
}
.card h3 { 
    color: var(--primary); 
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.card ul li {
    color: #555;
    line-height: 1.8;
}


/* === Contact.html 专属样式 === */
#contactForm, .contact-info {
    background: var(--bg-card); 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 3px 15px rgba(15,44,80,0.06);
    border: 1px solid rgba(30,144,255,0.08);
    height: 100%; 
}
label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
input, textarea, select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-top: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30,144,255,0.1);
}
button[type="submit"] {
    margin-top: 25px;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(30,144,255,0.3);
}
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,144,255,0.5);
}
#contactForm h2 { 
    margin: 0 0 8px;
    color: var(--primary); 
    font-size: 1.8rem;
}
.contact-info h3 {
    color: var(--primary);
    margin-top: 20px;
    font-size: 1.4rem;
}
.contact-info h3:first-child {
    margin-top: 0;
}


/* === 响应式设计 (Responsive Design) === */
@media (max-width: 900px){
    .grid{grid-template-columns: 1fr; gap: 20px;}
    .content-wrap { margin-top: 80px; }
}
@media (max-width: 768px) {
	.header-logo {
        height: 40px;
    }

    .menu { 
        display: none;
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        right: 0; 
        background: white; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .menu.active { 
        display: flex;
    }
    .menu-item { 
        margin: 15px 25px;
    }
    .mobile-menu-btn { 
        display: block;
    }
    .hero-title { 
        font-size: 2rem;
    }
    .hero-subtitle { 
        font-size: 1.2rem;
    }
    .hero-slider {
        height: 60vh;
    }
}
@media (max-width: 600px) {
    .services { 
        gap: 20px;
    }
    .service-card { 
        min-width: 100%; 
        max-width: 100%; 
    }
    .footer-column { 
        min-width: 100%; 
    }
    .section-title { 
        font-size: 2rem;
    }
    .hero-title { 
        font-size: 1.8rem;
    }
    .hero-subtitle { 
        font-size: 1rem;
    }
    .hero-slider {
        height: 50vh;
    }
}
