/* ===== 全局重置 ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== 导航栏 ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #1a1a2e;
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background: #1a1a2e;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: #1a1a2e;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid #1a1a2e;
  border-radius: 8px;
  transition: all 0.25s;
}

.btn-secondary:hover {
  background: #1a1a2e;
  color: #fff;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ===== Hero 区 ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background: linear-gradient(180deg, #fafafe 0%, #ffffff 100%);
}

.hero-content {
  max-width: 700px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #1a1a2e, #4a4a6a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== 通用 Section ===== */
.section {
  padding: 100px 0;
}

.bg-light {
  background: #f8f9fc;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: #777;
}

/* ===== 作品网格 ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.work-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.6;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-tags span {
  padding: 4px 12px;
  background: #f0f0f5;
  color: #555;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
}

/* ===== 关于 ===== */
.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  justify-content: center;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  color: #888;
  font-weight: 500;
}

/* ===== 联系 ===== */
.contact-content {
  max-width: 500px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #444;
}

.contact-icon {
  font-size: 1.3rem;
}

/* ===== 页脚 ===== */
footer {
  border-top: 1px solid #eee;
  padding: 32px 0;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  color: #999;
}

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

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .nav-links {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .about-stats {
    gap: 32px;
  }

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

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

  .hero-actions {
    flex-direction: column;
  }

  .btn-lg {
    text-align: center;
  }
}

/* ===== 手部美学评分专用样式 ===== */
.featured {
  border: 2px solid rgba(123, 31, 162, 0.15);
  position: relative;
}

.featured::before {
  content: "★ 主打";
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #7b1fa2, #4a148c);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  z-index: 2;
  letter-spacing: 1px;
}

.btn-demo {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #7b1fa2, #4a148c);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s;
}

.btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 31, 162, 0.3);
}

.dims-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.dim-item {
  background: #f8f9fc;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #444;
  text-align: center;
  transition: all 0.2s;
}

.dim-item:hover {
  background: #f3e5f5;
  color: #4a148c;
  transform: translateY(-1px);
}
