
    /* 全局样式 */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      line-height: 1.6;
      color: #333;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }
    
    header {
      padding: 20px 0;
      border-bottom: 1px solid #eee;
      margin-bottom: 30px;
    }
    
    header h1 {
      font-size: 2rem;
    }
    
    a {
      color: #0070f3;
      text-decoration: none;
    }
    
    a:hover {
      text-decoration: underline;
    }
    
    /* 博客列表样式 */
    .post-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 30px;
    }
    
    .post-card {
      border: 1px solid #eee;
      border-radius: 5px;
      padding: 20px;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .post-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .post-card h2 {
      margin-bottom: 10px;
    }
    
    .post-card .date {
      color: #666;
      font-size: 0.9rem;
      margin-bottom: 10px;
    }
    
    .post-card .excerpt {
      margin-bottom: 15px;
    }
    
    .read-more {
      display: inline-block;
      background: #0070f3;
      color: white;
      padding: 8px 16px;
      border-radius: 4px;
      font-weight: 500;
    }
    
    .read-more:hover {
      background: #005cc5;
      text-decoration: none;
    }
    
    /* 详情页样式 */
    .detail-container {
      display: flex;
      min-height: calc(100vh - 150px);
    }
    
    .outline {
      width: 250px;
      padding: 20px;
      border-right: 1px solid #eee;
      overflow-y: auto;
      position: sticky;
      top: 20px;
      max-height: calc(100vh - 40px);
      margin-right: 20px;
    }
    
    .outline-title {
      font-weight: bold;
      font-size: 1.2rem;
      margin-bottom: 15px;
      color: #333;
    }
    
    .outline.collapsed {
      width: 50px;
    }
    
    .outline.collapsed .outline-title {
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      text-align: center;
      height: 100px;
    }
    
    .outline.collapsed .outline-items {
      display: none;
    }
    
    .outline-toggle {
      background: none;
      border: 1px solid #ddd;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.9rem;
      margin-bottom: 10px;
      color: #666;
      padding: 5px 10px;
    }
    
    .outline-items ul {
      list-style: none;
      padding-left: 0;
    }
    
    .outline-items li {
      margin-bottom: 8px;
    }
    
    .outline-items a {
      display: block;
      padding: 5px 0;
      color: #333;
      text-decoration: none;
      border-left: 2px solid transparent;
      padding-left: 10px;
      font-size: 0.95rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    
    .outline-items a:hover, .outline-items a.active {
      border-left-color: #0070f3;
      color: #0070f3;
    }
    
    .outline-items a.h2 { padding-left: 10px; }
    .outline-items a.h3 { padding-left: 20px; }
    .outline-items a.h4 { padding-left: 30px; }
    
    .content {
      flex: 1;
      padding: 20px 30px;
    }
    
    .content h1 {
      font-size: 2.5rem;
      margin-bottom: 20px;
    }
    
    .content .meta {
      color: #666;
      margin-bottom: 30px;
    }
    
    .content .post-body {
      line-height: 1.8;
    }
    
    .content .post-body h2 {
      margin-top: 40px;
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 1px solid #eee;
    }
    
    .content .post-body h3 {
      margin-top: 30px;
      margin-bottom: 15px;
    }
    
    .content .post-body p {
      margin-bottom: 20px;
    }
    
    .content .post-body img {
      max-width: 100%;
      height: auto;
      display: block;
      margin: 30px auto;
    }
    
    .content .post-body pre {
      background: #f6f8fa;
      padding: 15px;
      border-radius: 5px;
      overflow-x: auto;
      margin-bottom: 20px;
    }
    
    .content .post-body code {
      font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
      font-size: 0.9em;
    }
    
    /* 管理页面样式 */
    .admin-container {
      max-width: 800px;
      margin: 0 auto;
    }
    
    .admin-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30px;
    }
    
    .admin-posts {
      margin-bottom: 40px;
    }
    
    .admin-post {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px;
      border-bottom: 1px solid #eee;
    }
    
    .admin-post:last-child {
      border-bottom: none;
    }
    
    .admin-post-title {
      font-weight: 500;
    }
    
    .admin-post-actions {
      display: flex;
      gap: 10px;
    }
    
    .admin-post-actions button {
      background: none;
      border: none;
      cursor: pointer;
      color: #0070f3;
    }
    
    .admin-post-actions button.delete {
      color: #e53e3e;
    }
    
    .admin-form {
      background: #f9f9f9;
      padding: 20px;
      border-radius: 5px;
    }
    
    .form-group {
      margin-bottom: 20px;
    }
    
    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 500;
    }
    
    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-family: inherit;
      font-size: inherit;
    }
    
    .form-group textarea {
      min-height: 200px;
    }
    
    .btn {
      display: inline-block;
      background: #0070f3;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 1rem;
      font-weight: 500;
    }
    
    .btn:hover {
      background: #005cc5;
    }
    
    .btn-secondary {
      background: #666;
    }
    
    .btn-secondary:hover {
      background: #555;
    }
    
    /* 登录页面样式 */
    .login-container {
      max-width: 400px;
      margin: 100px auto;
      padding: 30px;
      border: 1px solid #eee;
      border-radius: 5px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .login-container h1 {
      margin-bottom: 30px;
      text-align: center;
    }
    
    /* 响应式设计 */
    @media (max-width: 768px) {
      .post-list {
        grid-template-columns: 1fr;
      }
      
      .detail-container {
        flex-direction: column;
      }
      
      .outline {
        width: 100%;
        position: relative;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
        margin-bottom: 20px;
      }
      
      .outline.collapsed {
        width: 100%;
        height: 50px;
      }
      
      .outline.collapsed .outline-title {
        writing-mode: horizontal-tb;
        transform: none;
        height: auto;
      }
      
      .content {
        padding: 0;
      }
      
      .admin-post {
        flex-direction: column;
        align-items: flex-start;
      }
      
      .admin-post-actions {
        margin-top: 10px;
      }
    }
    
    /* Markdown编辑器样式 */
    .markdown-tips {
      margin-top: 10px;
      padding: 10px;
      background-color: #f8f9fa;
      border-radius: 5px;
      font-size: 0.9rem;
    }
    
    .markdown-tips ul {
      margin-left: 20px;
      margin-top: 5px;
    }
    
    textarea {
      min-height: 300px;
      font-family: monospace;
    }
    
    /* Markdown样式 */
    .post-body {
      line-height: 1.8;
    }
    
    .post-body h1, .post-body h2, .post-body h3, .post-body h4 {
      margin-top: 24px;
      margin-bottom: 16px;
    }
    
    .post-body p {
      margin-bottom: 16px;
    }
    
    .post-body ul, .post-body ol {
      padding-left: 2em;
      margin-bottom: 16px;
    }
    
    .post-body pre {
      /* 代码块样式 */
      position: relative;
      background-color: #f5f5f5;
      padding: 16px;
      border-radius: 4px;
      overflow-x: auto;
      margin: 20px 0;
      }
      
      code {
      font-family: Consolas, Monaco, 'Andale Mono', monospace;
      }
      
      .copy-btn {
      position: absolute;
      top: 5px;
      right: 5px;
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 4px;
      padding: 4px 8px;
      font-size: 12px;
      cursor: pointer;
      opacity: 0.8;
      transition: opacity 0.2s;
      }
      
      .copy-btn:hover {
      opacity: 1;
      }
      
      .copy-btn.copied {
      background: #4CAF50;
      color: white;
      border-color: #4CAF50;
      }
      background-color: #f5f5f5;
      padding: 2px 4px;
      border-radius: 3px;
    }
    
    .post-body pre code {
      padding: 0;
      background-color: transparent;
    }
    
    /* 代码块语言标识 */
    .post-body pre:before {
      content: attr(data-lang);
      display: block;
      background: #e0e0e0;
      padding: 4px 10px;
      font-size: 0.8em;
      margin-bottom: 10px;
      border-radius: 3px 3px 0 0;
    }
    
    // ... existing code ...
  