/* ============================================
   V2 - Gray Premium Theme
   ============================================ */
:root {
  --color-bg: #0c0c0c;
  --color-bg-alt: #141414;
  --color-bg-card: #1a1a1a;
  --color-surface: #222222;

  --color-text: #f5f5f5;
  --color-text-secondary: #888888;
  --color-text-muted: #555555;

  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-light: rgba(255, 255, 255, 0.1);

  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  --container-max: 1100px;
  --section-padding: 120px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

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

.btn-primary:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-light);
}

.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.btn-white {
  background: #fff;
  color: #000;
  font-weight: 600;
}

.btn-white:hover {
  background: #e0e0e0;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 13px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 16px 0;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  transition: var(--transition);
}

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

.nav-link-active {
  color: var(--color-text) !important;
}

.nav-link-cta {
  color: var(--color-text) !important;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 8px 20px;
}

.nav-link-cta:hover {
  border-color: var(--color-text-muted);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: var(--transition);
}

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-social {
  display: flex;
  gap: 8px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
  transform: translateY(-2px);
}

.social-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Avatar */
.hero-avatar {
  display: flex;
  justify-content: center;
}

.avatar-img {
  max-width: 380px;
  filter: grayscale(0.2) drop-shadow(0 20px 60px rgba(255, 255, 255, 0.05));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

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

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title-left {
  text-align: left;
}

/* ============================================
   Services
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-2px);
}

.service-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-border-light);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.service-list {
  margin-bottom: 28px;
}

.service-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition);
}

.service-link:hover {
  letter-spacing: 0.02em;
}

.service-link-icon {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.service-link:hover .service-link-icon {
  transform: translateX(4px);
}

.service-link-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   Projects - Coming Soon
   ============================================ */
.projects-coming-soon {
  text-align: center;
  padding: 80px 0;
}

.coming-soon-icon {
  width: 48px;
  height: 48px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  opacity: 0.4;
}

.coming-soon-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.coming-soon-sub {
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ============================================
   Projects - Carousel
   ============================================ */
.projects-track-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.projects-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll-projects 30s linear infinite;
}

.projects-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-projects {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); }
}

.project-card {
  flex: 0 0 340px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-2px);
}

.project-cover {
  position: relative;
  aspect-ratio: 16/10;
}

.project-cover-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
  opacity: 0.3;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-info {
  padding: 20px;
}

.project-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.project-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.project-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   About
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.about-left {
  display: flex;
  justify-content: center;
}

.about-avatar {
  max-width: 320px;
  filter: grayscale(0.15) drop-shadow(0 20px 60px rgba(255, 255, 255, 0.04));
  animation: float 6s ease-in-out infinite;
}

.about-quote {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin: 16px 0 24px;
  padding-left: 16px;
  border-left: 2px solid var(--color-text-muted);
}

.about-text {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  line-height: 1.8;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.about-tag {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: var(--transition);
}

.about-tag:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

/* ============================================
   Contact
   ============================================ */
.contact-content {
  text-align: center;
}

.contact-sub {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-top: 12px;
  margin-bottom: 40px;
}

.contact-wechat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.wechat-id {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.wechat-label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.wechat-value {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wechat-qr-img {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
}

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

.footer-content p {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.footer-icp a {
  color: var(--color-text-muted);
}

.footer-icp a:hover {
  color: var(--color-text-secondary);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
  transform: translateY(-2px);
}

.back-to-top i {
  width: 18px;
  height: 18px;
}

/* ============================================
   Animations
   ============================================ */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-up"] {
  transform: translateY(32px);
}

[data-animate].animated {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  :root { --section-padding: 80px; }
  .hero-title { font-size: 56px; }
  .hero-content { gap: 48px; }
  .avatar-img { max-width: 320px; }
  .about-content { gap: 48px; }
  .section-title { font-size: 30px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 64px; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--color-border);
  }

  .nav-links.active { right: 0; }
  .nav-link { font-size: 16px; padding: 10px 20px; }
  .nav-toggle { display: flex; }

  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-title { font-size: 44px; }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-social { justify-content: center; }
  .avatar-img { max-width: 240px; order: -1; }

  .section-header { margin-bottom: 36px; }
  .section-title { font-size: 26px; }

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

  .project-card {
    flex: 0 0 280px;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-avatar { max-width: 220px; }
  .section-title-left { text-align: center; }
  .about-quote { text-align: left; border-left: 2px solid var(--color-text-muted); }
  .about-tags { justify-content: center; }

  .wechat-id { flex-direction: column; gap: 8px; }

  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .btn { padding: 12px 24px; font-size: 13px; }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
