/* 全局样式 */
:root {
    --primary-color: #e63946;
    --secondary-color: #457b9d;
    --dark-color: #1d3557;
    --light-color: #f1faee;
    --accent-color: #a8dadc;
    --text-color: #333;
    --light-text: #f5f5f5;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c1121f;
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #2a6f97;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* 占位图样式 */
.placeholder-img {
    background-color: var(--accent-color);
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* 头部样式 */
header {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    color: var(--light-text);
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--light-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

#menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

#menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-text);
    transition: var(--transition);
}

/* 英雄区域样式 */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/istanbul-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--light-text);
    text-align: center;
    padding: 8rem 0;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 概览区域样式 */
.overview {
    background-color: var(--light-color);
}

.trip-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-10px);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* 亮点区域样式 */
.highlights h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.highlight-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.highlight-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
}

.highlight-card p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

/* 每日行程预览样式 */
.daily-preview {
    background-color: var(--light-color);
}

.daily-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.days-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.day-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.day-header {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 1rem;
    text-align: center;
}

.day-header h3 {
    color: var(--light-text);
    margin-bottom: 0.2rem;
}

.day-header p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.day-content {
    padding: 1.5rem;
}

.day-content h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.day-content ul {
    margin-bottom: 1.5rem;
}

.day-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.day-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 特色区域样式 */
.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 1rem;
}

.feature p {
    color: #666;
}

/* CTA区域样式 */
.cta {
    background-color: var(--dark-color);
    color: var(--light-text);
    text-align: center;
    padding: 5rem 0;
}

.cta h2 {
    color: var(--light-text);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 页脚样式 */
footer {
    background-color: #222;
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    color: var(--light-text);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 1rem;
    opacity: 0.7;
}

.footer-contact i {
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    #menu-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--dark-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: var(--transition);
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 80%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .info-card,
    .feature {
        padding: 1.5rem;
    }
    
    .highlight-card img {
        height: 180px;
    }
}
