html {
  scroll-behavior: smooth;
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
}

/* 通用样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eaeaea;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: #111;
}

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

.nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

/* Hero 区域 */
.hero {
  height: 100vh;
  min-height: 640px;
  background: linear-gradient(135deg, #ffffff 0%, #dfecfe 100%);
  padding: 0 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-frame {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  height: 550px;
  display: flex;
  align-items: center;
}

.hero-tag {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.85rem;
  color: #888;
  letter-spacing: 0.03em;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: auto;
  margin: 0 auto;
}

.hero-avatar {
  flex-shrink: 0;
  width: 240px;
  line-height: 0;
}

.hero-avatar img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  flex: none;
  text-align: left;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  row-gap: 26px;
  align-items: flex-start;
}

.hero-hi-wrap {
  position: relative;
  display: block;
}

.hero-hi {
  font-size: 60px;
  color: #000000;
  margin: 0;
  font-weight: 500;
  line-height: 60px;
}

.hero-hi-line {
  position: absolute;
  bottom: -6px;
  left: 10px;
  width: 120px;
  height: auto;
  pointer-events: none;
}

.hero-content h1 {
  font-size: 3.75rem;
  font-weight: 700;
  margin-bottom: 0;
  color: #111;
  letter-spacing: -0.02em;
  position: relative;
  display: block;
  line-height: 60px;
}

.highlight {
  color: #2563eb;
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: -4px;
  right: -4px;
  height: 8px;
  background: rgba(37, 99, 235, 0.18);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 22px;
  color: #888;
  margin-bottom: 0;
  line-height: 1.7;
}

.hero-cta {
  font-size: 24px;
  color: #888888;
  text-decoration: none;
  padding: 0;
  border-radius: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-cta:hover {
  background: #cfe1fb;
  color: #2563eb;
}

.hero-qr {
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  line-height: 0;
}

.hero-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: flex;
  flex-direction: column;
  line-height: 10px;
}

.hero-dots {
  position: absolute;
  width: 9px;
  left: 870px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #bbb;
}

.hero-dots span:nth-child(2) {
  background: #bbb;
}

.hero-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: #999;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.hero-bottom span:first-child {
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
}

.hero-bottom span:last-child {
  font-size: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #111;
  color: #fff;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #111;
  border: 1px solid #111;
}

.btn-secondary:hover {
  background: #111;
  color: #fff;
}

/* 作品区域 */
.projects {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 3rem;
  color: #111;
}

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

.project-card {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

.project-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 12px;
}

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

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem 0 0;
}

.project-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111;
}

.project-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #888;
  line-height: 1.5;
}

.meta-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #888;
  margin-top: 0.15rem;
}

.meta-text {
  color: #888;
}

/* 关于我 */
.about {
  padding: 6rem 2rem;
  background: #fff;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

.experience-row {
  display: flex;
  align-items: flex-start;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eaeaea;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.exp-col {
  padding: 1rem 1.5rem;
}

.exp-col-time {
  flex: 0 0 200px;
}

.exp-col-company {
  flex: 0 0 280px;
}

.exp-col-desc {
  flex: 1;
}

.exp-time {
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
}

.exp-company {
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  line-height: 1.6;
}

.exp-desc {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.7;
}

/* 联系方式 */
.contact {
  padding: 6rem 2rem;
  background: #fafafa;
  text-align: center;
}

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

.contact-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
}

.contact-wechat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.wechat-label {
  font-size: 1.1rem;
  color: #555;
}

.wechat-qr {
  width: 120px;
  height: auto;
  display: block;
}

/* 页脚 */
.footer {
  padding: 2rem;
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
}

/* ========== 二级页样式（极简版） ========== */

.project-back-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eaeaea;
  z-index: 1000;
}

.back-btn {
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.back-btn:hover {
  color: #2563eb;
}

.project-image-wrap {
  padding: 80px 0 0;
  margin: 0;
  background: #fafafa;
  min-height: 100vh;
}

.project-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 6rem 1.5rem 4rem;
  }

  .hero-tag {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 1.5rem;
  }

  .hero-frame {
    height: auto;
  }

  .hero-inner {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .hero-avatar {
    width: 180px;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-hi {
    font-size: 1.35rem;
  }

  .hero-qr,
  .hero-dots {
    display: none;
  }

  .hero-bottom {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 2rem;
    text-align: center;
    align-items: center;
  }

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