/* ============================================ */
/*  江苏文旅推介网站 — 自定义样式                  */
/*  搭配 Tailwind CDN 使用                       */
/* ============================================ */

/* ----- 全局 ----- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
}

.bg-jiangsu-gradient {
    background: linear-gradient(135deg, #F5F0E6 0%, #E8F4F8 50%, #FFF8E7 100%);
}

/* ============================================
   开场区域 - 背景图片轮播样式
   ============================================ */
.intro-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.intro-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.intro-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2.5s ease-out;
    z-index: 0;
}

.intro-bg-image.active {
    opacity: 1;
}

.intro-fog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg,
            rgba(232, 244, 248, 0.35) 0%,
            rgba(74, 144, 226, 0.15) 30%,
            rgba(44, 95, 141, 0.2) 60%,
            rgba(20, 60, 100, 0.25) 100%
        ),
        radial-gradient(ellipse at 20% 30%,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 50%
        ),
        radial-gradient(ellipse at 80% 70%,
            rgba(212, 175, 55, 0.1) 0%,
            transparent 40%
        );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.intro-text {
    position: relative;
    z-index: 2;
    font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', serif;
    font-size: clamp(8rem, 25vw, 15rem);
    font-weight: normal;
    color: #FFFFFF;
    text-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 8px 40px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(212, 175, 55, 0.5);
    animation: fadeInScale 2s ease-out forwards;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.intro-subtitle {
    position: relative;
    z-index: 2;
    font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: rgba(255, 255, 255, 0.95);
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(212, 175, 55, 0.3);
    animation: fadeInScale 2s ease-out 0.5s forwards;
    opacity: 0;
    letter-spacing: 0.3em;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounceSlow 2s infinite;
    cursor: pointer;
}

.scroll-indicator span {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.scroll-indicator p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    text-align: center;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.9); }
    50% { opacity: 0.8; }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes bounceSlow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(15px); }
}

/* 开场区 - 手机端适配 */
@media (max-width: 768px) {
    .intro-text {
        font-size: clamp(5rem, 20vw, 10rem);
        letter-spacing: 0.1em;
    }
    .intro-subtitle {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
}

/* ============================================
   单城市展示区 - 虚化背景 + 内容卡片
   ============================================ */

.city-showcase {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 虚化背景图层 */
.city-showcase-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.55);
    transform: scale(1.1);
    transition: filter 0.5s ease;
}

/* 渐变叠加层 */
.city-showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(44, 62, 80, 0.50) 0%,
        rgba(74, 144, 226, 0.25) 50%,
        rgba(44, 62, 80, 0.40) 100%
    );
}

/* 内容区域 */
.city-showcase-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 40px;
    max-width: 800px;
    width: 100%;
}

/* 城市名称 - 书法大字 */
.city-showcase-name {
    font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', serif;
    font-size: clamp(3rem, 10vw, 5.5rem);
    color: #FFF8E7;
    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(212, 175, 55, 0.3);
    margin-bottom: 12px;
    letter-spacing: 0.15em;
    animation: fadeInScale 1.5s ease-out forwards;
}

/* 标语 */
.city-showcase-tagline {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.90);
    letter-spacing: 0.3em;
    margin-bottom: 28px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* 三张信息卡片网格 */
.city-showcase-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.city-info-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}

.city-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.city-info-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.city-info-card h4 {
    font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', serif;
    font-size: 1.3rem;
    color: #2C5F8D;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.city-info-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
}

/* 手机端：信息卡片变单列 */
@media (max-width: 640px) {
    .city-showcase-cards {
        grid-template-columns: 1fr;
    }
    .city-showcase-content {
        padding: 40px 20px;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .city-showcase-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .city-info-card {
        padding: 18px 12px;
    }
}

/* ============================================
   其他样式
   ============================================ */
.chat-container {
    height: calc(100vh - 200px);
    max-height: 500px;
}

.message-bubble {
    max-width: 80%;
    word-wrap: break-word;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4A90E2;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.nav-item {
    transition: all 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 280px);
    }
}
