/* public/static/home/css/city_home.css */

/* 城市横幅 */
.city-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: var(--max-width);
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.city-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    border-radius: 10px;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-left {
    flex: 1;
    text-align: left;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.banner-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 100%;
    margin: 0;
    text-align: left;
}

/* 公众号二维码样式 */
.banner-wechat {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.wechat-text-wrapper {
    text-align: right;
}

.wechat-text-inline {
    color: #fff;
}

.wechat-title-inline {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.wechat-title-inline i {
    font-size: 20px;
    color: #1aad19;
}

.wechat-desc-inline {
    font-size: 15px;
    margin: 0 0 8px 0;
    opacity: 0.9;
}

.wechat-name-inline {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    opacity: 0.95;
}

.qr-code-inline {
    width: 130px;
    height: 130px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qr-img-inline {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .city-banner {
        padding: 40px 0;
        margin: 10px;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .banner-left {
        text-align: center;
    }
    
    .banner-title {
        text-align: center;
        font-size: 1.8rem;
    }
    
    .banner-desc {
        text-align: center;
        font-size: 1rem;
    }
    
    .banner-wechat {
        flex-direction: column;
        gap: 15px;
    }
    
    .wechat-text-wrapper {
        text-align: center;
    }
    
    .wechat-title-inline {
        justify-content: center;
        font-size: 16px;
    }
    
    .wechat-desc-inline {
        font-size: 14px;
    }
    
    .wechat-name-inline {
        font-size: 15px;
    }
    
    .qr-code-inline {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-desc {
        font-size: 0.9rem;
    }
    
    .wechat-title-inline {
        font-size: 15px;
    }
    
    .wechat-desc-inline {
        font-size: 13px;
    }
    
    .wechat-name-inline {
        font-size: 14px;
    }
    
    .qr-code-inline {
        width: 120px;
        height: 120px;
    }
}