/* 组件样式文件 - 具体页面组件的样式 */

/* ==================== 导航栏组件 ==================== */
.navbar {
    background-color: var(--primary-blue);
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.nav-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    height: 60px;
    text-decoration: none;
}

.brand-logo {
    height: 40px;
    width: 120px;
    object-fit: contain;
    transition: var(--transition-normal);
    border-radius: var(--radius-small);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
}

.brand-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    border: 1px solid var(--accent-gold);
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 1px;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 var(--space-xs);
    color: var(--text-white);
    font-size: var(--font-size-small);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-normal);
    gap: var(--space-xs);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
}

.nav-link i {
    font-size: 12px;
    transition: var(--transition-normal);
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    padding: var(--space-sm) 0;
    min-width: 280px;
    max-width: 400px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    font-size: var(--font-size-body);
    text-decoration: none;
    transition: var(--transition-normal);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--text-white);
    transition: var(--transition-normal);
}

/* 移动端导航 - 样式已移到 nav_new.php 中 */
@media (max-width: 992px) {
    /* 注释掉以避免与 nav_new.php 中的样式冲突
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--primary-blue);
        flex-direction: column;
        align-items: stretch;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    */

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-md) 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        position: relative;
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: auto;
        width: 100%;
        padding: var(--space-md) var(--space-lg);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-sizing: border-box;
    }

    .nav-link:hover,
    .nav-link.active {
        border-bottom: 1px solid var(--accent-gold);
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* 移动端下拉菜单图标旋转效果 */
    .nav-item.dropdown .nav-link i {
        transition: var(--transition-normal);
        margin-left: auto;
    }

    .nav-item.dropdown.active .nav-link i {
        transform: rotate(180deg);
    }

    /* 确保收起状态完全没有高度 */
    .nav-item.dropdown:not(.active) .dropdown-menu {
        height: 0 !important;
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
        margin: 0;
        padding: 0;
        width: 100%;
        left: 0;
        right: 0;
        transition: all var(--transition-normal);
    }

    .nav-item.dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        height: auto;
        padding: var(--space-sm) 0;
    }

    .dropdown-item {
        display: block;
        width: 100%;
        padding: var(--space-md) var(--space-xl);
        color: var(--text-white);
        text-decoration: none;
        transition: var(--transition-normal);
        box-sizing: border-box;
        border: none;
        margin: 0;
        background-color: transparent;
    }

    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--accent-gold);
    }

    .nav-actions {
        padding: var(--space-md) var(--space-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

/* ==================== 主轮播图组件 ==================== */
/* .hero-section {
    position: relative;
    height: 600px;
    margin-top: 60px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

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

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.hero-text {
    text-align: center;
    color: var(--text-white);
    max-width: 600px;
    padding: 0 var(--space-md);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.6);
    color: var(--text-white);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: var(--space-xl);
    opacity: 1;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
    color: var(--text-white);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
} */
/* ===============================
   HERO SECTION
================================= */

.hero-section {
    position: relative;
    margin-top: 120px;
    overflow: hidden;
    aspect-ratio: 16 / 6;
    background: #000;
}

/* 首页轮播图右侧悬浮社交图标 */
.hero-social-floating {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 4;
}

.hero-social-floating .social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.hero-social-floating .social-icon i {
    font-size: 22px;
}

.hero-social-floating .social-icon.facebook {
    color: #1877f2;
}

.hero-social-floating .social-icon.wechat {
    color: #07c160;
}

.hero-social-floating .social-icon.tiktok {
    color: #000000;
}

.hero-social-floating .social-icon.pinterest {
    color: #E60023;
}

.hero-social-floating .social-icon.instagram {
    color: #E4405F;
}

.hero-social-floating .social-icon.youtube {
    color: #FF0000;
}

.hero-social-floating .social-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    background-color: #ffffff;
}

/* WeChat 二维码弹层 */
.hero-social-floating .social-icon.wechat {
    position: relative;
    overflow: visible;
}

.hero-social-floating .social-icon.wechat .wechat-qr-popup {
    position: absolute;
    top: 50%;
    left: -12px;
    transform: translate(-100%, -50%);
    width: 150px;
    padding: 8px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 10;
}

.hero-social-floating .social-icon.wechat .wechat-qr-popup img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-social-floating .social-icon.wechat:hover .wechat-qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translate(-100%, -52%);
}

/* WhatsApp QR码弹出样式 */
.hero-social-floating .social-icon.whatsapp .whatsapp-qr-popup {
    position: absolute;
    top: 50%;
    left: -12px;
    transform: translate(-100%, -50%);
    width: 150px;
    padding: 8px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 10;
}

.hero-social-floating .social-icon.whatsapp .whatsapp-qr-popup img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-social-floating .social-icon.whatsapp:hover .whatsapp-qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translate(-100%, -52%);
}

@media (max-width: 768px) {
    .hero-social-floating {
        top: auto;
        bottom: 16px;
        right: 16px;
        transform: none;
        flex-direction: column;
    }
}

/* iPad 平板适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-social-floating {
        top: auto;
        bottom: 20px;
        right: 16px;
        transform: none;
        gap: 8px;
    }

    .hero-social-floating .social-icon {
        width: 36px;
        height: 36px;
    }

    .hero-social-floating .social-icon i {
        font-size: 16px;
    }

    .hero-social-floating .social-icon.wechat .wechat-qr-popup,
    .hero-social-floating .social-icon.whatsapp .whatsapp-qr-popup {
        bottom: 0;
        top: auto;
        left: auto;
        right: 100%;
        transform: none;
        margin-right: 8px;
    }

    .hero-social-floating .social-icon.wechat:hover .wechat-qr-popup,
    .hero-social-floating .social-icon.whatsapp:hover .whatsapp-qr-popup {
        transform: none;
    }
}

/* ==================== 文章页面图片区域 ==================== */
.article-section {
    position: relative;
    margin-top: 120px;
    overflow: hidden;
    height: 70vh;
}

.article-section .hero-image {
    width: 100%;
    height: 100%;
}

.article-section .hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===============================
   SLIDER WRAPPER
================================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ===============================
   SLIDE
================================= */

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===============================
   IMAGE
================================= */

.hero-image {
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 轮播图专用样式 */
.hero-slider .hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slider .hero-image img {
    transform: scale(1);
    transition: transform 10s ease;
    will-change: transform;
}

/* 电影慢推进 */
.hero-slide.active .hero-image img {
    transform: scale(1.08);
}

/* ===============================
   CONTENT OVERLAY
================================= */

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 0 24px;

    /* 透明背景 */
    background: transparent;
}

/* ===============================
   TEXT ANIMATION
================================= */

.hero-text {
    max-width: 720px;
    color: #fff;
}

.hero-title {
    font-size: 48px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);

    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.hero-subtitle {
    font-size: 18px;
    color: #fff;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;

    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

/* 激活时分层延迟出现 */

.hero-slide.active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.hero-slide.active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

.hero-slide.active .hero-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

/* ===============================
   BUTTON STYLE (电影玻璃质感)
================================= */

.hero-section .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    padding: 12px 28px;
    transition: all 0.3s ease;
}

.hero-section .btn-outline:hover {
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    transform: translateY(-2px);
}

/* ===============================
   NAVIGATION BUTTONS
================================= */

.hero-navigation {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;

    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(8px);
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav-btn.prev {
    left: 20px;
}

.hero-nav-btn.next {
    right: 20px;
}

/* ===============================
   INDICATORS
================================= */

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    background: #ffd700;
    transform: scale(1.3);
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        aspect-ratio: 4 / 5;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

/* 轮播图区域的按钮样式特殊处理 */
.hero-section .btn-large {
    padding: 12px 24px;
    font-size: 14px;
    min-height: 44px;
}

.hero-section .btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-color: var(--accent-gold);
    backdrop-filter: blur(10px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-section .btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--text-primary);
    border-color: var(--accent-gold);
    text-shadow: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

.hero-section .btn-outline:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.hero-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 100%;
    padding: 0 var(--space-md);
    pointer-events: none;
}

.hero-nav-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.hero-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: scale(1.1);
}

.hero-nav-btn.prev {
    left: 0;
}

.hero-nav-btn.next {
    right: 0;
}

.hero-indicators {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-normal);
}

.indicator.active {
    background-color: var(--accent-gold);
    transform: scale(1.2);
}

/* 移动端轮播图适配 */
@media (max-width: 768px) {
    .hero-section {
        height: 400px;
        width: 100%;
        aspect-ratio: unset;
        overflow: hidden;
        margin-top: 100px !important;
    }

    .hero-slider {
        width: 100%;
        height: 100%;
    }

    .hero-slide {
        width: 100%;
        height: 100%;
        inset: 0;
    }

    .hero-image {
        width: 100%;
        height: 100%;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .hero-nav-btn {
        width: 40px;
        height: 40px;
    }

    .hero-social-floating {
        right: 12px;
        bottom: 12px;
        top: auto;
        transform: none;
        flex-direction: column;
    }

    .hero-social-floating .social-icon {
        width: 36px;
        height: 36px;
    }

    .hero-social-floating .social-icon i {
        font-size: 16px;
    }
}

/* ==================== 搜索组件 ==================== */
.search-section {
    background-color: var(--bg-white);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border-light);
}

.search-widget {
    background-color: var(--bg-white);
    border-radius: var(--radius-xlarge);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
}

.search-tab {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background-color: transparent;
    border: none;
    font-size: var(--font-size-body);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    color: var(--text-secondary);
}

.search-tab.active {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

.search-tab:hover:not(.active) {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.search-content {
    padding: var(--space-lg);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.search-field label {
    font-size: var(--font-size-small);
    font-weight: 500;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
    }

    .search-tabs {
        flex-direction: column;
    }
}

/* ==================== 特色服务组件 ==================== */
.features-section {
    background-color: var(--bg-section);
    padding: var(--space-xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.feature-card {
    background-color: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--radius-large);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--text-white);
    font-size: 24px;
}

.feature-title {
    font-size: var(--font-size-h3);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    /* 固定标题高度，确保对齐 */
    min-height: 3.2em; /* 约等于2行文字的高度 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
}

.feature-description {
    font-size: var(--font-size-body);
    color: var(--text-secondary);
    line-height: var(--line-height-normal);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    cursor: pointer;
}

.feature-description:hover {
    overflow: visible;
}

/* Tooltip样式 - 重新设计 */
.feature-description[data-tooltip] {
    position: relative;
}

.feature-description[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    /* 使用网站主题色渐变背景 */
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-large);
    font-size: var(--font-size-small);
    font-weight: 400;
    white-space: normal;
    /* 增加宽度，提供更好的阅读体验 */
    min-width: 280px;
    max-width: 400px;
    width: max-content;
    z-index: 1000;
    /* 增强阴影效果 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 
                0 4px 16px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInTooltip 0.3s ease forwards;
    line-height: 1.5;
    text-align: left;
    /* 添加边框提升质感 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* 添加内阴影增加深度 */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 8px 32px rgba(0, 0, 0, 0.15), 
                0 4px 16px rgba(0, 0, 0, 0.1);
}

.feature-description[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-1px);
    border: 8px solid transparent;
    /* 使用渐变色作为箭头颜色 */
    border-bottom: 8px solid var(--primary-blue);
    z-index: 1001;
    /* 添加小阴影 */
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 特色服务响应式设计 */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: var(--space-md);
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: var(--space-sm);
    }
}

/* ==================== 推荐产品组件 ==================== */
.recommendations-section {
    padding: var(--space-xl) 0;
}

.recommendations-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
}

.rec-tab {
    padding: var(--space-sm) var(--space-lg);
    background-color: transparent;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-medium);
    font-size: var(--font-size-body);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.rec-tab.active,
.rec-tab:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
    background-color: rgba(255, 215, 0, 0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 4px var(--space-sm);
    border-radius: var(--radius-small);
    font-size: var(--font-size-caption);
    font-weight: 600;
}

.product-content {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-tight);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
}

.product-description {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-normal);
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
}

.product-duration {
    font-size: var(--font-size-small);
    color: var(--text-light);
    background-color: var(--bg-light);
    padding: 4px var(--space-sm);
    border-radius: var(--radius-small);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-small);
    color: var(--text-secondary);
}

.product-rating i {
    color: #FFC107;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-from {
    font-size: var(--font-size-caption);
    color: var(--text-light);
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-red);
}

.price-unit {
    font-size: var(--font-size-small);
    color: var(--text-light);
}

/* 产品网格响应式设计 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .product-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-content {
        padding: var(--space-lg);
    }
}

/* ==================== 目的地组件 ==================== */
.destinations-section {
    background-color: var(--bg-section);
    padding: var(--space-xl) 0;
}

.destinations-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-md);
    height: 500px;
    margin-top: var(--space-lg);
}

.destination-card {
    position: relative;
    border-radius: var(--radius-large);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
}

.destination-card.large {
    grid-row: 1 / 3;
}

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

.destination-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

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

.destination-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: var(--space-lg);
    color: var(--text-white);
}

.destination-title {
    font-size: var(--font-size-h3);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 4px;
}

.destination-subtitle {
    font-size: var(--font-size-body);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-sm);
}

.destination-count {
    font-size: var(--font-size-small);
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .destinations-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px);
        height: auto;
    }

    .destination-card.large {
        grid-row: auto;
    }
}

/* ==================== 客户评价组件 ==================== */
.testimonials-section {
    padding: var(--space-xxl) 0;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: var(--space-xl);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--accent-gold);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-size: var(--font-size-body);
    line-height: var(--line-height-normal);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-style: italic;
    flex: 1;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-md);
}

.testimonial-rating i {
    color: #FFC107;
    font-size: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: auto;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

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

/* ==================== Our Team 组件 ==================== */
.team-section {
    background-color: var(--bg-section);
    padding: var(--space-xxl) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.team-member {
    background-color: var(--bg-white);
    border-radius: var(--radius-large);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.member-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 宽高比，创建正方形 */
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-large) var(--radius-large) 0 0;
}

.member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.member-role {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 移动端适配 */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 600px;
    }
    
    .member-name {
        font-size: 15px;
    }
    
    .member-role {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
        max-width: 400px;
    }
    
    .member-name {
        font-size: 13px;
    }
    
    .member-role {
        font-size: 9px;
    }
}

/* ==================== 页脚组件 ==================== */

.footer {
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: var(--space-xxl) 0 var(--space-lg);
}

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

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-normal);
    font-size: var(--font-size-body);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
    width: 20px;
    text-align: center;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.contact-info span {
    text-align: left;
}

/* 新的联系信息样式 */
.contact-info-new {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-info-new p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-body);
}

.contact-info-new i {
    width: 20px;
    text-align: center;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.contact-info-new span {
    text-align: left;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-small);
}

.footer-bottom p,
.footer-bottom a {
    color: var(--accent-gold);
}

.footer-bottom a {
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ✅ 一定要闭合 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ==================== 返回顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    color: var(--text-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-medium);
    z-index: 999;
}

.back-to-top:hover {
    background-color: #d4af37;
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .back-to-top i {
        font-size: 16px;
    }
}

/* ==================== Tour Cards 新样式 ==================== */
.tour-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tour-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

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

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

.tour-content {
    padding: var(--space-md);
    text-align: center;
}

.tour-content h3 {
    font-size: 16px;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-weight: 600;
    line-height: var(--line-height-tight);
}

.tour-content p {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 200;
    margin-bottom: var(--space-md);
    line-height: var(--line-height-normal);
}

.btn-view {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid #b22222;
    color: #b22222;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-caption);
    transition: var(--transition-normal);
    border-radius: var(--radius-small);
}

.btn-view:hover {
    background: #b22222;
    color: #fff;
}

@media (max-width: 992px) {
    .tour-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tour-container {
        grid-template-columns: 1fr;
    }

    .tour-card img {
        height: 200px;
    }
}
