/* ============================================
   徐州旅行攻略 - 科幻暗色主题
   ============================================ */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: #0a0e1a;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 星空粒子背景 ========== */
.stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 背景光晕 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(6, 214, 160, 0.04) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: aurora 20s ease-in-out infinite alternate;
}

@keyframes aurora {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-2%, -2%) rotate(3deg); }
}

/* ========== 容器 ========== */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== 玻璃卡片通用 ========== */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(0, 212, 255, 0.05);
}

/* ========== 区域标题通用 ========== */
.section-title {
    text-align: center;
    margin-bottom: 28px;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #06d6a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ========== 头部 Header ========== */
.header {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, #7c3aed, transparent);
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #00d4ff 0%, #a78bfa 40%, #06d6a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: none;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.5)); }
}

.header .subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 4px;
    font-weight: 300;
}

.header .subtitle::before,
.header .subtitle::after {
    content: ' ◆ ';
    color: rgba(0, 212, 255, 0.4);
    font-size: 0.6rem;
    vertical-align: middle;
}

/* ========== 交通信息 (Tab) ========== */
.transport-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.tab-btn {
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: #fff;
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
    border-color: rgba(0, 212, 255, 0.4);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h3 {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
}

.train-list {
    display: grid;
    gap: 16px;
}

.train-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
}

.train-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateX(5px);
}

.train-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.train-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00d4ff;
    letter-spacing: 1px;
}

.train-time {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.train-details p {
    margin: 6px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.train-details .recommend {
    color: #06d6a0 !important;
    font-weight: 500;
}

/* ========== 天气卡片 ========== */
.weather-cards {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.weather-card {
    flex: 1;
    min-width: 130px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 14px;
    padding: 18px 12px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: default;
}

.weather-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
}

.weather-card .date {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.weather-card .temperature {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 8px 0;
    background: linear-gradient(135deg, #00d4ff, #06d6a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.weather-card .condition {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.weather-card .icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
}

/* ========== 旅行小贴士 ========== */
.tips-content ul {
    list-style: none;
    padding: 0;
}

.tips-content li {
    padding: 14px 20px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid rgba(6, 214, 160, 0.5);
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.tips-content li:hover {
    background: rgba(6, 214, 160, 0.06);
    border-left-color: #06d6a0;
    transform: translateX(5px);
}

.tips-content li::before {
    content: '💡';
    margin-right: 10px;
}

/* ========== 行程安排 ========== */
.day-plan {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.day-header h3 {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.4rem;
    font-weight: 600;
}

.day-tag {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
    color: #a78bfa;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.attraction-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
    cursor: pointer;
}

.attraction-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(0, 212, 255, 0.06);
}

.attraction-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.85) saturate(1.1);
}

.attraction-card:hover img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1.2);
}

.card-content {
    padding: 18px 20px;
}

.card-content h4 {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-content .time {
    color: #00d4ff;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.card-content .desc {
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* ========== 实用工具 ========== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.tool-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.4s ease;
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(0, 212, 255, 0.08);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(124, 58, 237, 0.12));
}

.tool-icon {
    font-size: 2.8rem;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
}

.tool-card p {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
}

.tool-btn {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.tool-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

/* ========== 地图样式 ========== */
#map-container {
    width: 100%;
    height: 500px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.map-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.map-btn {
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    font-family: inherit;
}

.map-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: #fff;
}

.map-btn.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
    border-color: rgba(0, 212, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.map-tips {
    text-align: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.map-tips p {
    margin: 4px 0;
}

.route-info {
    margin-top: 22px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid rgba(0, 212, 255, 0.4);
}

.route-info h3 {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 14px;
    font-size: 1.2rem;
    font-weight: 600;
}

.route-details {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.route-segment {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 18px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.segment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.segment-title {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

.travel-mode {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.mode-driving {
    background: rgba(6, 214, 160, 0.2);
    color: #06d6a0;
    border: 1px solid rgba(6, 214, 160, 0.3);
}

.mode-walking {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.segment-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
}

.info-value {
    color: rgba(255, 255, 255, 0.7);
}

.total-summary {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    font-weight: 500;
    color: #00d4ff;
}

/* ========== 备案 Footer ========== */
.footer {
    padding: 20px 0;
    text-align: center;
}

.footer .beian {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer .beian a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .beian a:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 212, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.2);
}

.footer .beian img {
    height: 14px;
    width: auto;
    vertical-align: middle;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.footer .beian a:hover img {
    opacity: 0.8;
}

/* ========== 入场动画 ========== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .container { padding: 14px; }
    .glass-card { padding: 22px; }

    .header { padding: 40px 16px 30px; }
    .header h1 { font-size: 2rem; }
    .header .subtitle { font-size: 1rem; letter-spacing: 2px; }

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

    .weather-cards { flex-direction: row; gap: 10px; }
    .weather-card { min-width: 100px; padding: 14px 8px; }
    .weather-card .temperature { font-size: 1.3rem; }

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

    .day-header { flex-direction: column; align-items: flex-start; gap: 8px; }

    #map-container { height: 350px; }

    .footer .beian { gap: 8px; }
    .footer .beian a { font-size: 12px; padding: 5px 10px; }
}

@media (max-width: 480px) {
    .header h1 { font-size: 1.6rem; }
    .subtitle { font-size: 0.9rem; }

    .tools-grid { grid-template-columns: 1fr; }
    .map-controls { flex-direction: column; align-items: center; }
    .map-btn { width: 80%; }
}
