/**
 * Version 1.0.1 Styles
 * Swiss Style Implementation - 严格的国际主义风格
 * 完全重构，遵循Swiss Style核心原则
 */

/* 全局重置与基础样式 - Swiss Style 基础 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
  background-color: var(--color-background);
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 严格的网格系统 - Swiss Style 核心 */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

/* 区域布局 - Swiss Style 间距 */
.section {
  padding: 96px 0;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.section:first-child {
  border-top: none;
}

.section:last-child {
  border-bottom: none;
}

/* 导航栏 - Swiss Style 几何化 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--color-background);
  border-bottom: 2px solid var(--color-primary);
  z-index: 1000;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 主内容区域 */
.main {
  margin-top: 64px;
  min-height: calc(100vh - 64px);
}

/* 英雄区域 - Swiss Style 简洁大气 */
.hero-section {
  padding: 192px 0;
  text-align: center;
  border-bottom: none;
}

.hero-section .container {
  grid-template-columns: 1fr;
  align-items: center;
}

.hero-content {
  grid-column: 1 / -1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 64px;
}

.avatar-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary);
  box-shadow: var(--shadow-xl);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-primary);
}

.hero-intro {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 65ch;
  margin: 0 auto;
}

.hero-intro p {
  margin-bottom: 16px;
}

/* 格言区域 - Swiss Style 强调排版 */
.motto-section {
  padding: 128px 0;
  background-color: var(--color-surface);
}

.motto-section .container {
  grid-template-columns: 1fr;
}

.motto-card {
  grid-column: 1 / -1;
  max-width: 700px;
  margin: 0 auto;
  padding: 64px;
  border-left: 4px solid var(--color-primary);
  background-color: var(--color-background);
}

.motto-card p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  margin: 0;
  letter-spacing: -0.02em;
}

/* 组织区域 - Swiss Style 网格布局 */
.organization-section .container {
  grid-template-rows: auto 1fr;
}

.organization-section h2 {
  grid-column: 1 / -1;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 64px;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

.organizations-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.org-card {
  padding: 40px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  position: relative;
}

.org-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.org-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.org-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.org-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
}

.org-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.org-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 事实区域 - Swiss Style 层次分明 */
.facts-section .container {
  grid-template-rows: auto 1fr;
}

.facts-section h2 {
  grid-column: 1 / -1;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 64px;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

.facts-content {
  grid-column: 1 / -1;
}

.facts-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 8px;
  display: inline-block;
  letter-spacing: -0.02em;
}

.facts-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.facts-content ol {
  margin-left: 32px;
  margin-bottom: 40px;
}

.facts-content li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* 项目区域 - Swiss Style 网格布局 */
.projects-section .container {
  grid-template-rows: auto 1fr;
}

.projects-section h2 {
  grid-column: 1 / -1;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 64px;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

.projects-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.project-card {
  padding: 40px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.project-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.project-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.project-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 时间线区域 - Swiss Style 几何化 */
.timeline-section {
  padding: 128px 0;
}

.timeline-section .container {
  grid-template-rows: auto 1fr auto;
}

.timeline-section h2 {
  grid-column: 1 / -1;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 64px;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

.timeline-container {
  grid-column: 1 / -1;
  overflow: hidden;
}

.timeline-wrapper {
  width: 100%;
}

.timeline-track {
  position: relative;
  display: flex;
  align-items: center;
  min-width: max-content;
  padding: 0 16px;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-border);
  transform: translateY(-50%);
}

.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 80px;
  min-width: 180px;
}

.timeline-node:last-child {
  margin-right: 0;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  /* 移除圆角，使用直角 */
  background-color: var(--color-primary);
  border: 4px solid var(--color-background);
  z-index: 1;
  margin-bottom: 24px;
}

.timeline-card {
  padding: 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  text-align: center;
  width: 100%;
}

.timeline-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.timeline-content {
  font-size: 0.875rem;
  line-height: 1.4;
}

.timeline-scroll-hint {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.scroll-hint {
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-primary);
  background-color: transparent;
  color: var(--color-primary);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-hint:hover {
  background-color: var(--color-primary);
  color: white;
}

/* 联系区域 - Swiss Style 简洁功能 */
.contact-section .container {
  grid-template-rows: auto 1fr;
}

.contact-section h2 {
  grid-column: 1 / -1;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 64px;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

.contact-form {
  grid-column: 1 / -1;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#message-input {
  width: 100%;
  min-height: 200px;
  padding: 24px;
  border: 2px solid var(--color-border);
  background-color: var(--color-background);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.3s ease;
  font-family: inherit;
}

#message-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 166, 126, 0.1);
}

#send-button {
  align-self: flex-start;
  padding: 16px 40px;
  background-color: var(--color-primary);
  color: white;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

#send-button:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

/* 结束区域 - Swiss Style 简洁收尾 */
.ending-section {
  padding: 128px 0;
  background-color: var(--color-surface);
  text-align: center;
}

.ending-section .container {
  grid-template-columns: 1fr;
}

.ending-text {
  grid-column: 1 / -1;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.footer-text {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* 响应式设计 - Swiss Style 适应性 */
@media (max-width: 1200px) {
  .container {
    max-width: 1024px;
    gap: 24px;
    padding: 0 24px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .hero-section {
    padding: 160px 0;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 768px;
    gap: 20px;
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .section {
    padding: 64px 0;
  }
  
  .hero-section {
    padding: 128px 0;
  }
  
  .motto-card {
    padding: 48px;
  }
  
  .motto-card p {
    font-size: 1.25rem;
  }
  
  .organizations-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .org-card,
  .project-card {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    gap: 16px;
    padding: 0 16px;
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .hero-section {
    padding: 96px 0;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-avatar {
    margin-bottom: 48px;
  }
  
  .avatar-image {
    width: 200px;
    height: 200px;
  }
  
  .motto-section {
    padding: 80px 0;
  }
  
  .motto-card {
    padding: 32px;
  }
  
  .motto-card p {
    font-size: 1.125rem;
  }
  
  .organizations-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .org-card,
  .project-card {
    padding: 24px;
  }
  
  .timeline-node {
    margin-right: 48px;
    min-width: 140px;
  }
  
  .timeline-card {
    padding: 16px;
  }
  
  .timeline-date {
    font-size: 0.75rem;
  }
  
  .timeline-content {
    font-size: 0.75rem;
  }
  
  .contact-form {
    gap: 24px;
  }
  
  #message-input {
    min-height: 150px;
    padding: 16px;
  }
  
  #send-button {
    padding: 12px 32px;
  }
  
  .ending-section {
    padding: 80px 0;
  }
  
  .ending-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 32px 0;
  }
  
  .hero-section {
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-avatar {
    margin-bottom: 32px;
  }
  
  .avatar-image {
    width: 150px;
    height: 150px;
  }
  
  .motto-card {
    padding: 24px;
  }
  
  .motto-card p {
    font-size: 1rem;
  }
  
  .org-card,
  .project-card {
    padding: 16px;
  }
  
  .timeline-node {
    margin-right: 32px;
    min-width: 120px;
  }
  
  .timeline-card {
    padding: 12px;
  }
  
  .contact-form {
    gap: 16px;
  }
  
  #message-input {
    min-height: 120px;
    padding: 12px;
  }
  
  #send-button {
    padding: 10px 24px;
  }
  
  .ending-section {
    padding: 64px 0;
  }
  
  .ending-text {
    font-size: 1.125rem;
  }
}

/* 动画效果 - Swiss Style 简洁过渡 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 0.8s ease-out;
}

/* 工具类 - Swiss Style 实用工具 */
.text-primary {
  color: var(--color-primary);
}

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.font-normal {
  font-weight: 400;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mt-6 { margin-top: 64px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mb-6 { margin-bottom: 64px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.p-5 { padding: 48px; }
.p-6 { padding: 64px; }

/* 响应式字体大小 */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }
}
