:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --background-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #60a5fa;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --section-spacing: 100px;
}

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

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
    position: relative;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

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

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 70%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0.3rem;
    left: 15%;
    background-color: var(--primary-color);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
    opacity: 0;
}

.nav-links a:hover, 
.nav-links a.active {
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
    opacity: 1;
}

/* 主背景 */
#shaderBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

/* 欢迎部分样式 */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 1;
}

.typing-text {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* 磨砂玻璃效果卡片 */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 个人简介部分 */
.about-section {
    padding: 120px 0 60px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.profile-image {
    text-align: center;
}

.profile-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.profile-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.profile-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.profile-text p {
    margin-bottom: 1rem;
}

/* 技能部分 */
.skills-section {
    padding: 60px 0;
}

.skills-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-item {
    text-align: center;
    position: relative;
    overflow: hidden;
    flex: 0 0 calc(33.33% - 1.5rem);
    max-width: calc(33.33% - 1.5rem);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* 横幅区域 */
.banner-section {
    position: relative;
    width: 100%;
    padding: 60px 0 80px;
    background: rgba(59, 130, 246, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0;
    overflow: hidden;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
    z-index: 1;
    position: relative;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 横幅中的几何动效 */
.banner-geometric {
    position: relative;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.banner-transition-element {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: rotateAndFade 3s infinite;
    animation-delay: var(--delay);
}

.banner-transition-element:nth-child(1) {
    transform: rotate(0deg) translateX(40px);
}

.banner-transition-element:nth-child(2) {
    transform: rotate(90deg) translateX(40px);
}

.banner-transition-element:nth-child(3) {
    transform: rotate(180deg) translateX(40px);
}

.banner-transition-element:nth-child(4) {
    transform: rotate(270deg) translateX(40px);
}

/* 作品集和博客部分 */
.portfolio-section,
.blog-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

.portfolio-slider,
.blog-slider {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.slider-container {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 1rem 0;
}

.slider-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.portfolio-card,
.blog-card,
.list-item {
    flex: 0 0 calc(33.33% - 2rem);
    scroll-snap-align: start;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    will-change: transform;
    perspective: 1000px;
}

.portfolio-card:hover,
.blog-card:hover,
.list-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.4);
    transform: scale(1.03);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

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

.portfolio-card:hover .card-image img,
.blog-card:hover .card-image img,
.list-item:hover .card-image img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content p,
.item-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 2;
}

.prev-btn,
.next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 联系方式部分 */
.contact-section {
    padding: 60px 0 120px;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
}

.contact-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-content {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--text-color);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes rotateAndFade {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: rotate(180deg) scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

@keyframes cardFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(0.5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .typing-text {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
    }
    
    .typing-text {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .skills-grid {
        justify-content: center;
    }
    
    .skill-item {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .typing-text {
        font-size: 2.5rem;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
    }
    
    .skills-grid {
        justify-content: center;
    }
    
    .skill-item {
        flex: 0 0 100%;
        max-width: 280px;
        margin-bottom: 1.5rem;
    }
}

/* 加载动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Admin样式 */
.admin-container {
    margin: -50px auto 60px;
    padding: 0 15px;
    max-width: 1000px;
}

.admin-panel {
    padding: 2rem;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.admin-form {
    display: none;
}

.admin-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, 
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-size: 1rem;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 157, 224, 0.3);
}

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

.btn:hover {
    background: #a0d8ef;
    transform: translateY(-3px);
}

.tag-input-group {
    display: flex;
    gap: 1rem;
}

.tag-input-group input {
    flex: 1;
}

.tag-input-group .btn {
    white-space: nowrap;
}

.admin-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.admin-tag-list .tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.markdown-tips {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
}

.markdown-tips p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.markdown-tips ul {
    margin-left: 1.5rem;
}

.markdown-tips li {
    margin-bottom: 0.3rem;
}

.submit-feedback {
    margin-top: 1rem;
    padding: 0.8rem 0;
    font-weight: 500;
    min-height: 1.5rem;
}

@media (max-width: 768px) {
    .admin-panel {
        padding: 1.5rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .tag-input-group {
        flex-direction: column;
    }
}

/* 页面通用英雄部分 */
.page-hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.page-hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), #a0d8ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero-content p {
    font-size: 1.5rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* 筛选器部分 */
.portfolio-filter-section,
.blog-filter-section {
    padding: 2rem 0;
    margin-top: -50px;
}

.filter-container {
    padding: 2rem;
    text-align: center;
}

.filter-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* 画廊布局 */
.portfolio-gallery-section,
.blog-gallery-section {
    padding: 4rem 0;
}

.portfolio-gallery,
.blog-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.6s ease backwards;
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.gallery-item:nth-child(2n) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(3n) {
    animation-delay: 0.2s;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

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

.gallery-item-content {
    padding: 1.5rem;
}

.gallery-item-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.gallery-item-content p {
    opacity: 0.8;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.gallery-item-content .item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.gallery-item-content .tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.gallery-item-content .read-more {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    background: var(--primary-color);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.gallery-item-content .read-more:hover {
    background: #a0d8ef;
}

/* 横幅按钮和社交链接 */
.banner-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    background: var(--primary-color);
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.banner-button:hover {
    background: #a0d8ef;
    transform: translateY(-3px);
}

.banner-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.banner-social-links a {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.banner-social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* 博客和作品详情页 */
.blog-detail,
.portfolio-detail {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-cover,
.portfolio-cover {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.post-meta {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    align-items: center;
}

.post-tags .tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9宽高比 */
    height: 0;
    overflow: hidden;
    margin-bottom: 2rem;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.portfolio-video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .page-hero-content h1 {
        font-size: 3rem;
    }
    
    .page-hero-content p {
        font-size: 1.2rem;
    }

    .blog-detail,
    .portfolio-detail {
        padding: 2rem;
        margin: 100px auto 40px;
    }
}

@media (max-width: 768px) {
    .portfolio-gallery,
    .blog-gallery {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .page-hero {
        height: 50vh;
    }
    
    .page-hero-content h1 {
        font-size: 2.5rem;
    }

    .blog-detail,
    .portfolio-detail {
        padding: 1.5rem;
        margin: 80px auto 30px;
    }
}

@media (max-width: 576px) {
    .portfolio-gallery,
    .blog-gallery {
        grid-template-columns: 1fr;
    }
    
    .filter-container {
        padding: 1.5rem;
    }
    
    .tag-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .blog-detail,
    .portfolio-detail {
        padding: 1rem;
        margin: 70px auto 20px;
    }
}

/* 修改原有的列表和筛选样式 */
.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.list-item {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.list-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.3);
}

.list-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.item-content {
    padding: 1.5rem;
}

.item-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.item-content p {
    opacity: 0.8;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.blog-list,
.portfolio-list {
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.section-header2 {
    font-size: 2rem;
    margin-bottom: 0;
}

/* 支持Markdown内容 */
.blog-detail h1,
.portfolio-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), #a0d8ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-detail h2,
.portfolio-detail h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

.blog-detail h3,
.portfolio-detail h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.blog-detail p,
.portfolio-detail p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.blog-detail img,
.portfolio-detail img:not(.blog-cover):not(.portfolio-cover) {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-detail ul, 
.blog-detail ol,
.portfolio-detail ul,
.portfolio-detail ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.blog-detail li,
.portfolio-detail li {
    margin-bottom: 0.5rem;
}

.blog-detail blockquote,
.portfolio-detail blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    opacity: 0.8;
}

.blog-detail code,
.portfolio-detail code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.blog-detail pre,
.portfolio-detail pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.blog-detail pre code,
.portfolio-detail pre code {
    background: transparent;
    padding: 0;
}

/* 返回按钮和导航 */
.post-navigation {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-button:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* 主页作品集和博客列表 */
.portfolio-list,
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 主页标签过滤器 */
#portfolioHomeFilter,
#blogHomeFilter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

/* 查看更多按钮 */
.view-more-btn {
    grid-column: 1 / -1;
    display: block;
    text-align: center;
    padding: 1rem;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* 项目内标签样式 */
.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.item-tags .tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

/* 空内容和错误提示 */
.empty-message,
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-message {
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* 加载更多按钮 */
.load-more-btn {
    grid-column: 1 / -1;
    display: block;
    width: 200px;
    margin: 2rem auto 0;
    padding: 0.8rem 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Markdown编辑器样式 */
.CodeMirror {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    height: 300px;
    font-family: 'Inter', sans-serif;
}

.editor-toolbar {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
    background-color: rgba(255, 255, 255, 0.05);
}

.editor-toolbar button {
    color: #e0e0e0 !important;
}

.editor-toolbar button:hover, 
.editor-toolbar button.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.editor-toolbar i.separator {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.CodeMirror-cursor {
    border-left: 1px solid #fff;
}

.editor-preview {
    background-color: rgba(0, 0, 0, 0.7);
    color: #e0e0e0;
    padding: 20px;
    border-radius: 0 0 8px 8px;
}

.editor-preview pre {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 10px;
    overflow-x: auto;
}

.editor-preview code {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.editor-preview table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
}

.editor-preview table th,
.editor-preview table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    text-align: left;
}

.editor-preview table th {
    background-color: rgba(255, 255, 255, 0.05);
}

.editor-preview blockquote {
    border-left: 4px solid rgba(255, 255, 255, 0.2);
    margin-left: 0;
    padding-left: 15px;
    color: #bbb;
}

.editor-preview img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

/* 视频选项样式 */
.video-option {
    margin-bottom: 15px;
}

.video-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.video-option input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.blog-video,
.portfolio-video {
    width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    background-color: #000;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* 博客和作品集内容样式 */
.blog-detail,
.portfolio-detail {
    padding: 40px 20px;
    max-width: 900px;
    margin: 100px auto;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-detail h1,
.portfolio-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #448ded, #c2e9fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-detail h2,
.portfolio-detail h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: #448ded;
}

.blog-detail h3,
.portfolio-detail h3 {
    font-size: 1.5rem;
    margin: 25px 0 12px;
    color: #c2e9fb;
}

.blog-detail p,
.portfolio-detail p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.blog-detail img,
.portfolio-detail img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-detail pre,
.portfolio-detail pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.blog-detail code,
.portfolio-detail code {
    font-family: monospace;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 5px;
    border-radius: 3px;
}

.blog-detail blockquote,
.portfolio-detail blockquote {
    border-left: 4px solid #448ded;
    padding-left: 20px;
    margin-left: 0;
    color: #e0e0e0;
    font-style: italic;
}

.blog-detail ul,
.blog-detail ol,
.portfolio-detail ul,
.portfolio-detail ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.blog-detail li,
.portfolio-detail li {
    margin-bottom: 8px;
}

.blog-detail table,
.portfolio-detail table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.blog-detail th,
.blog-detail td,
.portfolio-detail th,
.portfolio-detail td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    text-align: left;
}

.blog-detail th,
.portfolio-detail th {
    background-color: rgba(255, 255, 255, 0.05);
}

.blog-cover,
.portfolio-cover {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.post-meta {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
}

.post-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.post-tags span:first-child {
    margin-right: 10px;
    color: #aaa;
}

.post-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

/* 图片上传样式 */
.easymde-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 10px 0;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.2);
}

.easymde-upload-area:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(0, 0, 0, 0.3);
}

.easymde-upload-area.drag-over {
    border-color: #448ded;
    background-color: rgba(248, 165, 194, 0.1);
}

.easymde-upload-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.easymde-upload-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.editor-statusbar {
    color: #aaa;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 8px 8px;
    padding: 5px 10px;
}

/* 修改EasyMDE的上传图标颜色 */
.fa-image {
    color: #e0e0e0 !important;
}

/* 图片上传进度条 */
.easymde-upload-progress {
    height: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 10px 0;
    overflow: hidden;
}

.easymde-upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #448ded, #c2e9fb);
    width: 0;
    transition: width 0.3s ease;
}

/* 视频背景样式 */
#causticsVideo {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    opacity: 0.7;
    object-fit: cover;
}

/* 合并的模糊和颜色滤镜叠加层 */
.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgb(16 76 147 / 25%); /* 使用单一的蓝色调 */
    z-index: -1;
    pointer-events: none;
}

.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00aaff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    text-align: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loading-indicator.visible {
    opacity: 1;
}

.md-img-center {
  display: block;
  margin: 1.5em auto;
  max-width: 100%;
}

.blog-detail img.md-img-center,
.portfolio-detail img.md-img-center {
  display: block !important;
  margin: 1.5em auto !important;
  max-width: 60% !important;
}