* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: repeating-linear-gradient(
        45deg,
        #f8f9fa,
        #f8f9fa 20px,
        #f1f3f5 20px,
        #f1f3f5 40px
    );
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部导航 */
.navbar {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 16px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
}

.navbar-title {
    font-size: 20px;
    font-weight: bold;
}

.navbar-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #1a73e8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a73e8;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* 头部背景样式 */
.header {
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    padding-top: 20px;
    padding-bottom: 80px;
    background-size: cover;
    background-position: center;
    text-shadow: 1px 1px 5px #4f4f4f;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    margin: 0 auto;
    background-color: #f0f0f0;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23cccccc"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.username {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.bio {
    margin: 12px 20px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    max-width: 80%;
    display: inline-block;
}

.content {
    margin-top: 20px;
}

.content h1::before {
    h1: :before;
    content: "# ";
    color: #fb2424;
}

.content h2::before {
    h1: :before;
    content: "## ";
    color: #fb2424;
}

.content h3::before {
    h1: :before;
    content: "### ";
    color: #fb2424;
}

.content a {
    color: #2563eb;
}

/* 内容列表 */
.post-list {
    padding: 0 16px;
    position: relative;
    z-index: 10;
}

.post-item, .login {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.post-item:hover {
    background-color: #fafafa;
}

.time {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.time::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"/></svg>');
    background-size: contain;
    margin-right: 6px;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 13px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

/* 分页按钮 */
.pagination {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.page-btn {
    background-color: #f5f5f5;
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    color: #666;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

a.page-btn {
    text-decoration: none;
}

.page-btn:hover {
    background-color: #e0e0e0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    color: #333;
}

/* 让内容区域自动扩展填充剩余空间 */
.post-list, .login, .admin-content {
    flex: 1;
}

.login {
    display: flex;
    justify-content: center;
}
.login-container {
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-body {
  padding: 30px;
}

.login .form-group {
  margin-bottom: 20px;
  position: relative;
}

.login .form-group label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}

.login .form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.login .form-group input:focus {
  outline: none;
  border-color: #165DFF;
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.2);
}

.login .form-group .icon {
  position: absolute;
  right: 15px;
  top: 38px;
  color: #999;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: #165DFF;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-login:hover {
  background: #0e4fe6;
}

.btn-login:active {
  transform: translateY(1px);
}
























.admin-content {
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.admin-content h1 {
    color: #333333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
    font-size: 24px;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555555;
    font-weight: 500;
}

/* 输入框样式 */
input[type="text"],
input[type="number"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: #4d90fe;
    outline: none;
    box-shadow: 0 0 0 2px rgba(77, 144, 254, 0.2);
}

/* 复选框样式 */
input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

/* 文本区域样式 */
textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.6;
}

/* 小字体说明 */
small {
    display: block;
    margin-top: 5px;
    color: #888888;
    font-size: 12px;
}

/* 按钮样式 */
.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.btn, .btn-danger {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    color: white;
}

.btn {
    background: #4d90fe;
}

.btn-danger {
    background: red;
}


/* 页面字段区域样式 */
#pageFields {
    padding: 15px;
    margin: 15px 0;
    background-color: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}


.btn a, .btn-danger a {
    color: white;
}



































.post-footer {
    font-size: 12px;
    color: #999;
    padding: 0 16px;
    display: flex;
    align-items: center;
    height: 52px;
}










.content img {
    box-shadow: 0 0 4px rgba(0, 0, 0, .4);
    margin: 0 2.5%;
    max-width: 95%;
}







/* 表格外观 */
.admin-table {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 8px;
}

/* 表头 */
.admin-table thead {
    background-color: #4d90fe;
    color: white;
    font-size: 16px;
}

.admin-table th {
    padding: 12px 15px;
    text-align: left;
}

/* 表格内容 */
.admin-table tbody {
    font-size: 14px;
    color: #333;
}

.admin-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* 行悬停效果 */
.admin-table tr:hover {
    background-color: #f1f1f1;
}

/* 最后一行去除下边框 */
.admin-table tr:last-child td {
    border-bottom: none;
}

/* 表格中的列宽设置 */
.admin-table th:nth-child(1),
.admin-table td:nth-child(1) {
    width: 20%;
}

.admin-table th:nth-child(2),
.admin-table td:nth-child(2) {
    width: 30%;
}

.admin-table th:nth-child(3),
.admin-table td:nth-child(3) {
    width: 20%;
}

.admin-table th:nth-child(4),
.admin-table td:nth-child(4) {
    width: 20%;
}

.admin-table th:nth-child(5),
.admin-table td:nth-child(5) {
    width: 10%;
}

/* 隐藏UA列 */
.admin-table td:nth-child(5) {
    display: none;
}

/* 鼠标悬停在IP地址上显示UA列 */
.admin-table td:nth-child(1):hover ~ td:nth-child(5) {
    display: table-cell;
}

/* 适应移动设备 */
@media (max-width: 768px) {
    .admin-table {
        width: 100%;
        margin: 10px;
    }

    .admin-table th, .admin-table td {
        padding: 8px;
        font-size: 12px;
    }

    .admin-table th:nth-child(1),
    .admin-table td:nth-child(1) {
        width: 25%;
    }

    .admin-table th:nth-child(2),
    .admin-table td:nth-child(2) {
        width: 40%;
    }

    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        width: 20%;
    }

    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4) {
        width: 20%;
    }

    .admin-table th:nth-child(5),
    .admin-table td:nth-child(5) {
        display: none;
    }

    .admin-table td:nth-child(1):hover ~ td:nth-child(5) {
        display: table-cell;
    }
}

/* 提示信息样式 */
.admin-table p {
    text-align: center;
    color: #888;
    font-size: 16px;
    padding: 20px;
}
