/* ======================== RESET & BASE ======================== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:80px; }
body {
  font-family: 'Inter','Noto Sans',sans-serif;
  background:#0a0a0a;
  color:#fff;
  line-height:1.6;
  overflow-x:hidden;
}
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }
.container { max-width:1400px; margin:0 auto; padding:0 60px; }

/* ======================== NAVIGATION ======================== */
nav {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding:16px 120px;
  display:flex; align-items:center; justify-content:space-between;
  background:rgba(10,10,10,0.85); backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(255,255,255,0.06);
  transition:transform 0.3s;
}
.nav-hidden { transform:translateY(-100%); }
.nav-logo {
  font-family:'Schibsted Grotesk',sans-serif;
  font-weight:600; font-size:24px; letter-spacing:-0.06em;
}
.nav-links {
  display:flex; align-items:center; gap:40px;
  font-family:'Schibsted Grotesk',sans-serif;
  font-weight:500; font-size:16px; letter-spacing:-0.0125em;
}
.nav-links a { color:#a0a0a0; transition:color 0.2s; }
.nav-links a:hover { color:#fff; }
.nav-cta {
  display:flex; gap:12px;
  font-family:'Schibsted Grotesk',sans-serif; font-weight:500; font-size:14px;
}
.btn-outline {
  padding:10px 24px; border:1px solid rgba(255,255,255,0.3);
  border-radius:8px; background:transparent; color:#fff; cursor:pointer;
  transition:all 0.2s;
}
.btn-outline:hover { border-color:#fff; }
.btn-filled {
  padding:10px 24px; border:none; border-radius:8px;
  background:#fff; color:#000; cursor:pointer; font-weight:600;
  transition:all 0.2s;
}
.btn-filled:hover { background:#e0e0e0; }

/* Mobile nav */
.menu-btn { display:none; background:none; border:none; color:#fff; font-size:24px; cursor:pointer; }
/* Mobile nav open state */
@media (max-width:768px) {
  .nav-links, .nav-cta {
    display:none; flex-direction:column; position:absolute;
    top:100%; left:0; right:0; background:#0a0a0a;
    padding:24px; gap:20px;
    border-bottom:1px solid rgba(255,255,255,0.08);
    opacity:0; transform:translateY(-10px);
    transition:opacity 0.25s, transform 0.25s;
  }
  .nav-active .nav-links { display:flex; opacity:1; transform:translateY(0); }
  .nav-active .nav-cta {
    display:flex; opacity:1; transform:translateY(0);
    top:calc(100% + 260px); padding-top:0;
  }
}

/* ======================== HERO ======================== */
.hero {
  position:relative; width:100%; height:100vh; min-height:700px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; margin-top:0;
}
.hero-bg-img {
  position:absolute; inset:0; z-index:0;
  background:url('网站背景1.jpg') center/cover no-repeat;
  background-position:center center;
  filter:brightness(0.45) contrast(1.1);
}
.hero-overlay {
  position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(90,225,76,0.18) 0%, rgba(90,225,76,0.06) 35%, transparent 70%),
    linear-gradient(to bottom, rgba(10,10,10,0) 0%, rgba(10,10,10,0.4) 60%, #0a0a0a 100%),
    linear-gradient(to top, rgba(10,10,10,0.3) 0%, transparent 40%);
}
.title-highlight {
  color:#5ae14c;
  font-style:italic;
  text-shadow:0 0 40px rgba(90,225,76,0.3), 0 0 80px rgba(90,225,76,0.15);
}
.hero-content {
  position:relative; z-index:2; text-align:center;
  margin-top:-50px; padding:0 24px;
}
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:#0e1311; color:#fff;
  padding:6px 14px 6px 8px; border-radius:999px;
  font-family:'Inter',sans-serif; font-size:14px;
  margin-bottom:34px;
  border:1px solid rgba(255,255,255,0.1);
}
.hero-badge .star {
  width:20px; height:20px; background:#5ae14c; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:12px;
}
.hero-badge .tag {
  background:rgba(255,255,255,0.08); padding:4px 12px; border-radius:999px;
  color:#a0a0a0; font-size:13px;
}
.hero-title {
  font-family:'Fustat',sans-serif; font-weight:700;
  font-size:clamp(48px,7vw,80px); letter-spacing:-0.06em;
  line-height:1.05; color:#fff; margin-bottom:34px;
}
.hero-subtitle {
  font-family:'Fustat',sans-serif; font-weight:500;
  font-size:clamp(16px,2vw,20px); letter-spacing:-0.02em;
  color:#a0a0a0; max-width:600px; margin:0 auto 44px;
}
/* Hero CTA buttons */
.hero-cta {
  display:flex; gap:16px; justify-content:center; flex-wrap:wrap;
  margin-top:0;
}
.hero-cta .btn-primary {
  padding:16px 40px; border-radius:12px; font-size:18px; font-weight:600;
  font-family:'Schibsted Grotesk',sans-serif;
  background:#5ae14c; color:#000; border:none; cursor:pointer;
  transition:all 0.3s; letter-spacing:-0.02em;
  box-shadow:0 8px 32px rgba(90,225,76,0.25);
}
.hero-cta .btn-primary:hover {
  transform:translateY(-2px);
  box-shadow:0 12px 40px rgba(90,225,76,0.4);
}
.hero-cta .btn-secondary {
  padding:16px 40px; border-radius:12px; font-size:18px; font-weight:500;
  font-family:'Schibsted Grotesk',sans-serif;
  background:transparent; color:#fff; cursor:pointer;
  border:1.5px solid rgba(255,255,255,0.25);
  transition:all 0.3s; letter-spacing:-0.02em;
}
.hero-cta .btn-secondary:hover {
  border-color:#fff; background:rgba(255,255,255,0.05);
}
.hero-stats {
  display:flex; gap:32px; justify-content:center; margin-top:40px;
  font-family:'Schibsted Grotesk',sans-serif; opacity:0.5;
}
.hero-stats .stat { text-align:center; }
.hero-stats .stat-num { font-size:24px; font-weight:600; color:#5ae14c; }
.hero-stats .stat-label { font-size:12px; color:#888; margin-top:4px; }
.hero-scroll {
  position:absolute; bottom:40px; left:50%; transform:translateX(-50%); z-index:2;
  animation:bounce 2s infinite; cursor:pointer;
}
.hero-scroll svg { width:24px; height:24px; stroke:#fff; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(12px)} }

/* ======================== SECTIONS ======================== */
.section { padding:120px 0; }
.section-label {
  font-family:'Schibsted Grotesk',sans-serif; font-weight:500;
  font-size:13px; letter-spacing:0.1em; color:#5ae14c; text-transform:uppercase;
  margin-bottom:16px;
}
.section-title {
  font-family:'Fustat',sans-serif; font-weight:700;
  font-size:clamp(36px,5vw,56px); letter-spacing:-0.04em;
  margin-bottom:24px; line-height:1.15;
}
.section-desc {
  color:#a0a0a0; font-size:18px; max-width:600px; margin-bottom:60px;
}
.divider { width:60px; height:3px; background:#5ae14c; margin-bottom:40px; }
.filter-tabs {
  display:flex; gap:10px; flex-wrap:wrap; margin-bottom:40px;
  overflow-x:auto; padding-bottom:8px;
  -webkit-overflow-scrolling:touch;
}
.filter-tabs::-webkit-scrollbar { display:none; }
.filter-tab {
  padding:8px 20px; border-radius:999px; font-size:14px; font-weight:500;
  font-family:'Schibsted Grotesk',sans-serif;
  background:transparent; border:1px solid rgba(255,255,255,0.15);
  color:#a0a0a0; cursor:pointer; transition:all 0.2s;
}
.filter-tab:hover { border-color:#fff; color:#fff; }
.filter-tab.active { background:#fff; color:#000; border-color:#fff; }
.product-card.hidden { display:none; }

/* ======================== ABOUT ======================== */
.about-grid {
  display:grid; grid-template-columns:300px 1fr;
  gap:60px; align-items:start;
}
.about-photo {
  width:100%; aspect-ratio:3/4; background:#1a1a1a; border-radius:16px;
  overflow:hidden; display:flex; align-items:center; justify-content:center;
  color:#555; font-size:14px;
}
.about-photo img { width:100%; height:100%; object-fit:cover; }
.about-info h3 {
  font-family:'Fustat',sans-serif; font-weight:700; font-size:32px;
  margin-bottom:8px;
}
.about-info .role {
  color:#5ae14c; font-size:16px; margin-bottom:24px;
}
.about-info .bio { color:#a0a0a0; margin-bottom:28px; max-width:540px; line-height:1.7; }
.about-contact-info { display:flex; gap:20px; flex-wrap:wrap; margin-bottom:28px; }
.about-contact-info span { color:#888; font-size:14px; }
.about-contact-info a { color:#5ae14c; font-size:14px; }
.about-block { margin-bottom:36px; }
.about-block h4 { font-family:'Fustat',sans-serif; font-weight:600; font-size:16px; margin-bottom:12px; color:#fff; }
.about-block .bio { margin-bottom:16px; }
.about-block .bio strong { color:#fff; font-weight:600; }
.skills {
  display:flex; flex-wrap:wrap; gap:10px; margin-bottom:40px;
}
.skill-tag {
  padding:8px 18px; border-radius:999px; font-size:14px; font-weight:500;
  background:#1a1a1a; border:1px solid rgba(255,255,255,0.08);
  transition:all 0.2s;
}
.skill-tag:hover { border-color:#5ae14c; color:#5ae14c; }
.timeline { margin-bottom:40px; }
.timeline-item {
  padding:20px 0; border-bottom:1px solid rgba(255,255,255,0.06);
  display:flex; gap:20px;
}
.timeline-year {
  font-family:'Schibsted Grotesk',sans-serif; font-weight:600;
  font-size:14px; color:#5ae14c; min-width:100px; white-space:nowrap;
}
.timeline-text h4 { font-weight:600; margin-bottom:6px; }
.timeline-text p { color:#a0a0a0; font-size:14px; line-height:1.6; margin-bottom:8px; }
.timeline-text p:last-child { margin-bottom:0; }
.timeline-text .company { color:#fff; font-size:14px; margin-bottom:8px; font-weight:500; }
.education-item { padding:14px 0; display:flex; gap:20px; }
.education-item .edu-year { font-family:'Schibsted Grotesk',sans-serif; font-weight:600; font-size:14px; color:#5ae14c; min-width:100px; white-space:nowrap; }
.education-item .edu-text h4 { font-weight:600; margin-bottom:4px; }
.education-item .edu-text p { color:#a0a0a0; font-size:14px; }
.contact-row { display:flex; gap:30px; flex-wrap:wrap; }
.contact-item { display:flex; align-items:center; gap:10px; color:#a0a0a0; }
.contact-item .icon { font-size:18px; }

/* ======================== PORTFOLIO GRID ======================== */
.portfolio-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(380px, 1fr));
  gap:24px;
}
.product-card {
  background:#141414; border-radius:16px; overflow:hidden;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.04);
  cursor:pointer; transition:all 0.5s cubic-bezier(0.16,1,0.3,1);
  position:relative;
  -webkit-backface-visibility:hidden;
  transform:translateZ(0);
}
.product-card:hover {
  transform:translateY(-6px) translateZ(0);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.08), 0 20px 60px rgba(0,0,0,0.5);
}
.product-card-thumb {
  width:100%; aspect-ratio:4/3; overflow:hidden; background:#1a1a1a;
  position:relative;
}
.product-card-thumb img {
  width:100%; height:100%; object-fit:cover; transition:transform 0.5s cubic-bezier(0.16,1,0.3,1);
  border-radius:16px 16px 0 0;
  -webkit-backface-visibility:hidden;
  transform:translateZ(0);
}
.product-card:hover .product-card-thumb img { transform:scale(1.05); }
.product-card-tag {
  position:absolute; top:16px; left:16px;
  background:rgba(0,0,0,0.7); backdrop-filter:blur(8px);
  padding:5px 12px; border-radius:999px; font-size:12px;
  font-family:'Schibsted Grotesk',sans-serif; font-weight:500;
}
.product-card-info { padding:24px; }
.product-card-info h3 {
  font-family:'Fustat',sans-serif; font-weight:600; font-size:20px;
  margin-bottom:6px;
}
.product-card-info .en {
  font-size:13px; color:#666; font-family:'Inter',sans-serif; margin-bottom:10px;
}
.product-card-info .tags { display:flex; gap:6px; flex-wrap:wrap; }
.product-card-info .tags span {
  font-size:11px; padding:3px 10px; border-radius:999px;
  background:rgba(255,255,255,0.05); color:#888;
}

/* ======================== MODAL (PDF-style product page) ======================== */
.modal-overlay {
  position:fixed; inset:0; z-index:9999;
  background:rgba(10,10,10,0.7); backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
  overflow-y:auto; overflow-x:hidden;
  opacity:0; pointer-events:none; transition:opacity 0.3s;
}
.modal-overlay.active { opacity:1; pointer-events:all; }
.modal-page {
  max-width:1200px; margin:40px auto; padding:80px 60px;
  min-height:100vh;
  background:#0a0a0a; border-radius:24px;
  box-shadow:0 0 0 1px rgba(255,255,255,0.05),0 24px 48px rgba(0,0,0,0.4);
}
.modal-close {
  position:fixed; top:24px; right:24px; z-index:10000;
  width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.1);
  color:#fff; font-size:20px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:all 0.2s; backdrop-filter:blur(10px);
}
.modal-close:hover { background:rgba(255,255,255,0.2); }
.modal-header {
  margin-bottom:60px; padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.modal-header .label {
  font-family:'Schibsted Grotesk',sans-serif; font-weight:500;
  font-size:15px; letter-spacing:0.1em; color:#5ae14c; text-transform:uppercase;
  margin-bottom:12px;
}
.modal-header h2 {
  font-family:'Fustat',sans-serif; font-weight:700;
  font-size:clamp(48px,8vw,72px); letter-spacing:-0.04em;
  margin-bottom:8px; line-height:1.15;
}
.modal-header .en {
  font-size:24px; color:#666; font-family:'Inter',sans-serif;
  margin-bottom:20px;
}
.modal-header .meta-tags { display:flex; gap:8px; flex-wrap:wrap; }
.modal-header .meta-tags span {
  font-size:14px; padding:6px 16px; border-radius:999px;
  background:rgba(255,255,255,0.05); color:#888;
  font-family:'Schibsted Grotesk',sans-serif;
}
.modal-section { margin-bottom:64px; }
.modal-section-title {
  font-family:'Schibsted Grotesk',sans-serif; font-weight:600;
  font-size:14px; letter-spacing:0.08em; color:#fff;
  margin-bottom:6px; text-transform:uppercase;
}
.modal-section-sub {
  font-size:13px; color:#666; margin-bottom:28px;
  font-family:'Inter',sans-serif;
}
.modal-section img {
  width:100%; border-radius:8px; margin-bottom:20px;
  background:#111; display:block;
  -webkit-backface-visibility:hidden;
  transform:translateZ(0);
}
.modal-section img:last-child { margin-bottom:0; }
.modal-grid-2 {
  display:grid; grid-template-columns:repeat(2, 1fr); gap:20px;
}
.modal-grid-2 img { margin-bottom:0; width:100%; height:100%; object-fit:cover; -webkit-backface-visibility:hidden; transform:translateZ(0); }
.modal-grid-3 {
  display:grid; grid-template-columns:repeat(3, 1fr); gap:16px;
}
.modal-grid-3 img { margin-bottom:0; width:100%; height:100%; object-fit:cover; -webkit-backface-visibility:hidden; transform:translateZ(0); }
.modal-grid-4 {
  display:grid; grid-template-columns:repeat(4, 1fr); gap:16px;
}
.modal-grid-4 img { margin-bottom:0; width:100%; height:100%; object-fit:cover; -webkit-backface-visibility:hidden; transform:translateZ(0); }
/* Detail images: 3-column grid */
.modal-detail-full {
  display:grid; grid-template-columns:repeat(3, 1fr); gap:20px;
}
.modal-detail-full img {
  width:100%; border-radius:8px; display:block;
  background:#111;
  -webkit-backface-visibility:hidden;
  transform:translateZ(0);
}
/* A+ banners: 2 per row, natural width */
.modal-aplus-grid {
  display:grid; grid-template-columns:repeat(2, 1fr); gap:16px;
}
.modal-aplus-grid img { width:100%; border-radius:8px; -webkit-backface-visibility:hidden; transform:translateZ(0); }
.modal-aplus-banner img {
  border-radius:8px; margin-bottom:16px;
  -webkit-backface-visibility:hidden;
  transform:translateZ(0);
}
.modal-back-top {
  display:flex; justify-content:center; padding:40px 0;
}
.modal-back-top button {
  padding:12px 32px; border-radius:999px;
  font-family:'Schibsted Grotesk',sans-serif; font-weight:500; font-size:14px;
  background:transparent; border:1px solid rgba(255,255,255,0.15);
  color:#a0a0a0; cursor:pointer; transition:all 0.2s;
}
.modal-back-top button:hover { border-color:#fff; color:#fff; }
/* ===== LIGHTBOX ===== */
.lightbox {
  position:fixed; inset:0; z-index:11000;
  background:rgba(0,0,0,0.9); backdrop-filter:blur(10px);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity 0.3s;
  padding:20px; cursor:zoom-out;
}
.lightbox.active { opacity:1; pointer-events:all; }
.lightbox img {
  max-width:95%; max-height:95vh; object-fit:contain;
  border-radius:4px; box-shadow:0 0 50px rgba(0,0,0,0.5);
  transform:scale(0.9); transition:transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.lightbox.active img { transform:scale(1); }
.lightbox-close {
  position:absolute; top:30px; right:30px; color:#fff;
  font-size:30px; cursor:pointer; z-index:11001;
}
.modal-section img { cursor:zoom-in; }

/* ===== GLOBAL BACK-TO-TOP ===== */
.global-back-to-top {
  position:fixed; bottom:40px; right:40px; z-index:999;
  width:48px; height:48px; border-radius:50%;
  background:rgba(20,20,20,0.85); backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,0.1); color:#fff;
  font-size:22px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none;
  transition:opacity 0.3s, transform 0.3s;
  box-shadow:0 4px 24px rgba(0,0,0,0.4);
}
.global-back-to-top.visible { opacity:1; pointer-events:all; }
.global-back-to-top:hover { background:rgba(40,40,40,0.9); transform:translateY(-2px); }
@media (max-width:768px) {
  .global-back-to-top { bottom:24px; right:24px; width:40px; height:40px; font-size:18px; }
}
@media (max-width:768px) {
  .modal-page { padding:60px 24px; }
  .modal-grid-2, .modal-grid-3, .modal-grid-4, .modal-aplus-grid, .modal-detail-full { grid-template-columns:1fr; }
}

/* ======================== FOOTER ======================== */
.footer {
  padding:80px 0; text-align:center; border-top:1px solid rgba(255,255,255,0.06);
}
.footer h2 {
  font-family:'Fustat',sans-serif; font-weight:700;
  font-size:clamp(28px,4vw,40px); margin-bottom:16px;
}
.footer .contact { color:#a0a0a0; margin-bottom:8px; }
.footer .copyright {
  color:#555; font-size:13px; margin-top:40px;
}

/* ======================== SCROLL ANIMATIONS ======================== */
.reveal {
  opacity:0; transform:translateY(40px);
  transition:opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* ===== IMAGE SKELETON ===== */
.product-card-thumb, .modal-section img, .modal-detail-full img, .modal-grid-3 img, .modal-grid-4 img, .modal-aplus-grid img {
  background:linear-gradient(110deg, #1a1a1a 30%, #222 50%, #1a1a1a 70%);
  background-size:200% 100%;
}
@keyframes imgSkeleton {
  0% { background-position:200% 0; }
  100% { background-position:-200% 0; }
}

/* ======================== RESPONSIVE ======================== */
@media (max-width:1024px) {
  nav { padding:16px 40px; }
  .container { padding:0 40px; }
  .about-grid { grid-template-columns:1fr; gap:40px; }
  .about-photo { max-width:280px; }
}
@media (max-width:768px) {
  nav { padding:14px 24px; }
  .nav-links { display:none; }
  .nav-cta { display:none; }
  .menu-btn { display:block; }
  .container { padding:0 24px; }
  .section { padding:80px 0; }
  .portfolio-grid { grid-template-columns:1fr; }
  .hero-content { margin-top:-30px; }
  .modal-content { padding:24px; max-width:95vw; }
  .timeline-item { flex-direction:column; gap:4px; }
}
@media (max-width:480px) {
  .hero-title { font-size:36px; }
  .hero-stats { gap:20px; }
  .hero-stats .stat-num { font-size:22px; }
}