/* ========== 磐序 PARASHE — 科技风变量 ========== */
:root {
  --bg: #050508;
  --bg-soft: #0a0e14;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --text-dim: #5f6368;
  --primary: #00d4aa;
  --primary-dim: #00a884;
  --primary-glow: rgba(0, 212, 170, 0.35);
  --accent: #00b4d8;
  --accent-glow: rgba(0, 180, 216, 0.25);
  --purple: #7c3aed;
  --purple-glow: rgba(124, 58, 237, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: 'Noto Sans SC', -apple-system, sans-serif;
  --font-display: 'Orbitron', 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ========== 背景效果 ========== */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  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");
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 0%, transparent 60%);
}

/* ========== 玻璃拟态 ========== */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

/* ========== 导航 ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-radius: 0;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-icon {
  color: var(--primary);
  letter-spacing: 0.1em;
}

.brand-text {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--surface-hover);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: orb-float 22s ease-in-out infinite;
}

.hero-bg .orb-1 {
  width: 55vmin;
  height: 55vmin;
  background: var(--primary);
  top: -15%;
  left: -5%;
  animation-delay: 0s;
}

.hero-bg .orb-2 {
  width: 45vmin;
  height: 45vmin;
  background: var(--accent);
  bottom: -10%;
  right: -5%;
  animation-delay: -8s;
}

.hero-bg .orb-3 {
  width: 35vmin;
  height: 35vmin;
  background: var(--purple);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  animation-delay: -14s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, -4%) scale(1.05); }
  66% { transform: translate(-2%, 3%) scale(0.98); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero-label {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.title-cn {
  color: var(--text);
}

.title-divider {
  color: var(--primary);
  margin: 0 0.15em;
  opacity: 0.9;
}

.title-en {
  color: var(--primary);
  text-shadow: 0 0 40px var(--primary-glow);
}

.hero-tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  margin: 0 0 2rem;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dim);
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.7rem;
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  border-radius: 1px;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========== Sections ========== */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
}

.section-dark {
  background: var(--bg-soft);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-title .mono {
  color: var(--primary);
  margin-right: 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* ========== About ========== */
.about-card {
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.about-lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.about-desc {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-desc strong {
  color: var(--text);
}

/* ========== Slash ========== */
.slash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.slash-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.slash-card:hover {
  border-color: rgba(0, 212, 170, 0.2);
  box-shadow: 0 0 24px var(--primary-glow);
  transform: translateY(-2px);
}

.slash-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 170, 0.12);
  color: var(--primary);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.slash-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.slash-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.slash-card li {
  margin-bottom: 0.35rem;
}

.slash-card a {
  color: var(--primary);
  text-decoration: none;
}

.slash-card a:hover {
  text-decoration: underline;
}

/* ========== Services ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-item {
  padding: 2rem;
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.service-item:hover {
  border-color: rgba(0, 212, 170, 0.25);
  box-shadow: 0 0 28px var(--primary-glow);
  transform: translateY(-3px);
}

.service-num {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.service-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.service-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ========== Projects ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 0 24px var(--primary-glow);
  transform: translateY(-2px);
}

.project-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--surface);
}

.project-card .project-tag,
.project-card h3,
.project-card p {
  padding-left: 1rem;
  padding-right: 1rem;
}

.project-card .project-tag {
  padding-top: 1rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.project-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  padding-bottom: 1rem;
}

/* ========== Articles ========== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.article-card {
  display: block;
  padding: 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
  border-color: rgba(0, 180, 216, 0.25);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-2px);
}

.article-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ========== Design ========== */
.design-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.design-tag {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.design-tag:hover {
  color: var(--primary);
  border-color: rgba(0, 212, 170, 0.3);
  background: rgba(0, 212, 170, 0.06);
}

/* ========== Contact ========== */
.contact-section {
  padding-bottom: 4rem;
}

.contact-lead {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-link {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.25rem;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.contact-link:hover {
  color: var(--primary);
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

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

.footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}
