@import url(https://fonts.googleapis.com/css?family=Raleway:300,400,700);

/********************************************************************
	ZYPOP
	FREE WEB TEMPLATES
********************************************************************/

/* 页面结构和基础元素 */
* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  font-family: "Raleway", "Microsoft YaHei", Arial, "sans-serif";
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  padding: 2rem;
}

.wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

a {
  color: #4d7ea8;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover, a:focus, a:active {
  color: #7ea3c4;
}

/* Profile Image */
#main-profile-image {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 120px;
  height: 120px;
  border: 4px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease;
}

#main-profile-image:hover {
  transform: scale(1.05);
}

#main-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Header */
header {
  text-align: center;
  padding: 0 0 2rem;
}

header h1 {
  color: #2c3e50;
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 2px;
}

header h2 {
  color: #7f8c8d;
  font-size: 1.2rem;
  font-weight: 300;
  margin: 0.5rem 0 0;
}

/* Section */
.link-section {
  margin-bottom: 2.5rem;
}

.link-section h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding-left: 0.5rem;
  border-left: 4px solid #667eea;
}

/* Link Grid */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.link-section:last-child .link-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* 播客栏目特殊样式 */
.link-grid.podcast-grid {
  grid-template-columns: 1fr;
}

.podcast-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.podcast-card .card-title {
  color: #fff;
}

.podcast-card .card-desc {
  color: rgba(255, 255, 255, 0.8);
}

.podcast-card:hover {
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
  transform: translateY(-5px);
}

/* Link Card */
.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  min-height: 120px;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  border-color: #667eea;
}

.link-card:hover .card-title {
  color: #667eea;
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.card-desc {
  font-size: 0.75rem;
  color: #95a5a6;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
  text-align: center;
  font-size: 0.85rem;
  color: #95a5a6;
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: #667eea;
  font-weight: 500;
}

footer a:hover {
  color: #764ba2;
}

footer .quote {
  color: #bdc3c7;
  font-style: italic;
  font-size: 0.8rem;
}

footer .icp {
  font-size: 0.75rem;
}

/* Text Center */
.text-center {
  text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .wrapper {
    padding: 2rem;
  }

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

@media screen and (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .wrapper {
    padding: 1.5rem;
    margin: 0;
    border-radius: 15px;
  }

  header h1 {
    font-size: 2rem;
  }

  header h2 {
    font-size: 1rem;
  }

  #main-profile-image {
    position: relative;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
  }

  .link-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .link-card {
    padding: 1rem;
    min-height: 80px;
  }

  .card-icon {
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-desc {
    font-size: 0.7rem;
  }
}

@media screen and (max-width: 480px) {
  .wrapper {
    padding: 1rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header h2 {
    font-size: 0.85rem;
  }

  #main-profile-image {
    width: 80px;
    height: 80px;
  }

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

  .link-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1rem;
    min-height: auto;
    gap: 1rem;
  }

  .card-icon {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  .card-title {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .card-desc {
    display: none;
  }
}
