﻿/* ============================================================
   Design Upgrade — Premium Portfolio Overhaul
   Based on: Stitch Design Taste + Redesign Skill + Taste-Skill
   Applied via CSS variable override + new utility classes
   Does NOT modify original assets or works content
   ============================================================ */

/* ---- 1. Font Upgrade: Outfit (premium alternative to Inter) ---- */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  /* Refine accent from fluorescent green → premium teal */
  --accent-green: #5EEAD4;
  --accent-green-dim: rgba(94, 234, 212, 0.12);
  --accent-green-glow: rgba(94, 234, 212, 0.06);
  /* Subtle violet secondary accent (echoes existing particle colors) */
  --accent-violet: #A78BFA;
  --accent-violet-dim: rgba(167, 139, 250, 0.10);

  /* Font swap: Inter → Outfit for premium character */
  --font-display: "Outfit", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "Outfit", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  /* Enhanced surface colors */
  --bg-card-hover: rgba(17, 17, 22, 0.92);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 24px 80px rgba(94, 234, 212, 0.08);
}

/* ---- 2. Typography Refinements ---- */

/* Better heading presence */
h1, h2, h3 {
  text-wrap: balance;
}

/* Body text width constraint */
p {
  max-width: 65ch;
}

/* Section titles: more weight */
.section-title {
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ---- 3. Card Upgrades: glassmorphism + hover lift ---- */

.works-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease !important;
  will-change: transform;
}

.works-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  border-color: var(--accent-green-dim) !important;
  box-shadow:
    0 24px 80px rgba(94, 234, 212, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* Spotlight border effect on hover */
.works-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: -1;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent,
    var(--accent-green-dim),
    var(--accent-violet-dim),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.works-card:hover::after {
  opacity: 1;
  --border-angle: 360deg;
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Card image rounded corners + overflow */
.works-card-image {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

/* ---- 4. Card Tags: improved styling ---- */

.works-tag {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.works-tag:hover {
  transform: translateY(-1px);
}

/* ---- 5. Detail page enhancements ---- */

.detail-hero-img-wrap {
  transition: box-shadow 0.4s ease;
}

.detail-hero-img-wrap:hover {
  box-shadow: 0 0 40px rgba(94, 234, 212, 0.06);
}

.gallery-item {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease;
  overflow: hidden;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.gallery-item:hover img {
  transform: scale(1.06) !important;
}

/* ---- 6. Noise / Grain Texture Overlay ---- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ---- 7. Navbar subtle enhancement ---- */

.navbar.scrolled {
  background: rgba(10, 10, 13, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* ---- 8. Contact section subtle glow ---- */

.contact {
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(94, 234, 212, 0.04), transparent 70%);
  pointer-events: none;
}

/* ---- 9. Scrollbar refinement ---- */

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-green-dim);
  border-radius: 4px;
}

/* ---- 11. Hero content centering ---- */

.hero-content {
  text-align: center;
}

.hero-title,
.hero-name,
.hero-subtitle,
.hero-meta {
  max-width: none;
  width: 100%;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}
/* ---- 10. Floating back button polish ---- */

.floating-back {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid var(--border-subtle) !important;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.floating-back:hover {
  border-color: var(--accent-green-dim) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* ---- 11. Sidebar block polish ---- */

.sidebar-block {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-block:hover {
  border-color: var(--accent-green-dim) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ---- 12. Feedback Banner Styles ---- */

.feedback-section {
  position: relative;
  padding: 80px 60px;
  overflow: hidden;
  text-align: center;
}

.feedback-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.feedback-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(94, 234, 212, 0.04), transparent 60%),
    linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.03), transparent);
  pointer-events: none;
}

.feedback-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-green-dim), var(--accent-violet-dim), transparent);
  opacity: 0.6;
}

.feedback-quote {
  font-family: "Outfit", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  text-align: center;
}

.feedback-quote-icon {
  display: block;
  font-size: clamp(36px, 3vw, 48px);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  text-align: center;
}

.feedback-sub {
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 0.04em;
  opacity: 0.6;
  text-align: center;
}

.feedback-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 0;
  max-width: 200px;
}

.feedback-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-green-dim), transparent);
}

.feedback-divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-green);
  opacity: 0.5;
}

/* Reveal animation for feedback banner */
.feedback-section.feedback-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.feedback-section.feedback-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 13. Sticky Feedback Banner (detail page) ---- */

.feedback-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: linear-gradient(180deg, rgba(10, 10, 13, 0), rgba(10, 10, 13, 0.97) 30%);
  padding: 32px 60px 24px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feedback-sticky.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.feedback-sticky-text {
  font-family: "Outfit", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.feedback-sticky-link {
  color: var(--accent-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-green-dim);
  transition: text-decoration-color 0.3s ease;
}

.feedback-sticky-link:hover {
  text-decoration-color: var(--accent-green);
}

/* ---- 14. Responsive tweaks ---- */

@media (width <= 1024px) {
  .feedback-section {
    padding: 60px 24px;
  }
  .feedback-sticky {
    padding: 24px 20px 16px;
  }
  .feedback-sticky-text {
    font-size: 13px;
  }
}

/* ---- 15. Selection color refinement ---- */

::selection {
  background: var(--accent-green-dim);
  color: var(--accent-green);
}

/* ---- 16. Sidebar tags: better hover ---- */

.sidebar-tag {
  transition: all 0.25s ease;
}

.sidebar-tag:hover {
  border-color: var(--accent-green-dim) !important;
  color: var(--accent-green) !important;
  transform: translateY(-1px);
}

/* ---- 17. CTA hover refinement ---- */

.navbar-cta {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.navbar-cta:hover {
  background: var(--accent-green-dim) !important;
  box-shadow:
    0 0 24px var(--accent-green-glow),
    0 0 80px var(--accent-green-glow) !important;
  transform: translateY(-1px);
}

/* ---- 18. Contact items: clickable copy ---- */

.contact-item {
  position: relative;
  cursor: pointer;
  transition: color 0.25s ease;
  -webkit-user-select: all;
  user-select: all;
}

.contact-item:hover {
  color: var(--accent-green);
}

.contact-item::after {
  content: "复制";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 10px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--accent-green);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

.contact-item:hover::after {
  opacity: 0.6;
}

.copy-tooltip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  margin-left: 10px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #0a0a0d;
  background: var(--accent-green);
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  animation: copyPopIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.copy-tooltip-hide {
  opacity: 0;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes copyPopIn {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(-8px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

/* ---- 19. Contact layout: keep items inline on wide screens ---- */

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: center;
  align-items: center;
}

.contact-info .contact-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (width <= 640px) {
  .contact-info {
    flex-direction: column;
    gap: 10px;
  }
  .contact-item::after {
    display: none;
  }
}






