﻿/* Logo呼吸动画 */
@keyframes breathing {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* 六边形图标脉冲动画 */
@keyframes hexPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Arial, sans-serif;
  background: #ffffff;
  color: #525252;
  min-height: 100vh;
  position: relative;
  padding-bottom: 30px;
}

/* Background decorative hexagons */
.hex-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hex-bg-item {
  position: absolute;
  opacity: 0.3;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 30px);
  position: relative;
  z-index: 1;
}
.grid-container {
  position: relative;
  width: 840px;
  height: 693px;
}
.hex-btn {
  position: absolute;
  width: 240px;
  height: 277px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: none;
}
.hex-btn svg {
  z-index: 1;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hex-btn .en {
  font-size: 18px; font-weight: 700; line-height: 1.3;
  text-align: center; padding: 0 8px; color: #525252;
  position: relative; z-index: 1;
  transition: transform 0.3s ease;
}
.hex-btn .hl { color: #1F4E79; }
.hex-btn .hl-sub { color: #525252; font-weight: 700; }
.hex-btn .cn {
  font-size: 16px; font-weight: 600; line-height: 1.4;
  text-align: center; padding: 0 8px; color: #525252;
  position: relative; z-index: 1;
  transition: transform 0.3s ease;
}

.hex-logo {
  width: 160px; height: auto; margin-bottom: 0;
  position: relative; z-index: 1;
  animation: breathing 3s ease-in-out infinite;
}
.hex-btn:hover .hex-logo {
  animation-play-state: paused;
}
.hex-center .cn { font-size: 16px; font-weight: 700; }
.hex-icon-img {
  width: 82px;
  height: 82px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}
.hex-btn:hover .hex-icon-img {
  transform: scale(1.12);
}
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: #888;
  line-height: 1.4;
  padding: 8px 15px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
}
footer a { color: #1F4E79; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.copyright-en, .copyright-cn { display: inline; }

/* Desktop language buttons */
.text-pc { display: inline; }
.text-mobile { display: none; }

@media (max-width: 720px) {
  .hex-btn { width: 120px; height: 138px; }
  .hex-btn .en { font-size: 10px; padding: 0 4px; }
  .hex-btn .cn { font-size: 9px; padding: 0 4px; }
  .hex-logo { width: 79px; }
  .hex-icon-img { width: 41px; height: 41px; margin-bottom: 4px; }
  .grid-container { width: 420px; height: 346px; }
  .wrapper { min-height: calc(100vh - 40px); }
  footer {
    font-size: 9px;
    padding: 10px 15px;
  }
  .copyright-en { display: inline; }
  .copyright-cn { display: inline; }
  .copyright-divider { display: inline; }
  .hex-bg-item { opacity: 0.2; }
  .hex-btn:nth-child(1) { left: 0 !important; top: 0 !important; }
  .hex-btn:nth-child(2) { left: 120px !important; top: 0 !important; }
  .hex-btn:nth-child(3) { left: 240px !important; top: 0 !important; }
  .hex-btn:nth-child(4) { left: 60px !important; top: 103.875px !important; }
  .hex-btn:nth-child(5) { left: 180px !important; top: 103.875px !important; }
  .hex-btn:nth-child(6) { left: 300px !important; top: 103.875px !important; }
  .hex-btn:nth-child(7) { left: 0 !important; top: 207.75px !important; }
  .hex-btn:nth-child(8) { left: 120px !important; top: 207.75px !important; }
  .hex-btn:nth-child(9) { left: 240px !important; top: 207.75px !important; }
  
  /* Mobile language buttons */
  .text-pc { display: none !important; }
  .text-mobile { display: inline !important; }
  
  .modal-footer {
    height: auto;
    padding: 6px 8px;
    gap: 6px;
  }
  .modal-logo-en, .modal-logo-cn {
    height: 12px;
  }
  .lang-switch-group {
    gap: 6px;
  }
  .lang-switch {
    padding: 2px 6px !important;
    font-size: 10px !important;
    height: 20px !important;
    width: auto !important;
    min-width: 32px !important;
    line-height: 16px !important;
  }
  .lang-switch .text-mobile {
    font-size: 10px !important;
    line-height: 1 !important;
    display: block !important;
  }
  .modal-title-text {
    font-size: 14px;
  }
  .modal-title-icon {
    width: 24px;
    height: 24px;
  }
}

/* Modal window styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  position: relative;
  width: 90vw;
  max-width: 1200px;
  height: 85vh;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal-overlay.active .modal {
  transform: scale(1);
}
.modal-title-bar {
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: #ffffff;
  position: relative;
  z-index: 2;
}
.modal-title-bar.hidden {
  display: none;
}
.modal-title-icon {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  object-fit: contain;
}
.modal-title-text {
  font-size: 18px;
  font-weight: 700;
  color: #525252;
  flex: 1;
}
.modal-title-text .hl {
  color: #1F4E79;
}
.modal-close {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  font-size: 28px;
  color: #525252;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.modal-close:hover {
  color: #1F4E79;
}
.modal-content {
  height: calc(85vh - 90px);
  padding: 10px 30px;
  overflow-y: auto;
  position: relative;
  z-index: 10;
  background: transparent;
}
.modal-content.no-title {
  height: calc(85vh - 40px);
}
.modal-content h2 {
  color: #1F4E79;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}
.modal-content h3 {
  color: #1F4E79;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.modal-content p {
  color: #525252;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.modal-footer {
  height: 40px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.modal-logo-en {
  height: 20px;
  object-fit: contain;
}
.modal-logo-cn {
  height: 20px;
  object-fit: contain;
}
.lang-switch-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch {
  background: transparent;
  border: 1px solid #1F4E79;
  color: #1F4E79;
  padding: 5px 14px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
  height: 28px;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-switch:hover {
  background: #1F4E79;
  color: #ffffff;
}
.lang-switch.active {
  background: #1F4E79;
  color: #ffffff;
}
.modal-hex-bg {
  position: absolute;
  top: 50px;
  left: 0; right: 0; bottom: 40px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.modal-hex-item {
  position: absolute;
  opacity: 0.2;
}

/* Frosted glass effect */
.hex-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ========== Tile Timeline Layout ========== */

/* Anchor glow animation */
@keyframes dotGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(31, 78, 121, 0.2); }
  50% { box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.4); }
}

.tile-timeline {
  position: relative;
  padding: 0;
  margin-top: -10px;
}

/* Timeline title */
.tile-title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #525252;
  margin-bottom: 8px;
  margin-top: 0;
  padding: 0 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-title .hl {
  color: #1F4E79;
  font-weight: 700;
}
.tile-title .hl-sub {
  color: #525252;
  font-weight: 700;
}

/* Center vertical line - desktop */
.tile-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 45px;
  bottom: 10px;
  width: 2px;
  background: rgba(31, 78, 121, 0.2);
  transform: translateX(-50%);
}

/* Tile item */
.tile-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

/* Desktop alternating layout */
.tile-item:nth-of-type(odd) {
  padding-left: calc(50% + 20px);
  padding-right: 0;
  justify-content: flex-start;
}

.tile-item:nth-of-type(even) {
  padding-left: 0;
  padding-right: calc(50% + 20px);
  justify-content: flex-end;
}

/* Anchor dot */
.tile-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1F4E79;
  border: 1px solid #fff;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: dotGlow 2s ease-in-out infinite;
}

/* Connector line */
.tile-item::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 2px;
  background: rgba(31, 78, 121, 0.2);
  transform: translateY(-50%);
  z-index: 1;
}
.tile-item:nth-of-type(odd)::after {
  left: calc(50% - 4px);
}
.tile-item:nth-of-type(even)::after {
  right: calc(50% - 4px);
}

/* Tile card background */
.tile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(31, 78, 121, 0.08);
  width: 100%;
}

/* Image container */
.tile-img {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text container */
.tile-text {
  flex: 1;
  min-width: 0;
}
/* Card title */
.tile-text-title {
  font-size: 15px;
  font-weight: 700;
  color: #1F4E79;
  margin-bottom: 4px;
}
/* Body text */
/* 正文 */
.tile-text-content {
  font-size: 13px;
  line-height: 1.5;
  color: #000000;
}
/* hyco/海聚/hy/co - 蓝色加粗 */
.tile-text-content .hl {
  color: #1F4E79;
  font-weight: 700;
}
/* Force/福力 - 灰色加粗 */
.tile-text-content .hl-sub {
  color: #525252;
  font-weight: 700;
}
/* Force前的单词 - 蓝色加粗 */
.tile-text-content .hl-force {
  color: #1F4E79;
  font-weight: 700;
}

/* Contact list */
.contact-list {
  margin-top: 8px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
  color: #000000;
}

/* ========== aboutForce styles ========== */
/* Logo card */
.tile-card-logo {
  flex-direction: column;
  gap: 15px;
  padding: 16px;
  align-items: center;
}
.tile-logo-full {
  width: 68%;
  height: auto;
  object-fit: contain;
}
.tile-text-left {
  text-align: left;
  width: 100%;
}
.tile-text-left .tile-text-content {
  font-size: 13px;
  line-height: 1.6;
}
.logo-meaning {
  width: 100%;
}
.logo-meaning-row {
  font-size: 13px;
  line-height: 1.6;
  color: #525252;
  margin-bottom: 8px;
}
.logo-meaning-row:last-child {
  margin-bottom: 0;
}
.logo-meaning-row strong {
  color: #1F4E79;
}

/* Inline hexagon in card */
.tile-hex-inline {
  flex-shrink: 0;
  width: 70px;
  height: 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tile-hex-inline svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.tile-hex-inline img {
  width: 35px;
  height: 35px;
  margin-bottom: 3px;
  position: relative;
  z-index: 1;
}
.tile-hex-inline span {
  font-size: 9px;
  font-weight: 700;
  color: #525252;
  text-align: center;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.tile-hex-inline .hl-sub {
  color: #525252;
  font-weight: 700;
}

/* Large honeycomb display */
/* aboutForce honeycomb layout */
/* Layout: 2+3+2, center empty for logo */
.about-hex-grid {
  position: relative;
  width: 600px;
  height: 577px;
  margin: 30px auto;
}
/* Hide dot and connector for tile-items adjacent to hex grid */
.tile-item-no-dot::before,
.tile-item-no-dot::after {
  display: none;
}
.about-hex-item {
  position: absolute;
  width: 200px;
  height: 230.94px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}
.about-hex-item svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.about-hex-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  animation: hexPulse 2s ease-in-out infinite;
}
.about-hex-item:hover img {
  animation-play-state: paused;
}
.about-hex-item span {
  font-size: 18px;
  font-weight: 700;
  color: #525252;
  position: relative;
  z-index: 1;
  text-align: center;
}
/* Honeycomb positions: 2+3+2 layout */
/* Hexagon: 200px x 230.94px (2x scale) */
/* Same row center distance: 200px */
/* Row offset: 100px (width * 0.5) */
/* Vertical spacing: 173.2px (height * 0.75) */
/* Row 1: learning, project */
.about-hex-item:nth-child(1) { left: 100px; top: 0; }
.about-hex-item:nth-child(2) { left: 300px; top: 0; }
/* Row 2: sales, executive */
.about-hex-item:nth-child(3) { left: 0; top: 173.2px; }
.about-hex-item:nth-child(5) { left: 400px; top: 173.2px; }
/* Row 3: story, pet */
.about-hex-item:nth-child(6) { left: 100px; top: 346.4px; }
.about-hex-item:nth-child(7) { left: 300px; top: 346.4px; }
/* Center logo area with white hexagon background */
.about-hex-center {
  position: absolute;
  left: 200px;
  top: 173.2px;
  width: 200px;
  height: 230.94px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.about-hex-center::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1;
}
.about-center-logo {
  width: 160px;
  height: auto;
  position: relative;
  z-index: 1;
}

/* two hexagons side by side */
.about-hex-pair {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 20px 0;
}

/* footer slogan */
.about-footer {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-top: 30px;
  padding: 20px;
}

.contact-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* storyForce hex grid */
.story-hex-grid {
  position: relative;
  width: 240px;
  height: 207.75px;
  margin-top: 30px;
  margin-left: 20px;
}
.story-hex-item {
  position: absolute;
  width: 120px;
  height: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Row 1 */
.story-hex-item:nth-of-type(1) { left: 0; top: 0; }
.story-hex-item:nth-of-type(2) { left: 120px; top: 0; }
/* Row 2 with half-width offset */
.story-hex-item:nth-of-type(3) { left: 60px; top: 103.875px; }
.story-hex-item:nth-of-type(4) { left: 180px; top: 103.875px; }
.story-hex-item svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.story-hex-item img {
  width: 37px;
  height: 37px;
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}
.story-hex-item:hover img {
  transform: scale(1.12);
}
.story-hex-item span {
  font-size: 9px;
  font-weight: 700;
  color: #525252;
  text-align: center;
  padding: 0 5px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

/* ========== Mobile Tile Timeline ========== */
@media (max-width: 720px) {
  .tile-timeline {
    margin-top: -5px;
  }
  
  .tile-timeline::before {
    left: 25px;
    transform: none;
    top: 40px;
  }
  
  .tile-item:nth-child(odd),
  .tile-item:nth-child(even) {
    padding-left: 38px;
    padding-right: 5px;
    justify-content: flex-start;
  }
  
  .tile-item::before {
    left: 25px;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
  }
  
  .tile-item::after {
    left: 28px;
    width: 8px;
  }
  
  .tile-card {
    padding: 10px 12px;
    gap: 12px;
    width: 100% !important;
    max-width: none !important;
    flex: 1;
    min-width: 0;
  }
  
  .tile-img {
    width: 50px;
    height: 50px;
  }
  
  .tile-text-title {
    font-size: 13px;
  }
  
  .tile-text-content {
    font-size: 12px;
  }
  
  .tile-title {
    font-size: 14px;
    white-space: nowrap;
    margin-bottom: 6px;
  }
  
  .story-hex-grid {
    width: 180px;
    height: 155.8125px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .story-hex-item {
    width: 90px;
    height: 103px;
  }
  
  .story-hex-item:nth-of-type(1) { left: 0; top: 0; }
  .story-hex-item:nth-of-type(2) { left: 90px; top: 0; }
  .story-hex-item:nth-of-type(3) { left: 45px; top: 77.25px; }
  .story-hex-item:nth-of-type(4) { left: 135px; top: 77.25px; }
  
  .story-hex-item img {
    width: 30px;
    height: 30px;
  }
  
  .story-hex-item span {
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
  }
  
  /* aboutForce mobile styles */
  .tile-card-logo {
    padding: 12px;
  }
  
  .tile-text-left .tile-text-content {
    font-size: 12px;
  }
  
  .tile-hex-inline {
    width: 55px;
    height: 63px;
  }
  
  .tile-hex-inline img {
    width: 28px;
    height: 28px;
  }
  
  .tile-hex-inline span {
    font-size: 8px;
  }
  
  .about-hex-grid {
    width: 262px;
    height: 216px;
    margin: 20px auto;
  }
  .about-hex-center::before {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: -1;
  }
  .about-hex-center {
    z-index: 2;
  }
  .about-center-logo {
    position: relative;
    z-index: 1;
  }
  .about-hex-item {
    width: 75px;
    height: 86.6px;
    z-index: 1;
  }
  .about-hex-item img {
    width: 30px;
    height: 30px;
  }
  .about-hex-item span {
    font-size: 8px;
  }
  /* mobile honeycomb positions */
  /* Hexagon: 75px x 86.6px */
  /* Row 1 */
  .about-hex-item:nth-child(1) { left: 75px; top: 0; }
  .about-hex-item:nth-child(2) { left: 150px; top: 0; }
  /* Row 2 */
  .about-hex-item:nth-child(3) { left: 37.5px; top: 65px; }
  .about-hex-item:nth-child(5) { left: 187.5px; top: 65px; }
  /* Row 3 */
  .about-hex-item:nth-child(6) { left: 75px; top: 130px; }
  .about-hex-item:nth-child(7) { left: 150px; top: 130px; }
  .about-hex-center {
    left: 112.5px;
    top: 65px;
    width: 75px;
    height: 86.6px;
  }
  .about-center-logo {
    width: 60px;
  }
  
  .about-footer {
    font-size: 16px;
    margin-top: 20px;
    padding: 15px;
  }
}




