/* 现代艺术风格重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #e0e0e0;
  --accent-color: #ff6b6b;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Playfair Display', serif;
}

body {
  font-family: var(--font-primary);
  line-height: 1.8;
  color: var(--primary-color);
  background-color: var(--secondary-color);
}

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

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

/* 现代艺术导航栏 */
header {
   background: linear-gradient(135deg, var(--primary-color) 0%, rgba(26, 26, 26, 0.9) 100%);
   padding: 0.8rem 2rem;
   position: fixed;
   width: 100%;
   top: 0;
   z-index: 9999;
   backdrop-filter: blur(10px);
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
   height: auto; /* 移除高度限制 */
}
nav {
   display: flex;
   justify-content: space-between;
   align-items: center;
   max-width: 1800px; /* 进一步增加最大宽度 */
   margin: 0 auto;
   padding: 0 4rem; /* 进一步增加左右内边距 */
}
.logo {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  animation: fadeIn 3s ease-out;
  line-height: 1;
  padding: 0;
  height: 100%;
}

.logo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-en {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 500;
  background: linear-gradient(135deg, #ff6b6b, #ffa64d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.logo-cn {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  color: white;
  font-weight: 300;
  margin-top: 0; /* 移除 margin-top */
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

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

/* 艺术性hero区域 */
.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)),
    url('images/hero-main.webp') no-repeat center center/cover !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  animation: fadeIn 1.5s ease-out;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: slideDown 1s ease-out;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.8;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeIn 2s ease-out;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #ff6b6b, #ffa64d);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  animation: fadeInUp 1.5s ease-out;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.cta-button:hover::before {
  left: 100%;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* 现代艺术画廊 */
.featured-works {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--secondary-color);
}

.featured-works h2 {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.8rem;
  font-family: var(--font-secondary);
  color: var(--primary-color);
  position: relative;
}

.featured-works h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background: var(--accent-color);
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  padding: 0 2rem;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: var(--secondary-color);
}

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

.work-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(26, 26, 26, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.work-item:hover::before {
  opacity: 1;
}

.work-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  transition: transform 0.4s ease;
}

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

.work-info {
  padding: 2rem;
  background: var(--secondary-color);
  position: relative;
  z-index: 2;
}

.work-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
}

.work-info p {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  font-weight: 300;
}

/* 页脚样式 */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* 作品集页面样式 */
.portfolio-container {
  padding: 80px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-container h1 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  color: var(--primary-color);
  font-family: var(--font-secondary);
  position: relative;
}

.portfolio-container h1::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background: var(--accent-color);
  bottom: 0rem;
  left: 50%;
  transform: translateX(-50%);
}



.portfolio-filter {
  text-align: center;
  margin-bottom: 2rem;
}

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

.filter-buttons button {
  padding: 0.5rem 1rem;
  border: 2px solid #f39c12;
  background-color: transparent;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  background-color: #f39c12;
  color: #fff;
}

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


.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

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

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

.overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  transition: bottom 0.3s ease;
}

.gallery-item:hover .overlay {
  bottom: 0;
}

.overlay h3 {
  margin-bottom: 0.5rem;
}


/* 关于我页面样式 */
.about-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.about-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #f39c12;
}

.about-details {
  margin-top: 2rem;
}

.about-details h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.bio {
  margin-bottom: 3rem;
}

.bio p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

.card {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.card h3 {
  color: #f39c12;
  margin-bottom: 1rem;
}

.testimonial-slider {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
}

.testimonial-item {
  text-align: center;
}

blockquote {
  font-style: italic;
  color: #666;
  margin-bottom: 1rem;
}

.client-name {
  font-weight: bold;
  color: #333;
}

/* 博客页面样式 */
.blog-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
}

.blog-posts {
  display: grid;
  gap: 2rem;
}

.post {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

.post-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  color: #f39c12;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #e67e22;
}

/* 简洁版联系页面样式 */
.contact-container {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.contact-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  
}

.contact-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.contact-card p   {
  color: #666;
  margin-bottom: 1rem;
}

.contact-card a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  width: 100%;
  padding: 0.8rem;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--primary-color);
}

.contact-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-hero .subtitle {
  font-size: 1.2rem;
  color: #666;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-card {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  color: var(--accent-color);
}

.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.contact-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--accent-color);
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: var(--primary-color);
}

.contact-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form-wrapper h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--primary-color);
}

.contact-info {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-info h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

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

.info-card {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  color: #f39c12;
  margin-bottom: 1rem;
}

.contact-form {
  margin-bottom: 3rem;
}

.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  background-color: #f39c12;
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #e67e22;
}

.map {
  margin-bottom: 3rem;
}

.map h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 画廊样式 */
.masonry-gallery {
  padding: 100px 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .masonry-gallery {
    padding: 80px 10px 10px;
  }
}

/* 网页端样式 */
.masonry-grid {
  columns: 4;
  column-gap: 20px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
}

.masonry-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 移动端样式 */
@media (max-width: 768px) {
  .masonry-gallery {
    padding: 100px 20px 20px;
  }

  .masonry-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    columns: 1 !important;
  }

  .masonry-item {
    aspect-ratio: 1;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    width: 100% !important;
    border-radius: 8px;
  }

  .masonry-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

/* 横向图片优化 */
@media (max-width: 768px) {
  .masonry-item {
    margin-bottom: 15px;
  }

  .masonry-item img {
    max-height: 80vh;
    object-fit: contain;
  }

  /* 针对横向图片的特殊处理 */
  .masonry-item img[data-orientation="landscape"] {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    margin: 0 auto;
    display: block;
    object-fit: contain;
  }

  /* 移动端图片优化 */
  @media (max-width: 768px) {
    .masonry-item {
      margin-bottom: 10px;
    }
    
    .masonry-item img {
      max-height: 90vh;
      object-fit: cover;
      border-radius: 8px;
    }
    
    .masonry-grid {
      columns: 1;
      column-gap: 10px;
      padding: 0 10px;
    }
  }

  @media (max-width: 480px) {
    .masonry-item img[data-orientation="landscape"] {
      max-height: 70vh;
    }
    
    .masonry-item img {
      max-height: 85vh;
    }
  }
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-title {
    font-size: 2rem;
  }
}

/* 后台管理页面样式 */
.admin-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* 关于我页面新样式 */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  min-height: 100vh;
  padding: 6rem 2rem;
  background: linear-gradient(145deg, #1a1a1a 0%, #2c3e50 100%);
}

.hero-content {
  align-self: center;
  padding: 200 2rem;

}

.hero h1 {
  font-size: 4rem;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 3rem;
}

.hero-image img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.about-section {
  padding: 6rem 2rem;
  background: #f8f9fa;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 2rem;
}

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

.skill {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.skill h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.skill p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

.portfolio-section {
  padding: 6rem 2rem;
  background: #fff;
}

.portfolio-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 4rem;
  color: #1a1a1a;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 4/3;
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

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

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

.overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: rgba(0,0,0,0.8);
  color: #fff;
  transition: bottom 0.4s ease;
}

.portfolio-item:hover .overlay {
  bottom: 0;
}

.overlay h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.overlay p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 4rem 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-image img {
    height: 50vh;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.upload-section {
  margin-bottom: 3rem;
}

.upload-section h2,
.image-list h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.images-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.image-item {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1rem;
  position: relative;
}

.image-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
}

.image-info {
  margin-top: 1rem;
}

.image-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-btn:hover {
  background-color: #ff1a1a;
}

/* 移动端导航菜单样式 */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  align-items: center;
  margin-left: auto;
  z-index: 1001;
}

.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: flex-start;
    padding-top: 80px;
    padding-left: 1rem;
    padding-right: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateX(0);
    padding-top: 200px;

  }
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 通用样式 */
  html {
    font-size: 14px;
  }

  /* Hero区域 */
  .hero {
    padding: 4rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* 导航栏 */
  .nav-links {
    position: fixed;
    top: 60px;
    right: 0;
    height: calc(100vh - 60px);
    width: 250px;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateX(0);
    padding: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* 画廊 */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-item {
    aspect-ratio: 3/2;
  }

  /* 图片优化 */
  img {
    max-width: 100%;
    height: auto;
  }

  /* 触摸优化 */
  button, a {
    min-width: 44px;
    min-height: 44px;
  }

  /* 页脚 */
  footer {
    padding: 1rem;
    font-size: 0.9rem;
  }

  /* 其他页面 */
  .profile-image {
    width: 200px;
    height: 200px;
  }

  .about-intro h1 {
    font-size: 2rem;
  }

  .about-details h2 {
    font-size: 1.5rem;
  }

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

  .post-image {
    height: 150px;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 300px;
  }

  .images-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

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

  .cta-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.8rem;
  }

  .portfolio-item {
    aspect-ratio: 4/3;
  }

  footer {
    font-size: 0.8rem;
  }
}
