/* ============================================
   银龄岁月 - 中老年旅游旅居官网 样式表
   设计原则：温暖配色 / 大字号 / 高对比度 / 大触控目标
   ============================================ */

/* ---------- CSS 变量（蓝绿清新体系）---------- */
:root {
    /* 主色：信赖蓝 */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --primary-bg: rgba(37, 99, 235, 0.08);
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #059669 100%);

    /* 辅助色：自然绿 */
    --accent: #059669;
    --accent-light: #10b981;

    --success: #059669;
    --error: #dc2626;

    /* 中性灰文字 */
    --text: #1e293b;
    --text-secondary: #475569;
    --text-light: #64748b;

    /* 清凉背景 */
    --bg: #f8fafc;
    --bg-alt: #f0f9ff;
    --bg-card: #ffffff;

    /* 边框 */
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

    /* 圆角 */
    --radius-sm: 0.625rem;
    --radius: 0.875rem;
    --radius-lg: 1.125rem;
    --radius-xl: 1.75rem;

    /* 字体 - 衬线标题更显文化底蕴 */
    --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-serif: 'Noto Serif SC', 'STSong', 'SimSun', serif;

    /* 布局 */
    --container: 1200px;
    --topbar-height: 40px;
    --header-height: 76px;

    /* 动画 */
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--topbar-height) + var(--header-height));
    font-size: 18px; /* 适老：基准字号放大 */
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

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

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

input, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Buttons（适老：大触控区）---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    white-space: nowrap;
    min-height: 48px;
    cursor: pointer;
}

.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    min-height: 44px;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.1rem;
    min-height: 56px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    height: var(--topbar-height);
    font-size: 0.833rem;
    position: relative;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1.5rem;
}

.top-bar-phone {
    color: #bfdbfe;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.889rem;
}

.top-bar-phone:hover {
    color: #fff;
}

/* ---------- Header / Navigation ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-md);
    background: rgba(248, 250, 252, 0.97);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-icon {
    font-size: 2rem;
    line-height: 1;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.667rem;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-list {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.625rem 1.125rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-bg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.btn-search:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--primary-bg);
    border-radius: var(--radius);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.944rem;
    transition: all var(--transition);
}

.header-phone:hover {
    background: var(--primary);
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: var(--radius);
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(30, 41, 59, 0.65) 0%,
        rgba(30, 41, 59, 0.35) 50%,
        rgba(30, 41, 59, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(96, 165, 250, 0.35);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.6s ease 0.15s both;
}

.hero-highlight {
    display: block;
    color: #a7f3d0;
}

.hero-desc {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    opacity: 0.92;
    max-width: 520px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.45s both;
}

.hero-dots {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.875rem;
    z-index: 3;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all var(--transition);
}

.hero-dots .dot.active {
    background: var(--primary-light);
    width: 32px;
    border-radius: 100px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-arrow-left {
    left: 1.5rem;
}

.hero-arrow-right {
    right: 1.5rem;
}

/* ---------- Search Bar ---------- */
.search-bar {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 100%;
    max-width: var(--container);
    padding: 0 1.5rem;
}

.search-bar-inner {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

.search-field {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    flex: 1;
    border-right: 1px solid var(--border);
    color: var(--text-light);
}

.search-field:last-of-type {
    border-right: none;
}

.search-field input,
.search-field select {
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text);
    width: 100%;
    min-width: 0;
}

.search-field input::placeholder {
    color: var(--text-light);
}

.search-field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.search-btn {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1rem;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
    padding: 1.5rem 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem;
}

.trust-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-size: 1rem;
    color: var(--text);
}

.trust-text span {
    font-size: 0.833rem;
    color: var(--text-light);
}

/* ---------- Sections ---------- */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

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

.section-tag {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.944rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.056rem;
    max-width: 550px;
    margin: 0 auto;
}

.section-action {
    text-align: center;
    margin-top: 3rem;
}

/* ---------- Destination Cards ---------- */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.destination-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition-slow);
    cursor: pointer;
}

.destination-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.destination-card:hover .card-image img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    font-size: 0.833rem;
    font-weight: 700;
}

.card-badge.badge-new {
    background: var(--success);
}

.card-badge.badge-sale {
    background: var(--error);
}

.card-price {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(6px);
    color: #93c5fd;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 1.25rem;
    font-weight: 800;
}

.card-price span {
    font-size: 0.778rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.card-body {
    padding: 1.5rem;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-light);
    font-size: 0.889rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.222rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.944rem;
    margin-bottom: 0.875rem;
    line-height: 1.65;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.card-tags span {
    background: var(--bg-alt);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.778rem;
    font-weight: 500;
}

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

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.944rem;
    font-weight: 700;
}

.stars {
    color: var(--primary-light);
    font-size: 0.889rem;
    letter-spacing: 2px;
}

.card-days {
    background: var(--bg-alt);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.889rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ---------- Tour Cards ---------- */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.tour-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition-slow);
}

.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.tour-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.tour-card:hover .tour-image img {
    transform: scale(1.06);
}

.tour-duration {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(37, 99, 235, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.889rem;
    font-weight: 700;
}

.tour-wishlist {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all var(--transition);
}

.tour-wishlist:hover,
.tour-wishlist.active {
    color: var(--error);
}

.tour-body {
    padding: 1.5rem;
}

.tour-title {
    font-size: 1.167rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tour-route {
    color: var(--text-light);
    font-size: 0.944rem;
    margin-bottom: 1rem;
}

.tour-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tour-highlights span {
    font-size: 0.833rem;
    color: var(--text-secondary);
}

.tour-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.tour-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.889rem;
}

.tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.tour-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.tour-price span {
    font-size: 0.889rem;
    font-weight: 500;
    color: var(--text-light);
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px var(--primary-bg);
    transform: translateY(-4px);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.167rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.944rem;
    line-height: 1.8;
}

/* ---------- Stats ---------- */
.stats {
    background: var(--primary-gradient);
    padding: 4rem 0;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    display: inline-block;
}

.stat-suffix {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    display: inline;
}

.stat-label {
    font-size: 1.056rem;
    opacity: 0.9;
    margin-top: 0.375rem;
    font-weight: 500;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: var(--primary-light);
    font-size: 1.167rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    text-indent: 2em;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-light);
}

.author-name {
    font-weight: 700;
    font-size: 1.056rem;
}

.author-trip {
    color: var(--text-light);
    font-size: 0.889rem;
}

/* ---------- Newsletter ---------- */
.newsletter-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    color: #fff;
    overflow: hidden;
}

.newsletter-content {
    flex: 1;
}

.newsletter-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.newsletter-desc {
    opacity: 0.75;
    margin-bottom: 1.75rem;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 500px;
}

.newsletter-fields {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.newsletter-fields input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius);
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1rem;
    transition: all var(--transition);
}

.newsletter-fields input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.newsletter-fields input:focus {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-form .btn {
    min-width: 140px;
}

.newsletter-note {
    margin-top: 1rem;
    font-size: 0.889rem;
    opacity: 0.6;
}

.newsletter-note strong {
    color: var(--primary-light);
    font-size: 1.056rem;
}

.newsletter-visual {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.06);
}

/* ---------- Footer ---------- */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1.25rem;
    font-size: 0.944rem;
    line-height: 1.85;
    color: #94a3b8;
    max-width: 360px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-links h4 {
    color: #fff;
    font-size: 1.056rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.944rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.889rem;
    color: #64748b;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #64748b;
    transition: color var(--transition);
}

.footer-bottom-links a:hover {
    color: #cbd5e1;
}

/* ---------- Side Float ---------- */
.side-float {
    position: fixed;
    right: 1.5rem;
    bottom: 6rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 998;
}

.float-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.722rem;
    font-weight: 600;
    transition: all var(--transition);
}

.float-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.float-phone {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
}

.float-wechat {
    color: #16a34a;
}

.float-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.float-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all var(--transition);
    white-space: nowrap;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 6px 24px rgba(5, 150, 105, 0.3);
}

.toast-error {
    background: var(--error);
    color: #fff;
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.3);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   响应式设计 (Responsive Design)
   ========================================== */

/* Tablet - 平板端 ≤1024px */
@media (max-width: 1024px) {
    :root {
        --header-height: 68px;
        font-size: 17px;
    }

    .top-bar span {
        display: none;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(248, 250, 252, 0.98);
        backdrop-filter: blur(16px);
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 3rem;
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 999;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-link {
        font-size: 1.167rem;
        padding: 1rem 2rem;
    }

    .hamburger {
        display: flex;
    }

    .header-phone span {
        display: none;
    }

    .header-phone {
        padding: 0.5rem;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .hero {
        height: auto;
        min-height: 550px;
        max-height: 700px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .search-bar-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .search-field {
        flex: 1 1 45%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.625rem 0.75rem;
    }

    .search-field:nth-last-child(2) {
        border-bottom: none;
    }

    .search-btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    .newsletter-desc {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile - 手机端 ≤768px */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        font-size: 16px;
    }

    .top-bar {
        height: auto;
        padding: 0.5rem 0;
        font-size: 0.778rem;
    }

    .hero {
        min-height: 520px;
        max-height: 650px;
    }

    .hero-dots {
        bottom: 250px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .search-bar {
        bottom: 36px;
    }

    .search-bar-inner {
        flex-direction: column;
    }

    .search-field {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.75rem 1rem;
    }

    .search-field:last-of-type {
        border-bottom: none;
    }

    .search-btn {
        width: 100%;
    }

    .section {
        padding: 3.5rem 0;
    }

    .destinations-grid,
    .tours-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .newsletter-card {
        padding: 2rem 1.25rem;
    }

    .newsletter-fields {
        flex-direction: column;
    }

    .newsletter-visual {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .side-float {
        right: 1rem;
        bottom: 4rem;
        gap: 0.5rem;
    }

    .float-item {
        width: 56px;
        height: 56px;
    }
}

/* Small Mobile - 小屏手机 ≤480px */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content {
        text-align: center;
        align-items: center;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }
}

/* 大屏优化 ≥1400px */
@media (min-width: 1400px) {
    html {
        font-size: 19px;
    }

    .hero {
        max-height: 850px;
    }
}
