@charset "UTF-8";

:root {
  --bg-color: #ffffff;
  --bg-gray: #f2f2f7; /* Apple style light gray */
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-light: #86868b;
  --accent-color: #0066cc; /* High contrast vibrant Apple blue */
  --accent-hover: #0055b3;
  --blue-primary: #0066cc;
  --blue-light: rgba(0, 102, 204, 0.1);
  --border-color: rgba(0,0,0,0.08); /* Very subtle border */
  --border-strong: rgba(0,0,0,0.12);
  --card-bg: #ffffff;
  --card-shadow-sm: 0 8px 28px rgba(15, 23, 42, 0.04);
  --card-shadow-md: 0 18px 40px rgba(15, 23, 42, 0.07);
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 24px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Typography Constraints */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.015em;
  /* Prevent awkward artificial line breaks for Chinese texts */
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* This replaces the unreadable grey emphasis from the dark theme */
.highlight {
  color: var(--accent-color);
  font-weight: 600;
  display: inline;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Nav */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.nav-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.brand-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  white-space: nowrap;
}

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

.nav-links a.active {
  color: var(--text-primary);
}

.nav-contact {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  padding: 8px 16px;
  background: var(--accent-color);
  border-radius: 99px;
  transition: background 0.2s;
}

.nav-contact:hover {
  background: var(--accent-hover);
}

/* Main Container */
main {
  padding-top: 64px;
}

.section {
  padding: 108px 24px;
}

.section-gray {
  background: linear-gradient(180deg, rgba(242, 242, 247, 0.9), rgba(242, 242, 247, 0.98));
}

.section-header {
  max-width: 960px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  line-height: 1.35;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 42rem;
  margin: 0 auto;
}

/* Layouts */
.grid-4 {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-2 {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Cards */
.card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  color: var(--blue-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--blue-primary);
}

.card h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 12px;
}

.card p {
  font-size: 1rem;
  line-height: 1.75;
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: 52px auto 32px;
  padding: 0 24px;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 72px;
}

.hero-text-content {
  flex: 1;
}

.hero-image-content {
  flex-shrink: 0;
}

.hero-main-avatar {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border: 4px solid var(--bg-color);
}

.hero-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.tag {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 16px;
  background: var(--bg-gray);
  border-radius: 99px;
  color: var(--text-secondary);
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.4;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 41rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 99px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 102, 204, 0.2);
}

.btn-secondary {
  background: var(--bg-gray);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #e5e5ea;
}

.btn-outline {
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-gray);
}

/* Stats Layout */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  padding: 30px 22px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow-md);
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-num span {
  font-size: 1.25rem;
  margin-left: 2px;
  font-weight: 600;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Horizontal Cards */
.timeline-cards {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.card-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  background: var(--card-bg);
  padding: 36px 38px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.card-horizontal:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow-md);
}

.card-logo-box {
  width: 228px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  gap: 0;
  padding-top: 4px;
}

.company-logo {
  width: 100%;
  max-width: 180px;
  height: 72px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  margin-bottom: 24px;
}

/* Individual Logo Sizing Adjustments */
.logo-vesoft {
  height: 56px;
  max-width: 154px;
}

.logo-ant {
  height: 76px;
  max-width: 196px;
  transform: scale(1.92);
  transform-origin: center center;
}

.logo-huawei {
  height: 40px;
  max-width: 132px;
}

.card-content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.card-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 16px 0;
  position: relative;
}

.card-meta::before {
  content: '';
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0));
  margin-bottom: 2px;
}

.company {
  font-size: 1.42rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  max-width: 100%;
}

.time {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.card-body h3 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 14px;
}

.card-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.feature-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.4;
}

/* Timeline Vertical List */
.timeline-list {
  max-width: 800px;
  margin: 0 auto;
  border-left: 2px solid var(--border-color);
  padding-left: 42px;
}

.timeline-item {
  position: relative;
  margin-bottom: 42px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -54px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 4px var(--bg-gray);
}

.timeline-item .time {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-item h3 {
  font-size: 1.3rem;
  line-height: 1.32;
  margin-bottom: 6px;
}

.timeline-item .org {
  display: inline-block;
  font-size: 1rem;
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 14px;
}

.timeline-item p {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 40rem;
}

#contact {
  background: linear-gradient(180deg, rgba(242, 242, 247, 0.7), rgba(255, 255, 255, 0.96));
}

/* Contact Box */
.contact-box {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(29, 29, 31, 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding: 72px 44px;
  text-align: center;
}

.contact-text {
  margin-bottom: 48px;
}

.contact-text h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.contact-text p {
  font-size: 1.15rem;
}

.contact-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 24px 60px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Language Visibility Management */
html[lang="zh-CN"] [data-lang="en"] {
  display: none !important;
}

html[lang="en"] [data-lang="zh"] {
  display: none !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }
  
  .hero-tags {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-main-avatar {
    margin: 0 auto;
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 92px 24px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-horizontal {
    flex-direction: column;
    gap: 28px;
    padding: 32px;
  }
  
  .card-logo-box {
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
  }
  
  .card-content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
  
  .card-meta {
    width: min(100%, 260px);
    flex-direction: column;
    align-items: center;
  }

  .logo-ant {
    transform: scale(1.75);
  }
}

@media (max-width: 600px) {
  .nav-content {
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
  }

  .brand-title {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .section {
    padding: 80px 20px;
  }
  
  .grid-4, .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .card-horizontal {
    gap: 24px;
    padding: 28px 24px;
  }

  .card-logo-box {
    width: 100%;
  }

  .company-logo {
    margin-bottom: 20px;
  }

  .card-meta {
    width: min(100%, 240px);
    padding-top: 16px;
  }

  .card-body h3 {
    font-size: 1.28rem;
  }

  .card-body p,
  .feature-list li {
    font-size: 0.98rem;
  }

  .section-header {
    margin-bottom: 44px;
  }

  .section-header h2, .hero h1 {
    font-size: 1.8rem;
  }
  
  .contact-actions {
    flex-direction: column;
  }
  
  .timeline-list {
    padding-left: 24px;
  }
  
  .timeline-item::before {
    left: -30px;
  }
}