/**
 * 科技风主题样式
 * 文件: tech-theme.css
 * 作者: 灵链
 * 日期: 2026-03-27
 * 说明: 深色科技风格，霓虹发光效果，玻璃态卡片
 */

/* ==================== 全局变量 ==================== */
:root {
    /* 主色调 - 青色霓虹 */
    --tech-primary: #00f3ff;
    --tech-primary-glow: rgba(0, 243, 255, 0.5);
    
    /* 辅色调 - 紫色霓虹 */
    --tech-secondary: #ff00ff;
    --tech-secondary-glow: rgba(255, 0, 255, 0.5);
    
    /* 背景色 */
    --tech-bg-dark: #0a0e27;
    --tech-bg-darker: #050814;
    
    /* 卡片背景 - 玻璃态 */
    --tech-card-bg: rgba(255, 255, 255, 0.05);
    --tech-card-border: rgba(255, 255, 255, 0.1);
    
    /* 文字颜色 */
    --tech-text-primary: #ffffff;
    --tech-text-secondary: rgba(255, 255, 255, 0.7);
    --tech-text-muted: rgba(255, 255, 255, 0.5);
    
    /* 间距 */
    --tech-spacing-xs: 8px;
    --tech-spacing-sm: 12px;
    --tech-spacing-md: 20px;
    --tech-spacing-lg: 30px;
    --tech-spacing-xl: 40px;
    
    /* 圆角 */
    --tech-radius-sm: 8px;
    --tech-radius-md: 12px;
    --tech-radius-lg: 16px;
    
    /* 阴影 */
    --tech-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --tech-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --tech-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* 发光效果 */
    --tech-glow-primary: 0 0 20px var(--tech-primary-glow);
    --tech-glow-secondary: 0 0 20px var(--tech-secondary-glow);
}

/* ==================== 全局重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--tech-bg-dark);
    color: var(--tech-text-primary);
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== 背景效果 ==================== */
/* 代码雨画布 */
.tech-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}

/* 粒子效果容器 */
.tech-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* ==================== 主容器 ==================== */
.tech-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--tech-spacing-lg);
}

/* 行布局 */
.tech-row {
    display: flex;
    gap: var(--tech-spacing-lg);
    align-items: flex-start;
}

/* 主内容区 (70%) */
.tech-col-main {
    flex: 0 0 70%;
    max-width: 70%;
}

/* 侧边栏 (30%) */
.tech-col-side {
    flex: 0 0 calc(30% - var(--tech-spacing-lg));
    max-width: calc(30% - var(--tech-spacing-lg));
    position: sticky;
    top: var(--tech-spacing-lg);
}

/* ==================== 轮播图样式 ==================== */
.tech-swiper-wrapper {
    margin-bottom: var(--tech-spacing-xl);
    border-radius: var(--tech-radius-lg);
    overflow: hidden;
    position: relative;
}

/* 轮播容器 */
.tech-swiper {
    border-radius: var(--tech-radius-lg);
    overflow: hidden;
    box-shadow: var(--tech-shadow-lg);
    position: relative;
}

/* 轮播图片 */
.tech-swiper-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* 轮播遮罩层 - 霓虹边框效果 */
.tech-swiper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: var(--tech-radius-lg);
    background: linear-gradient(var(--tech-bg-dark), var(--tech-bg-dark)) padding-box,
                linear-gradient(135deg, var(--tech-primary), var(--tech-secondary)) border-box;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-slide:hover .tech-swiper-overlay {
    opacity: 1;
}

/* 轮播分页器 */
.tech-pagination {
    bottom: 20px !important;
}

.tech-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--tech-text-muted);
    opacity: 1;
    transition: all 0.3s ease;
}

.tech-pagination .swiper-pagination-bullet-active {
    background: var(--tech-primary);
    box-shadow: var(--tech-glow-primary);
    transform: scale(1.3);
}

/* 轮播导航按钮 */
.tech-nav-btn {
    width: 50px;
    height: 50px;
    background: var(--tech-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--tech-card-border);
    border-radius: 50%;
    color: var(--tech-primary);
    transition: all 0.3s ease;
}

.tech-nav-btn:hover {
    background: var(--tech-primary);
    color: var(--tech-bg-dark);
    box-shadow: var(--tech-glow-primary);
    transform: scale(1.1);
}

.tech-nav-btn::after {
    font-size: 20px;
    font-weight: bold;
}

/* ==================== 卡片样式 ==================== */
.tech-card {
    background: var(--tech-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--tech-card-border);
    border-radius: var(--tech-radius-md);
    margin-bottom: var(--tech-spacing-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 卡片发光效果 */
.tech-card--glow:hover {
    border-color: var(--tech-primary);
    box-shadow: var(--tech-glow-primary);
    transform: translateY(-5px);
}

/* 卡片头部 */
.tech-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--tech-spacing-md);
    border-bottom: 1px solid var(--tech-card-border);
    background: linear-gradient(135deg, 
                rgba(0, 243, 255, 0.1), 
                rgba(255, 0, 255, 0.1));
}

.tech-card__title {
    font-size: 18px;
    font-weight: bold;
    color: var(--tech-primary);
    text-shadow: var(--tech-glow-primary);
}

.tech-card__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tech-primary);
    color: var(--tech-bg-dark);
    border-radius: 50%;
    box-shadow: var(--tech-glow-primary);
    animation: pulse 2s infinite;
}

/* 卡片主体 */
.tech-card__body {
    padding: var(--tech-spacing-md);
}

/* ==================== 最新动态样式 ==================== */
.tech-latest-item {
    display: flex;
    align-items: center;
    gap: var(--tech-spacing-sm);
    padding: var(--tech-spacing-sm);
    border-radius: var(--tech-radius-sm);
    transition: all 0.3s ease;
    margin-bottom: var(--tech-spacing-xs);
}

.tech-latest-item:hover {
    background: rgba(0, 243, 255, 0.1);
    transform: translateX(5px);
}

.tech-latest-content {
    flex: 1;
}

.tech-latest-title {
    display: block;
    color: var(--tech-text-primary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.tech-latest-title:hover {
    color: var(--tech-primary);
    text-shadow: var(--tech-glow-primary);
}

.tech-latest-time {
    font-size: 12px;
    color: var(--tech-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tech-latest-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tech-primary);
    color: var(--tech-bg-dark);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--tech-glow-primary);
}

.tech-latest-btn:hover {
    transform: scale(1.2) rotate(90deg);
    box-shadow: 0 0 30px var(--tech-primary-glow);
}

/* ==================== 热门资讯样式 ==================== */
.tech-hot-item {
    display: flex;
    gap: var(--tech-spacing-sm);
    padding: var(--tech-spacing-sm);
    border-radius: var(--tech-radius-sm);
    transition: all 0.3s ease;
    margin-bottom: var(--tech-spacing-sm);
}

.tech-hot-item:hover {
    background: rgba(255, 0, 255, 0.1);
    transform: translateX(5px);
}

.tech-hot-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--tech-radius-sm);
    border: 2px solid var(--tech-primary);
    box-shadow: var(--tech-glow-primary);
    transition: all 0.3s ease;
}

.tech-hot-item:hover .tech-hot-thumb {
    transform: scale(1.1);
    border-color: var(--tech-secondary);
    box-shadow: var(--tech-glow-secondary);
}

.tech-hot-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tech-hot-title {
    display: block;
    color: var(--tech-text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.tech-hot-title:hover {
    color: var(--tech-secondary);
    text-shadow: var(--tech-glow-secondary);
}

.tech-hot-desc {
    font-size: 12px;
    color: var(--tech-text-secondary);
    line-height: 1.4;
}

/* ==================== 友情链接样式 ==================== */
.tech-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--tech-spacing-sm);
    border-radius: var(--tech-radius-sm);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: var(--tech-spacing-xs);
}

.tech-link-item:hover {
    border-color: var(--tech-primary);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: var(--tech-glow-primary);
}

.tech-link-text {
    color: var(--tech-text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.tech-link-text:hover {
    color: var(--tech-primary);
}

.tech-link-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tech-primary);
    color: var(--tech-bg-dark);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--tech-glow-primary);
}

.tech-link-icon:hover {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 0 30px var(--tech-primary-glow);
}

/* ==================== 内容列表样式 ==================== */
.tech-content-list {
    /* 内容列表容器 */
}

/* ==================== 文章卡片样式 ==================== */
/**
 * 文章卡片容器
 * 用途: 首页文章列表的卡片容器
 */
.tech-article-card {
    margin-bottom: var(--tech-spacing-md);
}

/**
 * 文章卡片内层
 * 用途: 玻璃态背景 + 霓虹边框
 */
.tech-article-card__inner {
    position: relative;
    display: flex;
    gap: var(--tech-spacing-md);
    background: var(--tech-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--tech-card-border);
    border-radius: var(--tech-radius-md);
    padding: var(--tech-spacing-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.tech-article-card__inner:hover {
    border-color: var(--tech-primary);
    box-shadow: var(--tech-glow-primary);
    transform: translateY(-3px);
}

/**
 * 文章缩略图容器
 */
.tech-article-card__thumb {
    flex: 0 0 200px;
    width: 200px;
    height: 150px;
    border-radius: var(--tech-radius-sm);
    overflow: hidden;
    position: relative;
}

.tech-article-card__thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

/**
 * 文章缩略图
 */
.tech-article-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tech-article-card__inner:hover .tech-article-card__img {
    transform: scale(1.1);
}

/**
 * 图片遮罩层
 */
.tech-article-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 243, 255, 0.2),
        rgba(255, 0, 255, 0.2)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-article-card__inner:hover .tech-article-card__overlay {
    opacity: 1;
}

/**
 * 文章内容区域
 */
.tech-article-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--tech-spacing-sm);
}

/**
 * 文章标题
 */
.tech-article-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
}

.tech-article-card__title-link {
    color: var(--tech-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-article-card__title-link:hover {
    color: var(--tech-primary);
    text-shadow: var(--tech-glow-primary);
}

/**
 * 文章描述
 */
.tech-article-card__desc {
    margin: 0;
    font-size: 14px;
    color: var(--tech-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/**
 * 文章标签容器
 */
.tech-article-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tech-spacing-xs);
}

/**
 * 文章标签
 */
.tech-article-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 12px;
    color: var(--tech-primary);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tech-article-card__tag:hover {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--tech-primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    transform: translateY(-2px);
}

.tech-article-card__tag i {
    font-size: 10px;
}

/**
 * 文章元信息
 */
.tech-article-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tech-spacing-md);
    margin-top: auto;
}

/**
 * 元信息项
 */
.tech-article-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--tech-text-muted);
}

.tech-article-card__meta-item i {
    color: var(--tech-primary);
    font-size: 12px;
}

/**
 * 发光边框效果
 */
.tech-article-card__glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        135deg,
        var(--tech-primary),
        var(--tech-secondary)
    );
    border-radius: var(--tech-radius-md);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.tech-article-card__inner:hover .tech-article-card__glow {
    opacity: 0.3;
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--tech-primary);
    border-radius: 4px;
    box-shadow: var(--tech-glow-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tech-secondary);
    box-shadow: var(--tech-glow-secondary);
}

/* ==================== 脉冲动画 ==================== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ==================== Header 样式 ==================== */
/* 去除 page-wrapper 和 container 之间的白色缝隙 */
.page-wrapper-row {
    margin: 0 !important;
    padding: 0 !important;
}

.page-wrapper-top {
    margin: 0 !important;
    padding: 0 !important;
}

.page-header {
    margin: 0 !important;
    padding: 0 !important;
}

.page-header-menu {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page-logo {
    padding: 15px 0 !important;
}

.page-logo a {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.page-logo a:hover {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--tech-primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    transform: translateY(-2px);
}

.page-logo img {
    max-height: 50px !important;
    width: auto !important;
}

/* 修复 logo 溢出问题 */
.page-logo a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 200px !important;
    height: 70px !important;
}

.page-logo img {
    max-height: 45px !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

/* 导航菜单样式 */
.hor-menu .nav.navbar-nav > li > a {
    color: var(--tech-text-primary) !important;
    font-size: 16px;
    padding: 25px 20px !important;
    transition: all 0.3s ease;
    position: relative;
}

.hor-menu .nav.navbar-nav > li > a:hover {
    color: var(--tech-primary) !important;
    text-shadow: 0 0 10px var(--tech-primary-glow);
}

.hor-menu .nav.navbar-nav > li.active > a {
    color: var(--tech-primary) !important;
    text-shadow: 0 0 10px var(--tech-primary-glow);
}

.hor-menu .nav.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--tech-primary);
    box-shadow: 0 0 10px var(--tech-primary-glow);
    transition: transform 0.3s ease;
}

.hor-menu .nav.navbar-nav > li > a:hover::after,
.hor-menu .nav.navbar-nav > li.active > a::after {
    transform: translateX(-50%) scaleX(1);
}

/* 搜索框样式 - 简约科技风 */
.search-top {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.search-top .input-group {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-top .input-group:hover,
.search-top .input-group:focus-within {
    border-color: var(--tech-primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.search-top .form-control {
    flex: 1;
    min-width: 200px;
    background: transparent !important;
    border: none !important;
    color: var(--tech-text-primary) !important;
    padding: 10px 15px !important;
    font-size: 14px;
    outline: none !important;
    box-shadow: none !important;
}

.search-top .form-control::placeholder {
    color: var(--tech-text-muted);
}

.search-top .input-group-btn {
    display: flex;
    margin: 0;
}

.search-top .btn {
    background: rgba(0, 243, 255, 0.1) !important;
    border: none !important;
    border-left: 1px solid rgba(0, 243, 255, 0.2) !important;
    color: var(--tech-primary) !important;
    padding: 10px 20px !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.search-top .btn:hover {
    background: var(--tech-primary) !important;
    color: var(--tech-bg-dark) !important;
    border-left-color: var(--tech-primary) !important;
}

.search-top .btn i {
    margin-right: 4px;
}
