/* 
  全局视觉设计说明：
  - 背景：暖调米白 (#FAF9F6)，模拟纸张质感
  - 文字：油墨黑 (#1A1A1A)，高对比度锐度
  - 点缀色：暗林绿 (#4F6F52)，仅用于必要强调
  - 风格：硬核纸质杂志感，直角、细边框、强调排版
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #1a1a1a;
  background-color: #faf9f6;
}

body {
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* 头部：去 AI 化处理，移除模糊，改用实体边框 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #1a1a1a;
  background: #faf9f6;
}

.site-header-minimal {
  position: static;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  padding: 2px 6px;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 11px;
  opacity: 0.7;
}

.brand-compact {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  letter-spacing: 0.05em;
  font-weight: 600;
  border-bottom: 2px solid #1a1a1a;
}

/* 导航交互组件 */

.mobile-menu-toggle {
  display: none; /* 默认隐藏，仅在移动端显示 */
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1100; /* 确保在菜单之上 */
}

.menu-bar {
  width: 24px;
  height: 2px;
  background-color: #1a1a1a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* 汉堡菜单激活动画 (X 形状) */
.mobile-menu-toggle.active .menu-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.mobile-menu-toggle.active .menu-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px; /* 统一缩小，增加精致感 */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link-button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

.user-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
  box-shadow: 2px 2px 0 #1a1a1a;
  padding: 6px 14px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.1s;
  user-select: none;
}

/* 彻底移除异常字符方框，改用纯 CSS 绘制 (Auth Icon Fix) */
.user-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4f6f52; /* 暗林绿方块 */
  flex-shrink: 0;
  border-radius: 0;
}

.nav-user-name {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* 状态灯容器优化 */
.nav-user {
  display: flex;
  align-items: center;
}

.user-badge:hover {
  transform: translate(1px, 1px);
  box-shadow: none;
}

/* 下拉菜单 (Menu Aesthetics Refined) */
.user-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  right: -1.5px;
  min-width: 180px;
  background-color: #faf9f6; /* 与主体卡片背景一致 */
  border: 2px solid #1a1a1a; /* 直角厚边框，与主体对齐 */
  box-shadow: 12px 12px 0 #1a1a1a; /* 极厚的阴影，体现最高悬浮层级 */
  display: none;
  flex-direction: column;
  z-index: 2000; /* 确保高于页面上所有卡片 (.section-expert) */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}

/* 修复交互死区：透明桥接层 */
.user-dropdown::before {
  content: "";
  position: absolute;
  top: -15px; /* 向上延伸覆盖空隙 */
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

/* 使用 .active 类名控制显示，配合 JS 优化 */
.user-badge.active .user-dropdown {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* 兼容 hover 状态 (可选，但建议保留以增强体验) */
.user-badge:hover .user-dropdown {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-item {
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  cursor: pointer;
  transition: background 0.1s;
}

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

.dropdown-item:hover {
  background-color: #1a1a1a;
  color: #faf9f6;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #1a1a1a;
  transition: width 0.1s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-accent {
  color: #4f6f52;
}

/* 页面结构与留白 */

.site-main {
  padding: 60px 20px 80px;
}

.section {
  padding: 32px 0 48px;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-about {
  padding-top: 40px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 40px;
}

.about-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 600;
}

.about-body {
  font-size: 16px;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 0 20px;
}

.section-header-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 8px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-caption {
  font-size: 12px;
  opacity: 0.8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* 文章列表重构：杂志级分栏 */

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* 首篇文章置顶 */
.article-grid .article-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 2px solid #1a1a1a;
  border-radius: 0;
  box-shadow: none;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.article-grid .article-card:first-child .article-card-title {
  font-size: 36px;
  line-height: 1.1;
}

.article-grid .article-card:first-child .article-card-summary {
  font-size: 16px;
  margin-top: 12px;
}

.article-card {
  background: none;
  border-radius: 0;
  border: none;
  border-top: 1px solid #1a1a1a;
  padding: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #1a1a1a;
  background-color: #ffffff;
  padding-left: 12px;
  padding-right: 12px;
  margin-left: -12px;
  margin-right: -12px;
}

.article-card-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}

.article-card-summary {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.article-card-meta {
  font-size: 12px;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: auto;
  opacity: 0.9;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-card-category {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-empty {
  margin-top: 24px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* 表单与按钮：触感信纸风格 */

.ticket-form,
.admin-form {
  max-width: 680px;
}

.form-row {
  margin-bottom: 24px;
}

.form-row-inline {
  display: flex;
  align-items: center;
  gap: 24px;
}

.form-label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #1a1a1a;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #1a1a1a;
  background: transparent;
  font-size: 15px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus,
.form-textarea:focus {
  background-color: #f0f0f0;
  border: 1px solid #1a1a1a;
  padding-left: 12px;
  padding-right: 12px;
  outline: none;
}

.form-textarea {
  line-height: 1.6;
}

.form-textarea.monospace {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
}

.form-checkbox {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.form-status {
  font-size: 13px;
  color: #333;
  font-style: italic;
}

.btn-primary,
.btn-ghost {
  border-radius: 0;
  font-size: 13px;
  padding: 8px 20px;
  border: 1px solid #1a1a1a;
  cursor: pointer;
  background: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.1s;
}

.btn-primary {
  background: #1a1a1a;
  color: #faf9f6;
}

.btn-primary:hover {
  background: #4f6f52;
  border-color: #4f6f52;
}

.btn-ghost {
  color: #1a1a1a;
}

.btn-ghost:hover {
  background: #1a1a1a;
  color: #faf9f6;
}

/* 工单提交成功状态 */
.ticket-success-card {
  text-align: center;
  padding: 60px 20px;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon {
  font-size: 48px;
  color: #4f6f52;
  margin-bottom: 20px;
  display: block;
}

.success-title {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.success-body {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  max-width: 400px;
  margin: 0 auto 32px;
}

/* 项目展示 (The Works Grid) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.project-item {
  background: #faf9f6;
  border: 2px solid #1a1a1a;
  padding: 24px;
  box-shadow: 4px 4px 0 #1a1a1a;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.project-featured {
  grid-column: 1 / -1;
  background-color: #ffffff;
}

.project-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #1a1a1a;
}

.project-name {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
}

.project-featured .project-name {
  font-size: 32px;
}

.project-pain {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
  font-style: italic;
}

/* 交互式履历时间轴 (Hardcore Timeline) */
.timeline-container {
  position: relative;
  padding-left: 32px;
  margin-top: 24px;
}

.timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #1a1a1a;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: #faf9f6;
  border: 1px solid #1a1a1a;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-item.active::before {
  background: #4f6f52; /* 暗绿色指示灯 */
  border-color: #4f6f52;
  box-shadow: 0 0 0 4px #faf9f6, 0 0 0 5px #4f6f52;
  width: 8px;
  height: 8px;
}

.timeline-date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.timeline-event {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.timeline-desc {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* 社交与代码平台锚点 (Trust Anchors) */
.social-links {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  vertical-align: middle;
}

.social-anchor {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  transition: all 0.2s;
  padding: 5px;
}

.social-anchor svg {
  width: 100%;
  height: 100%;
}

.social-anchor:hover {
  background-color: #1a1a1a;
  color: #faf9f6;
  transform: translateY(-2px);
}

/* 页脚 */

.site-footer {
  border-top: 1px solid #1a1a1a;
  padding: 32px 20px 48px;
  background: #faf9f6;
}

.site-footer-minimal {
  border-top: none;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-separator {
  opacity: 0.3;
}

.link-muted {
  font-size: 13px;
  color: #1a1a1a;
  text-decoration: underline;
}

.link-muted:hover {
  color: #4f6f52;
}

/* 文章阅读：杂志级排版 */

.article-main {
  padding: 48px 20px 80px;
}

.article-container {
  max-width: 680px;
  margin: 0 auto;
}

.article-layout-narrow {
  max-width: 580px;
}

.article-layout-wide {
  max-width: 800px;
}

.article-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 48px;
  line-height: 1.1;
  margin: 12px 0 20px;
  font-weight: 600;
}

.article-meta {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
  margin-bottom: 32px;
}

.article-meta-separator {
  opacity: 0.3;
}

.article-like-btn,
.article-share-btn {
  font-size: 11px;
  padding: 4px 12px;
}

.article-content {
  margin-top: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #1a1a1a;
}

/* 首字下沉 Drop Cap */
.article-content > p:first-of-type::first-letter {
  font-family: "Playfair Display", serif;
  float: left;
  font-size: 4.5rem;
  line-height: 1;
  margin: 0.5rem 0.75rem 0 0;
  font-weight: 600;
  color: #1a1a1a;
}

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

.article-content h1,
.article-content h2,
.article-content h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
  margin: 40px 0 16px;
  font-weight: 600;
  line-height: 1.2;
}

.article-content h1 {
  font-size: 32px;
}

.article-content h2 {
  font-size: 26px;
}

.article-content h3 {
  font-size: 20px;
}

.article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  background: #f0f0f0;
  padding: 2px 4px;
}

.article-content pre {
  padding: 20px;
  border-radius: 0;
  background: #1a1a1a;
  color: #faf9f6;
  overflow-x: auto;
  font-size: 14px;
  margin: 24px 0;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 24px;
}

.article-content blockquote {
  margin: 32px 0;
  padding: 0 24px;
  border-left: 3px solid #1a1a1a;
  color: #333;
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
}

/* 评论区域 */

.article-comments {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 2px solid #1a1a1a;
}

.comment-list {
  margin-bottom: 32px;
}

.comment-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid #1a1a1a;
  background: #ffffff;
  box-shadow: 4px 4px 0 #1a1a1a;
}

.comment-item-child {
  margin-top: 16px;
  margin-bottom: 0;
  box-shadow: 2px 2px 0 #1a1a1a;
  background: #faf9f6;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border: 1px solid #1a1a1a;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content-wrap {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.comment-content {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  word-wrap: break-word;
}

.comment-actions {
  margin-top: 12px;
}

.comment-actions button {
  background: none;
  border: none;
  color: #4f6f52;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.comment-actions button:hover {
  color: #1a1a1a;
}

.comment-children {
  margin-top: 20px;
  width: 100%;
}

/* 后台布局 (Modular Refactor) */

.page-admin {
  background-color: #faf9f6;
}

.admin-shell {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

.admin-panel {
  max-width: 400px;
  margin: 0 auto;
  background: #faf9f6;
  border: 2px solid #1a1a1a;
  padding: 32px;
  box-shadow: 8px 8px 0 #1a1a1a;
}

.admin-title {
  font-size: 24px;
  margin: 0 0 32px;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-main-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.admin-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.admin-layout-modular {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.admin-sidebar {
  padding: 24px 16px;
  background: #ffffff;
}

.admin-content-area {
  display: flex;
  flex-direction: column;
}

.admin-tab {
  display: none;
  padding: 32px;
  background: #ffffff;
  min-height: 600px;
}

.admin-tab-active {
  display: block;
}

.admin-module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 16px;
}

.module-title {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-nav-item {
  border: 1.5px solid #1a1a1a;
  background: #ffffff;
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.1s;
  box-shadow: 2px 2px 0 #1a1a1a;
}

.admin-nav-item:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #1a1a1a;
}

.admin-nav-item-active {
  background: #1a1a1a;
  color: #faf9f6;
  transform: translate(1px, 1px);
  box-shadow: none !important;
}

.admin-content {
  border: none;
  padding: 0;
}

.admin-toolbar {
  margin-bottom: 0;
}

.admin-split {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
}

.admin-list,
.admin-list-full {
  border: 1px solid #1a1a1a;
  background: transparent;
}

.admin-list-item {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.1s;
}

.admin-list-item-active {
  background: #f0f0f0;
}

.admin-editor-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Magazine Editor - Modernized Integration */
.magazine-editor {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 10px 0;
  border: 2px solid #1a1a1a;
  box-shadow: 4px 4px 0 #faf9f6, 8px 8px 0 #1a1a1a;
  background: #faf9f6;
}

.editor-menu-bar {
  display: flex;
  padding: 8px 16px;
  border-bottom: 1px solid #1a1a1a;
  background: #f0efeb;
  gap: 20px;
}

.menu-item {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  padding-bottom: 2px;
}

.menu-item:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #faf9f6;
  border: 2px solid #1a1a1a;
  box-shadow: 4px 4px 0 #1a1a1a;
  z-index: 10;
  min-width: 150px;
}

.menu-item:hover .menu-dropdown {
  display: flex;
  flex-direction: column;
}

.menu-dropdown button {
  background: none;
  border: none;
  border-bottom: 1px solid #eee;
  padding: 8px 12px;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0;
}

.menu-dropdown button:hover {
  background: #1a1a1a;
  color: #faf9f6;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #1a1a1a;
  background: #fff;
}

.btn-tool {
  background: none;
  border: 1px solid transparent;
  padding: 4px 8px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.1s;
  border-radius: 0;
}

.btn-tool:hover {
  border-color: #1a1a1a;
  background: #f0f0f0;
}

.editor-paper {
  padding: 40px;
  min-height: 500px;
  background: #faf9f6;
  cursor: text;
}

.editor-canvas {
  outline: none;
  min-height: 400px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #1a1a1a;
}

.editor-canvas[contenteditable]:empty:before {
  content: attr(placeholder);
  color: #aaa;
  font-style: italic;
}

.editor-canvas h1, .editor-canvas h2 {
  font-family: "Playfair Display", serif;
}

.editor-canvas pre {
  font-family: ui-monospace, monospace;
  background: #1a1a1a;
  color: #faf9f6;
  padding: 16px;
}

.editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: #f0efeb;
  border-top: 1px solid #1a1a1a;
}

.editor-breadcrumbs {
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  color: #666;
}

.editor-word-count {
  font-size: 11px;
  color: #666;
}

.admin-editor-preview-pane {
  border-radius: 0;
  border: 1px solid #1a1a1a;
  background: #faf9f6;
  padding: 16px;
}

.admin-editor-upload-btn {
  border-radius: 0;
  border: 1px solid #1a1a1a;
  background: #faf9f6;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

/* 认证模态框与 Toast */

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.auth-modal-open {
  display: flex;
}

.auth-modal-dialog {
  width: 100%;
  max-width: 400px;
  background: #faf9f6;
  border: 2px solid #1a1a1a;
  border-radius: 0;
  padding: 32px;
  box-shadow: 12px 12px 0 #1a1a1a;
  position: relative;
}

.auth-modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: none;
  background: none;
  font-size: 24px;
  color: #1a1a1a;
  font-weight: 600;
  cursor: pointer;
}

.auth-modal-header {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.auth-tab {
  flex: 1;
  border: none;
  background: none;
  padding: 8px 0;
  cursor: pointer;
  border-radius: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid transparent;
  transition: all 0.1s;
}

.auth-tab-active {
  border-bottom: 2px solid #1a1a1a;
}

.auth-form {
  margin-top: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #faf9f6;
  border-radius: 0;
  padding: 8px 20px;
  font-weight: 500;
  border: 1px solid #faf9f6;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
}

.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.profile-panel {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: flex-end;
  z-index: 100;
}

.profile-panel-inner {
  width: 400px;
  max-width: 100%;
  background: #faf9f6;
  border-left: 2px solid #1a1a1a;
  box-shadow: none;
  padding: 32px;
  overflow-y: auto;
  position: relative;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.profile-title {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  border: none;
  padding: 0;
}

.profile-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #1a1a1a;
  line-height: 1;
  padding: 0;
}

.profile-section {
  border-top: 1px solid #e0e0e0;
  padding: 24px 0;
}

.profile-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.profile-section-title {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.btn-text {
  background: none;
  border: none;
  color: #4f6f52;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-text:hover {
  color: #1a1a1a;
}

.form-input-readonly {
  font-size: 15px;
  padding: 8px 0;
  color: #666;
  border-bottom: 1px solid #e0e0e0;
}

/* 个人信息表单滑出动画 (Slide Animation) */
.profile-form-container {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.profile-form-container.active {
  grid-template-rows: 1fr;
  margin-top: 16px;
}

.profile-form-inner {
  min-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.profile-form-container.active .profile-form-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* 自定义文件上传重构 (Upload UI Fix) */
.avatar-upload-row {
  margin-bottom: 24px;
}

.custom-file-upload {
  display: flex;
  flex-direction: column; /* 垂直排列，防止 Flex 挤压 */
  gap: 12px;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 32px 16px;
  border: 1px dashed #1a1a1a; /* 虚线矩形区域 */
  background: rgba(26, 26, 26, 0.02);
  transition: all 0.2s;
  text-align: center;
}

.file-upload-label:hover {
  background: rgba(26, 26, 26, 0.05);
}

.file-upload-label::before {
  content: "投递稿件 / 选择文件";
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.file-name-display {
  font-size: 12px;
  color: #666;
  font-style: italic;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* 个人资料面板头像上传样式优化 */
.profile-avatar-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}

.profile-avatar-preview {
  width: 80px;
  height: 80px;
  border: 1.5px solid #1a1a1a;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 249, 246, 0.8);
  display: none;
  align-items: flex-end;
}

.avatar-progress-bar {
  width: 0;
  height: 4px;
  background: #4f6f52;
  transition: width 0.3s ease;
}

.profile-avatar-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 密码强度进度条样式 */
.password-strength-container {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
}

.password-strength-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  display: block;
}

.strength-weak { background-color: #ff4d4d; width: 33.33% !important; }
.strength-medium { background-color: #ffcc00; width: 66.66% !important; }
.strength-strong { background-color: #4f6f52; width: 100% !important; }

/* 专家级报刊栅格系统布局 - 最终版 (Refactored) */

.brutal-card {
  background: #faf9f6; /* 纸张色 */
  border: 2px solid #1a1a1a; /* 油墨黑 */
  box-shadow: 4px 4px 0 #faf9f6, 8px 8px 0 #1a1a1a; /* 双层投影 */
  position: relative;
  border-radius: 0 !important;
}

/* Quill Brutalist 重构 (Quill UI Reset) */
.ql-toolbar.ql-snow {
  border: none !important;
  border-bottom: 1.5px solid #1a1a1a !important;
  background-color: #faf9f6 !important;
  padding: 12px !important;
}

.ql-container.ql-snow {
  border: none !important;
  font-family: "Inter", sans-serif !important;
  font-size: 16px !important;
  min-height: 400px;
}

.ql-editor {
  padding: 40px !important;
  line-height: 1.8 !important;
  background-color: #faf9f6 !important;
}

/* 移除所有圆角 */
.ql-snow *, .ql-snow::before, .ql-snow::after {
  border-radius: 0 !important;
}

/* 工具栏按钮定制 */
.ql-snow .ql-toolbar button, 
.ql-snow.ql-toolbar button {
  border: 1px solid transparent !important;
  margin-right: 4px !important;
  transition: all 0.1s !important;
}

.ql-snow .ql-toolbar button:hover,
.ql-snow.ql-toolbar button:hover,
.ql-snow .ql-toolbar button.ql-active,
.ql-snow.ql-toolbar button.ql-active {
  border-color: #1a1a1a !important;
  background-color: #1a1a1a !important;
  color: #faf9f6 !important;
}

.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button.ql-active .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke {
  stroke: #faf9f6 !important;
}

.ql-snow .ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow .ql-toolbar button.ql-active .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill {
  fill: #faf9f6 !important;
}

/* 内容仿真：首字下沉与标题 */
.ql-editor h1, .ql-editor h2, .ql-editor h3 {
  font-family: "Playfair Display", serif !important;
  font-weight: 600 !important;
  margin-top: 1.5em !important;
  margin-bottom: 0.5em !important;
  color: #1a1a1a !important;
}

.ql-editor p:first-of-type::first-letter {
  font-family: "Playfair Display", serif;
  float: left;
  font-size: 3.5rem;
  line-height: 1;
  margin: 0.5rem 0.75rem 0 0;
  font-weight: 600;
  color: #1a1a1a;
}

/* 修复编辑器弹出层（链接/图片） */
.ql-snow .ql-tooltip {
  background-color: #faf9f6 !important;
  border: 2px solid #1a1a1a !important;
  box-shadow: 8px 8px 0 #1a1a1a !important;
  padding: 15px !important;
  z-index: 2000 !important;
}

.ql-snow .ql-tooltip input[type=text] {
  border: none !important;
  border-bottom: 1.5px solid #1a1a1a !important;
  background: transparent !important;
  font-family: "Inter", sans-serif !important;
}

.upper-tier-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* 1.5 : 1 比例 */
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto 60px;
  align-items: stretch; /* 强制等高对齐 */
}

.lower-tier-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center; /* 居中对齐 */
  padding-bottom: 80px;
}

.section-expert {
  background: #faf9f6; /* 纸张色 */
  border: 2px solid #1a1a1a; /* 油墨黑 */
  box-shadow: 4px 4px 0 #faf9f6, 8px 8px 0 #1a1a1a; /* 双层投影 */
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-inner {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-inner-large {
  padding: 40px; /* 模拟正式书信的留白感 */
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 上层卡片特定样式 */
.tech-stack-card,
.articles-preview-card {
  height: 100%; /* 配合 stretch */
}

/* 占位符美化: 虚线边框 */
.article-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #1a1a1a;
  margin-top: 24px;
  min-height: 200px;
  color: #666;
  font-style: italic;
  background: rgba(26, 26, 26, 0.02);
}

/* 下层工单卡片收缩 */
.ticket-card-final {
  width: 100%;
  max-width: 850px; /* 限制在 850px */
}

/* 工单表单精修 */
.ticket-form-final {
  width: 100%;
  margin: 0 auto;
}

.form-footer-final {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-primary-expert {
  background: #1a1a1a;
  color: #faf9f6;
  border: 2px solid #1a1a1a;
  padding: 12px 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary-expert:hover {
  background: #faf9f6;
  color: #1a1a1a;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #1a1a1a;
}

/* 导航栏认证模块美化 (Refactored v4) */

.nav-auth-badge {
  background: #ffffff;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
  box-shadow: 2px 2px 0 #1a1a1a;
  padding: 6px 14px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-auth-badge:hover,
.user-badge:hover {
  transform: translate(1px, 1px);
  box-shadow: none !important;
}

/* 响应式布局适配系统 (Refactored v4) */

/* 1. 桌面端 (Desktop > 1024px) */
@media (min-width: 1025px) {
  .header-inner {
    max-width: 1200px; /* 与 site-main 保持一致 */
    padding: 24px 20px;
    display: grid; /* 采用与主体一致的栅格 */
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
  }

  .nav-main {
    justify-content: flex-start; /* 让导航从右侧分栏的起始线对齐 */
  }

  .site-main {
    max-width: 1200px; /* 稍微放宽一点点 */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* 左右分栏 1.2 : 0.8 */
    gap: 32px;
    padding: 60px 20px 80px;
    align-items: stretch; /* 核心：强制所有网格项拉伸对齐 */
  }

  .section-intro {
    grid-column: 1 / -1;
  }

  .tech-stack-card,
  .articles-preview-card {
    height: 100%; /* 配合 grid 的 stretch 使卡片填满高度 */
    display: flex;
    flex-direction: column;
  }

  .section-expert {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .card-inner {
    flex: 1; /* 确保内部容器也填满 */
    display: flex;
    flex-direction: column;
  }

  .ticket-card-final {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 800px; /* 限制在 800px */
    margin: 40px auto;
  }
}

/* 2. 平板端 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .site-main {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 1:1 对等分栏 */
    gap: 20px;
    padding: 40px 20px;
  }

  .section-intro, .ticket-card-final {
    grid-column: 1 / -1;
  }

  .nav-main {
    font-size: 11px;
  }
}

/* 3. 移动端 (Mobile < 768px) */
@media (max-width: 767px) {
  body {
    overflow-x: hidden; /* 全局防止横向滚动 */
  }

  .about-title {
    font-size: 1.8rem !important; /* 限制 H1 标题字号最大为 1.8rem */
  }

  .site-main {
    display: block; /* 流式堆叠 */
    padding: 20px;
  }

  .section-expert {
    margin-bottom: 20px; /* 间距缩小至 20px */
    /* 修正: 移动端阴影防溢出补丁 */
    box-shadow: 2px 2px 0 #faf9f6, 4px 4px 0 #1a1a1a; 
  }

  .card-inner, .card-inner-large {
    padding: 20px; /* Padding 降至 20px */
  }

  /* 导航侧边栏化 */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #faf9f6;
    border-left: 2px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links-wrapper.active {
    right: 0;
  }

  .nav-link, 
   .nav-user-name,
   .user-badge,
   .nav-auth-badge {
     font-size: 14px !important; /* 移动端增大字号，确保大小相等 */
     letter-spacing: 0.1em;
   }

  /* 表单优化 */
  .form-input, .form-textarea {
    font-size: 16px;
  }

  /* 项目网格移动端塌陷 */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-name {
    font-size: 20px;
  }

  .project-featured .project-name {
    font-size: 24px;
  }
}

/* 交互反馈：按压感 */
.section-expert:active,
.btn-primary:active,
.btn-primary-expert:active,
.user-badge:active,
.nav-auth-badge:active {
  transform: translate(2px, 2px);
  box-shadow: none !important;
}

/* 确保所有元素无圆角 */
*, *::before, *::after {
  border-radius: 0 !important;
}

.form-input, .form-textarea {
  border: none;
  border-bottom: 1px solid #1a1a1a;
  background: transparent;
  outline: none;
}

/* 其余装饰性样式保留 */
.card-footer-decoration {
  margin-top: auto;
  padding-top: 24px;
}

.motto-horizontal {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  color: #999;
}

.motto-line-short {
  flex: 1;
  height: 1px;
  background: #eee;
}

.article-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-placeholder-expert {
  border: 2px dashed #1a1a1a;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 16px;
  opacity: 0.4;
  flex: 1; /* 填充卡片高度 */
  min-height: 120px;
}

.placeholder-tag {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.placeholder-main {
  font-family: "Playfair Display", serif;
  font-weight: bold;
  font-size: 14px;
}

/* 首字下沉与文字排版 */

.drop-cap p:first-of-type::first-letter {
  font-family: "Playfair Display", serif;
  float: left;
  font-size: 3.5rem;
  line-height: 1;
  margin: 0.5rem 0.75rem 0 0;
  font-weight: 600;
  color: #1a1a1a;
}

.tech-stack-content p {
  font-size: 15px;
  line-height: 2.0; /* 增加行高，提升呼吸感 */
  margin-bottom: 24px;
  color: #333;
}

/* 标签优化：打字机/索引卡风格 */

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.tech-tag {
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid #1a1a1a; /* 统一使用油墨黑 */
  background: transparent;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  cursor: default;
}

.tech-tag:hover {
  background: #1a1a1a;
  color: #faf9f6;
}

/* 技术栈内容增强样式 */
.tech-group {
  margin-top: 24px;
}

.tech-group-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  color: #1a1a1a;
  text-transform: uppercase;
}

.group-separator {
  margin: 20px 0;
  opacity: 0.3;
}

/* 熟练度指示器 */
.tech-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #1a1a1a;
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.3;
}

.tech-tag[data-level="2"]::before {
  opacity: 0.6;
}

.tech-tag[data-level="3"]::before {
  opacity: 1;
  background: #4f6f52; /* 高熟练度使用品牌绿 */
}

/* 质检合格盖章 */
.quality-stamp {
  position: absolute;
  top: 60px;
  right: 20px;
  border: 2px dashed #1a1a1a;
  padding: 8px 16px;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: rotate(15deg);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* 最新文章网格律动感 */

.article-grid-rhythm {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* 非对称布局 */
  gap: 32px;
}

.article-card {
  background: #fff;
  border: 1px solid #1a1a1a;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 0 0 #1a1a1a; /* 初始无阴影 */
}

/* 纸张浮动交互：向左上方轻微位移 2px，并显示实色底部投影 */
.article-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #1a1a1a;
  opacity: 1; /* 覆盖之前的 opacity 0.8 */
}

/* 头条模式 (Headline Mode) */
.article-card-headline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
  border-width: 2px;
}

.article-card-headline .article-card-title {
  font-size: 32px;
  line-height: 1.1;
  grid-column: 1;
}

.article-card-headline .article-card-summary {
  grid-column: 2;
  font-size: 16px;
  -webkit-line-clamp: 5; /* 头条摘要允许更长 */
}

.article-card-headline .article-card-meta {
  grid-column: 1 / -1;
  margin-top: 12px;
  border-top: 1px dashed #e0e0e0;
  padding-top: 16px;
}

.article-card-title {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: #1a1a1a;
}

/* 文字溢出处理：限制在 3 行以内 */
.article-card-summary {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-card-meta {
  font-size: 11px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 索引卡式日期 */
.article-date-box {
  border: 1px solid #1a1a1a;
  padding: 2px 6px;
  background: #faf9f6;
  font-family: ui-monospace, monospace;
}

/* 分类标签视觉化 */
.article-card-category {
  color: #4f6f52;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* 阅读进度预测 */
.article-read-time {
  color: #999;
  font-weight: 500;
}

.article-more-link {
  margin-left: auto;
  color: #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}

/* 占位状态的 UI 补偿 (UNDER CONSTRUCTION) */
.article-placeholder {
  grid-column: span 1;
  height: 200px;
  border: 1px dashed #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.02);
}

.placeholder-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.placeholder-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #1a1a1a;
}

.placeholder-line {
  width: 40px;
  height: 1px;
  background: #1a1a1a;
}

.placeholder-sub {
  font-size: 10px;
  color: #999;
  letter-spacing: 0.1em;
}

/* 响应式适配 */

@media (max-width: 1024px) {
  .article-grid-rhythm {
    grid-template-columns: 1fr;
  }

  .article-card-headline {
    grid-template-columns: 1fr;
  }

  .article-card-headline .article-card-title,
  .article-card-headline .article-card-summary {
    grid-column: 1;
  }

  .index-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .asymmetric-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tech-stack-right {
    border-left: none;
    border-top: 1px dashed #ccc;
    padding-left: 0;
    padding-top: 20px;
  }

  .motto-vertical {
    writing-mode: horizontal-tb;
    flex-direction: row;
  }

  .motto-line {
    width: 40px;
    height: 1px;
  }
}

@media (max-width: 768px) {
  .profile-panel-inner {
    width: 100%;
    height: 100%;
    border-left: none;
    padding: 24px;
  }

  .profile-title {
    font-size: 20px;
  }

  .file-name-display {
    max-width: 120px;
  }

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

  .article-card:first-child {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    margin-top: 24px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-split {
    grid-template-columns: 1fr;
  }
}
