@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('font/Inter/Inter-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    src: url('font/Inter/Inter-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('font/Inter/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('font/Inter/Inter-Bold.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #faf9f6;
    color: #1e1e1e;
    line-height: 1.5;
}

:root {
    --primary: #c9a959;
    --primary-dark: #a8863a;
    --dark-bg: #1f2a36;
    --text-light: #f0f0f0;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    --success-green: #4caf50;
    --available-green: #81c784;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    height: 52px;
    width: auto;
    border-radius: 8px;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1e1e1e;
    line-height: 1.2;
}
.logo-text .sub {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #6b7b8b;
    margin-top: 2px;
}
.nav-links {
    display: flex;
    gap: 32px;
    font-weight: 500;
    flex-wrap: wrap;
}
.nav-links a {
    text-decoration: none;
    color: #2d3e50;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}
.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 6px 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}
.btn-solid {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-solid:hover {
    background-color: var(--primary-dark);
}
/* 语言切换通用样式 */
.lang-switch {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
}
.lang-switch a {
    color: #7a8793;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 20px;
    transition: 0.2s;
}
.lang-switch a:hover {
    color: var(--primary);
    background: rgba(201, 169, 89, 0.1);
}
.lang-switch a.active {
    color: var(--primary);
    font-weight: 600;
}
/* PC语言切换 */
.pc-lang-switch {
    margin-left: 16px;
}
/* 手机语言切换（默认隐藏） */
.mobile-lang-switch {
    display: none;
}

/* Hero 大图 */
.hero {
    background: linear-gradient(115deg, #1f2a36 0%, #2c3e50 100%);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center 30%;
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
    position: relative;
}
.hero-content {
    max-width: 700px;
    position: relative;
}
.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero h1 span {
    color: var(--primary);
}
.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
}
/* 搜索框 */
.search-box {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 650px;
}
.search-field {
    flex: 1 1 200px;
    background: transparent;
    border: none;
    padding: 16px 20px;
    color: white;
    font-size: 1rem;
    outline: none;
    min-width: 0;
}
.search-field::placeholder {
    color: rgba(255,255,255,0.7);
}
.search-field:not(:last-of-type) {
    border-right: 1px solid rgba(255,255,255,0.2);
}
.search-btn {
    background-color: var(--primary);
    border: none;
    color: white;
    padding: 16px 36px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.search-btn:hover {
    background-color: var(--primary-dark);
}

/* 通用标题 - 桌面端默认 */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e1e1e;
}
.section-sub {
    color: #5f6b7a;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* 热门专列卡片 */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.train-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.train-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.15);
}
.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
}
.card-content {
    padding: 24px;
}
.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.card-desc {
    color: #5f6b7a;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.card-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #8f9aa8;
}
.btn-card {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
    display: inline-block;
}
.btn-card:hover {
    background: var(--primary);
    color: white;
}

/* 假期特色旅游列车 */
.holiday-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}
.holiday-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
}
.holiday-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.15);
}
.holiday-img {
    height: 160px;
    background-size: cover;
    background-position: center;
}
.holiday-info {
    padding: 16px;
}
.holiday-name {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.holiday-meta {
    display: flex;
    gap: 10px;
    color: #7a8793;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.holiday-meta i {
    color: var(--primary);
    margin-right: 4px;
}

/* 火车旅行故事卡片 */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0 60px;
}
.story-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.story-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.story-content {
    padding: 24px;
}
.story-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.story-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #7a8793;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.story-meta i {
    color: var(--primary);
    margin-right: 4px;
}
.story-excerpt {
    color: #3a4a5a;
    margin-bottom: 20px;
}
.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* 底部 - 桌面端 */
.footer {
    background-color: var(--dark-bg);
    color: #cfd9e6;
    padding: 60px 0 30px;
    margin-top: 30px;
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col {
    flex: 1 1 0;
    min-width: 200px;
}
.footer-col:first-child {
    text-align: left;
}
.footer-col:nth-child(2) {
    text-align: center;
}
.footer-col:last-child {
    text-align: right;
}
.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 12px;
}
.footer-col a {
    color: #b0c0d0;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: var(--primary);
}
.footer-bottom {
    border-top: 1px solid #3a4a5a;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}
.footer-bottom p {
    margin: 5px 0;
}
.footer-bottom a {
    color: inherit;
    text-decoration: none;
}
.footer-bottom a:hover {
    color: inherit;
}
.social-icons {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 16px 20px;
    justify-content: end;
    margin-top: 16px;
}
.social-icons a {
    color: #b0c0d0;
    font-size: 1.5rem;
    transition: color 0.2s;
    text-align: center;
}
.social-icons a:hover {
    color: var(--primary);
}

/* 右侧浮动客服图标 */
.float-kefu {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}
.kefu-btn {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.kefu-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}
.kefu-btn i {
    font-size: 24px;
}
.kefu-btn span {
    font-size: 12px;
    margin-top: 2px;
}

/* 二维码弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: transparent;
    padding: 0;
    max-width: 300px;
    width: auto;
    text-align: center;
    box-shadow: none;
    position: relative;
}
.modal-close {
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 30px;
    cursor: pointer;
    color: white;
    background: rgba(0,0,0,0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.modal-close:hover {
    background: rgba(0,0,0,0.5);
    color: white;
}
.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 响应式调整（首页专用） */
@media (max-width: 700px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar {
        padding-top: 20px;
    }
    .logo-img {
        height: 40px;
    }
    .logo-text {
        font-size: 1.2rem;
    }

    .pc-only {
        display: none !important;
    }
    .pc-lang-switch {
        display: none !important;
    }

    .nav-container {
        align-items: center;
    }
    .logo-area {
        order: 1;
    }
    .nav-actions {
        order: 2;
        flex: 1;
        justify-content: flex-end;
        gap: 0;
    }
    .nav-links {
        order: 3;
        width: 100%;
        margin-top: 10px;
        justify-content: flex-start;
        gap: 12px;
    }
    .nav-links a {
        white-space: nowrap;
    }

    .lang-zh .nav-links a,
    .lang-zh-hant .nav-links a {
        font-size: 0.9rem;
    }
    .lang-en .nav-links a {
        font-size: 0.6rem;
    }

    .mobile-lang-switch {
        display: flex;
        font-size: 0.65rem;
        gap: 4px;
    }
    .mobile-lang-switch a {
        padding: 2px 4px;
    }

    .hero {
        padding: 40px 0;
        margin-bottom: 20px;
    }
    .hero h1 {
        font-size: 1.2rem;
    }
    .hero p {
        font-size: 0.7rem;
        margin-bottom: 20px;
    }

    .search-box {
        flex-wrap: nowrap;
        padding: 4px;
        gap: 4px;
    }
    .search-field:first-of-type {
        flex: 1;
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    .search-field:nth-of-type(2) {
        display: none;
    }
    .search-btn {
        width: auto;
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    .section-sub {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }

    #holidayTitle::before {
        content: "";
        display: block;
        height: 20px;
    }
    #storyTitle::before {
        content: "";
        display: block;
        height: 12px;
    }
    .stories-grid {
        margin-top: 0;
        margin-bottom: 20px;
    }

    .featured-grid {
        margin-bottom: 20px;
    }
    .holiday-grid {
        margin-bottom: 20px;
    }

    .card-title {
        font-size: 1.1rem;
    }
    .card-desc {
        font-size: 0.85rem;
    }
    .price {
        font-size: 1.2rem;
    }
    .price small {
        font-size: 0.75rem;
    }
    .btn-card {
        padding: 6px 16px;
        font-size: 0.85rem;
    }

    .holiday-name {
        font-size: 1.1rem;
    }
    .holiday-meta {
        font-size: 0.75rem;
    }
    .holiday-info .price {
        font-size: 1.1rem;
    }

    .story-title {
        font-size: 1.1rem;
    }
    .story-excerpt {
        font-size: 0.85rem;
    }
    .read-more {
        font-size: 0.85rem;
    }

    .holiday-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .holiday-item:nth-child(n+4) {
        display: none;
    }
    .holiday-img {
        height: 140px;
    }

    .story-card:nth-child(n+3) {
        display: none;
    }

    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    .footer-col {
        min-width: auto;
        flex: none;
    }
    .footer-col:first-child {
        text-align: left;
    }
    .footer-col:nth-child(2) {
        text-align: right;
    }
    .footer-col:first-child ul,
    .footer-col:nth-child(2) ul {
        display: inline-block;
        text-align: left;
    }
    .footer-col:last-child {
        grid-column: span 2;
        margin-top: 10px;
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        justify-content: flex-start;
    }
    .footer-col:last-child h4 {
        margin-bottom: 0;
        white-space: nowrap;
    }
    .footer-col:last-child .social-icons {
        margin-top: 0;
        display: flex;
        flex-direction: row;
        gap: 8px;
        flex-wrap: wrap;
    }
    .footer-col:last-child .social-icons a {
        font-size: 1.2rem;
    }

    .float-kefu {
        right: 10px;
        top: auto;
        bottom: 20px;
        transform: none;
    }
    .kefu-btn {
        width: 50px;
        height: 50px;
    }
    .kefu-btn i {
        font-size: 20px;
    }
    .kefu-btn span {
        font-size: 10px;
    }
    .modal-close {
        top: -40px;
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.3rem;
    }
} 