/* 英雄区 */
.hero-section {
    position: relative;
    height: 100vh;
    /*min-height: 1024px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: linear-gradient(45deg, #0d1b2a, #1b263b, #00d4ff);*/
    background: linear-gradient(45deg, #0d1b2a, #0066ff, #ff5a00);
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
    z-index: 1; /* 背景层最低 */
    padding: 2rem 1rem; /* 减小内边距 */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2; /* 遮罩层高于背景 */
}

.hero-content {
    position: relative;
    z-index: 200; /* 文字和按钮高于数字雨 */
    padding: 2rem;
}

.hero-subsection {
    width: 90%;
    justify-self: center;
}

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;700&family=Roboto:wght@300;400;500&display=swap');

.hero-title {
    font-family: 'Crimson Text', "Songti SC", /* macOS 首选 */ "SimSun", /* Windows 备用 */ "Noto Serif SC", /* Android/现代系统 */ "Georgia", /* 英文首选 */ "Times New Roman", /* 英文备用 */ serif; /* 最终回退 */
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(120deg, #ff0000, #FFA500, #9900ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
    font-display: swap; /* 字体加载时先显示系统字体 */
}

.hero-subtitle {
    font-family: 'Roboto', "Songti SC", /* macOS 首选 */ "SimSun", /* Windows 备用 */ "Noto Serif SC", /* Android/现代系统 */ "Georgia", /* 英文首选 */ "Times New Roman", /* 英文备用 */ serif; /* 最终回退 */
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    color: #b0b0b0;
}

.hero-subsection.rounded-box {
    border: 2px solid #3b82f6; /* 蓝色边框更显眼 */
    border-radius: 1rem;
    /*background-color: #f3f4f6; !* 浅灰背景 *!*/
    padding: 1.5rem;
    max-width: 90%;
    /*margin: 0 auto;*/
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.05);*/
}

/* 字体修饰样式 */
.highlight-custom {
    font-weight: 700; /* 粗体 */
    font-family: Georgia, 'Segoe UI', sans-serif; /* 不同字体，科技感 */
    color: #ffffff;
}

.highlight-web {
    color: #ff5a00; /* 橙色 */
}

.highlight-ai {
    color: #00d4ff; /* 科技蓝 */
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.btn-hero {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    background: #ff5a00;
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.btn-hero-secondary {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-color: #00d4ff;
    color: #00d4ff;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: #00d4ff;
    color: #0d1b2a;
}

/* 服务亮点 */
.services-section {
    padding: 3rem 0;
    background: #1b263b;
    z-index: 101;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #00d4ff;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.3rem;
    text-align: center;
}

.service-content h3 {
    font-size: 1.6rem;
    color: #ff5a00;
}

.service-content p {
    color: #e0e0e0;
    margin: 1rem 0;
}

.btn-outline-light {
    border-color: #00d4ff;
    color: #00d4ff;
}

.btn-outline-light:hover {
    background: #00d4ff;
    color: #0d1b2a;
}

/* 响应式设计 */

@media (max-width: 768px) {
    html {
        font-size: 80%;
    }

    .navbar-logo {
        width: 120px;
    }

    .service-img {
        height: 150px;
    }
}

@media (max-width: 380px) {
    html {
        font-size: 60%;
    }

    .navbar-logo {
        width: 100px;
    }

    .service-img {
        height: 120px;
    }
}

/* AI互动体验 */
.ai-demo-section {
    padding: 5rem 0;
    background: #0d1b2a;
    z-index: 101;
}

.ai-chat-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.chat-box {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.chat-form {
    display: flex;
    gap: 1rem;
}

#question {
    flex-grow: 1;
    padding: 0.8rem;
    border: 1px solid #00d4ff;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

#question:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.submit-btn {
    padding: 0.8rem 2rem;
    background: #ff5a00;
    border: none;
    border-radius: 25px;
    color: #ffffff;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #00d4ff;
}

/* 客户案例 */
.case-study-section {
    padding: 5rem 0;
    background: #1b263b;
    z-index: 101;
}

.carousel-inner img {
    max-height: 500px;
    /*object-fit: cover;*/
    object-fit: contain;
    border-radius: 15px;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 1rem;
}


/* 动画 */
@keyframes gradientShift {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

/* AI 聊天消息样式 */
.user-message {
    color: #00d4ff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.ai-message {
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 5px;
}

.error-message {
    color: #ff5a00;
    margin-bottom: 0.5rem;
    font-style: italic;
}


#dify-chatbot-bubble-button {
    background-color: #1C64F2 !important;
    /*position: fixed !important;*/
    /*right: 50px !important;*/
    /*bottom: 10% !important;*/
}

#dify-chatbot-bubble-window {
    position: fixed !important;
    bottom: 12% !important;
    width: 24rem !important;
    height: 40rem !important;
}

.text-pxsk {
    color: #FFA500;
    font-weight: bold;
}
