/* 全局样式 */
:root {
    --primary-color: #660874;
    --secondary-color: #8e44ad;
    --accent-color: #00d4ff;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #660874, #8e44ad);
    --gradient-tech: linear-gradient(135deg, #660874, #00d4ff);
    --gradient-dark: linear-gradient(135deg, #1a1a2e, #16213e);
    --box-shadow: 0 10px 30px rgba(102, 8, 116, 0.15);
    --box-shadow-hover: 0 20px 40px rgba(102, 8, 116, 0.25);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* 自定义轮播控制按钮 */
.custom-carousel-control {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: var(--transition);
    opacity: 0.8;
    border: none;
}

.custom-carousel-control:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--glow);
}

.custom-carousel-prev {
    left: 30px;
}

.custom-carousel-next {
    right: 30px;
}

/* 确保Font Awesome图标正确显示 */
.custom-carousel-control i {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--dark-color);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 8, 116, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(142, 68, 173, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 科技感粒子背景 */
.tech-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: float-particle 6s infinite linear;
    opacity: 0.6;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) translateX(100px);
        opacity: 0;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary-color);
}

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto 20px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* 导航栏 */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    padding: 10px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #fff;
}

.navbar-brand span {
    color: white !important;
}

.navbar.scrolled .navbar-brand {
    color: var(--dark-color);
}

.navbar.scrolled .navbar-brand span {
    color: var(--dark-color) !important;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 10px 15px;
    position: relative;
}

.navbar.scrolled .navbar-nav .nav-link {
    color: var(--dark-color);
}

.navbar-nav .nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover:before,
.navbar-nav .nav-link.active:before {
    width: 70%;
}

/* 首页横幅 */
.hero {
    position: relative;
    background: var(--gradient-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.cloud-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url('../images/wave.svg');
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 0;
    animation: float-wave 20s infinite ease-in-out;
}

@keyframes float-wave {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-20px) translateY(5px);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-tech);
    opacity: 0.9;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(102, 8, 116, 0.1) 50%, transparent 70%);
    animation: tech-scan 4s infinite;
}

@keyframes tech-scan {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
    from { text-shadow: 0 0 30px rgba(0, 212, 255, 0.5); }
    to { text-shadow: 0 0 50px rgba(0, 212, 255, 0.8), 0 0 60px rgba(102, 8, 116, 0.6); }
}

.hero h1 {
    margin-bottom: 20px;
    font-weight: 900;
}

.hero-buttons {
    margin-top: 30px;
}

.hero-image {
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
    max-width: 100%;
    height: auto;
}

/* 调整浮动动画，避免遮挡文字 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .hero-image {
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-image {
        max-width: 100%;
        margin-top: 30px;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* 关于我们 */
.about-image {
    position: relative;
    z-index: 1;
}

.about-image:before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    border-radius: 10px;
}

.about-content h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-stats {
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.9rem;
    color: #666;
}

/* 产品中心 */
.product-categories {
    margin-bottom: 40px;
}

.nav-pills .nav-link {
    border-radius: 30px;
    padding: 8px 20px;
    margin: 0 5px;
    color: var(--dark-color);
    font-weight: 500;
}

.nav-pills .nav-link.active {
    background: var(--gradient-primary);
    color: #fff;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-link:hover .product-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-info p {
    color: #666;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price .price {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.product-price .price.free {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.product-price .price-original {
    color: #999;
    text-decoration: line-through;
    font-size: 1rem;
}

/* 技术优势 */
.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.feature-card h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: #666;
    margin-bottom: 0;
}

/* 团队介绍 */
.team-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-image {
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    transition: var(--transition);
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    color: var(--dark-color);
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary-color);
    color: #fff;
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.team-info p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.team-info small {
    color: #666;
    display: block;
}

/* 荣誉与成就 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 0;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content p {
    margin-bottom: 0;
}

/* 用户故事 */
.testimonial-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin: 20px 50px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px;
}

.testimonial-content p:before,
.testimonial-content p:after {
    content: '"';
    font-size: 50px;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
}

.testimonial-content p:before {
    top: -20px;
    left: -10px;
}

.testimonial-content p:after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author h5 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.testimonial-author small {
    color: #666;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* 新闻动态 */
.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.news-info {
    padding: 20px;
}

.news-info h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.news-info p {
    color: #666;
    margin-bottom: 15px;
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card-link:hover .news-card {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 联系我们 */
.contact-info {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text h5 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-text p {
    color: #666;
    margin-bottom: 0;
}

.contact-form {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.form-control {
    border-radius: 30px;
    padding: 12px 20px;
    border: 1px solid #ddd;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    border-radius: 20px;
    resize: none;
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 80px 0 0;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    margin-bottom: 15px;
}

.footer-contact-icon {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 60px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* AI客服样式 */
.ai-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--box-shadow-hover);
    transition: var(--transition);
    z-index: 1000;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: var(--box-shadow-hover);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 8, 116, 0.6), var(--glow);
        transform: scale(1.05);
    }
}

.ai-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(102, 8, 116, 0.4), var(--glow);
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4757;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.ai-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 15px;
    box-shadow: var(--box-shadow-hover);
    display: none;
    flex-direction: row;
    z-index: 1001;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.chat-sidebar {
    width: 40px;
    background: rgba(26, 115, 232, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0;
    height: 100%;
    border-right: 1px solid rgba(26, 115, 232, 0.2);
}

.sidebar-spacer {
    flex-grow: 1;
}

.chat-sidebar .chat-close {
    color: rgba(26, 115, 232, 0.8);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-sidebar .chat-close:hover {
    background: white;
    color: #1a73e8;
    transform: scale(1.05);
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: calc(100% - 40px);
}

.ai-chat-widget.show {
    display: flex;
    animation: slideInUp 0.3s ease-out;
}

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

.chat-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.chat-title {
    flex: 1;
}

.chat-title h5 {
    margin: 0;
    font-size: 1.1rem;
}

.status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.status.online::before {
    content: '●';
    color: #2ecc71;
    margin-right: 5px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    z-index: 1002;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.message {
    display: flex;
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease-out;
}

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

.message-avatar {
    width: 35px;
    height: 35px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: var(--gradient-tech);
    margin-right: 0;
    margin-left: 10px;
}

.message-content {
    flex: 1;
    background: #fff;
    padding: 12px 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.message-content::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #fff;
}

.user-message .message-content {
    background: var(--primary-color);
    color: #fff;
}

.user-message .message-content::before {
    left: auto;
    right: -8px;
    border-right: none;
    border-left: 8px solid var(--primary-color);
}

.message-content p {
    margin: 0;
    line-height: 1.5;
    white-space: pre-line;
}

.quick-replies {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.quick-reply {
    background: var(--light-color);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.quick-reply:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.chat-input {
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    margin-right: 10px;
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.chat-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(102, 8, 116, 0.2);
}

.chat-input button {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-input button:hover {
    transform: scale(1.1);
    box-shadow: var(--glow);
}

/* 响应式设计 */
@media (max-width: 991px) {
    .navbar-nav {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: var(--box-shadow);
    }
    
    .navbar-nav .nav-link {
        color: var(--dark-color) !important;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .testimonial-card {
        margin: 20px 10px;
    }
}