/*
Theme Name: Zaylaa Pro
Version: 1.0.2
*/

/* ===== Reset & Base ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.6; color: #1E293B; background: white; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 600; line-height: 1.2; color: #0F172A; }
h1 { font-size: 3.5rem; } h2 { font-size: 2.5rem; } h3 { font-size: 1.75rem; } h4 { font-size: 1.25rem; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; }

/* ===== Header ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #2563EB, #3B82F6); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; font-weight: 700; }
.site-logo-text { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 700; color: #0F172A; }
.main-navigation ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.main-navigation a { font-weight: 500; color: #1E293B; position: relative; }
.main-navigation a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: #2563EB; transition: width 0.3s ease; }
.main-navigation a:hover::after { width: 100%; }
.main-navigation a:hover { color: #2563EB; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 500; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; border: none; gap: 8px; }
.btn-primary { background: #2563EB; color: white; }
.btn-primary:hover { background: #1D4ED8; transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.btn-secondary { background: transparent; color: #2563EB; border: 2px solid #2563EB; }
.btn-secondary:hover { background: #2563EB; color: white; }

/* ===== Hero Section ===== */
.hero-section { padding: 160px 0 100px; background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%); position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%); border-radius: 50%; }
.hero-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: white; border-radius: 50px; font-size: 0.875rem; font-weight: 500; color: #2563EB; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); margin-bottom: 24px; }
.hero-badge::before { content: ''; width: 8px; height: 8px; background: #10B981; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero-title { margin-bottom: 24px; }
.hero-title span { color: #2563EB; }
.hero-description { font-size: 1.125rem; color: #64748B; margin-bottom: 40px; max-width: 500px; }
.hero-buttons { display: flex; gap: 16px; margin-bottom: 24px; }
.hero-stats { display: flex; gap: 48px; }
.stat-item { text-align: left; }
.stat-number { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 700; color: #2563EB; }
.stat-label { font-size: 0.875rem; color: #64748B; }
.hero-image { width: 100%; border-radius: 24px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* ===== Services Section ===== */
.services-section { padding: 100px 0; background: #FFFFFF; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.section-subtitle { display: inline-block; font-weight: 600; color: #2563EB; text-transform: uppercase; letter-spacing: 2px; font-size: 0.875rem; margin-bottom: 20px; }
.section-header h2 { margin-bottom: 20px; }
.section-header p { color: #64748B; font-size: 1.125rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.service-card { padding: 40px 32px; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 20px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #2563EB; transform: scaleX(0); transition: transform 0.3s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border-color: #2563EB; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 72px; height: 72px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05)); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 24px; color: #2563EB; }
.service-card h3 { margin-bottom: 20px !important; }
.service-card p { color: #64748B !important; font-size: 15px !important; line-height: 1.7 !important; }

/* ===== Features Section - 修复版 ===== */
.features-section { padding: 100px 0; background: #F8FAFC; min-height: 900px; }
.features-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: flex-start; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* 左边文字部分 */
.features-text { width: 100%; }
.features-text > p { font-size: 1.0625rem; color: #64748B; margin-bottom: 24px; line-height: 1.7; }

/* 4个块的容器 - 修复版 */
.features-list { 
    display: flex; 
    flex-direction: column; 
    gap: 20px;  /* 20px间距 */
    width: 100%;
}

/* 每个feature块 */
.features-section .feature-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.feature-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(8px);
}

.feature-icon {
    width: 56px; height: 56px;
    background: #2563EB;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: white;
}

.feature-text { flex: 1; }
div.feature-item div h4 { margin-bottom: 9px !important; }
.feature-text p { color: #64748B !important; font-size: 14px !important; line-height: 1.6 !important; }

/* 右边图片 */
.features-image { width: 100%; }
.features-image img { width: 100%; border-radius: 24px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

/* ===== Process Section ===== */
.process-section { padding: 100px 0; background: #FFFFFF; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.process-card { text-align: center; position: relative; }
.process-number { width: 80px; height: 80px; background: linear-gradient(135deg, #2563EB, #3B82F6); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 700; color: white; margin: 0 auto 24px; position: relative; }
.process-card:not(:last-child) .process-number::after { content: ''; position: absolute; top: 50%; right: -40px; width: 80px; height: 2px; background: #E2E8F0; z-index: -1; }
.process-card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.process-card p { color: #64748B; font-size: 0.9375rem; }

/* ===== Testimonials ===== */
.testimonials-section { padding: 100px 0; background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%); color: white; }
.testimonials-section .section-subtitle { color: #F59E0B; }
.testimonials-section h2, .testimonials-section p { color: white; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.testimonial-card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); padding: 32px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease; }
.testimonial-card:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-4px); }
.testimonial-quote { font-size: 1.125rem; line-height: 1.8; margin-bottom: 24px; color: rgba(255, 255, 255, 0.9); }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar { width: 56px; height: 56px; background: #F59E0B !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.25rem; color: white; }
.testimonial-info h4 { color: white; font-size: 1rem; margin-bottom: 4px; }
.testimonial-info p { color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; }

/* ===== CTA ===== */
.cta-section { padding: 100px 0; background: #FFFFFF; }
.cta-box { max-width: 900px; margin: 0 auto; padding: 80px; background: linear-gradient(135deg, #2563EB, #1E40AF); border-radius: 32px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%); border-radius: 50%; }
.cta-box h2 { color: white; margin-bottom: 20px; position: relative; z-index: 1; }
.cta-box p { color: rgba(255, 255, 255, 0.9); font-size: 1.125rem; margin-bottom: 24px; position: relative; z-index: 1; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; position: relative; z-index: 1; }
.btn-white { background: white; color: #2563EB; }
.btn-white:hover { background: #F8FAFC; }

/* ===== Footer ===== */
.site-footer { background: #0F172A; color: white; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); margin: 20px 0; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #2563EB, #3B82F6); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: white; }
.footer-logo-text { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 700; color: white; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 44px; height: 44px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.footer-social a:hover { background: #2563EB; transform: translateY(-4px); }
.footer-column h4 { color: white; font-size: 1.125rem; margin-bottom: 24px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); transition: all 0.3s ease; }
.footer-links a:hover { color: white; padding-left: 8px; }
.footer-bottom { padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; margin-top: 60px; }
.footer-bottom p { color: rgba(255, 255, 255, 0.5); font-size: 0.875rem; }

/* ===== WordPress Fixes ===== */
body.home { overflow-x: hidden; }
.site-content, #page, #primary, #main { width: 100%; max-width: 100%; margin: 0; padding: 0; }
.entry-content { margin: 0; padding: 0; }
.entry-content > *:first-child { margin-top: 0; }
.wp-block { margin: 0 !important; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; } h2 { font-size: 2rem; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin: 0 auto 40px; }
    .hero-buttons, .hero-stats { justify-content: center; }
    .hero-stats { flex-wrap: wrap; }
    .services-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; }
    .features-content { grid-template-columns: 1fr; }
    .features-image { order: -1; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav { display: none; }
    h1 { font-size: 2rem; } h2 { font-size: 1.75rem; }
    .hero { padding: 120px 0 60px; }
    .hero-stats { flex-direction: column; gap: 24px; }
    .services-grid, .testimonials-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
    .process-card:not(:last-child) .process-number::after { display: none; }
    .cta-box { padding: 48px 24px; }
    .cta-buttons { flex-direction: column; }
}

/* Features section - 修复feature-item间距 */
.features-section .features-content > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.features-section .feature-item {
    margin-bottom: 0;
}

/* Feature item 文字显示不全 - 修复 */
.features-section .feature-item {
    min-height: 80px;
    align-items: flex-start;
}

.features-section .feature-text {
    min-height: 60px;
}

.features-section .feature-text p {
    word-wrap: break-word;
    overflow: visible;
}

/* 第4个块文字显示不全 - 修复 */
.features-section .feature-item:last-child {
    min-height: 120px;
}

.features-section .feature-text p {

/* 修复头像显示 - 确保不受父元素影响 */
.testimonial-avatar {
    background: #F59E0B !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
}
