/* ============================================
   首页特有样式
   包含: 粒子背景、Hero波浪动画、服务卡片、文章切换
   ============================================ */

/* 粒子背景 */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}
main { position: relative; z-index: 1; }

/* Hero区域 */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(175deg, #faf9ff 0%, #f5f3ff 15%, #fdfdff 35%, #f8f7ff 55%, #ffffff 100%);
    overflow: hidden;
    z-index: 2;
}
.hero-content { position: relative; z-index: 10; padding: 80px 0 100px; }
.hero h1 { font-size: 2.8rem; font-weight: 700; color: #111; margin-bottom: 18px; line-height: 1.35; letter-spacing: -0.5px; }
.hero h1 .highlight {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { font-size: 1.1rem; color: #555; max-width: 620px; margin: 0 auto 30px; }

/* 波浪 */
.hero-waves { position: absolute; bottom: -10px; left: -5%; width: 110%; height: 280px; pointer-events: none; z-index: 4; }
.wave-svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }
.wave-1 { z-index: 4; animation: waveDrift1 9s cubic-bezier(0.45,0,0.55,1) infinite; }
.wave-2 { z-index: 3; animation: waveDrift2 11s cubic-bezier(0.45,0,0.55,1) infinite; bottom: 8px; }
.wave-3 { z-index: 2; animation: waveDrift3 13s cubic-bezier(0.45,0,0.55,1) infinite; bottom: 18px; }
.wave-4 { z-index: 1; animation: waveDrift4 15s cubic-bezier(0.45,0,0.55,1) infinite; bottom: 30px; }

@keyframes waveDrift1 {
    0%,100% { transform: translateY(0px) scaleX(1.05); }
    20% { transform: translateY(-18px) scaleX(1.1); }
    40% { transform: translateY(-6px) scaleX(0.98); }
    60% { transform: translateY(-22px) scaleX(1.08); }
    80% { transform: translateY(-10px) scaleX(1.02); }
}
@keyframes waveDrift2 {
    0%,100% { transform: translateY(0px) scaleX(1.05); }
    25% { transform: translateY(-24px) scaleX(1.12); }
    50% { transform: translateY(-10px) scaleX(0.97); }
    75% { transform: translateY(-28px) scaleX(1.09); }
}
@keyframes waveDrift3 {
    0%,100% { transform: translateY(0px) scaleX(1.05); }
    30% { transform: translateY(-20px) scaleX(0.96); }
    55% { transform: translateY(-30px) scaleX(1.13); }
    80% { transform: translateY(-12px) scaleX(1.0); }
}
@keyframes waveDrift4 {
    0%,100% { transform: translateY(0px) scaleX(1.05); }
    35% { transform: translateY(-26px) scaleX(1.1); }
    65% { transform: translateY(-16px) scaleX(0.98); }
    85% { transform: translateY(-32px) scaleX(1.07); }
}

/* 光晕 */
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 1; will-change: transform, opacity; }
.orb-1 { width: 420px; height: 420px; background: rgba(99,102,241,0.07); top: -120px; right: -150px; animation: orbFloat1 14s ease-in-out infinite; }
.orb-2 { width: 340px; height: 340px; background: rgba(139,92,246,0.06); bottom: -80px; left: -100px; animation: orbFloat2 12s ease-in-out infinite; }
.orb-3 { width: 260px; height: 260px; background: rgba(79,70,229,0.05); top: 35%; left: 55%; animation: orbFloat3 16s ease-in-out infinite; }
.orb-4 { width: 180px; height: 180px; background: rgba(167,139,250,0.06); top: 15%; left: 10%; animation: orbFloat4 10s ease-in-out infinite; }

@keyframes orbFloat1 {
    0%,100% { transform: translate(0,0) scale(1); opacity: 0.7; }
    25% { transform: translate(-40px,30px) scale(1.2); opacity: 1; }
    50% { transform: translate(20px,-20px) scale(0.85); opacity: 0.5; }
    75% { transform: translate(-30px,-40px) scale(1.15); opacity: 0.8; }
}
@keyframes orbFloat2 {
    0%,100% { transform: translate(0,0) scale(1); opacity: 0.6; }
    30% { transform: translate(50px,-30px) scale(1.25); opacity: 0.9; }
    60% { transform: translate(-30px,20px) scale(0.8); opacity: 0.4; }
    85% { transform: translate(20px,-50px) scale(1.1); opacity: 0.7; }
}
@keyframes orbFloat3 {
    0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.5; }
    40% { transform: translate(-50%,-50%) translate(30px,-40px) scale(1.3); opacity: 0.8; }
    70% { transform: translate(-50%,-50%) translate(-40px,20px) scale(0.85); opacity: 0.35; }
}
@keyframes orbFloat4 {
    0%,100% { transform: translate(0,0) scale(1); opacity: 0.55; }
    50% { transform: translate(35px,-45px) scale(1.35); opacity: 0.9; }
}

/* 几何图形与光点 */
.hero-shape { position: absolute; pointer-events: none; z-index: 2; will-change: transform; }
.shape-circle { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(79,70,229,0.15); top: 20%; left: 8%; animation: shapeFloat 9s ease-in-out infinite; }
.shape-diamond { width: 14px; height: 14px; background: rgba(124,58,237,0.1); transform: rotate(45deg); top: 65%; right: 12%; animation: shapeFloat 11s ease-in-out infinite; animation-delay: -2s; }
.shape-square { width: 12px; height: 12px; border: 2px solid rgba(99,102,241,0.12); top: 75%; left: 20%; animation: shapeFloat 10s ease-in-out infinite; animation-delay: -5s; }
.shape-triangle { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid rgba(139,92,246,0.1); top: 25%; right: 22%; animation: shapeFloat 12s ease-in-out infinite; animation-delay: -3s; }
.shape-plus { width: 16px; height: 16px; position: relative; top: 50%; left: 75%; animation: shapeFloat 8s ease-in-out infinite; animation-delay: -7s; }
.shape-plus::before, .shape-plus::after { content: ''; position: absolute; background: rgba(79,70,229,0.15); }
.shape-plus::before { width: 100%; height: 2px; top: 50%; transform: translateY(-50%); }
.shape-plus::after { width: 2px; height: 100%; left: 50%; transform: translateX(-50%); }

@keyframes shapeFloat {
    0%,100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-25px) rotate(90deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    75% { transform: translateY(-30px) rotate(270deg); }
}

.hero-sparkle { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: rgba(79,70,229,0.5); pointer-events: none; z-index: 3; animation: sparkleFloat 6s ease-in-out infinite; }
.sparkle-1 { top: 15%; left: 25%; }
.sparkle-2 { top: 30%; right: 18%; animation-delay: -1.5s; width: 3px; height: 3px; background: rgba(124,58,237,0.5); }
.sparkle-3 { top: 70%; left: 35%; animation-delay: -3s; width: 5px; height: 5px; background: rgba(99,102,241,0.45); }
.sparkle-4 { top: 55%; right: 30%; animation-delay: -4.5s; width: 3.5px; height: 3.5px; background: rgba(139,92,246,0.5); }
.sparkle-5 { top: 40%; left: 60%; animation-delay: -2s; width: 4.5px; height: 4.5px; background: rgba(79,70,229,0.4); }

@keyframes sparkleFloat {
    0%,100% { transform: translateY(0px) scale(1); opacity: 0; }
    10% { opacity: 1; }
    30% { transform: translateY(-40px) scale(1.8); opacity: 0.8; }
    60% { transform: translateY(-15px) scale(0.6); opacity: 0.2; }
    90% { opacity: 0; }
}

/* 标题下划线 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 2px;
}

/* 服务卡片 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}
.service-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 30px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(79,70,229,0.08);
    transition: all 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(79,70,229,0.1); border-color: rgba(79,70,229,0.2); }
.service-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: #111; }
.service-card p { color: #555; margin-bottom: 14px; font-size: 0.95rem; }

/* Google/Bing 平台卡片 */
.platform-row { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.platform-card {
    flex: 1 1 380px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid rgba(79,70,229,0.08);
    box-shadow: 0 3px 14px rgba(0,0,0,0.03);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.platform-card::before { content: ''; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; border-radius: 50%; opacity: 0.06; transition: all 0.4s; }
.platform-card:first-child::before { background: #4285f4; }
.platform-card:last-child::before { background: #00a4ef; }
.platform-card:hover::before { transform: scale(1.4); opacity: 0.1; }
.platform-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.06); }
.platform-card h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; color: #111; position: relative; z-index: 1; }
.platform-card .subtitle { color: #4f46e5; font-weight: 600; margin-bottom: 14px; font-size: 0.9rem; position: relative; z-index: 1; }
.platform-card p { position: relative; z-index: 1; }
.platform-card .tag { position: relative; z-index: 1; }

/* 文章切换 */
.blog-section { position: relative; padding: 20px 0 40px; }
.blog-section::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 80%; height: 1px; background: linear-gradient(90deg,transparent,rgba(79,70,229,0.15),transparent); }
.blog-radio { display: none; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 35px; }
.category-tab {
    padding: 9px 22px;
    background: #f5f5f7;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.88rem;
    color: #555;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    user-select: none;
}
.category-tab:hover { background: #e8e8ec; color: #333; }
.category-tab.active-tab,
#blog-all:checked ~ .category-tabs .tab-all,
#blog-google:checked ~ .category-tabs .tab-google,
#blog-bing:checked ~ .category-tabs .tab-bing,
#blog-web:checked ~ .category-tabs .tab-web,
#blog-keyword:checked ~ .category-tabs .tab-keyword,
#blog-case:checked ~ .category-tabs .tab-case {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}
.blog-grid-wrapper { position: relative; }
.blog-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    animation: gridFadeIn 0.4s ease forwards;
}
@keyframes gridFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
#blog-all:checked ~ .blog-grid-wrapper .grid-all,
#blog-google:checked ~ .blog-grid-wrapper .grid-google,
#blog-bing:checked ~ .blog-grid-wrapper .grid-bing,
#blog-web:checked ~ .blog-grid-wrapper .grid-web,
#blog-keyword:checked ~ .blog-grid-wrapper .grid-keyword,
#blog-case:checked ~ .blog-grid-wrapper .grid-case { display: grid; }
.blog-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(79,70,229,0.08); border-color: rgba(79,70,229,0.2); }
.blog-img { height: 240px; background: linear-gradient(135deg,#f5f5f7,#eef0f5); display: flex; align-items: center; justify-content: center; font-size: 2rem; position: relative; overflow: hidden; }
.blog-img img{ height:100%;}
.blog-img::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg,#4f46e5,#7c3aed); transform: scaleX(0); transition: transform 0.3s; }
.blog-card:hover .blog-img::after { transform: scaleX(1); }
.blog-content { padding: 18px; }
.blog-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.blog-content h3 a { text-decoration: none; color: #111; transition: color 0.2s; }
.blog-content h3 a:hover { color: #4f46e5; }
.blog-meta { font-size: 0.78rem; color: #999; margin-bottom: 8px; }
.read-more { color: #4f46e5; font-weight: 600; text-decoration: none; font-size: 0.9rem; transition: all 0.2s; }
.read-more:hover { color: #7c3aed; padding-left: 4px; }

/* 首页tag */
.tag {
    background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(124,58,237,0.06));
    color: #4f46e5;
    border: 1px solid rgba(79,70,229,0.12);
}

/* 首页CTA */
.cta-block::after { display: block; }
/* 首页FAQ - 默认展开显示 */
.faq-container {
    max-width: 800px;
    margin: 0 auto 45px;
}
.faq-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
    overflow: hidden;
}
.faq-item:hover {
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.06);
}
.faq-question {
    padding: 18px 20px;
    font-weight: 700;
    font-size: 1rem;
    color: #111;
    background: rgba(249, 249, 251, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
}
.faq-question::after {
    content: "▾";
    color: #4f46e5;
    font-size: 0.9rem;
}
.faq-answer {
    padding: 0 20px 18px;
    color: #555;
    font-size: 0.95rem;
}
.faq-answer p {
    line-height: 1.7;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero { min-height: 420px; }
    .hero-content { padding: 50px 0 70px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-waves { height: 180px; left: -8%; width: 116%; }
    .hero-orb { filter: blur(60px); }
    .orb-1 { width: 250px; height: 250px; top: -60px; right: -80px; }
    .orb-2 { width: 200px; height: 200px; bottom: -40px; left: -60px; }
    .hero-shape, .hero-sparkle { display: none; }
    .services-grid, .blog-grid { gap: 16px; }
    .platform-card { padding: 24px 20px; }
    .platform-card h2 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .hero-waves { height: 140px; left: -10%; width: 120%; }
    .wave-2 { bottom: 4px; }
    .wave-3 { bottom: 9px; }
    .wave-4 { bottom: 15px; }
    .category-tab { padding: 7px 14px; font-size: 0.78rem; }
}