.apple-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 24px;
}

.apple-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.apple-button {
  background: #007AFF;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.apple-button:hover {
  background: #0066CC;
  transform: translateY(-1px);
}

.apple-button.secondary {
  background: rgba(0, 122, 255, 0.1);
  color: #007AFF;
}

.apple-button.secondary:hover {
  background: rgba(0, 122, 255, 0.2);
}

.apple-title {
  font-size: 28px;
  font-weight: 600;
  color: #1D1D1F;
  margin-bottom: 16px;
}

.apple-text {
  font-size: 17px;
  line-height: 1.5;
  color: #86868B;
}

.apple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 24px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.service-icon img {
    width: 32px;
    height: 32px;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: rgba(0, 122, 255, 0.2);
}

.service-card .apple-text {
    line-height: 1.8;
    margin-bottom: 24px;
}

.service-card .apple-button {
    margin-top: auto;
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .apple-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .service-card {
        padding: 24px 16px;
    }
}

/* 添加容器底部边距 */
.container {
  margin-bottom: 100px; /* 确保内容不会被footer遮挡 */
}

.contact-section {
  margin: 60px 0 80px 0; /* 调整联系部分的下边距 */
}

/* 开发记录卡片样式 */
.cases-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.case-tag-wrapper {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.case-tag {
  background: rgba(0, 122, 255, 0.9);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.case-image {
  height: 360px;
  overflow: hidden;
  position: relative;
}

.case-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  z-index: 1;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.case-card:hover .case-image img {
  transform: scale(1.05);
}

.case-content {
  padding: 24px;
  background: #fff;
  position: relative;
  z-index: 2;
}

.case-date {
  font-size: 14px;
  color: #86868B;
  margin-bottom: 8px;
  font-weight: 500;
}

.case-card .apple-title {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.case-card .apple-text {
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;  
  overflow: hidden;
  line-height: 1.6;
  color: #666;
}

.case-card .apple-button {
  width: 100%;
  margin: 0;
  border-radius: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px;
}

.case-card .apple-button.secondary {
  background: rgba(0, 122, 255, 0.08);
  color: #007AFF;
  font-weight: 600;
}

.case-card .apple-button.secondary:hover {
  background: rgba(0, 122, 255, 0.15);
}

/* 卡片悬停效果 */
.case-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .case-image {
    height: 300px;
  }
}

/* 移除旧的卡片样式冲突部分 */
.case-meta {
  display: none;
}

/* 通知样式 */
.apple-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(50, 50, 50, 0.9);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  backdrop-filter: blur(10px);
  font-size: 15px;
  min-width: 200px;
  max-width: 400px;
  animation: notification-slide-in 0.3s ease forwards;
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-message {
  margin-right: 12px;
  font-weight: 500;
}

.notification-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  margin: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

@keyframes notification-slide-in {
  from {
    transform: translate(-50%, -20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes notification-slide-out {
  from {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -20px);
    opacity: 0;
  }
}
