/*
Theme Name: 戚戚网络科技工作室主题 V1.0.1
Theme URI: https://www.qiqwl.cn
Author: 戚戚网络科技工作室
Description: 戚戚网络科技工作室 2026 旗舰版主题 V1.0.1 正式版。采用“极光青蓝”至臻设计，全动态面板驱动。
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: qiqi-tech
*/

/* 1. 核心设计系统 - Qiqi Premium System V1.0.1 */
:root {
    /* 品牌配色 - “极光青蓝”明亮定制方案 */
    --qiqi-primary: #0062ff;           /* 极速电光蓝 */
    --qiqi-secondary: #00e5ff;         /* 极光霓虹青 */
    --qiqi-accent: #00ffa3;            /* 荧光绿 (极小量点缀) */
    --qiqi-dark: #030712;              /* 寰宇深空黑 (仅用于页脚) */
    --qiqi-dark-lighter: #0f172a;      /* 深海邃蓝 (仅用于页脚) */
    --qiqi-gray: #f8fafc;              /* 纯净冰川灰 (用于交替背景) */
    --qiqi-light: #ffffff;             /* 极致纯白 (主要背景) */
    --qiqi-text: #0f172a;              /* 邃蓝黑文字 */
    --qiqi-text-muted: #64748b;        /* 辅助灰蓝 */
    --qiqi-border: rgba(0, 98, 255, 0.08); 
    --qiqi-glass: rgba(255, 255, 255, 0.88);
    
    /* 极致渐变系统 */
    --qiqi-gradient: linear-gradient(135deg, #0062ff 0%, #00e5ff 100%);
    --qiqi-gradient-hover: linear-gradient(135deg, #0052db 0%, #00d4ef 100%);
    --qiqi-gradient-dark: linear-gradient(180deg, #030712 0%, #0f172a 100%);
    
    /* 布局规范 */
    --qiqi-container: 1280px;
    --qiqi-radius-sm: 8px;
    --qiqi-radius-md: 20px;
    --qiqi-radius-lg: 32px;
    
    /* 极致动效与光影 */
    --qiqi-transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --qiqi-shadow-soft: 0 10px 40px -10px rgba(0, 98, 255, 0.06);
    --qiqi-shadow-premium: 0 20px 60px -12px rgba(0, 98, 255, 0.12);
}

/* 2. 基础重置与排版 */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; font-size: 16px; }
body { 
    font-family: 'Inter', -apple-system, "SF Pro Display", "PingFang SC", sans-serif;
    background-color: var(--qiqi-light);
    color: var(--qiqi-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* 主内容容器滚动 (包含 Main 和 Footer) */
.qiqi-app-wrapper {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative; /* 确保 AOS 计算基准 */
}

/* 隐藏滚动条但保留功能 */
.qiqi-app-wrapper::-webkit-scrollbar {
    width: 6px;
}
.qiqi-app-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.qiqi-app-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 98, 255, 0.1);
    border-radius: 10px;
}
.qiqi-app-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 98, 255, 0.2);
}

.site-main { position: relative; } /* 确保内部模块定位正常 */
a { text-decoration: none; color: inherit; transition: var(--qiqi-transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* 3. 通用布局组件 */
.section-padding { padding: 120px 0; }

/* 渲染图标通用样式 (支持 Remix 和 SVG) */
.qiqi-svg-icon {
    display: inline-block;
    width: 1em; height: 1em;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    vertical-align: middle;
}
.card-icon i, .card-icon .qiqi-svg-icon {
    font-size: 40px;
    color: var(--qiqi-primary);
}
.f-social a i, .f-social a .qiqi-svg-icon {
    font-size: 24px;
    vertical-align: middle;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header { text-align: center; max-width: 800px; margin: 0 auto 80px; }
.section-header .badge { 
    display: inline-block; padding: 6px 16px; 
    background: linear-gradient(90deg, rgba(0, 98, 255, 0.06), rgba(0, 229, 255, 0.06));
    color: var(--qiqi-primary); border-radius: 99px; font-size: 12px; font-weight: 800; 
    margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px;
    border: 1px solid rgba(0, 98, 255, 0.1);
}
.section-header h2 { font-size: 48px; font-weight: 900; margin-bottom: 24px; color: var(--qiqi-dark); letter-spacing: -0.02em; }
.section-header p { font-size: 20px; color: var(--qiqi-text-muted); line-height: 1.6; }

/* 4. 按钮系统 */
.qiqi-btn-v9 {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 40px; border-radius: 99px;
    font-weight: 700; font-size: 16px; transition: var(--qiqi-transition);
    border: none; gap: 12px; cursor: pointer; position: relative;
    overflow: hidden;
}
.qiqi-btn-v9::after {
    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-out, height 0.6s ease-out;
}
.qiqi-btn-v9:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}
.qiqi-btn-primary { 
    background: var(--qiqi-gradient); color: #fff; 
    box-shadow: 0 8px 25px -5px rgba(0, 98, 255, 0.3);
}
.qiqi-btn-primary:hover { 
    background: var(--qiqi-gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -8px rgba(0, 98, 255, 0.4);
}

.qiqi-btn-secondary {
    background: var(--qiqi-gray);
    color: var(--qiqi-dark);
    border: 1px solid var(--qiqi-border);
    box-shadow: none;
}
.qiqi-btn-secondary:hover {
    background: #fff;
    border-color: var(--qiqi-primary);
    color: var(--qiqi-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0, 98, 255, 0.15);
}

/* 5. 头部导航 */
.qiqi-header-v9 {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    height: 80px; display: flex; align-items: center;
    transition: var(--qiqi-transition);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 98, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 98, 255, 0.05); /* 初始状态增加极细微阴影 */
}
.qiqi-header-v9.scrolled {
    height: 72px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px -15px rgba(0, 98, 255, 0.2);
    border-bottom: 1px solid rgba(0, 98, 255, 0.15);
}

.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo-v9 { font-size: 24px; font-weight: 900; color: var(--qiqi-dark); letter-spacing: -1px; }

.nav-v9 .nav-list-v9 { display: flex; gap: 40px; }
.nav-v9 a { font-size: 15px; font-weight: 700; color: var(--qiqi-text); opacity: 0.8; }
.nav-v9 a:hover { opacity: 1; color: var(--qiqi-primary); }

/* 6. 首页模块 */
/* 图片轮播模式 */
.hero-v9.image-mode {
    height: 65vh;
    min-height: 65vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    position: relative;
    overflow: visible;
    background: #f8fafc;
}

/* AI模式专用样式 */
.hero-v9.ai-mode {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

.hero-slider {
    position: absolute; inset: 0; z-index: 1;
}
.hero-slider .swiper-slide {
    position: relative; width: 100%; height: 100%;
    background: #000; overflow: hidden;
}
/* LQIP 占位背景 (高斯模糊) */
.slide-bg-lqip {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: blur(20px); transform: scale(1.1);
    opacity: 0.8;
}
/* 现代原生 <img> 背景加载 */
.slide-bg-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
    z-index: 1;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.hero-slider .swiper-slide-active .slide-bg-img {
    transform: scale(1);
}

.hero-slider .slide-overlay {
    position: absolute; inset: 0;
    /* 降低遮罩层的不透明度，确保背景图可见 */
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.4) 100%);
    z-index: 2;
}

.hero-container { position: relative; z-index: 10; }

/* 图片模式内容层 - 确保内容正确显示 */
.hero-v9.image-mode .hero-container {
    padding-top: 0;
}

.hero-content { max-width: 850px; }
.hero-title { font-size: 84px; font-weight: 900; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 32px; color: var(--qiqi-dark); }
.hero-title span {
    background: var(--qiqi-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0, 98, 255, 0.1));
}
.hero-desc { font-size: 24px; color: var(--qiqi-text-muted); line-height: 1.5; margin-bottom: 48px; max-width: 700px; }

/* 7. 卡片系统 */
.card-v9 {
    background: #fff; border-radius: var(--qiqi-radius-md); padding: 50px;
    border: 1px solid var(--qiqi-border); transition: var(--qiqi-transition);
    height: 100%; display: flex; flex-direction: column;
    box-shadow: var(--qiqi-shadow-soft);
}
.card-v9:hover {
    transform: translateY(-12px);
    box-shadow: var(--qiqi-shadow-premium);
    border-color: rgba(0, 98, 255, 0.2);
    background: linear-gradient(to bottom right, #fff, rgba(0, 229, 255, 0.02));
}
.card-icon { 
    width: 64px; height: 64px; border-radius: 18px; 
    background: linear-gradient(135deg, rgba(0, 98, 255, 0.08), rgba(0, 229, 255, 0.08));
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: var(--qiqi-primary); margin-bottom: 32px;
    transition: var(--qiqi-transition);
}
.card-v9:hover .card-icon { transform: rotate(-5deg) scale(1.1); }
.card-title { font-size: 26px; font-weight: 900; margin-bottom: 16px; color: var(--qiqi-dark); }
.card-text { font-size: 17px; color: var(--qiqi-text-muted); line-height: 1.8; }

/* 8. 旗下产品 (Operations) 扩展 */
.op-card { position: relative; overflow: hidden; }
.op-tag { 
    position: absolute; top: 20px; right: 20px; 
    font-size: 11px; font-weight: 800; background: var(--qiqi-primary); 
    color: #fff; padding: 4px 12px; border-radius: 99px; 
    box-shadow: 0 4px 12px rgba(0, 98, 255, 0.2);
    z-index: 5;
}
.op-tech { 
    font-size: 12px; font-weight: 700; color: var(--qiqi-primary); 
    text-transform: uppercase; margin-bottom: 16px; opacity: 0.8; 
    letter-spacing: 1px;
}

/* 9. 行业案例 (Portfolio) 扩展 */
.portfolio-overlay-v9 .portfolio-meta { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.portfolio-overlay-v9 .tech-stack { 
    background: var(--qiqi-primary); color: #fff; 
    padding: 6px 14px; border-radius: 99px; font-size: 11px; 
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
}
.portfolio-overlay-v9 .project-date { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.6); }
.portfolio-overlay-v9 .desc { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 24px; max-width: 90%; }
.portfolio-link { 
    display: inline-flex; align-items: center; gap: 8px; 
    font-weight: 800; color: #fff; font-size: 14px; 
    transition: var(--qiqi-transition);
}
.portfolio-link:hover { color: var(--qiqi-secondary); gap: 12px; }

/* 10. 合作伙伴 (Partners) 扩展 */
.partner-logo-v10 {
    height: 120px; display: flex; align-items: center; justify-content: center;
    padding: 30px; background: rgba(255, 255, 255, 0.6); border-radius: 20px;
    border: 1px solid rgba(0, 98, 255, 0.05); transition: var(--qiqi-transition);
}
.partner-logo-v10:hover {
    transform: translateY(-8px); background: var(--qiqi-light);
    border-color: var(--qiqi-secondary);
    box-shadow: 0 15px 30px -10px rgba(0, 229, 255, 0.2);
}
.partner-logo-v10 img { max-height: 50px; filter: grayscale(1); opacity: 0.5; transition: 0.4s; }
.partner-logo-v10:hover img { filter: grayscale(0); opacity: 1; }
.partner-logo-v10 a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* 11. 响应式微调 */
@media (max-width: 1024px) {
    .hero-title { font-size: 64px; }
    .section-header h2 { font-size: 36px; }
    .nav-v9 .nav-list-v9 { gap: 20px; }
}
@media (max-width: 768px) {
    /* 图片轮播模式响应式 */
    .hero-v9.image-mode { 
        height: 65vh; 
        min-height: 65vh; 
        padding-top: 0; 
        padding-bottom: 0; 
        text-align: center; 
        overflow: visible;
    }
    .hero-v9.image-mode .hero-container {
        padding-top: 0;
        padding-bottom: 0;
    }
    
    /* AI模式响应式 */
    .hero-v9.ai-mode { 
        height: 100vh; 
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 60px;
        text-align: center;
    }
    
    .hero-content { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
    .hero-title { font-size: 38px; margin-bottom: 20px; line-height: 1.2; }
    .hero-desc { font-size: 16px; margin-bottom: 30px; }
    .hero-actions { width: 100%; display: flex; justify-content: center; }
    .hero-v9 .qiqi-btn-v9 { width: auto; min-width: 200px; }
    
    .nav-v9 { display: none; }
    .section-padding { padding: 60px 0; }
    .section-header h2 { font-size: 28px; }
    .container { padding: 0 20px; }
}

@media (max-width: 480px) {
    /* 图片轮播模式响应式 */
    .hero-v9.image-mode { 
        height: 65vh; 
        min-height: 65vh; 
        padding-top: 0; 
        overflow: visible;
    }
    .hero-v9.image-mode .hero-container {
        padding-top: 0;
    }
    
    /* AI模式响应式 */
    .hero-v9.ai-mode { 
        height: 100vh; 
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-title { font-size: 32px; }
    .hero-desc { font-size: 14px; padding: 0 10px; }
    .hero-v9 .qiqi-btn-v9 { width: 100%; }
    
    .section-header h2 { font-size: 24px; }
    .section-header p { font-size: 15px; }
    .hero-content { padding: 0 5px; }
}

@media (max-height: 600px) and (max-width: 768px) {
    /* 针对横屏或超矮屏幕手机 */
    .hero-v9.image-mode { 
        padding-top: 0; 
        height: auto; 
        min-height: 65vh; 
        overflow: visible;
    }
    .hero-v9.image-mode .hero-container {
        padding-top: 0;
    }
    
    .hero-v9.ai-mode { 
        padding-top: 60px; 
        height: auto; 
        min-height: 100vh; 
    }
    
    .hero-title { font-size: 28px; margin-bottom: 15px; }
    .hero-desc { font-size: 14px; margin-bottom: 20px; }
}
