/* 全局样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e293b;
    --light-color: #f1f5f9;
    --dark-color: #0f172a;
    --text-color: #334155;
    --text-light: #f8fafc;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --gradient-primary: linear-gradient(135deg, #2563eb, #3b82f6);
    --gradient-secondary: linear-gradient(135deg, #1e293b, #334155);
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #0c1222;
    overflow-x: hidden;
    position: relative;
}

/* AI背景样式 */
#ai-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

section {
    padding: 80px 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    z-index: -1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--light-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-secondary);
    transition: all 0.4s ease;
    z-index: -1;
    border-radius: 30px;
}

.btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn:hover::before {
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    position: relative;
    color: var(--light-color);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 5px;
    z-index: -1;
}

/* 头部导航 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(12, 18, 34, 0.85);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: all 0.5s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#header.scrolled {
    background-color: rgba(12, 18, 34, 0.95);
    padding: 5px 0;
    transform: translateY(-5px);
    opacity: 0.98;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

#header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    transition: all 0.5s ease;
}

#header.scrolled .container {
    padding: 10px 15px;
}

.logo a {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-color);
    text-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

#nav ul {
    display: flex;
    list-style: none;
}

#nav ul li {
    margin-left: 30px;
}

#nav ul li a {
    color: var(--light-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

#nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 3px;
}

#nav ul li a:hover {
    color: var(--accent-color);
    background-color: rgba(37, 99, 235, 0.1);
}

#nav ul li a:hover::after {
    width: 50%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-color);
}

/* 首页横幅 */
.hero {
    height: 100vh;
    background-image: none;
    background-color: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 18, 34, 0.7), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px;
    background: rgba(12, 18, 34, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 1s ease-out;
    position: relative;
}

.hero h1::after {
    content: 'AI';
    position: absolute;
    top: -20px;
    right: -30px;
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0.7;
    transform: rotate(15deg);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: rotate(15deg) translateY(0); }
    50% { transform: rotate(15deg) translateY(-10px); }
    100% { transform: rotate(15deg) translateY(0); }
}

.hero h2 {
    font-size: 1.6rem;
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    z-index: -1;
    transform: translate(-50%, -50%);
    animation: heroGlow 10s infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(12, 18, 34, 1), transparent);
    z-index: 0;
}

/* 关于我 */
.about {
    background-color: rgba(15, 23, 42, 0.3);
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0.2; }
}

.about-content {
    display: flex;
    align-items: center;
    gap: 70px;
}

.about-img {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.about-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), transparent);
    z-index: 1;
}

.about-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--light-color);
    opacity: 0.9;
}

/* 照片轮播展示区 */
.gallery {
    background-color: rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.gallery::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
    z-index: -1;
    animation: pulse 8s infinite alternate-reverse;
}

.section-subtitle {
    text-align: center;
    margin: 30px 0 20px;
    font-size: 1.8rem;
    color: var(--light-color);
}

.swiper {
    width: 100%;
    padding-bottom: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    transition: all 0.5s ease;
    transform: translateY(0);
    height: 300px;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::before {
    opacity: 0.7;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    text-align: center;
}

/* 分类标签 */
.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
}

.tab-btn {
    padding: 12px 25px;
    background: rgba(15, 23, 42, 0.5);
    border: none;
    border-radius: 30px;
    color: var(--light-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    transition: all 0.3s ease;
    z-index: -1;
}

.tab-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.tab-btn:hover::before {
    width: 100%;
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    transform: translateY(-3px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.category-placeholder {
    text-align: center;
    padding: 50px 20px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 30px;
}

.category-placeholder h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.category-placeholder p {
    color: #777;
    font-size: 1.1rem;
}

/* 简历样式 */
.resume-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.resume-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.resume-content h3 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.resume-content h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.resume-section {
    margin-bottom: 50px;
    position: relative;
}

.resume-section h4 {
    font-size: 1.6rem;
    color: var(--primary-color);
    border-bottom: none;
    padding-bottom: 15px;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.resume-section h4::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.resume-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 2px;
    z-index: -1;
}

.resume-item {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 2px dashed rgba(59, 130, 246, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.resume-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.resume-item:hover {
    transform: translateX(5px);
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    align-items: center;
}

.resume-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
}

.resume-item-date {
    color: #64748b;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.resume-item-content p {
    margin-bottom: 8px;
    line-height: 1.7;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-item {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.2));
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.15);
    background: var(--gradient-primary);
    color: white;
}

/* AI创作样式 */
.ai-creation-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.ai-creation-content h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.ai-intro {
    text-align: center;
    color: #777;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.video-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.4s ease;
    z-index: 2;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.video-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
}

.video-item:hover::before {
    height: 100%;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    cursor: pointer;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    z-index: 10;
}

.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(0,0,0,0.7);
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 20;
    font-size: 14px;
    text-align: center;
    max-width: 80%;
}

.direct-video-link {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    z-index: 15;
    opacity: 1;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
}

.direct-video-link:hover {
    opacity: 1;
    color: #fff;
    background: var(--primary-color);
    transform: scale(1.05);
}

.download-video-link {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    z-index: 15;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
}

.download-video-link:hover {
    color: #fff;
    background: var(--primary-color);
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-overlay {
    opacity: 0.7;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.play-button i {
    font-size: 24px;
    color: var(--primary-color);
}

.video-container:hover .play-button {
    transform: scale(1.1);
}

.video-item h4 {
    padding: 15px 15px 5px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.video-item p {
    padding: 0 15px 15px;
    color: #666;
    font-size: 0.9rem;
}

.ai-description {
    background: rgba(255, 255, 255, 0.8);
    padding: 35px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.ai-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.ai-description h4 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.ai-description h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.ai-description p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #334155;
    font-size: 1.05rem;
}

/* 单独的AI创作部分 */
.ai-creation {
    position: relative;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 20px;
    overflow: hidden;
}

.ai-creation::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
    z-index: -1;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translate(-50%, 0) scale(1); }
    50% { transform: translate(-50%, -30px) scale(1.2); }
    100% { transform: translate(-50%, 0) scale(1); }
}

.ai-creation .ai-intro {
    text-align: center;
    font-size: 1.3rem;
    color: var(--light-color);
    margin-bottom: 50px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.video-item {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.video-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    z-index: 2;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-item:hover::before {
    transform: scaleX(1);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
}

.direct-video-link {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.video-item:hover .direct-video-link {
    opacity: 1;
    transform: translateY(0);
}

.video-item h4 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
    color: var(--light-color);
}

.video-item p {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--light-color);
    opacity: 0.8;
}

.ai-description {
    background: rgba(15, 23, 42, 0.5);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ai-description h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--light-color);
    position: relative;
    padding-bottom: 15px;
}

.ai-description h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.ai-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-color);
    opacity: 0.9;
    margin-bottom: 15px;
}

.video-instructions {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.video-instructions::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.video-instructions h4 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.video-instructions h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.video-instructions ul {
    list-style-type: none;
    padding-left: 5px;
    margin-bottom: 0;
}

.video-instructions li {
    margin-bottom: 12px;
    color: #334155;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.video-instructions li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

.video-instructions li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .video-gallery {
        grid-template-columns: 1fr;
    }
    
    .direct-video-link {
        bottom: 50px;
        right: 50%;
        transform: translateX(50%);
        padding: 10px 20px;
        font-size: 1rem;
        white-space: nowrap;
    }
    
    .direct-video-link:hover {
        transform: translateX(50%) scale(1.05);
    }
    
    .download-video-link {
        bottom: 50px;
        left: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 80%;
    }
}

/* AI聊天界面 */
.chat {
    position: relative;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 20px;
    overflow: hidden;
}

.chat::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

.chat-intro {
    text-align: center;
    font-size: 1.3rem;
    color: var(--light-color);
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.chat-container {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.chat-window {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(12, 18, 34, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.chat-window::-webkit-scrollbar {
    width: 8px;
}

.chat-window::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
}

.chat-window::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 10px;
}

.message {
    display: flex;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 15px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    background: rgba(15, 23, 42, 0.5);
    padding: 15px;
    border-radius: 15px;
    max-width: 70%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.ai-message .message-content {
    border-top-left-radius: 0;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.user-message .message-content {
    border-top-right-radius: 0;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-content p {
    margin: 0;
    color: var(--light-color);
}

.chat-input-area {
    display: flex;
    margin-bottom: 20px;
}

.chat-input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: rgba(12, 18, 34, 0.7);
    color: var(--light-color);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.chat-input:focus {
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.send-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.send-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.suggestion-chip {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--light-color);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.suggestion-chip:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.chat-controls {
    display: flex;
    justify-content: space-between;
}

.control-btn {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--light-color);
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.typing-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background: #aaa;
    border-radius: 50%;
    margin: 0 2px;
    display: inline-block;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

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

/* 联系方式 */
.contact {
    position: relative;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 20px;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
    z-index: -1;
    animation: pulse 10s infinite alternate-reverse;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.social-icon:hover {
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

.social-icon:hover::before {
    opacity: 1;
    transform: scale(1);
}

.contact-message {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light-color);
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-info {
    background: rgba(15, 23, 42, 0.5);
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--light-color);
    text-align: center;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    color: var(--light-color);
    display: flex;
    align-items: center;
}

.contact-info li:last-child {
    border-bottom: none;
}

.contact-info li strong {
    width: 120px;
    display: inline-block;
    color: var(--accent-color);
}

.contact-info a {
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 底部信息栏 */
#footer {
    background: rgba(12, 18, 34, 0.95);
    color: var(--light-color);
    text-align: center;
    padding: 30px 0;
    position: relative;
    margin-top: 50px;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.5), transparent);
}

#footer p {
    margin: 5px 0;
    opacity: 0.8;
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.lightbox-img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-img, .about-text {
        width: 100%;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    #nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    #nav.active {
        transform: translateY(0);
    }
    
    #nav ul {
        flex-direction: column;
    }
    
    #nav ul li {
        margin: 10px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    section {
        padding: 60px 0;
    }
}

/* 暗色模式 */
.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode #header {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .logo a,
.dark-mode #nav ul li a {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dark-mode .chat-container {
    background: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .chat-window {
    background: #2d2d2d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .chat-window::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.5);
}

.dark-mode .chat-window::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .chat-input {
    background: #333;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode .chat-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 3px 15px rgba(59, 130, 246, 0.3);
}

.dark-mode .ai-message .message-content {
    background: linear-gradient(135deg, #3a3a3a, #444444);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .user-message .message-content {
    background: linear-gradient(135deg, #2a4365, #2c5282);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .message-content p {
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.6;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.dark-mode .suggestion-chip {
    background: rgba(30, 41, 59, 0.8);
    color: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.dark-mode .suggestion-chip:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(59, 130, 246, 0.8));
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.dark-mode .control-btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    background: rgba(59, 130, 246, 0.2);
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.dark-mode .control-btn:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .chat-input-area,
.dark-mode .suggestion-chips,
.dark-mode .chat-controls {
    border-color: rgba(255, 255, 255, 0.1);
    background: #1e1e1e;
}

.dark-mode .send-btn {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
} 