@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #1c1917;
  --color-secondary: #78716c;
  --color-surface: #fafaf9;
  --color-text: #0c0a09;
  --color-text-muted: #57534e;
  --color-accent: #6b7280;
  --color-border: rgba(255, 255, 255, 0.9);
  --color-card-bg: rgba(255, 255, 255, 0.65);
  --color-online: #10b981;
  --color-maintenance: #9ca3af;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--color-surface);
  color: var(--color-text-muted);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.125rem;
}

.navbar-brand img {
  width: 32px;
  height: 32px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 150ms ease;
}

.navbar-links a:hover {
  color: var(--color-text);
}

.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, #fafaf9 0%, #f0efed 100%);
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-secondary);
  background: rgba(120, 113, 108, 0.08);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.products-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  position: relative;
  background: var(--color-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(28, 25, 23, 0.06);
  transition: transform 250ms ease-out, box-shadow 250ms ease-out, border-color 250ms ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(28, 25, 23, 0.1);
  border-color: rgba(107, 114, 128, 0.25);
}

.product-card-link-area {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.product-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(28, 25, 23, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.product-card-icon img {
  width: 28px;
  height: 28px;
}

.product-card-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.product-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.product-card-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--color-online);
}

.status-dot.maintenance {
  background: var(--color-maintenance);
}

.status-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.status-sep {
  color: #d6d3d1;
  margin: 0 -0.125rem;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  background: transparent;
  border: 1px solid rgba(28, 25, 23, 0.12);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease;
  font-family: inherit;
  text-align: left;
}

.dropdown-trigger:hover {
  background: rgba(28, 25, 23, 0.04);
  border-color: rgba(28, 25, 23, 0.2);
}

.dropdown-chevron {
  width: 14px;
  height: 14px;
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.dropdown:hover .dropdown-chevron,
.dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  min-width: 100%;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 10px;
  padding: 0.375rem;
  box-shadow: 0 8px 32px rgba(28, 25, 23, 0.1);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
  z-index: 10;
}

.dropdown-menu::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.8125rem;
  transition: background-color 150ms ease;
}

.dropdown-item:hover {
  background: rgba(28, 25, 23, 0.04);
}

.dropdown-item.offline {
  color: #9ca3af;
  cursor: default;
  pointer-events: none;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(28, 25, 23, 0.12);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.product-card-link:hover {
  background: rgba(28, 25, 23, 0.04);
  border-color: rgba(28, 25, 23, 0.2);
}

.product-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.product-card-link:hover svg {
  transform: translateX(2px);
}

.footer {
  border-top: 1px solid rgba(28, 25, 23, 0.06);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-text {
  font-size: 0.8125rem;
  color: var(--color-secondary);
}

.footer-text + .footer-text {
  margin-top: 0.25rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.resume-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem 5rem;
}

.resume-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-secondary);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 150ms ease;
}

.resume-back:hover {
  color: var(--color-text);
}

.resume-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.resume-hero {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--color-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(28, 25, 23, 0.06);
}

.resume-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(28, 25, 23, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.resume-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.resume-title {
  font-size: 1rem;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.resume-bio {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.resume-contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem 1.25rem;
}

.resume-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 150ms ease;
}

.resume-contact-link:hover {
  color: var(--color-text);
}

.resume-contact-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.resume-about-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.resume-section {
  background: var(--color-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(28, 25, 23, 0.06);
}

.resume-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
}

.resume-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.resume-timeline-item {
  display: flex;
  gap: 0.875rem;
}

.resume-timeline-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.4rem;
}

.resume-timeline-body {
  flex: 1;
  min-width: 0;
}

.resume-timeline-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.resume-timeline-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.resume-period {
  font-size: 0.8125rem;
  color: var(--color-secondary);
  white-space: nowrap;
}

.resume-position {
  font-size: 0.875rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.resume-bullets {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.resume-bullets li {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.resume-projects {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resume-project-card {
  padding: 1rem;
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: 12px;
  background: rgba(28, 25, 23, 0.02);
}

.resume-project-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.resume-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.625rem;
}

.resume-project-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.resume-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-secondary);
  background: rgba(28, 25, 23, 0.05);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.resume-skills {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.resume-skill-group h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.625rem;
}

.resume-skill-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.resume-skill-name {
  font-size: 0.8125rem;
  color: var(--color-text);
  width: 200px;
  flex-shrink: 0;
}

.resume-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(28, 25, 23, 0.06);
  border-radius: 9999px;
  overflow: hidden;
}

.resume-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 9999px;
  transition: width 600ms ease-out;
}

@media (max-width: 640px) {
  .resume-page {
    padding: 1.5rem 0.75rem 4rem;
  }

  .resume-hero {
    padding: 2rem 1rem;
  }

  .resume-contact-row {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .resume-timeline-header {
    flex-direction: column;
    gap: 0.125rem;
  }

  .resume-skill-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .resume-skill-name {
    width: 100%;
  }

  .resume-section {
    padding: 1.25rem 1rem;
  }
}
