
/* 全局变量与重置 */
:root {
    --primary-color: #00b894; /* 清新绿 */
    --secondary-color: #0984e3; /* 海洋蓝 */
    --accent-color: #fdcb6e; /* 阳光黄 */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-white: #ffffff;
    --bg-light: #f5f6fa;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.navbar nav a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-dark);
}

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

.btn-login {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.btn-login:hover {
    background: var(--primary-color);
    color: white;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background: url('https://picsum.photos/1920/1080?grayscale') no-repeat center center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

.search-box {
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 0 1.5rem;
    font-size: 1rem;
    outline: none;
    border-radius: 50px 0 0 50px;
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #00a383;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* 通用部分样式 */
.section-container {
    padding: 5rem 5%;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-light);
}

/* 目的地网格 */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.dest-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.badge.hot { background: #ff7675; }
.badge.new { background: #74b9ff; }
.badge.cheap { background: #55efc4; color: #2d3436; }
.badge.nature { background: #a29bfe; }

.card-body {
    padding: 1.5rem;
}

.location {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.location h3 {
    font-size: 1.2rem;
}

.rating {
    color: var(--accent-color);
    font-weight: bold;
}

.card-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.price {
    font-weight: bold;
    color: var(--primary-color);
}

.link {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 攻略列表 */
.guide-list {
    max-width: 900px;
    margin: 0 auto;
}

.guide-item {
    display: flex;
    background: white;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.guide-item:hover {
    transform: scale(1.01);
}

.guide-img {
    width: 200px;
    flex-shrink: 0;
}

.guide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guide-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.8rem;
}

.guide-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-btn {
    align-self: flex-start;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

/* 图集网格 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    gap: 15px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item.tall {
    grid-row: span 2;
}

/* 页脚 */
footer {
    background: #2d3436;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: #dfe6e9;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #b2bec3;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: white;
}

.subscribe-form {
    display: flex;
    margin-top: 1rem;
}

.subscribe-form input {
    padding: 0.5rem;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.subscribe-form button {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 2rem;
    color: #636e72;
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .navbar nav { display: none; }
    .guide-item { flex-direction: column; }
    .guide-img { width: 100%; height: 200px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
