﻿/*
Theme Name: awei
Theme URI: https://022330.xyz
Description: awei博客主题
Author: awei
Author URI: https://022330.xyz
Version: 2.5
*/

/* 非授权，不得使用！一经发现，必究！！！ */

/* 以下粘贴你的所有CSS代码（包括Tailwind配置、自定义样式等） */
@layer utilities {
  .content-auto {
    content-visibility: auto;
  }
  .text-balance {
    text-wrap: balance;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

.post-image {
  transition: transform 0.3s ease;
}

.post-image:hover {
  transform: scale(1.02);
}

/* 评论区样式 */
.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
}

.comment-meta {
  margin-bottom: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.comment-author {
  font-weight: bold;
  margin-right: 0.5rem;
}

.comment-reply a {
  color: #000;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid #000;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.comment-reply a:hover {
  background-color: #000;
  color: #fff;
}

/* 注册表单样式 */
#register-form input,
#register-form textarea {
  width: 100%;
}

.error {
  color: #dc3232;
  margin-bottom: 1rem;
}





function register_my_menu() {
  register_nav_menus(array(
    'primary' => '主导航菜单'
  ));
}
add_action('after_setup_theme', 'register_my_menu');








* {
    -webkit-user-select: none; /* Chrome/Safari/Opera */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
    user-select: none; /* 标准语法 */
}



/* 评论区域样式 */
.comments-area {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.comment {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.comment-author .avatar {
    float: left;
    margin-right: 1rem;
    border-radius: 50%;
}

.comment-meta {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.comment-author {
    font-weight: bold;
    color: #333;
}

.comment-content {
    clear: both;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.reply {
    margin-top: 1rem;
}

.comment-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.comment-form input[type="submit"] {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-form input[type="submit"]:hover {
    background: #333;
}

.comment-navigation {
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
}

.comment-navigation a {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.comment-navigation a:hover {
    background: #e5e5e5;
}




