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

body {
  font-family:
    "Courier New",
    Courier,
    monospace,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fafafa;
  min-height: 100vh;
}

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

/* Header */
header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #1a1a1a;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: #2563eb;
  border-bottom: 2px solid #2563eb;
}

/* Hero Section */
.hero {
  background: white;
  padding: 80px 0;
  text-align: center;
  margin-top: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  margin-bottom: 3rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #1a1a1a;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
  border: 2px solid #2563eb;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-weight: 700;
  letter-spacing: -1px;
}

.hero .subtitle {
  font-size: 1.3rem;
  color: #2563eb;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero .description {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.cta-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #1a1a1a;
  color: white;
  border: 1px solid #1a1a1a;
}

.btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
}

.btn-secondary:hover {
  background: #1a1a1a;
  color: white;
}

/* Sections */
.section {
  background: white;
  padding: 60px 40px;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
}

.section h2 {
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #2563eb;
  font-weight: 700;
}

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

.project-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.project-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.project-header {
  background: #1a1a1a;
  color: white;
  padding: 20px;
  border-left: 3px solid #2563eb;
}

.project-header h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-family: "Courier New", monospace;
  font-weight: 600;
}

.project-body {
  padding: 20px;
}

.project-description {
  color: #555;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.progress-bar {
  background: #e0e0e0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  background: #2563eb;
  height: 100%;
  border-radius: 4px;
}

.progress-text {
  font-size: 0.9rem;
  color: #2563eb;
  font-weight: bold;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: #e8f0fe;
  color: #2563eb;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #2563eb;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
}

.skill-category h3 {
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-name {
  font-weight: 500;
  color: #1a1a1a;
}

.skill-level {
  width: 100px;
  background: #e0e0e0;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.skill-level-fill {
  background: #2563eb;
  height: 100%;
  border-radius: 3px;
}

/* Blog */
.blog-list {
  list-style: none;
}

.blog-item {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.3s;
  cursor: pointer;
}

.blog-item:last-child {
  border-bottom: none;
}

.blog-item:hover {
  background: #f9f9f9;
  padding-left: 30px;
}

.blog-date {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.2rem;
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-excerpt {
  color: #555;
  font-size: 0.95rem;
}

.blog-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.blog-tag {
  background: #2563eb;
  color: white;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
}

/* Footer */
footer {
  background: #222;
  color: #999;
  padding: 40px 0;
  text-align: center;
  margin-top: 3rem;
}

.footer-content {
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: lightblue;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #2563eb;
}

.beian {
  font-size: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid #444;
}

.beian-info {
  margin: 0.5rem 0;
}

.beian-link {
  color: #2563eb;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .section {
    padding: 40px 20px;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

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

  .footer-links {
    gap: 1rem;
  }
}

/* Code Block */
code,
pre {
  font-family: "Courier New", "Monaco", monospace;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Print */
@media print {
  body {
    background: white;
  }

  .section {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  footer {
    background: white;
    color: #1a1a1a;
  }
}
