/* ===== 环球旅行 旅游风格网站 样式表 ===== */
:root {
    --primary: #0e7c76;        /* 翠湖青绿 */
    --primary-dark: #0a5c57;
    --accent: #f59e0b;         /* 琥珀暖金 */
    --dark: #2d3436;
    --gray: #636e72;
    --light-bg: #f2f7f6;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 6px 20px rgba(0,0,0,0.10);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.18);
    --font: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--light-bg);
    line-height: 1.7;
}

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== 导航栏 ===== */
.site-header {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.site-nav { display: flex; gap: 24px; }
.site-nav a {
    font-weight: 500; color: var(--gray);
    padding: 6px 0; border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--primary); }
.site-nav a.active { color: var(--primary); border-bottom-color: var(--accent); }

/* ===== 英雄横幅 ===== */
.hero {
    background: linear-gradient(135deg, #0a5c57 0%, #0e7c76 55%, #1c9c8f 100%);
    color: var(--white); text-align: center;
    padding: 120px 20px;
    position: relative; overflow: hidden;
}
.hero::after {
    content: "✈︎"; position: absolute; right: 8%; top: 30%;
    font-size: 6rem; opacity: .15; transform: rotate(-15deg);
}
.hero h1 { font-size: 3rem; margin-bottom: 16px; letter-spacing: 1px; }
.hero p { font-size: 1.2rem; opacity: .9; margin-bottom: 32px; }
.btn {
    display: inline-block; padding: 13px 34px;
    border-radius: 30px; font-weight: 600; font-size: 1rem;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-light { background: var(--white); color: var(--primary); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-card { background: var(--primary); color: var(--white); }

/* ===== 区块标题 ===== */
.section-title {
    text-align: center; font-size: 2rem;
    margin: 56px 0 8px; color: var(--primary-dark);
}
.section-sub { text-align: center; color: var(--gray); margin-bottom: 40px; }

/* ===== 卡片网格 ===== */
.grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px; padding-bottom: 60px;
}
.card {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card img { height: 200px; object-fit: cover; width: 100%; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 4px; }
.card-body h3 a { color: var(--dark); }
.card-body h3 a:hover { color: var(--primary); }
.country { color: var(--primary); font-size: .85rem; margin-bottom: 8px; display: inline-block; }
.card-desc { color: var(--gray); font-size: .95rem; margin-bottom: 12px; flex: 1; }
.price { color: var(--accent); font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.price::before { content: "¥"; }
.card .btn { align-self: flex-start; padding: 9px 22px; font-size: .9rem; }

/* ===== 列表页 ===== */
.page-hero {
    background: linear-gradient(135deg, #0e7c76, #1c9c8f);
    color: var(--white); text-align: center; padding: 70px 20px;
}
.page-hero h1 { font-size: 2.4rem; margin-bottom: 8px; }
.breadcrumb { opacity: .85; font-size: .95rem; }

/* ===== 详情页 ===== */
.detail-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 50px 0; align-items: start; }
.detail-img { border-radius: var(--radius); box-shadow: var(--shadow); height: 420px; object-fit: cover; width: 100%; }
.detail-info h1 { font-size: 2rem; margin-bottom: 6px; color: var(--primary-dark); }
.meta { color: var(--gray); margin-bottom: 18px; font-size: .95rem; }
.meta span { margin-right: 18px; }
.meta .tag {
    background: var(--light-bg); padding: 4px 12px; border-radius: 20px; font-size: .85rem;
}
.detail-desc { font-size: 1.05rem; margin-bottom: 24px; color: #444; }
.price-big { font-size: 2.2rem; color: var(--accent); font-weight: 800; margin: 20px 0; }
.price-big small { font-size: .9rem; color: var(--gray); font-weight: 400; }

/* ===== 联系页表单 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 50px 0; }
.contact-info h2 { margin-bottom: 16px; color: var(--primary-dark); }
.contact-info p { margin-bottom: 12px; color: var(--gray); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-group input,
.form-group textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #dfe4ea;
    border-radius: 8px; font-family: var(--font); font-size: 1rem;
    transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 130px; resize: vertical; }
.success-msg {
    background: #d4edda; color: #155724; padding: 14px 18px;
    border-radius: 8px; margin-bottom: 20px; border: 1px solid #c3e6cb;
}
.btn-submit { background: var(--primary); color: var(--white); border: none; cursor: pointer; padding: 13px 36px; border-radius: 30px; font-size: 1rem; font-weight: 600; transition: background .2s; }
.btn-submit:hover { background: var(--primary-dark); }

/* ===== 页脚 ===== */
.footer {
    background: var(--dark); color: #b2bec3;
    text-align: center; padding: 28px 20px; margin-top: 40px;
}
.footer a { color: var(--accent); }
.footer-small { margin-top: 8px; font-size: .85rem; color: #7f8c8d; }

/* ===== 字体与背景优化 ===== */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.2px;
}
/* 更精致的中文字体回退栈 */
h1, h2, h3, .logo {
    font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.hero {
    background:
        linear-gradient(135deg, rgba(10,92,87,.92) 0%, rgba(14,124,118,.88) 55%, rgba(28,156,143,.85) 100%),
        url('../img/8.jpg') center/cover no-repeat;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); text-shadow: 0 3px 18px rgba(0,0,0,.4); }
.page-hero {
    background:
        linear-gradient(135deg, rgba(14,124,118,.9), rgba(28,156,143,.88)),
        url('../img/6.jpg') center/cover no-repeat;
}
.section-title::after {
    content: ""; display: block; width: 60px; height: 3px;
    background: var(--accent); border-radius: 2px;
    margin: 12px auto 0;
}

/* ===== 搜索与筛选栏 ===== */
.filter-bar {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 24px;
}
.filter-form {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.filter-item { flex: 1 1 180px; }
.filter-search { flex: 2 1 260px; }
.filter-item input[type="text"],
.filter-item select {
    width: 100%; padding: 12px 14px;
    border: 1px solid #dfe4ea; border-radius: 8px;
    font-family: var(--font); font-size: .95rem; background: #fafbfc;
    transition: border-color .2s, box-shadow .2s;
}
.filter-item input[type="text"]:focus,
.filter-item select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14,124,118,.12);
}
.filter-btn { padding: 12px 28px; }
.filter-reset {
    display: inline-block; color: var(--gray); font-size: .9rem;
    padding: 12px 0; white-space: nowrap;
}
.filter-reset:hover { color: var(--accent); }

/* ===== 景点图库 ===== */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px; padding-bottom: 60px;
}
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-link { position: relative; display: block; overflow: hidden; }
.gallery-link img {
    width: 100%; height: 240px; object-fit: cover;
    transition: transform .45s ease;
}
.gallery-link:hover img { transform: scale(1.08); }
.gallery-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 34px 16px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,.72));
    color: #fff; display: flex; flex-direction: column;
    opacity: 0; transform: translateY(8px); transition: all .35s;
}
.gallery-link:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-title { font-size: 1.15rem; font-weight: 700; }
.gallery-sub { font-size: .85rem; opacity: .9; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .detail-wrap, .contact-grid { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .site-nav { gap: 14px; font-size: .9rem; }
}