:root {
    --primary-blue: #2B4C7E;
    --secondary-blue: #567EBB;
    --accent-gray: #606D80;
    --light-gray: #E5E9F0;
    --white: #FFFFFF;
    --bg-primary: var(--white);
    --bg-secondary: var(--light-gray);
    
    /* 浅色模式文字颜色 */
    --text-primary: #2C3E50;       /* 主要文字颜色，更深的灰色 */
    --text-secondary: #2B4C7E;     /* 次要文字颜色，使用主题蓝色 */
    --text-muted: #606D80;         /* 淡化的文字颜色 */
    --text-accent: #567EBB;        /* 强调文字颜色 */
    --heading-color: #1A365D;      /* 标题文字颜色 */
}

/* 深色模式变量 */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    
    /* 深色模式文字颜色 */
    --text-primary: #E5E9F0;       /* 主要文字颜色，偏白色 */
    --text-secondary: #88A9E5;     /* 次要文字颜色，淡蓝色 */
    --text-muted: #A0AEC0;         /* 淡化的文字颜色 */
    --text-accent: #7BA3E8;        /* 强调文字颜色 */
    --heading-color: #F0F4F8;      /* 标题文字颜色 */
}

/* 更新文字颜色应用 */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: 
        radial-gradient(circle at 0% 0%, rgba(43, 76, 126, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(86, 126, 187, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(43, 76, 126, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(86, 126, 187, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #f8fafd 0%, #e8eef7 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
}

html, body {
    max-width: 100%;
}

/* Navigation */
.navbar {
    background-color: var(--bg-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-secondary);
}

/* 移动端适配 */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 0.9rem;    /* 稍微减小字体大小 */
        padding: 0.25rem 0;   /* 调整内边距 */
        margin-right: 1rem;   /* 调整右边距 */
    }
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-accent);
}

@media (max-width: 991px) {
    .nav-link {
        font-size: 0.9rem;
    }
}

/* 深色模式下的样式 */
[data-theme='dark'] .navbar-toggler-icon {
    /* 深色模式下的图标样式 */
    filter: invert(1);          /* 反转颜色 */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 0;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%),
        url('data:image/svg+xml,<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><rect width="30" height="30" fill="none"/><circle cx="15" cy="15" r="1" fill="%232B4C7E" opacity="0.2"/></svg>');
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(43, 76, 126, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(86, 126, 187, 0.15) 0%, transparent 25%);
    pointer-events: none;
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

@media (max-width: 991px) {
    .hero h1 {
        font-size: 2rem;
    }
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
} 

/* About Section */
.about-section {
    background: linear-gradient(135deg, #edf1f7 0%, #dde5f1 100%);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: -3rem 0;
    padding: 12rem 0 14rem 0;
    position: relative;
}

.section-title {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 2rem;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.personal-interests ul {
    list-style: none;
    padding-left: 0;
}

.personal-interests li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.personal-interests li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--text-accent);
}

/* About Section 图片轮播样式优化 */
.about-image-carousel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin: 1rem 0 0 auto;
    width: 110%;
    max-width: 800px;
    transform: translateX(10%);
}

.carousel {
    border-radius: 20px;
    position: relative;
}

.carousel-inner {
    border-radius: 20px;
    overflow: hidden;
}

.carousel-item {
    height: 900px;
    position: relative;
    transition: transform .6s ease-in-out;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.6s ease-in-out;
}

/* 轮播控制按钮样式优化 */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    filter: invert(1) grayscale(100);
}

/* 指示器样式优化 */
.carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1.2);
}

/* 悬浮效果 */
.about-image-carousel:hover .carousel-control-prev,
.about-image-carousel:hover .carousel-control-next {
    opacity: 1;
}

/* 添加过渡动画 */
.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}

.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end {
    transform: translateX(0);
}

/* Portfolio Section */
.portfolio-section {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%),
        url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="none"/><circle cx="10" cy="10" r="1" fill="%23567EBB" opacity="0.1"/></svg>');
    position: relative;
    padding: 100px 0;
    margin: 0;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="none"/><circle cx="10" cy="10" r="1" fill="%23567EBB" opacity="0.1"/></svg>');
    pointer-events: none;
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
}

.project-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img[src*="little-lemon-logo"] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160%;
    height: 160%;
    object-fit: contain;
    padding: 10px;
}

.project-image img:not([src*="little-lemon-logo"]) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.project-category {
    font-size: 0.9rem;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-description {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(86, 126, 187, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-link.primary {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    color: white;
}

.project-link.secondary {
    border: 2px solid var(--primary-blue);
    color: var(--secondary-blue);
}

/* Hover Effects */
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-card:hover .project-image img[src*="little-lemon-logo"] {
    transform: translate(-50%, -50%) scale(1.05);
}

.project-card:hover .project-image img:not([src*="little-lemon-logo"]) {
    transform: scale(1.05);
}

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

.project-link.primary:hover {
    box-shadow: 0 5px 15px rgba(43, 76, 126, 0.3);
}

.project-link.secondary:hover {
    background: var(--primary-blue);
    color: white;
}

/* Skills Section */
.skill-category {
    margin-bottom: 2rem;
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-name {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar-container {
    background-color: var(--light-gray);
    border-radius: 30px;
    height: 10px;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #edf1f7 0%, #dde5f1 100%);
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    margin-top: -3rem;
    padding-top: 8rem;
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    margin-right: 1.5rem;
    color: var(--text-accent);
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--text-accent);
}

/* Theme toggle button styles */
#theme-toggle {
    padding: 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    background: transparent;
    border: none;
}

#theme-toggle:hover {
    transform: rotate(15deg);
    color: var(--text-accent);
}

/* 深色模式下的按钮样式 */
[data-theme="dark"] #theme-toggle {
    color: var(--text-primary);
}

[data-theme="dark"] #theme-toggle:hover {
    color: #ffd700;
}

[data-theme="dark"] #theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] #theme-toggle .fa-sun {
    display: inline-block;
    color: #ffd700;
}

/* 浅色模式下的图标显示 */
#theme-toggle .fa-sun {
    display: none;
}

#theme-toggle .fa-moon {
    display: inline-block;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-3px);
}

[data-theme="dark"] .scroll-top-btn {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
} 

/* Portfolio Item Animation */
.portfolio-item {
    transition: all 0.5s ease;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
}

/* Dark mode adjustments */
[data-theme="dark"] .filter-btn {
    border-color: var(--secondary-blue);
    color: var(--secondary-blue);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background-color: var(--secondary-blue);
    color: var(--bg-primary);
} 

/* 卡片样式优化 */
.certificate-card,
.skill-category,
.project-card,
.contact-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

/* 卡片悬浮效果 */
.certificate-card:hover,
.skill-category:hover,
.project-card:hover,
.contact-item:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.15);
}

/* Sections 背景优化 */
.about-section {
    background: linear-gradient(135deg, #edf1f7 0%, #dde5f1 100%);
}

.skills-section {
    background: linear-gradient(135deg, #dde5f1 0%, #edf1f7 100%);
}

.certificates-section {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.7) 100%),
        repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 10px, rgba(43, 76, 126, 0.02) 10px, rgba(43, 76, 126, 0.02) 11px);
}

.contact-section {
    background: linear-gradient(135deg, #edf1f7 0%, #dde5f1 100%);
}

/* 按样式现代化 */
.button {
    background: linear-gradient(45deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

/* 标题样式优化 */
h2, h3 {
    background: linear-gradient(135deg, #FFC107, #FF8C5A, #6CA8EF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
} 

/* 深色模式下的标题样式 */
[data-theme="dark"] h2, [data-theme="dark"] h3 {
    background: linear-gradient(90deg, #E6B800, #D46A50, #5B92D9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 调整项目卡片的上边距 */
#portfolio-grid {
    margin-top: 2rem;
} 

/* Skills Section Styling */
.skills-section {
    background: linear-gradient(135deg, #c3cfe2 0%, #f5f7fa 100%);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: -3rem 0;
    padding: 8rem 0 12rem 0;
    position: relative;
}

.skills-section .container {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    background: linear-gradient(45deg, var(--primary-blue), #4F94CD, var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 深色模式下的标题样式 */
[data-theme="dark"] .skill-category h3 {
    background: linear-gradient(45deg, #88A9E5, #7BA3E8, #5E9FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-bar-container {
    background-color: rgba(86, 126, 187, 0.1);
    border-radius: 30px;
    height: 8px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 30px;
    width: var(--skill-percentage);
    transition: width 1.5s cubic-bezier(0.1, 0.45, 0.1, 1);
    position: relative;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skill-category {
        margin-bottom: 2rem;
    }
} 

/* 添加 scroll-padding-top 来调整跳转位置 */
html {
    scroll-padding-top: 80px; /* 导航栏高度 + 一些额外空间 */
    scroll-behavior: smooth;
}

/* 调整每个section的padding-top */
section {
    padding-top: 80px; /* 与导航栏高度相同 */
    margin-top: 0 !important; /* 移除之前的负margin */
} 

/* 调整section之间的过渡 */
section + section {
    margin-top: 0;
} 

/* 添加微妙的动画效果 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero, .portfolio-section, .contact-section {
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
} 

/* Hero Section 样式优化 */
.project-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 160px 0 80px;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-hero-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    margin-left: -20%;
}

@media (max-width: 991px) {
    .main-hero-content {
        margin-left: 20%;
        margin-top: 20%;
    }
}

.hero-content .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-content .row {
    width: 100%;
    align-items: center;
    justify-content: center;
}

.hero-content .row-left {
    margin-left: -20%;
}

@media (max-width: 991px) {
    .hero-content .row-left {
        margin-left: 0;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-blue), #4F94CD, var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 深色模式下的标题样式 */
[data-theme="dark"] .hero-content h1 {
    background: linear-gradient(45deg, #88A9E5, #7BA3E8, #5E9FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .lead {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.project-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 800px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.highlight-item span {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 主图片样式 */
.main-hero-image {
    position: relative;
    padding: 2rem;
    text-align: center;
    width: 120%;
    margin-left: -40%;
}

.main-hero-image img{
    max-width: 220%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    transform: scale(1.2);
}

/* 悬浮效果 */
.main-hero-image img:hover {
    transform: scale(1.25);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* 响应式调整 */
@media (max-width: 991px) {
    .main-hero-image {
        width: 55%;
        margin-left: 0;
        margin-top: 3rem;
    }
    .main-hero-image img {
        transform: scale(1.1);
    }
    .main-hero-image img:hover {
        transform: scale(1.15);
    }
}

@media (max-width: 768px) {
    .main-hero-image img {
        transform: scale(1.05);
    }
}

/* Porsche图片样式 */
.hero-image {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 深色模式调整 */
[data-theme="dark"] .project-hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.9) 100%);
}

[data-theme="dark"] .highlight-item {
    background: rgba(45, 45, 45, 0.9);
}

/* 响应式调整 */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content .lead {
        font-size: 1.3rem;
    }

    .project-highlights {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content .lead {
        font-size: 1.1rem;
    }
} 

/* 添加浮动动画 */
.floating-animation {
    animation: floating 3s ease-in-out infinite;
}

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

/* 响应式调整 */
@media (max-width: 991px) {
    .hero .row {
        text-align: center;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
        white-space: normal;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

/* 添加鼠标悬停效果 */
.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* 优化文字布局 */
.hero .col-lg-6:first-child {
    padding-right: 3rem;
}

@media (max-width: 991px) {
    .hero .col-lg-6:first-child {
        padding-right: 15px;
    }
} 

/* 更新深色模式下的背景和组件样式 */
[data-theme="dark"] {
    /* 背景渐变 */
    background: 
        radial-gradient(circle at 0% 0%, rgba(86, 126, 187, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(43, 76, 126, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(86, 126, 187, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(43, 76, 126, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;

    /* 组件背景色 */
    .navbar {
        background-color: #1a1a1a;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .hero {
        background: 
            linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.9) 100%),
            url('data:image/svg+xml,<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><rect width="30" height="30" fill="none"/><circle cx="15" cy="15" r="1" fill="%23567EBB" opacity="0.2"/></svg>');
    }

    .about-section {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }

    .portfolio-section {
        background: 
            linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.9) 100%),
            radial-gradient(circle at 50% 50%, #567EBB 0%, transparent 50%);
    }

    .skills-section {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    }

    .contact-section {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }

    /* 卡片和内容背景 */
    .project-card, 
    .skill-category,
    .contact-item {
        background: rgba(45, 45, 45, 0.95);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    /* 文字颜色 */
    .project-description,
    .skill-name,
    .contact-item a {
        color: var(--text-primary);
    }

    /* 按钮样式 */
    .btn-primary {
        background-color: #567EBB;
        border-color: #567EBB;
    }

    .btn-primary:hover {
        background-color: #2B4C7E;
        border-color: #2B4C7E;
    }

    /* 项目卡片悬浮效果 */
    .project-card:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
} 

/* 响应式调整 */
@media (max-width: 991px) {
    .hero h2 {
        font-size: 1.4rem;
        white-space: normal;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.2rem;
    }
} 

/* 调整左侧内容区域的间距 */
.hero .col-lg-7 {
    padding-right: 5rem;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.8rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 991px) {
    .hero .col-lg-7 {
        padding-right: 15px;
    }
    
    .hero h1 {
        font-size: 3.4rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
        white-space: normal;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
} 

/* Hero Section 内容居中样式 */
.hero .col-lg-9 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -20%;
}

/* 整右侧图片置 */
.hero .col-lg-3 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .hero-content {
        margin-left: 0;
        padding: 60px 15px;
    }
    
    .hero .col-lg-9 {
        padding-right: 15px;
        min-height: auto;
    }
} 

/* 相关课程样式 */
.courses-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.course-tag {
    padding: 0.5rem 1rem;
    background: rgba(86, 126, 187, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.course-tag:hover {
    background: rgba(86, 126, 187, 0.2);
    transform: translateY(-2px);
}

/* 深色式调整 */
[data-theme="dark"] .course-tag {
    background: rgba(86, 126, 187, 0.2);
    color: var(--text-accent);
}

[data-theme="dark"] .course-tag:hover {
    background: rgba(86, 126, 187, 0.3);
} 

/* Certificates Section Styling */
.certificates-section {
    position: relative;
    padding: 100px 0;
    margin: 0;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.7) 100%),
        repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 10px, rgba(43, 76, 126, 0.02) 10px, rgba(43, 76, 126, 0.02) 11px);
    transition: background 0.3s ease;
}

/* 深色模式调整 */
[data-theme="dark"] .certificates-section {
    background: 
        linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.9) 100%),
        repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 10px, rgba(86, 126, 187, 0.05) 10px, rgba(86, 126, 187, 0.05) 11px);
}

[data-theme="dark"] .certificates-section::before,
[data-theme="dark"] .certificates-section::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--text-accent) 50%,
        transparent 100%
    );
}

[data-theme="dark"] .certificate-card {
    background: rgba(45, 45, 45, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .certificate-content h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .certificate-issuer {
    color: var(--text-secondary);
}

[data-theme="dark"] .certificate-date {
    color: var(--text-muted);
} 

/* Certificate Group Styling */
.certificate-group {
    margin-bottom: 5rem;
    padding-bottom: 4rem;
    position: relative;
}

/* 添加分隔线 */
.certificate-group:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--text-secondary) 50%,
        transparent 100%
    );
    opacity: 0.2;
}

.group-title {
    font-size: 2.2rem;
    color: var(--heading-color);
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 1rem;
    position: relative;
}

/* 标题下的装饰线 */
.group-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 2px;
}

/* 深色模式调整 */
[data-theme="dark"] .certificate-group:not(:last-child)::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--text-accent) 50%,
        transparent 100%
    );
} 

/* 技能标签样式优化 */
.skill-tag {
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(86, 126, 187, 0.1) 0%, rgba(43, 76, 126, 0.15) 100%);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(86, 126, 187, 0.1);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.skill-tag:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(86, 126, 187, 0.15) 0%, rgba(43, 76, 126, 0.2) 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: rgba(86, 126, 187, 0.2);
}

/* 深色模式调整 */
[data-theme="dark"] .skill-tag {
    background: linear-gradient(135deg, rgba(86, 126, 187, 0.2) 0%, rgba(43, 76, 126, 0.25) 100%);
    color: var(--text-accent);
    border-color: rgba(86, 126, 187, 0.2);
}

[data-theme="dark"] .skill-tag:hover {
    background: linear-gradient(135deg, rgba(86, 126, 187, 0.25) 0%, rgba(43, 76, 126, 0.3) 100%);
    border-color: rgba(86, 126, 187, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 技能标签容器样式 */
.certificate-skills, .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1rem 0;
} 

/* Skills Section 样式调整 */
.skills-section {
    background: linear-gradient(135deg, #c3cfe2 0%, #f5f7fa 100%);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: -3rem 0;
    padding: 8rem 0 12rem 0;
    position: relative;
}

.skills-section .container {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}

/* 确保内容区域有足够的空 */
.skills-section .container {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .skills-section {
        padding: 8rem 0 10rem 0;
    }
} 

/* About Section 样式调整 */
.about-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: -3rem 0;
    padding: 12rem 0 14rem 0;
    position: relative;
}

/* 确保内容区域有足够的空间 */
.about-section .container {
    position: relative;
    z-index: 2;
    padding-bottom: 2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-section {
        padding: 10rem 0 12rem 0; /* 移动端稍微减少间距 */
    }
    
    .about-section .container {
        padding-top: 3rem;
    }
}

/* 响应式调整 */
@media (max-width: 991px) {
    .about-image-carousel {
        width: 100%;
        margin: 2rem auto;
        transform: none;
    }
    
    .carousel-item {
        height: 500px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 500px;
    }
} 

/* Certificate Card 样式优化 */
.certificate-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    height: 100%;
    min-height: 320px; /* 设最小高度 */
    display: flex;
    flex-direction: column;
}

.certificate-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.certificate-content h3 {
    font-size: 1.2rem; /* 减小标字体 */
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.certificate-issuer {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.certificate-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.certificate-skills {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.certificate-link {
    margin-top: auto; /* 将链接推到底部 */
    display: inline-flex;
    align-items: center;
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.certificate-link i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

/* 调整网格布局 */
.certificate-group .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .certificate-card {
        min-height: 280px;
    }
    
    .certificate-content {
        padding: 1.5rem;
    }
} 

/* 语言切换按钮样式 */
#lang-toggle {
    padding: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    background: transparent;
    border: none;
}

#lang-toggle:hover {
    color: var(--text-accent);
}

.lang-text {
    font-weight: 500;
}

/* 深色模式调整 */
[data-theme="dark"] #lang-toggle {
    color: var(--text-primary);
}

[data-theme="dark"] #lang-toggle:hover {
    color: var(--text-accent);
} 

/* About Section Lead Text 样式优化 */
.about-section .lead {
    font-size: 1.8rem; /* 增大字体大小 */
    font-weight: 500; /* 增加字重 */
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--text-secondary); /* 使用强调色 */
    background: linear-gradient(45deg, var(--primary-blue), #4F94CD, var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0.5rem 0;
    border-bottom: 2px solid rgba(86, 126, 187, 0.1); /* 添加底部边框 */
}

/* 深色模式调整 */
[data-theme="dark"] .about-section .lead {
    border-bottom-color: rgba(86, 126, 187, 0.2);
    background: linear-gradient(45deg, #88A9E5, #7BA3E8, #5E9FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .about-section .lead {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .about-section .lead {
        font-size: 1.4rem;
    }
} 

/* Project Details Page Styles */
.project-details-section {
    padding-top: 120px;
    padding-bottom: 80px;
}

.content-section {
    margin-bottom: 6rem;
}

/* Project Header */
.project-header {
    margin-bottom: 4rem;
}

.project-meta {
    margin-top: 1.5rem;
}

/* Project Hero Image */
.project-hero-image {
    margin: 4rem 0;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.feature-item {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

/* Process Timeline */
.process-timeline {
    position: relative;
    padding: 3rem 0;
}

.timeline-item {
    position: relative;
    padding: 2.5rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.result-item {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

/* Project Links */
.project-links {
    margin-top: 4rem;
}

/* Project Navigation */
.project-navigation {
    position: fixed;
    top: 100px;
    left: 40px;
    z-index: 1000;
    margin-top: 4rem;
}

.project-navigation .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.project-navigation .btn:hover {
    transform: translateX(-5px);
    background: var(--primary-blue);
    color: white;
}

.project-navigation .btn i {
    font-size: 1.1rem;
}

/* 深色模式调整 */
[data-theme="dark"] .project-navigation .btn {
    background: rgba(45, 45, 45, 0.9);
    color: var(--text-primary);
}

[data-theme="dark"] .project-navigation .btn:hover {
    background: var(--primary-blue);
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .project-navigation {
        position: static;
        margin-top: 4rem;
        text-align: center;
    }

    .project-navigation .btn {
        display: inline-flex;
    }

    .project-navigation .btn:hover {
        transform: translateY(-5px);
    }
}

/* Typography Adjustments */
h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* 深色模式调整 */
[data-theme="dark"] .project-navigation {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .project-details-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .content-section {
        margin-bottom: 4rem;
    }

    .feature-grid,
    .results-grid {
        gap: 2rem;
    }

    .feature-item,
    .result-item {
        padding: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
} 

/* Porsche Project Specific Styles */
.project-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.project-nav .project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 2rem;
}

.project-nav .nav-links {
    display: flex;
    gap: 2rem;
}

.project-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.project-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.project-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.project-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
}

.project-highlights {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* Split Section */
.split-section {
    padding: 100px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.process-step {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    transition: transform 0.3s ease;
    width: 70%;
}

@media (max-width: 991px) {
    .process-step {
        width: 100%;
    }
}

.process-step:hover {
    transform: translateX(10px);
}

.process-step h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Voice Flow Diagram */
.voice-flow-diagram {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.flow-step {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Error Handling Section 样式调整 */
.error-handling {
    margin-top: 6rem; /* 增加上方间距 */
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.error-handling h3 {
    margin-bottom: 3rem; /* 增加标题下方间距 */
    color: var(--primary-blue);
    text-align: center;
}

.error-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem; /* 增加卡片之间的间距 */
    margin-top: 2rem;
}

.scenario {
    padding: 2.5rem; /* 增加内部间距 */
    background: var(--bg-secondary);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

/* 深色模式调整 */
[data-theme="dark"] .error-handling {
    background: rgba(45, 45, 45, 0.95);
}

[data-theme="dark"] .scenario {
    background: rgba(35, 35, 35, 0.95);
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0 160px;
    position: relative;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    margin-bottom: 6rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(45, 45, 45, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Dark Mode Adjustments */
[data-theme="dark"] {
    .project-nav {
        background: rgba(26, 26, 26, 0.95);
    }

    .process-step,
    .voice-flow-diagram,
    .flow-step,
    .scenario {
        background: rgba(45, 45, 45, 0.95);
    }

    .highlight-item {
        background: rgba(45, 45, 45, 0.8);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-nav .project-title {
        display: none;
    }

    .project-nav .nav-links {
        gap: 1rem;
    }

    .process-step:hover {
        transform: none;
    }

    .flow-steps {
        grid-template-columns: 1fr;
    }
} 

/* Porsche Project Hero Image Styles */
.hero-6 {
    width: 60%;
    margin-left: -10%;
}

@media (max-width: 991px) {
    .hero-6 {
        width: 100%;
        margin-left: 0;
    }
}

.project-hero .hero-image {
    width: 140%; 
    height: auto;
    margin-left: 10%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.project-hero .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1); /* 放大图片 */
    transition: transform 0.5s ease;
}

/* 悬浮效果 */
.project-hero .hero-image:hover img {
    transform: scale(1.15);
}

/* 响应式调整 */
@media (max-width: 991px) {
    .project-hero .hero-image {
        width: 100%;
        margin-left: 0;
        margin-top: 2rem;
    }
    
    .project-hero .hero-image img {
        transform: scale(1.05);
    }
    
    .project-hero .hero-image:hover img {
        transform: scale(1.1);
    }
} 

@media (max-width: 768px) {
    .project-hero .hero-image {
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }

    .project-hero .hero-image img {
        transform: scale(1.05);
    }

    .project-hero .hero-image:hover img {
        transform: scale(1.1);
    }
}

/* Design Showcase Carousel Styles */
.design-showcase {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 140%;
    margin-left: -20%;
    margin-top: 10%;
}

.design-showcase .carousel {
    border-radius: 20px;
    width: 100%;
    height: auto;
}

.design-showcase .carousel-item img {
    width: 150%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.design-showcase .carousel-caption {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    text-align: left;
    transform: translateY(100%); /* 初始状态隐藏 */
    transition: transform 0.3s ease; /* 添加过渡效果 */
    
}

.design-showcase .carousel-item {
    position: relative;
    width: 100%;
    height: auto; /* 高度自动适应 */
    object-fit: contain; /* 确保图片完整显示 */
}

/* 悬浮时显示标题和描述 */
.design-showcase .carousel-item:hover .carousel-caption {
    transform: translateY(0); /* 显示标题和描述 */
}

/* 优化标题和描述样式 */
.design-showcase .carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0; /* 初始状态隐藏 */
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s; /* 添加延迟效果 */
}

.design-showcase .carousel-caption p {
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.2s; /* 添加更长的延迟 */
}

/* 悬浮时显示文字 */
.design-showcase .carousel-item:hover .carousel-caption h5,
.design-showcase .carousel-item:hover .carousel-caption p {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .design-showcase {
        width: 200%;
        margin-left: -10%;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .design-showcase .carousel-caption {
        padding: 1.5rem;
    }
    
    .design-showcase .carousel-caption h5 {
        font-size: 1.2rem;
    }
    
    .design-showcase .carousel-caption p {
        font-size: 0.9rem;
    }
}

/* 轮播控制按钮样式 */
.design-showcase .carousel-control-prev,
.design-showcase .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary) ;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.design-showcase .carousel-control-prev {
    left: 20px;
}

.design-showcase .carousel-control-next {
    right: 20px;
}

.design-showcase .carousel-control-prev-icon,
.design-showcase .carousel-control-next-icon {
    filter: invert(1) grayscale(100);
}

/* 指示器样式 */
.design-showcase .carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

.design-showcase .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--bg-secondary);
    transition: all 0.3s ease;
}

.design-showcase .carousel-indicators button.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1.2);
}

/* 悬浮效果 */
.design-showcase:hover .carousel-control-prev,
.design-showcase:hover .carousel-control-next {
    opacity: 1;
}

/* 深色模式调整 */
[data-theme="dark"] .design-showcase {
    background: rgba(45, 45, 45, 0.95);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .design-showcase .carousel-item {
        height: 350px;
    }
    
    .design-showcase .carousel-caption {
        padding: 1.5rem;
    }
    
    .design-showcase .carousel-caption h5 {
        font-size: 1.2rem;
    }
} 

/* 图片放大模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

/* 添加图片点击提示 */
.design-showcase .carousel-item {
    cursor: zoom-in;
}

/* Theme toggle and language toggle styles */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem; /* 增加左边距 */
}

#theme-toggle, #lang-toggle {
    padding: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle {
    width: 40px; /* 固定宽度 */
    height: 40px; /* 固定高度 */
    border-radius: 50%; /* 圆形按钮 */
    background: rgba(86, 126, 187, 0.1); /* 添加背景色 */
}

#theme-toggle:hover {
    background: rgba(86, 126, 187, 0.2);
    transform: rotate(15deg);
}

#theme-toggle i {
    font-size: 1.2rem;
}

/* 深色模式调整 */
[data-theme="dark"] #theme-toggle {
    background: rgba(86, 126, 187, 0.2);
}

[data-theme="dark"] #theme-toggle:hover {
    background: rgba(86, 126, 187, 0.3);
}

/* 响应式调整 */
@media (max-width: 991px) {
    .theme-toggle {
        margin-left: 1rem;
    }
}

/* Voice Interaction Section */
.card-section {
    padding: 100px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 100%;
}

/* Voice Flow Diagram */
.voice-flow-diagram {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

/* Error Handling Section */
.error-handling {
    margin-top: 6rem;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

/* 深色模式调整 */
[data-theme="dark"] {
    .card-section {
        background: #1a1a1a;
    }

    .feature-card,
    .voice-flow-diagram,
    .error-handling {
        background: rgba(45, 45, 45, 0.95);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .flow-step,
    .scenario {
        background: rgba(35, 35, 35, 0.95);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}

/* Posture Checker Project Specific Styles */
.tech-details {
    padding: 2rem;
}

.tech-item {
    margin-bottom: 9.3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    transition: all 0.3s ease;
}
.tech-item:hover {
    transform: translateY(-5px);
}
.tech-item h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.tech-item ul {
    list-style: none;
    padding-left: 0;
}

.tech-item li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.tech-item li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--text-accent);
}

/* Flow Steps */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.flow-step {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-5px);
}

/* Tech Stack */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
}

.tech-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.tech-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* 深色模式调整 */
[data-theme="dark"] {
    .tech-item,
    .flow-step,
    .stage,
    .tech-item li:before {
        color: var(--text-accent);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .design-stages {
        grid-template-columns: 1fr;
    }

    .tech-item {
        padding: 1.5rem;
    }

    .tech-card {
        padding: 1.5rem;
    }
}

/* Posture Checker Hero Image Specific Styles */
.posture-hero-image img {
    width: 80%; 
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 40%;
    transition: transform 0.3s ease;
}

.posture-hero-image img:hover {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .posture-hero-image img {
        margin-left: 10%;
        margin-top: 10%;
    }
}

/* Design Section Styles */
.design-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.design-process {
    margin-top: 4rem;
}

.design-stage {
    margin-bottom: 6rem;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.design-stage:last-child {
    margin-bottom: 0;
}

.stage-header {
    text-align: center;
    margin-bottom: 3rem;
}

.stage-header h3 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stage-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.stage-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 1000px;
}

.stage-content img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.stage-content img:hover {
    transform: scale(1.02);
}

/* 深色模式调整 */
[data-theme="dark"] .design-stage {
    background: rgba(45, 45, 45, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .design-stage {
        padding: 2rem;
        margin-bottom: 4rem;
    }

    .stage-header h3 {
        font-size: 1.8rem;
    }

    .stage-header p {
        font-size: 1rem;
    }
}

/* Development Section Styles */
.development-section {
    padding: 100px 0;
    background: var(--bg-secondary);  
    position: relative;
}

/* Implementation Showcase Styles */
.implementation-showcase {
    margin-top: 4rem;
    margin-bottom: 10rem;
    background: var(--bg-secondary); 
}

.implementation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: transparent;  /* 移除原有背景色 */
}

/* 深色模式调整 */
[data-theme="dark"] .implementation-showcase {
    background: rgba(35, 35, 35, 0.95);  /* 深色模式下的背景色 */
}

.implementation-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.implementation-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.implementation-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.implementation-item:hover {
    transform: translateY(-5px);
}

.implementation-item:hover img {
    transform: scale(1.05);
}

.implementation-item:hover .implementation-caption {
    transform: translateY(0);
}

/* 深色模式调整 */
[data-theme="dark"] .implementation-item {
    background: rgba(45, 45, 45, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 响应式调整 */
@media (max-width: 991px) {
    .implementation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .implementation-grid {
        grid-template-columns: 1fr;
    }
}

/* Logic Diagrams Styles */
.logic-diagrams {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 2rem 0;
}

.diagram-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    padding: 1.5rem;
}

.diagram-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.diagram-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.diagram-item:hover img {
    transform: scale(1.02);
}

.diagram-caption {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 深色模式调整 */
[data-theme="dark"] .diagram-item {
    background: rgba(45, 45, 45, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .logic-diagrams {
        gap: 2rem;
    }
    
    .diagram-item {
        padding: 1rem;
    }
    
    .diagram-caption {
        font-size: 1rem;
    }
}

/* Posture Checker Highlight Styles */
.posture-project-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    margin-left: -1rem;
    justify-content: center;
}

.posture-highlight-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.posture-highlight-item:hover {
    transform: translateY(-5px);
}

.posture-highlight-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.posture-highlight-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 深色模式适配 */
[data-theme="dark"] .posture-highlight-item {
    background: rgba(45, 45, 45, 0.95);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .posture-project-highlights {
        margin-left: 0; 
        justify-content: center;
    }
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .project-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
    }

    .design-showcase {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content .lead {
        font-size: 1.3rem;
    }

    .project-highlights {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .project-hero .hero-image {
        width: 100%;
        margin-left: 0;
        margin-top: 2rem;
    }

    .hero-content {
        margin-left: 0;
        padding: 60px 15px;
    }

    .hero .col-lg-9 {
        padding-right: 15px;
        min-height: auto;
    }

    .project-nav .project-title {
        display: none;
    }

    .project-nav .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content .lead {
        font-size: 1.1rem;
    }

    .project-highlights {
        grid-template-columns: 1fr;
    }

    .design-stage {
        padding: 2rem;
    }

    .tech-stack {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .implementation-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logic-diagrams {
        gap: 2rem;
    }

    .diagram-item {
        padding: 1rem;
    }

    .diagram-caption {
        font-size: 1rem;
    }

    .flow-steps {
        grid-template-columns: 1fr;
    }

    .process-step:hover {
        transform: none;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .implementation-grid {
        grid-template-columns: 1fr;
    }

    .tech-card {
        padding: 1.5rem;
    }

    .project-highlights {
        gap: 1rem;
    }

    .highlight-item {
        padding: 1rem;
    }

    .highlight-item i {
        font-size: 1.5rem;
    }

    .highlight-item span {
        font-size: 0.9rem;
    }
}