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

/* 定义CSS变量，便于统一管理颜色 */
:root {
    --primary-color: #2e83bd;        /* 主色调 */
    --primary-light: #88e3ff;        /* 主色调浅色 */
    --bg-dark: #000000;              /* 深色背景 */
    --bg-panel: #0a0a0a;             /* 面板背景 */
    --text-primary: #ffffff;         /* 主要文字颜色 */
    --text-secondary: #cccccc;       /* 次要文字颜色 */
    --border-light: rgba(255, 255, 255, 0.1);    /* 浅边框 */
    --border-medium: rgba(255, 255, 255, 0.05);  /* 中等边框 */
    --primary-rgb: 100, 100, 255;    /* RGB版本主色 */
}

/* 页面基础样式 */
body {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.skill-icon {
    margin-right: 8px;
    vertical-align: middle;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    /* 其他原有样式保持不变 */
}

/* 图片禁止拖拽和选择 */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* 特定图片容器样式 */
.gallery-item img,
#modalGallery img {
    pointer-events: none;
}

/* 通用边框样式 */
.tech-border {
    border: 1px solid var(--border-light);
}

/* 科技风格发光效果 */
.tech-glow {
    box-shadow: 0 0 20px rgba(136, 227, 255, 0.3);
}

/* 通用悬停提升效果 */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* 画廊项目样式 */
.gallery-item {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-medium);
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--primary-rgb), 0.6);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.3);
}

/* 技能标签样式 */
.skill-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 9999px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: default;
    display: inline-block;
    line-height: 1;
}

.skill-tag:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.5);
    transform: translateY(-2px);
}

/* 悬浮球样式 */
.floating-ball {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
    transition: all 0.3s ease;
}

.floating-ball:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(var(--primary-rgb), 0.6);
}

/* 播放器面板 */
.player-panel {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 480px;
    height: 600px;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    z-index: 999;
    box-shadow: 0 10px 50px rgba(var(--primary-rgb), 0.3);
    backdrop-filter: blur(10px);
}

.player-panel.active {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 播放器头部 */
.player-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 播放器视频区域 */
.player-video {
    width: 100%;
    height: 270px;
    background: #000;
}

/* 播放器控制区域 */
.player-controls {
    padding: 16px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* 控制按钮样式 */
.control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.control-btn:hover {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: rgba(var(--primary-rgb), 0.5);
}

.control-btn.active {
    background: rgba(var(--primary-rgb), 0.3);
    border-color: rgba(var(--primary-rgb), 0.7);
}

/* 播放列表 */
.playlist {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.playlist-item {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--primary-rgb), 0.4);
}

.playlist-item.active {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.6);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    margin: 3% auto;
    width: 85%;
    max-width: 1400px;
    height: 85vh;
    background: var(--bg-panel);
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    transform: rotate(90deg);
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.4);
}

/* 渐变文字 */
.gradient-text {
    color: var(--text-primary);
}

.font-weight-600 {
    font-weight: 600;
}
