/*
 Theme Name:   Astra Child - Xihe Tech
 Description:  羲和数科 - 深棕液态玻璃商务风 + PPT翻页效果
 Author:       Xihe
 Template:     astra
 Version:      2.1.0
*/

/* ===== 全局变量 - 深棕商务风 ===== */
:root {
    /* 主色调 - 深棕系 */
    --primary: #b8860b;           /* 暗金色 */
    --primary-light: #d4a84b;     /* 亮金色 */
    --primary-dark: #8b6914;      /* 深金色 */
    --accent: #cd853f;            /* 秘鲁色 */
    
    /* 背景色 - 深棕渐变 */
    --bg-dark: #1a1510;           /* 深棕黑 */
    --bg-darker: #0d0a07;         /* 近黑色 */
    --bg-card: rgba(45, 35, 25, 0.5);  /* 半透明棕色卡片 */
    --bg-card-hover: rgba(55, 42, 30, 0.65);
    
    /* 边框 - 玻璃质感 */
    --border-glass: rgba(255, 248, 235, 0.12);
    --border-glass-light: rgba(255, 248, 235, 0.2);
    
    /* 文字色 */
    --text-primary: #faf5eb;      /* 米白色主文字 */
    --text-secondary: #c9bfa8;    /* 浅棕色次文字 */
    --text-muted: #8b7d66;        /* 暗棕色辅助文字 */
    
    /* 渐变 */
    --gradient-gold: linear-gradient(135deg, #d4a84b 0%, #b8860b 50%, #8b6914 100%);
    --gradient-text: linear-gradient(135deg, #f5e6c8, #d4a84b);
    --gradient-bg: radial-gradient(ellipse at top, #2a1f14 0%, #1a1510 50%, #0d0a07 100%);
}

/* ===== 页面背景 ===== */
body {
    background: var(--gradient-bg);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 背景微妙光效 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 10%, rgba(212, 168, 75, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 90%, rgba(184, 134, 11, 0.06) 0%, transparent 45%);
    z-index: -1;
    pointer-events: none;
}

/* ===== 液态玻璃卡片 - 苹果风格 ===== */
.glass-card, .service-card, .feature-item, .pricing-card, .testimonial-card,
.team-card, .blog-card, .info-box, .text-card, .case-study-card,
.counter-item, .process-steps > *, .contact-form, .contact-info,
.about-content, .about-image, .content-block, .image-block {
    background: var(--bg-card);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 1px 0 0 rgba(255, 255, 255, 0.1) inset,
        0 -1px 0 0 rgba(0, 0, 0, 0.2) inset,
        0 8px 32px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* 玻璃高光效果 */
.glass-card::before, .service-card::before, .feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 248, 235, 0.35), transparent);
    pointer-events: none;
}

/* 悬停效果 */
.glass-card:hover, .service-card:hover, .feature-item:hover, .pricing-card:hover,
.testimonial-card:hover, .team-card:hover, .blog-card:hover, .info-box:hover,
.case-study-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glass-light);
    box-shadow: 
        0 1px 0 0 rgba(255, 255, 255, 0.15) inset,
        0 -1px 0 0 rgba(0, 0, 0, 0.25) inset,
        0 16px 48px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(212, 168, 75, 0.2);
}

/* 3D倾斜时的内部高光 */
.glass-card::after, .service-card::after, .feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 248, 235, 0.05) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover::after, .service-card:hover::after {
    opacity: 1;
}

/* ===== 渐变文字 - 金色 ===== */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ===== 滚动动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* 延迟类 */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* ===== 按钮样式 ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gradient-gold);
    color: #1a1510 !important;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(212, 168, 75, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 168, 75, 0.4);
    filter: brightness(1.08);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: rgba(255, 248, 235, 0.06);
    color: var(--text-primary) !important;
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 248, 235, 0.12);
    border-color: var(--border-glass-light);
    transform: translateY(-2px);
}

/* ===== 导航栏 ===== */
.site-header {
    background: rgba(26, 21, 16, 0.8) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
    z-index: 100 !important;
}

.ast-primary-header-bar {
    background: transparent !important;
}

.main-header-menu a {
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 15px;
}

.main-header-menu a:hover {
    color: var(--text-primary) !important;
}

.main-header-menu .current-menu-item a {
    color: var(--primary-light) !important;
}

/* ===== Hero区域 ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* 鼠标跟随光晕 */
.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: translate(-50%, -50%);
}

.hero-section:hover .hero-glow {
    opacity: 1;
}

/* ===== Section通用 ===== */
.section {
    padding: 100px 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-inner {
    width: 100%;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 56px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.page-header {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.page-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== 服务卡片网格 ===== */
.services-grid, .features-grid, .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(212, 168, 75, 0.3);
    transform: translateZ(20px);
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    transform: translateZ(15px);
}

.service-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 15px;
    transform: translateZ(10px);
}

.service-link {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
    font-size: 15px;
    transform: translateZ(10px);
}

.service-link:hover {
    gap: 12px;
    color: var(--primary);
}

/* ===== 数据统计 ===== */
.counter-item {
    text-align: center;
}

.counter {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
    line-height: 1.2;
}

.counter-label {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ===== 流程步骤 ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1510;
    box-shadow: 0 4px 16px rgba(212, 168, 75, 0.3);
}

.step-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* ===== FAQ手风琴 ===== */
.faq-item {
    background: var(--bg-card);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
        0 4px 16px rgba(0, 0, 0, 0.12);
}

.faq-item:hover {
    border-color: var(--border-glass-light);
}

.faq-item.active {
    background: var(--bg-card-hover);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 17px;
    user-select: none;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-question .icon {
    font-size: 22px;
    transition: transform 0.3s ease;
    color: var(--primary);
    flex-shrink: 0;
    opacity: 0.9;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 22px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
}

/* ===== CTA区域 ===== */
.cta-section {
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.12) 0%, rgba(184, 134, 11, 0.08) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(212, 168, 75, 0.2);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 1px 0 0 rgba(255, 255, 255, 0.1) inset,
        0 12px 40px rgba(0, 0, 0, 0.25);
}

.cta-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

.cta-desc {
    font-size: 18px;
    margin-bottom: 32px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* ===== 页脚 ===== */
.site-footer {
    background: rgba(13, 10, 7, 0.9) !important;
    border-top: 1px solid var(--border-glass) !important;
    color: var(--text-secondary) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* ===== 滚动进度条 ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-gold);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(212, 168, 75, 0.5);
}

/* ===== 滚动指示器 ===== */
.scroll-indicator {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.scroll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-glass);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot:hover {
    background: var(--primary-light);
    transform: scale(1.2);
}

.scroll-dot.active {
    background: var(--gradient-gold);
    box-shadow: 0 0 12px rgba(212, 168, 75, 0.5);
    transform: scale(1.3);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
        min-height: auto;
    }
    
    .section {
        padding: 60px 0;
        min-height: auto;
    }
    
    .services-grid, .features-grid, .stats-grid, .process-steps {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .cta-section {
        padding: 32px 20px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ===== 隐藏默认页面标题 ===== */
.entry-header {
    display: none;
}

.entry-content {
    margin-top: 0;
    padding: 0;
}

.site-content {
    padding: 0 !important;
}

/* ===== Astra主题覆盖 ===== */
#primary {
    margin: 0 !important;
    padding: 0 !important;
}

#main {
    padding: 0 !important;
}

article {
    margin: 0 !important;
}

/* ===== 选择器优化 ===== */
::selection {
    background: rgba(212, 168, 75, 0.3);
    color: var(--text-primary);
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== 标题统一 ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
}

/* ===== 列表样式 ===== */
ul, ol {
    color: var(--text-secondary);
}

li {
    line-height: 1.8;
}

/* ===== 链接样式 ===== */
a {
    color: var(--primary-light);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary);
}

/* ===== 平滑滚动容器 ===== */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    scroll-padding-top: 80px;
}

.section, .hero-section {
    scroll-snap-align: start;
}
