/* 全局样式和重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 科技感主题颜色 */
:root {
    --primary: #165DFF;
    --secondary: #36CFC9;
    --accent: #722ED1;
    --dark: #1D2129;
    --light: #F2F3F5;
    --glow-primary: rgba(22, 93, 255, 0.5);
    --glow-secondary: rgba(54, 207, 201, 0.5);
}

/* 科技感背景样式 */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* 科技感网格背景 */
.bg-tech-grid {
    position: relative;
    background-color: var(--dark);
    background-image: 
        linear-gradient(rgba(22, 93, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 93, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
}

/* 科技感点格背景图案 */
.bg-tech-dots {
    background-image: radial-gradient(rgba(22, 93, 255, 0.1) 1px, transparent 1px),
                      radial-gradient(rgba(22, 93, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

/* 通用网格图案 */
.bg-grid-pattern {
    background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-tech-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(22, 93, 255, 0.05) 0%, rgba(54, 207, 201, 0.05) 100%);
    pointer-events: none;
}

/* 科技感渐变背景 */
.bg-tech-gradient {
    background: linear-gradient(135deg, var(--light) 0%, #f0f8ff 100%);
}

.bg-tech-gradient-dark {
    background: linear-gradient(135deg, #12151c 0%, var(--dark) 100%);
}

/* 导航栏样式 */
#navbar,
header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.bg-white {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 导航项效果 */
.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

/* 科技感卡片样式 */
.tech-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(22, 93, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 25px -5px rgba(22, 93, 255, 0.1),
        0 8px 10px -6px rgba(22, 93, 255, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tech-card:hover::before {
    transform: scaleX(1);
}

/* 卡片动态效果 */
.tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(22, 93, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.tech-card:hover::after {
    left: 100%;
}

/* 科技感按钮样式 */
.tech-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    border: none;
}

.tech-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.tech-btn:hover {
    background-color: #0E4BDB;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.4);
    transform: translateY(-1px);
}

.tech-btn:hover::before {
    transform: translateX(100%);
}

.tech-btn-primary {
    background: linear-gradient(135deg, var(--primary), #0a4cdb);
    color: white;
}

.tech-btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.tech-btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* 科技感标题样式 */
.tech-title {
    position: relative;
    display: inline-block;
}

.tech-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* 技能条样式 */
.skill-bar {
    position: relative;
    height: 8px;
    border-radius: 4px;
    background: #f0f0f0;
    overflow: hidden;
}

.skill-bar-fill {
    position: relative;
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 技能条替代方案 */
.skill-bar-alt {
    position: relative;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-alt::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 1s ease-in-out;
    width: var(--width, 0%);
}

/* 发光效果 */
.glow-effect {
    position: relative;
    z-index: 1;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
    opacity: 0.5;
    filter: blur(15px);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
    opacity: 0.8;
}

/* 数字计数动画 */
.counter {
    counter-reset: count 0;
    animation: count 2s forwards ease-out;
}

@keyframes count {
    to { counter-reset: count var(--count); }
}

.counter::after {
    content: counter(count);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tech-card {
        margin-bottom: 20px;
    }
    
    .bg-tech-dots {
        background-size: 30px 30px;
    }
    
    .bg-grid-pattern {
        background-size: 15px 15px;
    }
}

/* 渐变文本 */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* 技术渐变背景 */
.tech-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* 增强发光效果 */
.tech-glow {
    box-shadow: 0 0 15px rgba(22, 93, 255, 0.5);
}

/* 英雄区域背景 */
.hero-bg {
    background: radial-gradient(circle at 50% 50%, rgba(22, 93, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

/* 表单输入焦点效果 */
.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
    border-color: var(--primary);
}

/* 加载动画 */
.loading-spinner {
    border: 3px solid rgba(22, 93, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 分割线样式 */
.tech-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 93, 255, 0.3), transparent);
}

/* 玻璃态效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}/* 全局样式和重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 科技感主题颜色 */
:root {
    --primary: #165DFF;
    --secondary: #36CFC9;
    --accent: #722ED1;
    --dark: #1D2129;
    --light: #F2F3F5;
    --glow-primary: rgba(22, 93, 255, 0.5);
    --glow-secondary: rgba(54, 207, 201, 0.5);
}

/* 科技感背景样式 */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* 科技感网格背景 */
.bg-tech-grid {
    position: relative;
    background-color: var(--dark);
    background-image: 
        linear-gradient(rgba(22, 93, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 93, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
}

.bg-tech-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(22, 93, 255, 0.05) 0%, rgba(54, 207, 201, 0.05) 100%);
    pointer-events: none;
}

/* 科技感渐变背景 */
.bg-tech-gradient {
    background: linear-gradient(135deg, var(--light) 0%, #f0f8ff 100%);
}

.bg-tech-gradient-dark {
    background: linear-gradient(135deg, #12151c 0%, var(--dark) 100%);
}

/* 导航栏样式 */
#navbar {
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.bg-white {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 科技感卡片样式 */
.tech-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(22, 93, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 25px -5px rgba(22, 93, 255, 0.1),
        0 8px 10px -6px rgba(22, 93, 255, 0.1);
    border-color: var(--primary);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tech-card:hover::before {
    transform: scaleX(1);
}

/* 科技感按钮样式 */
.tech-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.tech-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.tech-btn:hover::before {
    left: 100%;
}

.tech-btn-primary {
    background: linear-gradient(135deg, var(--primary), #0a4cdb);
    color: white;
}

.tech-btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.tech-btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* 科技感标题样式 */
.tech-title {
    position: relative;
    display: inline-block;
}

.tech-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* 技能条样式 */
.skill-bar {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: rgba(22, 93, 255, 0.1);
    overflow: hidden;
}

.skill-bar-fill {
    position: relative;
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 发光效果 */
.glow-effect {
    position: relative;
    z-index: 1;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
    opacity: 0.5;
    filter: blur(15px);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
    opacity: 0.8;
}

/* 数字计数动画 */
.counter {
    counter-reset: count 0;
    animation: count 2s forwards ease-out;
}

@keyframes count {
    to { counter-reset: count var(--count); }
}

.counter::after {
    content: counter(count);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tech-card {
        margin-bottom: 20px;
    }
}

/* 加载动画 */
.loading-spinner {
    border: 3px solid rgba(22, 93, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 分割线样式 */
.tech-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 93, 255, 0.3), transparent);
}

/* 玻璃态效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}