/* 全局变量与基础设置 */
:root {
    --bg-color: #0d0f12;
    --card-bg: #1a1d24;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #00f0ff; /* 科技感青色 */
    --accent-hover: #00c3d0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 工具类 */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.highlight { color: var(--accent); }

/* 按钮样式 */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;

}
.btn-primary {
    background: var(--accent);
    color: #000;
}
.nav-links a.btn-primary {
    background: var(--accent);
    color: #000;
}
.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.glow-effect:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}
.large-btn { font-size: 1.1rem; padding: 15px 40px; margin-top: 20px; }

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(13, 15, 18, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo { font-size: 1.5rem; font-weight: bold; }
.logo span { color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.btn-primary:hover{ color: var(--accent-hover); }
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: var(--text-main); margin: 5px; transition: all 0.3s ease; }

/* 英雄首屏 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; }
.hero-actions { display: flex; justify-content: center; gap: 20px; }
.tech-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.1) 0%, rgba(13, 15, 18, 1) 60%);
    z-index: 1; pointer-events: none;
}

/* 核心优势 */
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 60px; }
.section-title span { display: block; font-size: 1.2rem; color: var(--text-muted); margin-top: 10px; font-weight: normal; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card {
    background: var(--card-bg); padding: 40px 30px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-10px); border-color: rgba(0, 240, 255, 0.3); }
.feature-card .icon { font-size: 2.5rem; margin-bottom: 20px; }
.feature-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* 案例展示区 */
.filter-btns { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    background: transparent; color: var(--text-muted); border: 1px solid var(--text-muted);
    padding: 8px 20px; border-radius: 20px; cursor: pointer; transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.portfolio-item { background: var(--card-bg); border-radius: 8px; overflow: hidden; }

/* 🔥 黑科技：长截图悬停滚动效果 🔥 */
.mockup-container {
    width: 100%;
    height: 350px; /* 固定视窗高度 */
    overflow: hidden; /* 隐藏超出部分 */
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mockup-container img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    transition: top 3s ease-in-out; /* 滚动速度 */
}
.mockup-container:hover img {
    /* 悬停时，图片向上推，露出底部。计算方式：容器高度 - 图片实际总高度 */
    /* 因为图片是动态加载的，这里用一种讨巧的百分比滚动法 */
    top: auto;
    bottom: 0;
    transform: translateY(calc(-100% + 350px));
    transition: transform 4s linear; 
}
/* 默认状态重置transform */
.mockup-container:not(:hover) img {
    transform: translateY(0);
    transition: transform 1.5s ease-out; /* 移开鼠标后快速回到顶部 */
}

.portfolio-info { padding: 25px; }
.portfolio-info h3 { margin-bottom: 10px; font-size: 1.2rem; }
.pain-point { color: #ff6b6b; font-size: 0.9rem; margin-bottom: 5px; }
.solution { color: var(--accent); font-size: 0.9rem; }

/* 底部 */
.footer { background: #0a0b0d; border-top: 1px solid rgba(255,255,255,0.05); }
.footer h2 { margin-bottom: 20px; }
.copyright { margin-top: 50px; color: #555; font-size: 0.9rem; }

/* 滚动动画基础类 */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute; right: 0px; height: 100vh; top: 70px; background: var(--bg-color);
        display: flex; flex-direction: column; align-items: center; width: 100%;
        transform: translateX(100%); transition: transform 0.3s ease-in; gap: 40px; padding-top: 50px;
    }
    .nav-links.nav-active { transform: translateX(0%); }
    .burger { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; padding: 0 20px; }
}
/* --- 案例卡片精细化展示样式 --- */
.portfolio-item {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s;
}

.portfolio-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-header h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0;
}

.badge {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

/* 动态展示区 */
.portfolio-display {
    height: 400px; /* 固定高度，内部滚动 */
    background: #0a0b0d;
    position: relative;
    padding: 20px;
}

.view-panel {
    display: none;
    height: 100%;
    width: 100%;
    animation: fadeInPanel 0.4s ease;
}

.view-panel.active {
    display: flex;
    justify-content: center;
}

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 长图滚动容器美化 */
.scroll-box {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.scroll-box img {
    width: 100%;
    display: block;
}

/* 自定义滚动条样式 */
.scroll-box::-webkit-scrollbar { width: 6px; }
.scroll-box::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
.scroll-box::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }
.scroll-box::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* PC与手机视图的区别约束 */
.pc-frame { width: 100%; }
.mobile-frame { width: 200px; border: 4px solid #333; border-radius: 15px; } /* 模拟手机边框 */

/* 策划方案面板样式 */
.strategy-panel { 
    align-items: flex-start; 
    justify-content: flex-start; 
    overflow-y: auto; /* 👇 新增：允许上下滑动 */
    overflow-x: hidden; /* 👇 新增：隐藏横向滚动 */
    padding-right: 10px; /* 👇 新增：给滚动条留点空间，避免文字贴边 */
}

/* 👇 新增：让文案面板的滚动条和图片面板的滚动条一样具有高级科技感 */
.strategy-panel::-webkit-scrollbar { width: 6px; }
.strategy-panel::-webkit-scrollbar-track { background: transparent; }
.strategy-panel::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }
.strategy-panel::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.strategy-content { padding: 10px; color: var(--text-muted); width: 100%; }
.strategy-content h4 { color: var(--text-main); margin-bottom: 15px; font-size: 1.1rem; border-left: 3px solid var(--accent); padding-left: 10px; }
.strategy-list { list-style: none; padding-left: 5px; }
.strategy-list li { margin-bottom: 12px; font-size: 0.95rem; line-height: 1.5; padding-left: 20px; position: relative; }
.strategy-list li::before { content: "•"; color: var(--accent); position: absolute; left: 0; font-size: 1.2rem; top: -2px; }
.strategy-list strong { color: var(--text-main); font-weight: 600; }
/* 底部选项卡按钮 */
.card-tabs {
    display: flex;
    background: #15181e;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 15px 0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover { color: var(--text-main); background: rgba(255,255,255,0.02); }
.tab-btn.active { color: var(--accent); border-bottom: 2px solid var(--accent); font-weight: bold; background: rgba(0, 240, 255, 0.05); }
.highlight-tab { color: #e2e8f0; } /* 让策划方案按钮稍微醒目一点 */

/* --- 自研分流系统展示区 (极简矩阵版) --- */
.system-showcase {
    background: linear-gradient(to bottom, var(--bg-color) 0%, #11151c 100%);
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.system-header {
    margin-bottom: 60px;
}

/* 密集型功能网格：自动适应屏幕，一行 3 到 4 个 */
.feature-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.matrix-item {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center; /* 图标和文字水平居中对齐 */
    transition: all 0.3s ease;
    cursor: default;
}

.matrix-item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.03);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.05);
}

.matrix-icon {
    font-size: 2rem;
    margin-right: 18px;
    background: rgba(0, 240, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    flex-shrink: 0; /* 防止图标被文字挤压变形 */
}

.matrix-text h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0 0 5px 0;
}

.matrix-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}