/* ========================================
   苏州文化国际旅行社吴江分公司 - 前台样式 V5
   参考国旅/携程风格：深蓝主色 + 金色点缀
   ======================================== */

:root {
    --primary: #0d3b66;
    --primary-light: #1a5a96;
    --accent: #d4a843;
    --accent-light: #e8c97a;
    --bg: #f7f9fc;
    --text: #2c3e50;
    --text-light: #6b7c93;
    --white: #ffffff;
    --shadow: 0 2px 12px rgba(13, 59, 102, 0.08);
    --shadow-hover: 0 6px 24px rgba(13, 59, 102, 0.15);
    --radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部信息条 ===== */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar span { display: flex; align-items: center; gap: 4px; }

/* ===== 主导航 ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text { font-size: 24px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.logo-sub { font-size: 12px; color: var(--text-light); margin-top: 2px; }

.nav { display: flex; gap: 8px; }
.nav a {
    padding: 8px 18px;
    font-size: 15px;
    color: var(--text);
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
}
.nav a:hover, .nav a.active {
    color: var(--primary);
    background: rgba(13, 59, 102, 0.06);
}
.nav-phone {
    background: var(--accent);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ===== 首屏Banner ===== */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0d3b66 0%, #1a5a96 50%, #2980b9 100%);
    color: var(--white);
    overflow: hidden;
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 700px; }
.hero-badge {
    display: inline-block;
    background: rgba(212, 168, 67, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}
.hero p.hero-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}
.hero-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.hero-info-item { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.hero-info-item .icon { font-size: 22px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover { background: #b8922e; transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ===== 通用区块 ===== */
.section { padding: 70px 0; }
.section-alt { background: var(--white); }
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 40px;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
}

/* ===== 服务板块 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-card .icon { font-size: 40px; margin-bottom: 15px; }
.service-card h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ===== 线路卡片 ===== */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.route-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.route-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.route-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e8f0, #c8d6e5);
}
.route-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.route-card:hover .route-img img { transform: scale(1.05); }
.route-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 60px;
}
.route-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}
.route-body { padding: 18px; }
.route-body h3 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
}
.route-body h3 a { color: var(--text); }
.route-body h3 a:hover { color: var(--primary); }
.route-summary {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    height: 40px;
    overflow: hidden;
    margin-bottom: 12px;
}
.route-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}
.route-days { font-size: 13px; color: var(--primary); font-weight: 600; }
.route-price { font-size: 13px; color: var(--accent); font-weight: 600; }
.route-btns { display: flex; gap: 8px; margin-top: 12px; }

/* ===== 新闻 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.news-img { height: 180px; background: linear-gradient(135deg, #e0e8f0, #c8d6e5); display: flex; align-items: center; justify-content: center; font-size: 50px; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 18px; }
.news-date { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.news-body h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.news-body h3 a { color: var(--text); }
.news-body p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ===== 荣誉 ===== */
.honors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.honor-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}
.honor-item img { max-height: 120px; margin: 0 auto 15px; object-fit: contain; }
.honor-icon { font-size: 48px; margin-bottom: 15px; }
.honor-item p { font-size: 14px; color: var(--text); font-weight: 500; line-height: 1.5; }

/* ===== 优势板块 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-item {
    text-align: center;
    padding: 20px;
}
.feature-item .icon { font-size: 40px; margin-bottom: 12px; }
.feature-item h3 { font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.feature-item p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}
.cta-section h2 { font-size: 30px; margin-bottom: 12px; }
.cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 25px; }

/* ===== 底部 ===== */
.footer {
    background: #1a2a3a;
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.footer-col p { margin-bottom: 8px; line-height: 1.6; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ===== 悬浮按钮 ===== */
.float-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.float-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s;
    color: var(--white);
}
.float-btn:hover { transform: scale(1.1); }
.float-phone { background: #e74c3c; }
.float-wechat { background: #27ae60; }
.float-top { background: var(--primary); }

/* ===== 微信弹窗 ===== */
.wechat-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.wechat-modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 320px;
}
.wechat-modal-content h3 { color: var(--primary); margin-bottom: 10px; }
.wechat-modal-content p { margin-bottom: 15px; color: var(--text-light); }

/* ===== 页面Banner ===== */
.page-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-banner h1 { font-size: 36px; margin-bottom: 8px; }
.breadcrumb {
    font-size: 14px;
    padding: 15px 0;
    color: var(--text-light);
}
.breadcrumb a { color: var(--primary); }

/* ===== 线路详情 ===== */
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin: 30px 0; }
.detail-main { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.detail-sidebar { background: var(--white); border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow); height: fit-content; }
.detail-cat { display: inline-block; background: rgba(212,168,67,0.15); color: var(--accent); padding: 4px 12px; border-radius: 3px; font-size: 13px; margin-bottom: 12px; }
.detail-info h2 { font-size: 26px; color: var(--primary); margin-bottom: 12px; line-height: 1.3; }
.detail-meta { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.detail-price { font-size: 16px; color: var(--accent); font-weight: 600; margin-bottom: 20px; padding: 12px; background: rgba(212,168,67,0.08); border-radius: 4px; }
.detail-content h3 { color: var(--primary); font-size: 18px; margin: 20px 0 10px; }
.detail-content p { line-height: 1.8; margin-bottom: 10px; }
.itinerary { line-height: 1.9; }
.contact-bar {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.contact-bar .btn { background: var(--accent); color: var(--white); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.faq-q {
    padding: 18px 20px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-a { padding: 0 20px 18px; color: var(--text-light); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }

/* ===== 联系表单 ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 30px 0; }
.contact-form, .contact-info-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dde4ed;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.contact-info-box h3 { color: var(--primary); margin-bottom: 15px; }
.contact-info-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px; line-height: 1.6; }

/* ===== 分页 ===== */
.pagination { text-align: center; margin: 30px 0; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: 4px;
    border: 1px solid #dde4ed;
    font-size: 14px;
}
.pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== 关于我们 ===== */
.about-section { background: var(--white); }
.about-section p { line-height: 2; margin-bottom: 15px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}
.stat-card {
    text-align: center;
    padding: 25px;
    background: var(--bg);
    border-radius: var(--radius);
}
.stat-num { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 5px; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .routes-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .honors-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-layout, .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .nav.open { display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); padding: 20px; box-shadow: var(--shadow); }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 28px; }
    .hero p.hero-desc { font-size: 15px; }
    .routes-grid, .news-grid, .honors-grid, .services-grid, .features-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 24px; }
    .top-bar .container { flex-direction: column; gap: 4px; }
}
@media (max-width: 480px) {
    .routes-grid, .news-grid, .honors-grid, .services-grid, .features-grid, .stats-grid { grid-template-columns: 1fr; }
}
