/* 甜云智能 - 样式增强 */

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #10b981;
    --box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --logo-gradient: linear-gradient(90deg, #b498f7 0%, #bf3dc3 47.22%, #ef5496 100%);
}

/* 按钮增强 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255,255,255,0.2);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.btn-outline:hover {
    transform: translateY(-2px);
}

.btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

/* 标题样式增强 */
.section-header {
    position: relative;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--logo-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-header.left-align::after {
    margin: 15px 0 0;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

/* 卡片样式增强 */
.product-card, .case-card, .news-card, .advantage-card {
    transition: all 0.5s ease;
    overflow: hidden;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--logo-gradient);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-15px);
}

.product-card:hover::before {
    height: 8px;
}

.product-icon {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6effe 100%);
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.1);
}

.product-card:hover .product-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.2);
}

.product-card:hover .product-icon i {
    transform: scale(1.2);
}

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

.case-image, .news-image {
    position: relative;
}

.case-image::before, .news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.case-card:hover .case-image::before, 
.news-card:hover .news-image::before {
    opacity: 1;
}

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

.case-image img, .news-image img {
    transition: all 0.7s ease;
}

.case-content h3, .feature-content h3 {
    position: relative;
    padding-bottom: 15px;
}

.case-content h3::after, .feature-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--logo-gradient);
}

/* 特色服务样式增强 */
.feature {
    position: relative;
    z-index: 2;
}

.feature-image {
    position: relative;
    transition: var(--transition);
}

.feature-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(16, 185, 129, 0.2));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.feature:hover .feature-image::before {
    opacity: 1;
}

.feature:hover .feature-image {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-image img {
    transition: var(--transition);
}

.feature:hover .feature-image img {
    transform: scale(1.05);
}

/* 联系我们样式增强 */
.contact-item {
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
}

.contact-form:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background-color: white;
}

/* 底部导航样式增强 */
.footer-logo h2 {
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.social-links a {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--logo-gradient);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: -1;
    transform: scale(0);
    border-radius: 50%;
}

.social-links a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.footer-links ul li a {
    position: relative;
    padding-left: 15px;
}

.footer-links ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    padding-left: 20px;
}

.footer-links ul li a:hover::before {
    background-color: var(--primary-color);
}

/* 导航菜单增强 */
.main-menu li a {
    position: relative;
}

.main-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background: var(--logo-gradient);
    transition: var(--transition);
}

.main-menu li a:hover::after,
.main-menu li a.active::after {
    width: 100%;
}

/* 价格方案卡片增强 */
.pricing-card {
    transition: all 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* FAQ样式增强 */
.faq-item {
    transition: all 0.3s ease;
}

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

.faq-question {
    transition: all 0.3s ease;
}

.faq-question i {
    transition: all 0.3s ease;
}

/* 回到顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 增强页面标题样式 */
.page-banner {
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBkPSJNIDQwIDAgTCAwIDAgTCAwIDQwIiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMC41IiBzdHJva2Utb3BhY2l0eT0iMC4xIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyaWQpIi8+PC9zdmc+');
    opacity: 0.7;
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.banner-content h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
}

/* 响应式优化 */
@media screen and (max-width: 768px) {
    .main-menu li a::after {
        display: none;
    }
    
    .section-header::after {
        width: 40px;
    }
}

/* 额外的UI提升 */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

/* 产品卡片增强 */
.product-grid {
    display: grid;
    gap: 30px;
}

.product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.product-card:hover {
    border-color: var(--primary-color);
}

/* 新闻卡片增强 */
.news-card {
    background: var(--text-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.news-image {
    overflow: hidden;
}

.news-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 表单增强 */
.form-control {
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.input-error {
    border-color: #ef4444 !important;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* 加载动画 */
.loading {
    display: none;
    text-align: center;
    padding: 10px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(79, 70, 229, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 成功消息动画 */
.sent-message {
    display: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    animation: slideInDown 0.5s ease;
}

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

/* 错误消息样式 */
.error-message {
    display: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    animation: slideInDown 0.5s ease;
}

/* 渐变文字效果 */
.gradient-text {
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* 卡片悬停阴影增强 */
.product-card:hover,
.case-card:hover,
.news-card:hover {
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.15);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 导航栏增强 */
header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* 响应式图片优化 */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}