* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6fb;
  color: #1f2430;
}

.page {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: flex;
  gap: 24px;
}

.profile {
  flex: 0 0 30%;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(31, 36, 48, 0.08);
}

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

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e8ecf5;
}

.name {
  margin: 16px 0 4px;
  font-size: 28px;
  text-align: center;
}

.tagline {
  text-align: center;
  color: #5b657a;
  margin-bottom: 24px;
}

.info-card {
  background: #f8f9fe;
  padding: 18px;
  border-radius: 16px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 18px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2c3444;
  font-size: 14px;
}

.icon {
  width: 20px;
  height: 20px;
  color: #5a66f0;
  flex-shrink: 0;
}

.articles {
  flex: 1;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(31, 36, 48, 0.08);
  min-height: 480px;
}

.articles-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.articles-header h2 {
  margin: 0;
  font-size: 22px;
}

.hint {
  margin: 0;
  color: #7a859c;
  font-size: 13px;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-item {
  display: block;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #eef1f8;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fbfcff;
}

.article-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(31, 36, 48, 0.1);
}

.article-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.article-meta {
  font-size: 12px;
  color: #7a859c;
}

.empty {
  padding: 24px;
  text-align: center;
  color: #7a859c;
  background: #f6f7fc;
  border-radius: 14px;
}

.article-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #5a66f0;
  text-decoration: none;
  font-weight: 600;
}

.article-content {
  margin-top: 16px;
  white-space: normal;
  background: #ffffff;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(31, 36, 48, 0.08);
  line-height: 1.7;
  color: #2c3444;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-content p {
  margin: 0 0 12px;
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
  margin: 0 0 12px;
}

.article-content a {
  color: #5a66f0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(31, 36, 48, 0.12);
}

.article-content blockquote {
  margin: 0 0 12px;
  padding: 10px 16px;
  background: #f5f7ff;
  border-left: 4px solid #5a66f0;
  color: #4b556a;
}

.article-content mark {
  background: #ffe8a3;
  padding: 0 4px;
  border-radius: 4px;
}

.article-content pre {
  background: #1f2430;
  color: #e7e9f3;
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 0 0 12px;
}

.article-content code {
  background: #eef1f8;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.95em;
}

.article-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  display: block;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
  font-size: 14px;
}

.article-content th,
.article-content td {
  border: 1px solid #e0e5f2;
  padding: 8px 10px;
  text-align: left;
}

.article-content thead {
  background: #f5f7ff;
}

.article-content tbody tr:nth-child(even) {
  background: #fafbff;
}

.article-content .task-item {
  list-style: none;
}

.article-content input[type="checkbox"] {
  margin-right: 8px;
}

.article-content .footnotes {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #e6eaf4;
  color: #5b657a;
  font-size: 13px;
}

.article-content .footnotes ol {
  padding-left: 18px;
}

@media (max-width: 960px) {
  .page {
    flex-direction: column;
  }

  .profile,
  .articles {
    width: 100%;
  }
}
