/* ============================================ */
/*  ARTIST / PORTFOLIO — 先锋解构风格布局文件   */
/* ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bkg);
  color: var(--color-text);
  font-family: 'Oxyrex', sans-serif;
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* === Canvas BG === */
#ptl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* === Nav === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transform: translateY(-100%);
  animation: navSlideIn 0.8s 0.2s ease-out forwards;
}

.nav-logo {
  font-family: 'Barno', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--color-text);
  position: relative;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 30%;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.4s ease;
}

.nav-logo:hover::after {
  width: 100%;
  left: 0;
}

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

.nav-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  position: relative;
  transition: color 0.3s ease;
}

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

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

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

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem 2rem;
  overflow: hidden;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 75rem;
  opacity: 0;
  animation: heroFadeIn 1.2s 0.8s ease-out forwards;
}

.hero-badge {
  display: inline-flex;
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  border: 1px solid rgba(196,81,27,0.3);
  background: rgba(196,81,27,0.08);
  margin-bottom: 2rem;
}

.hero-title {
  font-family: 'Barno', sans-serif;
  font-size: clamp(4.5rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 2;
}

.hero-title .glitch {
  display: inline-block;
  color: var(--color-accent);
  position: relative;
  background: var(--graden-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-2 {
  color: var(--color-muted);
  margin-top: -0.2em;
}

.hero-desc {
  font-size: 1.1rem;
  max-width: 50rem;
  line-height: 1.8;
  color: var(--color-muted);
  margin: 2rem 0;
  text-indent: 2rem;
  border-left: 2px solid var(--color-accent);
  padding-left: 1rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  padding: 0.8rem 2.5rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.btn:hover::before {
  left: 100%;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-text);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--color-accent);
}

.hero-marker {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  z-index: 3;
  text-align: right;
  opacity: 0;
  animation: heroFadeIn 1.2s 1.2s ease-out forwards;
}

.hero-marker svg {
  width: 150px;
  height: 80px;
}

.hero-marker span {
  display: block;
  font-family: 'Barno', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--color-muted);
  margin-top: -0.5rem;
}

/* === General Sections === */
.section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: 'Barno', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--color-accent), transparent);
}

/* ============================================ */
/*  GALLERY — 非对称网格                        */
/* ============================================ */
.gallery {
  background: var(--color-surface);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 0.75rem;
}

.grid-item {
  position: relative;
  border-radius: 4px;
  background: var(--color-bkg);
  min-height: 250px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  animation: gridFadeIn 0.8s ease-out forwards;
  text-decoration: none;
  display: block;
  color: inherit;
}

.grid-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.grid-item-1 { animation-delay: 0s }
.grid-item-2 { animation-delay: 0.1s }
.grid-item-3 { animation-delay: 0.2s }
.grid-item-4 { animation-delay: 0.3s }
.grid-item-5 { animation-delay: 0.4s }
.grid-item-6 { animation-delay: 0.5s }

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(196,81,27,0.3), rgba(196,81,27,0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

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

.grid-thumb {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: saturate(0.85) contrast(1.05);
}

.grid-item:hover .grid-thumb {
  transform: scale(1.08);
  filter: saturate(1.1) contrast(1.1);
}

/* 图片加载前显示渐变色占位（背景色作fallback） */
.grid-item-1 .grid-thumb { background-color: #1a1a24; }
.grid-item-2 .grid-thumb { background-color: #2a202a; }
.grid-item-3 .grid-thumb { background-color: #1c1c28; }
.grid-item-4 .grid-thumb { background-color: #222b36; }
.grid-item-5 .grid-thumb { background-color: #292d38; }
.grid-item-6 .grid-thumb { background-color: #23232e; }

.grid-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.grid-label span {
  font-family: 'Barno', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
}

/* 非对称布局 */
.grid-item-1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.grid-item-2 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.grid-item-3 {
  grid-column: 4 / 5;
  grid-row: 1 / 3;
}

.grid-item-4 {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.grid-item-5 {
  grid-column: 2 / 4;
  grid-row: 3 / 4;
}

.grid-item-6 {
  grid-column: 4 / 5;
  grid-row: 3 / 4;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .grid-item-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .grid-item-2 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .grid-item-3 { grid-column: 2 / 3; grid-row: 3 / 4; }
  .grid-item-4 { grid-column: 1 / 2; grid-row: 4 / 5; }
  .grid-item-5 { grid-column: 2 / 3; grid-row: 4 / 5; }
  .grid-item-6 { grid-column: 1 / 3; grid-row: 5 / 6; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .grid-item-1,
  .grid-item-2,
  .grid-item-3,
  .grid-item-4,
  .grid-item-5,
  .grid-item-6 {
    grid-column: 1 / 2;
  }
  .grid-item-1 { grid-row: 1 / 3; }
  .grid-item-2 { grid-row: 3 / 4; }
  .grid-item-3 { grid-row: 4 / 5; }
  .grid-item-4 { grid-row: 5 / 6; }
  .grid-item-5 { grid-row: 6 / 7; }
  .grid-item-6 { grid-row: 7 / 8; }
}

/* ============================================ */
/*  ABOUT                                        */
/* ============================================ */
.about-content {
  display: flex;
  gap: 4rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 2;
  min-width: 280px;
}

.about-number {
  font-family: 'Barno', sans-serif;
  font-size: 6rem;
  font-weight: 700;
  line-height: 0.8;
  color: var(--color-accent);
  opacity: 0.2;
  display: block;
  margin-bottom: -1rem;
}

.about-text h2 {
  font-family: 'Barno', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--color-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 0.95rem;
  text-indent: 1.5rem;
}

.about-stats {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-accent);
  transition: height 0.5s ease;
}

.stat:hover::before {
  height: 100%;
}

.stat-num {
  display: block;
  font-family: 'Barno', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.stat span:last-child {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ============================================ */
/*  SOCIAL                                       */
/* ============================================ */
.social {
  background: var(--color-bkg);
}

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

.social-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(196,81,27,0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-card:hover::before {
  opacity: 1;
}

.social-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.social-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.social-card span {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
}

.social-card span:first-of-type {
  font-family: 'Barno', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.social-handle {
  color: var(--color-muted);
  font-size: 0.75rem !important;
  font-family: 'Oxyrex', sans-serif !important;
  letter-spacing: 0.05em;
}

/* === Footer === */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  z-index: 1;
  position: relative;
}

.footer p {
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.1em;
}

/* ============================================ */
/*  ANIMATIONS                                   */
/* ============================================ */
@keyframes navSlideIn {
  to { transform: translateY(0); }
}

@keyframes heroFadeIn {
  to { opacity: 1; }
}

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