/* ========================================
   腾辉网络 · 官网重做 · 自定义样式
   ======================================== */

/* ---------- 基础 ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* 选中文本颜色 */
::selection { background: #1E6FFF; color: white; }

/* ---------- 导航链接 ---------- */
.nav-link {
    position: relative;
    transition: color 0.2s;
}
.nav-link:hover { color: #1E6FFF; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1E6FFF, #0EA5E9);
    transition: all 0.3s;
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 100%; }
.nav-link.active-nav { color: #1E6FFF; font-weight: 600; }
.nav-link.active-nav::after { width: 100%; }

/* ---------- 滚动渐入动画 ---------- */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"]  { transform: translateX(30px); }

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0, 0);
}

/* ---------- 渐变文字（Hero 主标题）---------- */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1E6FFF, #0EA5E9);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #1D4ED8; }

/* ---------- 玻璃拟态增强 ---------- */
.backdrop-blur-md { backdrop-filter: saturate(180%) blur(12px); }

/* ---------- 文本省略行数 ---------- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Hero 装饰网格背景微动 ---------- */
section#home .grid-bg {
    animation: grid-float 20s linear infinite;
}
@keyframes grid-float {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* ---------- 数字计数强调 ---------- */
[data-count] {
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #1E6FFF 0%, #0EA5E9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- 卡片悬浮上移 ---------- */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    transform: translateY(-6px);
}

/* ---------- 按钮光泽扫过 ---------- */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}
.btn-shine:hover::after { left: 150%; }

/* ---------- 响应式微调 ---------- */
@media (max-width: 768px) {
    [data-aos] { transform: translateY(20px); }
}

/* ---------- 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-aos] { opacity: 1; transform: none; }
}


/* ========================================
   内页共享样式（详情页/列表页）
   ======================================== */

/* ---------- 内页固定头部（初始即实底）---------- */
body.inner-page header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 rgba(15,23,42,0.06), 0 6px 24px -6px rgba(30,111,255,0.08);
}

/* ---------- 内页页头（Page Hero）---------- */
.page-hero {
    padding: 9.5rem 0 4rem;
    background: linear-gradient(135deg, #0A2540 0%, #10315e 45%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
    color: white;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(rgba(34,211,238,.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34,211,238,.18) 1px, transparent 1px);
    background-size: 56px 56px;
}
.page-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(34,211,238,.25), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero .page-hero-inner { position: relative; z-index: 1; }

/* ---------- 面包屑 ---------- */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .8125rem; }
.breadcrumb a { color: rgba(255,255,255,.65); transition: color .2s; }
.breadcrumb a:hover { color: #22d3ee; }
.breadcrumb .sep { color: rgba(255,255,255,.35); }
.breadcrumb .current { color: rgba(255,255,255,.95); font-weight: 500; }
.breadcrumb-light a { color: #64748b; }
.breadcrumb-light a:hover { color: #1E6FFF; }
.breadcrumb-light .sep { color: #cbd5e1; }
.breadcrumb-light .current { color: #0f172a; font-weight: 500; }

/* ---------- 标签 ---------- */
.tag {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .8rem; border-radius: 999px;
    font-size: .75rem; font-weight: 500;
}
.tag-blue { background: #EFF6FF; color: #1E6FFF; }
.tag-green { background: #ECFDF5; color: #059669; }
.tag-cyan { background: #ECFEFF; color: #0891b2; }
.tag-slate { background: #F1F5F9; color: #475569; }

/* ---------- 图标徽章 ---------- */
.icon-badge {
    width: 3rem; height: 3rem; border-radius: .9rem;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.icon-badge svg { width: 1.4rem; height: 1.4rem; }

/* ---------- 正文排版（文章/案例正文）---------- */
.prose-body { color: #334155; font-size: 1rem; line-height: 1.9; }
.prose-body h2 {
    font-size: 1.5rem; font-weight: 800; color: #0A2540;
    margin: 2.4rem 0 1rem; padding-left: .9rem;
    border-left: 4px solid #1E6FFF; line-height: 1.3;
}
.prose-body h3 { font-size: 1.15rem; font-weight: 700; color: #0A2540; margin: 1.8rem 0 .75rem; }
.prose-body p { margin-bottom: 1.1rem; }
.prose-body ul, .prose-body ol { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.prose-body ul { list-style: disc; }
.prose-body ol { list-style: decimal; }
.prose-body li { margin-bottom: .45rem; }
.prose-body strong { color: #0A2540; font-weight: 600; }
.prose-body blockquote {
    margin: 1.5rem 0; padding: 1rem 1.4rem;
    border-left: 4px solid #0EA5E9;
    background: #F0F9FF; border-radius: 0 .75rem .75rem 0;
    color: #0c4a6e; font-style: normal;
}
.prose-body img { border-radius: 1rem; margin: 1.5rem 0; width: 100%; }
.prose-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.prose-body th, .prose-body td { border: 1px solid #E2E8F0; padding: .65rem .9rem; text-align: left; }
.prose-body th { background: #F8FAFC; font-weight: 600; color: #0A2540; }

/* ---------- 分页 ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.page-btn {
    min-width: 2.4rem; height: 2.4rem; padding: 0 .5rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: .6rem; border: 1px solid #E2E8F0;
    background: white; color: #475569; font-size: .875rem;
    transition: all .2s;
}
.page-btn:hover { border-color: #1E6FFF; color: #1E6FFF; }
.page-btn.active {
    background: linear-gradient(135deg, #1E6FFF, #0EA5E9);
    color: white; border-color: transparent;
    box-shadow: 0 4px 14px -4px rgba(30,111,255,.5);
}
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ---------- 产品/案例 tab ---------- */
.tab-item {
    padding: .55rem 1.3rem; border-radius: 999px;
    font-size: .875rem; font-weight: 500; color: #475569;
    background: white; border: 1px solid #E2E8F0;
    cursor: pointer; transition: all .2s;
}
.tab-item:hover { border-color: #1E6FFF; color: #1E6FFF; }
.tab-item.active {
    background: #1E6FFF; color: white; border-color: transparent;
    box-shadow: 0 4px 14px -4px rgba(30,111,255,.5);
}

/* ---------- 侧边卡片 ---------- */
.side-card { background: white; border: 1px solid #E2E8F0; border-radius: 1rem; padding: 1.5rem; }
.side-card + .side-card { margin-top: 1.25rem; }

/* ---------- 时间线（服务内容）---------- */
.timeline-dot { position: relative; }
.timeline-dot::before {
    content: '';
    position: absolute; left: 1.4rem; top: 3.2rem; bottom: -2rem;
    width: 2px; background: linear-gradient(180deg, #BFDBFE, #E2E8F0);
}
.timeline-dot:last-child::before { display: none; }
