/* ========================================
   UI 美化增强样式 - 高级版
   ======================================== */

/* 全局增强 */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
}

/* 页面标题增强 */
.page-header,
.hero-section {
    position: relative;
    overflow: hidden;
}

.page-header::before,
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.page-header::after,
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 30px) rotate(3deg); }
}

/* 页面主标题和 Hero 标题 - 白色清晰文字 */
.page-header h1,
.hero-section h1 {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    letter-spacing: -0.5px;
    -webkit-text-fill-color: #ffffff;
}

/* 模块标题和子标题 - 深色清晰文字 */
.section-header h2,
.section-header h3 {
    color: #1a1a2e;
    font-weight: 800;
    letter-spacing: -0.5px;
    -webkit-text-fill-color: #1a1a2e;
}

/* 卡片通用增强 */
.business-card,
.service-card,
.ai-agent-card,
.contact-card {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.business-card::before,
.service-card::before,
.ai-agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.business-card:hover::before,
.service-card:hover::before,
.ai-agent-card:hover::before {
    left: 100%;
}

.business-card:hover,
.service-card:hover,
.ai-agent-card:hover,
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

/* 按钮增强 */
.hero-button,
.cta-button {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.hero-button::before,
.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero-button:hover::before,
.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.hero-button:hover,
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

/* 图标容器增强 */
.card-icon {
    position: relative;
    display: inline-block;
}

.card-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(20px);
    opacity: 0.5;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* 标签美化 */
.case-tags span,
.job-tags span,
.industry-filters span {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.case-tags span::before,
.job-tags span::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: left 0.5s ease;
}

.case-tags span:hover::before,
.job-tags span:hover::before {
    left: 100%;
}

/* FAQ 增强 */
.faq-item {
    border: none;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
    transform: translateX(4px);
}

.faq-item summary {
    font-weight: 600;
    padding: 20px 24px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    cursor: pointer;
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item div {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 图片画廊增强 */
.gallery-grid img,
.case-list-visual img {
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-grid img:hover,
.case-list-visual img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.25);
}

/* 分隔线增强 */
hr,
.footer::before {
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, #f093fb, transparent);
}

/* 合作伙伴区域增强 */
.ai-partnerships {
    position: relative;
    overflow: hidden;
}

.ai-partnerships::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 50%);
    animation: shimmer 8s linear infinite;
}

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

.ai-partnerships img {
    transition: all 0.4s ease;
}

.ai-partnerships img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

/* 联系卡片增强 */
.contact-card {
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover::after {
    opacity: 1;
}

/* 行业筛选器增强 */
.industry-filters span {
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.industry-filters span:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

/* 职位卡片增强 */
.join-position {
    position: relative;
    padding: 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,252,0.9) 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.join-position:hover {
    border-color: #667eea;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
    transform: translateX(8px);
}

.join-position::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.join-position:hover::before {
    opacity: 1;
}

/* 服务流程步骤增强 */
.business-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
}

/* 案例列表增强 */
.case-list-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
}

.case-list-item:hover {
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

/* 价值观卡片增强 */
.business-cards .business-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,252,0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
}

/* 技术栈 Logo 增强 */
.tech-item {
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-8px) scale(1.05);
}

.tech-item img,
.tech-item svg,
.tech-item > div {
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.tech-item:hover img,
.tech-item:hover svg,
.tech-item:hover > div {
    filter: grayscale(0%);
}

/* 页脚链接增强 */
.footer-column a {
    position: relative;
    padding-left: 0;
    transition: all 0.3s ease;
}

.footer-column a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #f093fb;
}

.footer-column a:hover {
    color: #fff;
    padding-left: 20px;
}

.footer-column a:hover::before {
    opacity: 1;
    left: 0;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .page-header::before,
    .page-header::after,
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
    
    .business-card:hover,
    .service-card:hover,
    .ai-agent-card:hover {
        transform: translateY(-4px);
    }
}

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

.section-container {
    animation: fadeInUp 0.6s ease-out;
}

/* 玻璃态效果增强 */
.header,
.ai-partnerships,
.business-card,
.service-card {
    background-clip: padding-box;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.logo-text,
.page-header h1 {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}
