/* 基础样式 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  letter-spacing: 0.01em;
}

/* 导航栏样式 */
.masthead {
  position: relative;
  border-bottom: 1px solid #f2f3f3;
  -webkit-animation: intro 0.3s both;
  animation: intro 0.3s both;
  -webkit-animation-delay: 0.15s;
  animation-delay: 0.15s;
  z-index: 20;
}

.masthead__inner-wrap {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 1em;
}

.masthead__menu {
  width: 100%;
}

.greedy-nav {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2em;
}

.greedy-nav button {
  display: none;
}

.greedy-nav .visible-links {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.greedy-nav .visible-links li {
  display: block;
}

.greedy-nav .visible-links a {
  position: relative;
  margin: 0 1rem;
  padding: 0.5rem 0;
  color: #7a8288;
  text-decoration: none;
}

.greedy-nav .visible-links a:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  background: #7a8288;
  width: 100%;
  transform: scaleX(0) translate3d(0, 0, 0);
  transition: all 0.2s ease-in-out;
}

.greedy-nav .visible-links a:hover:before {
  transform: scaleX(1);
}

.masthead__menu-item--lg a {
  font-weight: bold;
  font-size: 1.2em;
}

/* 主内容区域样式 */
#main {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 2em 1em;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  border-radius: 8px;
}

.page__inner-wrap {
  width: 100%;
  padding-right: 1.5em;
  padding-left: 1.5em;
}

.page__content {
  margin-top: 1.5em;
  padding-top: 1.5em;
}

/* 页脚样式 */
.page__footer {
  margin-top: 3em;
  color: #898c8f;
  -webkit-animation: intro 0.3s both;
  animation: intro 0.3s both;
  -webkit-animation-delay: 0.45s;
  animation-delay: 0.45s;
  background-color: #2c3e50;
  color: #ecf0f1;
  border-top: 1px solid #34495e;
  padding: 1em 0;
}

.page__footer footer {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 2em 1em;
}

.page__footer-copyright {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8em;
  text-align: center;
}

/* Framework 部分样式 */
.framework-section {
  text-align: center;
  margin: 2.5em 0;
  padding: 1.5em;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.framework-description {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 1em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 作者信息样式 */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5em;
  margin-top: 2.5em;
}

.author-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5em;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  border: 1px solid #f0f0f0;
}

.author-info:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

.author-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.2em;
  border: 4px solid #f8f9fa;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.author-details {
  width: 100%;
}

.author-details h3 {
  margin: 0.5em 0;
  font-size: 1.3em;
  font-weight: 600;
  color: #2c3e50;
}

.author-links {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 1em;
}

.author-links a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4em 0.8em;
  border-radius: 4px;
  background-color: #f8f9fa;
  transition: all 0.2s ease;
}

.author-links a:hover {
  color: #fff;
  background-color: #3498db;
}

/* 响应式设计 */
@media screen and (min-width: 768px) {
  .page__content {
    padding-right: 2em;
    padding-left: 2em;
  }
}

/* 动画效果 */
@-webkit-keyframes intro {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes intro {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}