/* Dreamer HR - Global Styles */

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

:root {
  --primary: #1a4c97;
  --primary-dark: #0f3460;
  --primary-light: #2d6cb5;
  --accent: #e63946;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg: #fff;
  --bg-gray: #f5f7fa;
  --bg-dark: #1a2a4a;
  --border: #e8ecf0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --header-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
  margin-top: 32px;
}

/* Header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-en {
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: var(--primary);
}

.logo-cn {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.logo-tag {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
  margin-left: 32px;
  min-width: 0;
}

.nav a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero */

.hero {
  position: relative;
  min-height: 520px;
  margin-top: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 76, 151, 0.15) 0%, rgba(15, 52, 96, 0.4) 100%),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1600&q=80") center/cover no-repeat;
}

.hero-content {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 60px 24px 40px;
}

.hero-text {
  max-width: 560px;
  text-align: right;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.hero-sub {
  display: inline-block;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
}

.hero-stats {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.stat-brand {
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-brand .logo-en {
  color: #fff;
  font-size: 20px;
}

.stat-brand .logo-cn {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

/* Sections */

.section {
  padding: 80px 0;
}

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

.section-dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-dark .section-sub {
  color: rgba(255, 255, 255, 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.section-dark .section-header h2 {
  color: #fff;
}

.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-top: 32px;
}

.about-video {
  padding-right: 40px;
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s;
}

.video-placeholder:hover {
  transform: scale(1.02);
}

.play-btn {
  width: 64px;
  height: 64px;
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 24px;
}

.values {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.value-item {
  display: flex;
  align-items: baseline;
  margin-bottom: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.value-item strong {
  min-width: 60px;
  color: var(--primary);
  font-size: 15px;
}

.value-item span {
  color: var(--text-light);
  font-size: 15px;
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
}

.service-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  margin: 0 8px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26, 76, 151, 0.15);
}

.service-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.link-more {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.link-more:hover {
  text-decoration: underline;
}

/* Team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 32px;
}

.team-card {
  text-align: center;
  padding: 16px 8px;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.team-card h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.team-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* News */

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 32px;
}

.news-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: box-shadow 0.3s;
  display: block;
}

.news-card:hover {
  box-shadow: var(--shadow);
}

.news-date {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.news-card:hover h3 {
  color: var(--primary);
}

/* Partners */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
}

.partner-logo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 8px;
  transition: border-color 0.3s, color 0.3s;
}

.partner-logo:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Contact Cta */

.contact-cta-grid {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  margin-bottom: 24px;
}

.contact-info p {
  margin-bottom: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.contact-cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.contact-cities span {
  padding: 8px 20px;
  margin: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

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

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

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Footer */

.footer {
  background: #111;
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-nav a {
  padding: 4px 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy,
.footer-icp {
  text-align: center;
  font-size: 12px;
  margin-bottom: 4px;
}

.footer-icp a {
  color: rgba(255, 255, 255, 0.5);
}

/* Back to top */

.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999;
  box-shadow: var(--shadow);
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  background: var(--primary-dark);
}

/* Sub pages */

.page-hero {
  margin-top: var(--header-h);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 14px;
  opacity: 0.8;
  letter-spacing: 1px;
}

.page-content {
  padding: 60px 0;
}

.content-block {
  margin-bottom: 48px;
}

.content-block h2 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.content-block p,
.content-block li {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

.content-block ul {
  padding-left: 20px;
}

/* Jobs */

.jobs-list {
  margin-top: 32px;
}

.job-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.3s;
}

.job-item:hover {
  box-shadow: var(--shadow);
}

.job-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.job-meta span {
  margin-right: 16px;
}

.job-tag {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(26, 76, 151, 0.1);
  color: var(--primary);
  border-radius: 12px;
  font-size: 12px;
  margin-right: 8px;
}

/* Cooperation steps */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
}

.step-card {
  text-align: center;
  padding: 24px 16px;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* Contact form */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 32px;
}

.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-detail {
  padding: 32px;
}

.contact-detail h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-detail-item {
  margin-bottom: 20px;
}

.contact-detail-item strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-detail-item p {
  font-size: 14px;
  color: var(--text-light);
}

.office-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}

.office-card {
  background: var(--bg-gray);
  padding: 24px;
  border-radius: var(--radius);
  margin: 8px;
  text-align: center;
}

.office-card h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

.office-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* News list page */

.news-list-item {
  display: flex;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.news-list-date {
  min-width: 100px;
  font-size: 14px;
  color: var(--text-muted);
  padding-top: 4px;
}

.news-list-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.news-list-content h3:hover {
  color: var(--primary);
}

.news-list-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Responsive */

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

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    margin-left: 0;
    flex: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav a {
    padding: 12px 16px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .hero-content {
    justify-content: center;
  }

  .hero-text {
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-video {
    padding-right: 0;
    margin-bottom: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    margin: 0 0 16px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .office-list {
    grid-template-columns: 1fr;
  }

  .job-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .job-item .btn {
    margin-top: 16px;
  }

  .news-list-item {
    flex-direction: column;
  }

  .news-list-date {
    margin-bottom: 8px;
  }
}
