/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    background-color: #ffffff;
    line-height: 1.6;
}

/* 自定义工具类 */
.content-auto {
    content-visibility: auto;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

.card-shadow {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 仅为图标容器创建专门的圆形样式类 */
.circle-icon {
    aspect-ratio: 1 / 1 !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

/* 统一卡片和图片宽度 */
.uniform-width {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

/* 装饰卡片统一样式 */
.decorative-card {
    position: absolute !important;
    max-width: 280px !important;
    width: 280px !important;
    min-width: 280px !important;
    box-sizing: border-box;
}

/* 进度条样式保持不变 */

/* 加载动画 */
.loader {
    border-top-color: #1e40af;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* 导航栏默认样式 */
header#navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* 导航栏滚动效果 */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 响应式断点调整 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 13px;
    }
    
    /* 修复移动端绝对定位元素超出屏幕宽度的问题并最大化宽度 */
    #home .relative > div.absolute:not(.bg-primary\/10):not(.bg-secondary\/10) {
        position: static !important;
        margin: 16px auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    #about .relative > div.absolute {
        position: static !important;
        margin: 16px auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* 调整移动端内容以避免滚动条问题 */
    html, body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    
    * {
        box-sizing: border-box;
    }
    
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
    }
    
    /* 确保装饰卡片在移动端不会导致滚动问题并最大化宽度 */
    @media (max-width: 480px) {
        .decorative-card {
            position: static !important;
            margin: 16px auto !important;
            max-width: 100% !important;
            width: 100% !important;
            min-width: auto !important;
        }
    }
}

/* 按钮样式优化 */
button,
.a.button {
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover,
button:focus,
button:active,
.a.button:hover,
.a.button:focus,
.a.button:active {
    outline: none;
}

/* 输入框样式优化 */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* 移动端表单界面完全重设计 */
@media (max-width: 640px) {
    #quote {
        padding: 20px 12px !important;
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    }
    
    #quote .container {
        max-width: 100% !important;
    }
    
    #quote .bg-white {
        padding: 28px 20px !important;
        border-radius: 24px !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
        background: #ffffff;
        transform: translateY(0);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    #quote .bg-white:active {
        transform: translateY(2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    }
    
    #quote h2 {
        font-size: 26px !important;
        font-weight: 800 !important;
        color: #1e293b !important;
        text-align: center !important;
        margin-bottom: 16px !important;
        line-height: 1.2;
        position: relative;
    }
    
    #quote h2::after {
        content: '';
        display: block;
        width: 60px;
        height: 4px;
        background: #3b82f6;
        margin: 12px auto 0;
        border-radius: 2px;
    }
    
    #quote p {
        text-align: center !important;
        color: #64748b !important;
        font-size: 15px !important;
        line-height: 1.6;
        margin-bottom: 24px !important;
    }
    
    /* 特点列表重新设计 */
    #quote .space-y-6:nth-child(2) {
        margin-bottom: 32px !important;
    }
    
    #quote .space-y-6:nth-child(2) > div {
        background: #f8fafc;
        padding: 16px !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        border-left: 4px solid #3b82f6;
        transition: transform 0.2s ease;
    }
    
    #quote .space-y-6:nth-child(2) > div:active {
        transform: translateX(5px);
    }
    
    #quote .space-y-6:nth-child(2) .bg-primary\/10 {
        background: #3b82f6 !important;
        color: white !important;
        padding: 10px !important;
        border-radius: 50% !important;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #quote .space-y-6:nth-child(2) h4 {
        font-size: 16px !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
        color: #1e293b !important;
    }
    
    #quote .space-y-6:nth-child(2) p {
        text-align: left !important;
        font-size: 14px !important;
        margin: 0 !important;
        color: #64748b !important;
    }
    
    /* 表单样式全面优化 */
    #quote form {
        margin-top: 20px !important;
        background: #ffffff;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }
    
    #quote input,
    #quote textarea,
    #quote select {
        width: 100% !important;
        min-height: 56px !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        border: 2px solid #e2e8f0 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        color: #1e293b !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) inset;
    }
    
    #quote input:focus,
    #quote textarea:focus,
    #quote select:focus {
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
        transform: translateY(-1px);
    }
    
    #quote label {
        display: block !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #334155 !important;
        margin-bottom: 8px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    #quote .grid-cols-1.sm\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    #quote form .space-y-6 > * {
        margin-bottom: 24px !important;
    }
    
    #quote button[type="submit"] {
        width: 100% !important;
        min-height: 60px !important;
        padding: 16px 24px !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        color: white !important;
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
        border: none !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3) !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        position: relative;
        overflow: hidden;
    }
    
    #quote button[type="submit"]:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: all 0.5s ease;
    }
    
    #quote button[type="submit"]:hover:before {
        left: 100%;
    }
    
    #quote button[type="submit"]:active {
        transform: translateY(2px) !important;
        box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3) !important;
    }
    
    /* 选择框特殊样式 */
    #quote select {
        appearance: none !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 20px center !important;
        background-size: 20px !important;
        padding-right: 50px !important;
    }
    
    /* 文本区域样式 */
    #quote textarea {
        min-height: 120px !important;
        resize: vertical !important;
        font-family: inherit !important;
    }
    
    /* 输入框占位符样式 */
    #quote input::placeholder,
    #quote textarea::placeholder {
        color: #94a3b8 !important;
        font-size: 15px !important;
    }
    
    /* 添加表单元素动画效果 */
    #quote form > div {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.5s ease forwards;
    }
    
    #quote form > div:nth-child(1) { animation-delay: 0.1s; }
    #quote form > div:nth-child(2) { animation-delay: 0.2s; }
    #quote form > div:nth-child(3) { animation-delay: 0.3s; }
    #quote form > div:nth-child(4) { animation-delay: 0.4s; }
    #quote form > div:nth-child(5) { animation-delay: 0.5s; }
    #quote form > button { animation-delay: 0.6s; }
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
}

/* Canvas图表容器样式 */
#customerSatisfactionChart {
    width: 100% !important;
    height: 300px !important;
    max-width: 400px;
    margin: 0 auto;
}

/* 大屏幕设备上的图表样式 */
@media (min-width: 768px) {
    #customerSatisfactionChart {
        height: 350px !important;
        max-width: 500px;
    }
}

/* 超大屏幕设备上的图表样式 */
@media (min-width: 1200px) {
    #customerSatisfactionChart {
        height: 400px !important;
        max-width: 600px;
    }
}

/* 链接样式优化 */
a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 移动端菜单容器展开/折叠动画 */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.active {
    max-height: 500px; /* 足够大的值以容纳所有内容 */
    opacity: 1;
    transform: translateY(0);
}

/* 移动端菜单链接展开动画 */
#mobile-menu a {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.active a {
    opacity: 1;
    transform: translateX(0);
}

/* 移动端菜单按钮动画效果 */
#menu-toggle i {
    transition: transform 0.3s ease;
    display: inline-block;
}

/* 菜单打开时的按钮旋转动画 */
#menu-toggle.menu-open i {
    transform: rotate(90deg);
}

/* 图标切换的过渡动画 */
#menu-toggle i.fa-bars,
#menu-toggle i.fa-times {
    transition: all 0.3s ease;
}

/* 为移动端菜单链接添加交错动画效果 */
#mobile-menu a:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu a:nth-child(2) { transition-delay: 0.10s; }
#mobile-menu a:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu a:nth-child(4) { transition-delay: 0.20s; }
#mobile-menu a:nth-child(5) { transition-delay: 0.25s; }
#mobile-menu a:nth-child(6) { transition-delay: 0.30s; }

/* 标题样式优化 */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

/* 滚动条样式（可选） */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 返回顶部按钮样式 */
#back-to-top {
    cursor: pointer;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* 页面特定区域样式 */
#home {
    position: relative;
    overflow: hidden;
}

/* 装饰元素样式 */
#home::before,
#home::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(3xl);
    -webkit-filter: blur(3xl);
    z-index: -10;
}

#home::before {
    width: 500px;
    height: 500px;
    background-color: rgba(30, 64, 175, 0.1);
    top: -250px;
    right: -250px;
}

#home::after {
    width: 600px;
    height: 600px;
    background-color: rgba(79, 70, 229, 0.1);
    bottom: -300px;
    left: -300px;
}

/* 产品卡片样式 */
.product-card {
    transition: all 0.3s ease;
}

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

/* 服务卡片样式 */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* 团队成员卡片样式 */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

/* 客户评价卡片样式 */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* 价格卡片样式 */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

/* 特色功能样式 */
.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

/* 合作伙伴样式 */
.partner-item {
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
}

/* 联系表单样式 */
.contact-form {
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.2);
}

/* FAQ 折叠面板样式 */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.active {
    background-color: #f9fafb;
}

/* FAQ 内容展开/折叠动画 */
.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-answer.expanded {
    max-height: 500px; /* 足够大的值以容纳所有内容 */
    opacity: 1;
    padding: 1rem 1.5rem; /* 与原来的padding一致 */
}

.faq-answer.hidden {
    padding: 0 1.5rem; /* 隐藏时保留左右padding */
}

/* 统计数字动画样式 */
.counter {
    transition: all 0.3s ease;
}

/* 英雄区域CTA按钮样式 */
.cta-button {
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 页脚链接样式 */
.footer-link {
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #1e40af;
}

/* 社交媒体图标样式 */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #1e40af;
}

/* 备案号链接样式 */
.original-beian-link {
    display: inline-block;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.original-beian-link:hover {
    color: #1e40af;
}

/* 分页导航样式 */
.pagination {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    background: transparent;
    padding: 4px;
    transition: all 0.3s ease;
}

.pagination a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    margin: 0 2px;
    border-radius: 8px;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: white;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: all 0.5s ease;
}

.pagination a:hover::before {
    left: 100%;
}

.pagination a:hover:not(.pagination-active) {
    background-color: #f8fafc;
    color: #3b82f6;
    transform: translateY(-1px);
    border-color: #cbd5e1;
}

.pagination a.pagination-active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.pagination a.pagination-active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.pagination a:first-child,
.pagination a:last-child {
    padding: 10px 14px;
}

.pagination a:first-child:hover,
.pagination a:last-child:hover {
    background-color: #f8fafc;
}

.pagination i {
    font-size: 12px;
}

/* 响应式分页导航 */
@media (max-width: 640px) {
    .pagination {
        padding: 2px;
    }
    
    .pagination a {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .pagination a:first-child,
    .pagination a:last-child {
        padding: 8px 10px;
    }
}

/* 页脚联系信息项样式 */
.footer-contact-info {
    margin: 1rem 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.footer-contact-item i {
    width: 36px;
    height: 36px;
    background-color: rgba(30, 64, 175, 0.1);
    color: #1e40af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.footer-contact-item p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
    transition: color 0.3s ease;
}

.footer-contact-item:hover i {
    background-color: #1e40af;
    color: white;
    transform: translateY(-2px);
}

.footer-contact-item:hover p {
    color: white;
}