/* ====================
   DESIFON — Taste Skill Minimalist + PPT Palette
   Background: #F2F2F2
   Text: near-black (#111)
   Accent borders: #EAEAEA
   ==================== */

:root {
  --bg: #F2F2F2;
  --bg-card: #FFFFFF;
  --bg-alt: #EBEBEB;
  --text: #111111;
  --text-muted: #787774;
  --line: #EAEAEA;
  --line-light: rgba(0,0,0,.06);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 8px rgba(0,0,0,.04);
  --font-cn: 'Noto Sans SC', -apple-system, 'PingFang SC', sans-serif;
  --font-en: 'Noto Sans', -apple-system, 'Helvetica Neue', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Noto Serif SC', serif;
  --nav-h: 64px;
  --container: 1120px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font-en);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
html[lang="zh-CN"] body,
[data-page-lang="zh"] body {
  font-family: var(--font-cn);
  font-size: 1.05rem;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
::selection { background: #111; color: #fff; }

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

/* ====================
   Navigation
   ==================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(242,242,242,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo-img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: .88rem;
  color: var(--text-muted);
  letter-spacing: .03em;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--text);
  transition: width .25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 2px;
}
.lang-btn {
  background: none;
  border: none;
  padding: 4px 10px;
  font-size: .78rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all .2s;
  font-family: inherit;
}
.lang-btn.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.lang-btn:hover:not(.active) { color: var(--text); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: .3s;
}

/* ====================
   Sections
   ==================== */
.section {
  padding: 100px 0 80px;
}
.section-alt {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.section-desc {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: .95rem;
}

/* ====================
   Hero
   ==================== */
.hero {
  position: relative;
  padding: calc(80px + var(--nav-h)) 0 80px;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/bg-hero.jpg') center 20% / cover no-repeat;
  z-index: 0;
  opacity: .30;
}
.hero-ambient {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 40% 45%, rgba(0,0,0,.03) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-drift 25s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, 1%) scale(1.05); }
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(242,242,242,.60));
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 680px;
}
.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  color: var(--text);
}
.hero-sub {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 400;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 36px;
  line-height: 1.7;
  opacity: .85;
}
.hero-btns {
  display: flex;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: .92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s;
  border: none;
  font-family: inherit;
  letter-spacing: .02em;
}
.btn-primary {
  background: #111;
  color: #fff;
}
.btn-primary:hover {
  background: #333;
}
.btn-outline {
  background: none;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-outline:hover {
  border-color: var(--text);
  background: rgba(0,0,0,.02);
}
.btn-full { width: 100%; justify-content: center; }

/* ====================
   About
   ==================== */
#about {
  position: relative;
}
#about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/bg-about.jpg') center center / cover no-repeat;
  opacity: .12;
  z-index: 0;
}
#about .container {
  position: relative;
  z-index: 1;
}
.about-content {
  max-width: 800px;
  margin: 0 auto;
}
.about-text p {
  color: var(--text);
  line-height: 1.8;
  font-size: .95rem;
  opacity: .85;
  text-align: center;
}
.about-text p + p { margin-top: 20px; }
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.value-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.value-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.value-text {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.6;
  opacity: .85;
}

/* ====================
   Services
   ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow .25s, transform .25s;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.service-icon {
  width: 44px; height: 44px;
  margin-bottom: 16px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-list li {
  position: relative;
  padding-left: 16px;
  font-size: .88rem;
  color: var(--text);
  line-height: 1.8;
  opacity: .85;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .65em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text);
  opacity: .3;
}

/* ====================
   Global (PPT Map style)
   ==================== */
.section-global {
  padding: 0;
  overflow: hidden;
}
.section-global .section-header {
  padding: 100px 0 56px;
}
.section-global .container {
  position: relative;
  z-index: 1;
}
.global-map-full {
  width: 100%;
  position: relative;
  overflow: hidden;
  max-height: 500px;
}
.global-map-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.global-map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gm-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.gm-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(17,17,17,.8);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  flex-shrink: 0;
  z-index: 2;
}
.gm-info {
  background: rgba(242,242,242,.75);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  padding: 8px 14px;
  text-align: left;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-top: 2px;
  min-width: 100px;
}
.gm-region {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #111;
  letter-spacing: .02em;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding-bottom: 3px;
}
.gm-cities {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.gm-cities span {
  display: block;
  font-size: .75rem;
  color: #444;
  line-height: 1.5;
}

/* ====================
   Advantages
   ==================== */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.adv-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .25s, transform .25s;
}
.adv-card:hover {
  box-shadow: var(--shadow);
}
.adv-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.adv-desc {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.6;
  opacity: .8;
}

/* ====================
   Team
   ==================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.team-photo {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 0 auto 16px;
  display: block;
  border: 1px solid var(--line);
}
.team-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.team-role {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}
.team-location {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.team-bio {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.6;
  opacity: .8;
}

/* ====================
   Partners
   ==================== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.partner-group {
  text-align: center;
}
.partner-cat {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: .04em;
  text-align: center;
}
.partner-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.partner-list span {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}

/* ====================
   Contact
   ==================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  max-width: 880px;
  margin: 0 auto;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  position: relative;
}
.form-input, .form-select {
  width: 100%;
  padding: 14px 16px;
  font-size: .92rem;
  font-family: inherit;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color .2s;
  outline: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--text);
}
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  transform: translateY(-28px) scale(.85);
  color: var(--text);
}
.form-label {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: .92rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: .2s;
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23787774' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}
.ci-block {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.ci-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.ci-text {
  margin-top: 4px;
  font-size: .92rem;
  color: var(--text-muted);
}

/* ====================
   Footer
   ==================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 4px;
}
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .82rem;
  color: var(--text-muted);
}
.footer-copy {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ====================
   Developers Logos
   ==================== */
.dev-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.dev-logo {
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}
.dev-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: .7;
  transition: opacity .25s;
}
.dev-logo:hover img {
  opacity: 1;
}

/* ====================
   Cases
   ==================== */
#cases {
  background: var(--bg-card);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.case-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.case-img-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}
.case-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ====================
   Scroll Reveal
   ==================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(0.16, 1, 0.3, 1), transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-ambient { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ====================
   Responsive
   ==================== */
@media (max-width: 900px) {
  .about-values { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .services-grid,
  .adv-grid,
  .partners-grid,
  .global-grid { grid-template-columns: repeat(2, 1fr); }
}  
@media (max-width: 640px) {
  html { font-size: 16px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 16px;
  }
  .menu-toggle { display: flex; }
  .section { padding: 60px 0 48px; }
  .section-title { font-size: 1.5rem; }
  .services-grid,
  .adv-grid,
  .partners-grid,
  .global-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; padding-top: calc(60px + var(--nav-h)); }
  .hero-title { font-size: 2rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .footer-container { flex-direction: column; gap: 12px; text-align: center; }
}
