.post-detail {
    background: #f5e9b8;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: center;
}

.post-meta {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    font-family: "宋体", "Times New Roman";
}

/* 封面图 */
.post-cover {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-cover img {
    width: 30%;
    height: auto;
    display: block;
}

/* 文章内容 */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.post-content p {
    font-family: "宋体", "Times New Roman";
    margin-bottom: 1.2rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.post-content code {
    background: black;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Times New Roman', '宋体';
    color: white;
    font-size: 0.9em;
}

.btn-submit {
    padding: 0.8rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer; 
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.button-reply {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
  padding: 0;
  margin-bottom: 1rem;
}

.button-send-reply {
  padding: 0.6rem 1.5rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.button-cancel {
  padding: 0.6rem 1.5rem;
  background: #ddd;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.reply-form {
  display: none;
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.reply-input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

.reply-input-addition {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  resize: vertical;
}

.reply-show {
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  display: flex;
  gap: 0.8rem;
}

.reply-show-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.reply-show-content {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.reply-show-text {
  color: #555;
  line-height: 1;
  word-break: break-word;
  font-size: 0.95rem;
  font-family: "宋体";
}

.comment-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #eee;
}

.comment-area-title {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3498db;
}

.comment-area-count {
  font-size: 1rem;
  color: #999;
}

.comment-avatar {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-form-container {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
}

.comment-form-method-post {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment-form-name-and-email-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.comment-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-form-label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
}

.comment-form-input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: white;
  color: #333;
  transition: all 0.3s;
}

.comment-form-error {
  color: #e74c3c;
  font-size: 0.85rem;
}

.comment-form-content {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: white;
  color: #333;
  resize: vertical;
  min-height: 120px;
  transition: all 0.3s;
  line-height: 1.6;
}

.comment-list {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.commenter-information {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.comment-text {
  color: #555;
  line-height: 1;
  word-break: break-word;
  font-family: "宋体";
}

/* 响应式 */
@media (max-width: 768px) {
    .post-detail {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-meta {
        gap: 1rem;
    }
    
    .post-actions {
        flex-wrap: wrap;
    }
    
    .comment-form {
        flex-direction: column;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }

    div[style*="grid-template-columns: 1fr 1fr"] {
      grid-template-columns: 1fr !important;
    }

    button[type="submit"] {
      width: 100% !important;
    }
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none !important;
  border-color: #667eea !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
  background-color: #fff !important;
}

input[type="text"]:hover,
input[type="email"]:hover,
textarea:hover {
  border-color: #667eea !important;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5) !important;
}

button[type="submit"]:active {
  transform: translateY(0);
}
