/* 文件路径: assets/css/style-v2.css */

:root {
  /* 核心色调 */
  --bg-dark: rgb(18, 38, 79);
  --bg-darker: rgb(26, 40, 71);
  --bg-darkest: rgb(7, 11, 20);
  
  /* 品牌色 */
  --primary-purple: #8B5BFF;   /* 强调色 */
  --primary-blue: #2481cc;     /* 信任色 */
  --primary-green: #25D366;    /* WhatsApp */
  --text-white: #e6eaf2;
  --text-gray: #9aa4b2;
  
  /* 卡片玻璃态效果 */
  --card-bg: rgba(30, 39, 50, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
  --glow-shadow: 0 0 20px rgba(139, 91, 255, 0.15);
  /* 使用常见的网页字体栈作为品牌字体（回退到系统字体） */
  --brand-font: "Microsoft YaHei", "微软雅黑", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}



/* 自定义字体：把字体文件放到 `assets/fonts/` 下，并按下面示例命名 */
@font-face {
  font-family: 'title1';
  src: url('../fonts/HanYiHei.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 已移除自托管 MyBrand 字体（使用系统/通用网页字体栈） */

body {
  font-family: "Microsoft YaHei", "微软雅黑", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-white);
  /* 强制深色背景 */
  background-color: var(--bg-darkest);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(30, 39, 50, 0.8), transparent 70%),
    linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-darkest) 100%);
  background-attachment: fixed;
  padding-top: 76px; /* 为导航栏留空 */
  line-height: 1.6;
  min-height: 100vh;
}

/* 使用自定义品牌字体（回退顺序保留系统字体） */
body {
  font-family: var(--brand-font) !important;
}

/* 【关键步骤】强制覆盖所有标题和 Display 大标题 */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--brand-font) !important;
}

/* 只有 H1 和 Display 类强制变粗 */
h1, .h1, .display-1, .display-2, .display-3 {
  font-weight: 700 !important;
}

/* --- 导航栏 --- */
.navbar {
  background: rgba(7, 11, 20, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand .logo-text {
  font-weight: 700;
  color: white;
  font-size: 1.2rem;
}

/* --- 导航菜单项的基础样式 --- */
.navbar-nav .nav-link {
    color: var(--text-gray) !important;
    font-weight: 600;
    padding: 8px 24px !important;
    border-radius: 50px;
    margin: 0 5px;
    
    /* 关键设置：为伪元素定位做准备 */
    position: relative; 
    z-index: 1; /* 保证文字在白色背景上面 */
    overflow: hidden; /* 确保背景色不会溢出圆角 */
    transition: color 0.4s ease; /* 文字颜色的变化也要平滑 */
}

.navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%; /* 初始宽度为0 */
    height: 100%;
    background-color: #ffffff;
    z-index: -1; /* 放在文字后面 */
    border-radius: 50px;
    
    /* 关键动画：宽度变化，ease-out 让结尾更柔和 */
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

/* 当鼠标悬停，或处于 active 状态时，背景层宽度变为 100% */
.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #000000 !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    /* transform: translateY(-2px); // 如果加了overflow:hidden，建议去掉位移以免边缘被切，或者只保留阴影 */
}




/* --- 列表特性样式 下划线 --- */
.feature-list {
    /* 1. 留空 (实现缩进效果) */
    margin-left: 15px;
    margin-bottom: 15px;
    /* 2. 【关键】宽度改为自动，让它填满剩余空间，而不是强制100% */
    width: auto;
}

.feature-item {
    /* 1. 分割线：颜色加深一点 (0.2)，确保能看见 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    
    /* 2. 缩进与间距：上下12px，左侧15px(实现缩进) */
    padding: 5px 0 5px 0px;
    
    /* 3. 颜色更灰：使用 50% 透明度的白色 */
    color: rgba(255, 255, 255, 0.5);
    
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: left; /* 强制左对齐 */
}

/* 去掉最后一个元素的底边框 */
.feature-item:last-child {
    border-bottom: none;
}

.feature-item:hover {
    padding-left: 10px; /* 悬停时轻微右移效果 */
}


/* --- 按钮 --- */
.btn-consultation {
  background: var(--primary-blue);
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  display: inline-block;
}

.btn-purple {
  background: var(--primary-purple);
  box-shadow: 0 4px 15px rgba(139, 91, 255, 0.3);
  border: none;
}

.btn-consultation:hover, .btn-purple:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  color: white;
}

/* --- 卡片通用样式 --- */
.tech-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
}

.tech-card a {
  margin-top: auto;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 91, 255, 0.3);
  box-shadow: var(--glow-shadow);
  background: rgba(30, 39, 50, 0.8);
}

.tech-card:hover .feature-item {
    color: rgba(255, 255, 255, 0.9);
}

/* --- 标题 --- */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: white;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* --- 浮动窗口 --- */
.float-box {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 160px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.float-box a {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.ws-btn { background: var(--primary-green); }
.fj-btn { background: var(--primary-blue); }

@media (max-width: 768px) {
  .float-box {
    top: auto; bottom: 20px; right: 50%; transform: translateX(50%);
    width: 90%; max-width: 350px; flex-direction: row; padding: 10px;
  }
  .float-box a { flex: 1; }
}

/* --- Footer --- */
footer {
  background: rgba(0,0,0,0.3);
  padding: 60px 0 30px;
  margin-top: 80px;
  border-top: 1px solid var(--card-border);
}


/* --- 向上淡入动画定义 --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(80px); /* 初始位置：向下偏移40像素 */
    }
    to {
        opacity: 1;
        transform: translateY(0);    /* 结束位置：回到原位 */
    }
}

/* --- 动画通用类 --- */
.animate-up {
    opacity: 0; /* 初始状态隐藏，防止动画开始前闪烁 */
    animation: fadeInUp 0.8s ease-out forwards !important; /* 持续0.8秒，缓动输出，结束后保持状态 */
}

/* --- 延迟类（实现阶梯式出现效果） --- */
.delay-1 { animation-delay: 0.2s !important; } /* 延迟 0.2秒 */
.delay-2 { animation-delay: 0.4s !important; } /* 延迟 0.4秒 */






/* === 新增：需求问卷部分样式 === */

/* 问卷容器 */
#consultation-form-section {
    background: linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-dark) 100%);
    border-top: 1px solid var(--card-border);
}

/* 选项按钮 */
.option-btn {
    border-radius: 50px;
    padding: 10px 25px;
    margin: 5px;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    background: transparent;
}

.option-btn:hover {
    border-color: var(--primary-purple);
    color: white;
    background: rgba(139, 91, 255, 0.1);
}

/* 选中状态 */
.option-btn.active {
    background: var(--primary-purple) !important;
    border-color: var(--primary-purple) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(139, 91, 255, 0.4);
}

/* 文本框样式 */
.custom-textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 10px;
}
.custom-textarea:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-purple);
    color: white;
    box-shadow: none;
}

/* 步骤容器 */
.step-container {
    display: block; /* 隐藏步骤 */
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

/* 默认显示第一步 */
#step-1 {
    display: block;
}

/* 进度条背景 */
.progress-bg {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

/* 进度条 */
.progress-bar-custom {
    height: 100%;
    background: var(--primary-purple);
    width: 33%; /* 初始宽度 */
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--primary-purple);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .step-container {
        padding: 25px;
    }
    .option-btn {
        width: 100%; /* 手机上按钮全宽 */
        margin: 5px 0;
    }
}