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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  background: linear-gradient(180deg, #FFB347 0%, #FFD699 50%, #FFF5E6 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 480px;
  overflow-x: hidden;
  margin: 0 auto;
  padding: 20px 15px 40px;
  position: relative;
}

/* 背景云朵装饰 */
.container::before {
  content: '';
  position: absolute;
  top: 120px;
  left: -30px;
  width: 120px;
  height: 80px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  filter: blur(10px);
}

.container::after {
  content: '';
  position: absolute;
  top: 200px;
  right: -20px;
  width: 100px;
  height: 70px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  filter: blur(8px);
}

/* 标题 */
.header {
  text-align: center;
  margin-bottom: 30px;
  padding-top: 0px;
}

.title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.title-green {
  display: block;
  color: #4CAF50;
  font-size: 48px;
  text-shadow: 3px 3px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
  -webkit-text-stroke: 2px #388E3C;
  letter-spacing: 4px;
}

.title-white {
  display: block;
  color: #fff;
  font-size: 44px;
  text-shadow: 3px 3px 0 #E65100, -1px -1px 0 #E65100, 1px -1px 0 #E65100, -1px 1px 0 #E65100, 0 4px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 6px;
}

/* 区块通用 */
.section {
  margin-bottom: 35px;
  position: relative;
}

.section-tab {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: -10px;
}

.section-tab > span {
  display: inline-block;
  background: linear-gradient(180deg, #F57C00 0%, #E65100 100%);
  color: #000;
  font-size: 22px;
  font-weight: bold;
  padding: 10px 50px;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tab-orange {
  display: inline-block;
  background: linear-gradient(180deg, #F57C00 0%, #E65100 100%);
  padding: 10px 50px;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tab-gradient {
  background: linear-gradient(90deg, #6A1B9A, #E91E63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: 24px;
  font-weight: 900;
  display: inline;
  padding: 0;
  box-shadow: none;
}

/* 关于我们 */
.about-content {
  background: #fff;
  border-radius: 15px;
  padding: 30px 20px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.about-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  text-align: center;
  font-weight: 500;
}

/* 服务案例 */
.cases-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 25px 10px 10px;
}

.cases-container {
  flex: 1;
  overflow: hidden;
  padding: 10px 5px;
  min-width: 0;
}

.cases-grid {
  display: flex;
  transition: transform 0.3s ease;
  gap: 15px;
  min-width: 0;
  overflow: hidden;
}

.case-page {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
}

.case-item {
  min-width: 0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
  aspect-ratio: 1;
}

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

.case-avatar-frame {
  width: 100%;
  height: 100%;
  position: relative;
}

/* 头像框 - 使用真实图片 */
.avatar-frame {
  width: 100%;
  height: 100%;
  position: relative;
  background-image: url('../images/avatar-frame.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.avatar-inner {
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -1%;
  position: relative;
  z-index: 0;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(circle, black 100%, transparent 100%);
}

.avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  clip-path: circle(50% at 50% 50%);
  -webkit-clip-path: circle(50% at 50% 50%);
}

.avatar-placeholder {
  font-size: 24px;
  color: #999;
}

/* 滚动按钮 */
.scroll-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FF9800 0%, #F57C00 100%);
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  z-index: 3;
  transition: transform 0.2s;
}

.scroll-btn:hover {
  transform: scale(1.1);
}

.scroll-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.scroll-left {
  margin-right: 5px;
}

.scroll-right {
  margin-left: 5px;
}

/* 指示点 */
.cases-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.case-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s;
}

.case-dot.active {
  background: #FF9800;
  width: 20px;
  border-radius: 4px;
}

/* 下载按钮 */
.download-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 20px;
}

.download-btn {
  display: block;
  text-decoration: none;
  background: linear-gradient(180deg, #F57C00 0%, #E65100 100%);
  border-radius: 30px;
  padding: 14px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 81, 0, 0.5);
}

.download-btn:active {
  transform: translateY(0);
}

.btn-gradient {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(90deg, #6A1B9A, #E91E63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  letter-spacing: 2px;
}

/* 响应式 */
@media (max-width: 380px) {
  .title-green {
    font-size: 40px;
  }
  .title-white {
    font-size: 36px;
  }
  .about-content p {
    font-size: 16px;
  }
  .btn-gradient {
    font-size: 18px;
  }
  .case-page {
    gap: 8px;
  }
}

/* ===== 动态效果 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.header, .section, .download-btn {
  animation: fadeInUp 0.8s ease-out both;
}
.download-section .download-btn:nth-child(2) { animation-delay: 0.15s; }
.download-section .download-btn:nth-child(3) { animation-delay: 0.3s; }
.download-section .download-btn:nth-child(4) { animation-delay: 0.45s; }

.case-item {
  animation: fadeInUp 0.6s ease-out both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case-item:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  z-index: 5;
}
.case-item:active {
  transform: scale(0.95);
}

.download-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230,81,0,0.4);
}
.download-btn:active {
  transform: translateY(0) scale(0.98);
}

.tab-gradient {
  transition: transform 0.2s ease;
}
.tab-gradient:hover {
  transform: scale(1.05);
}

.title-green {
  animation: float 3s ease-in-out infinite;
}

.scroll-btn {
  transition: transform 0.2s ease, background 0.2s ease;
}
.scroll-btn:hover {
  transform: scale(1.15);
  background: rgba(255,255,255,0.9);
}

.about-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

.scroll-btn { display: none !important; }
