/* 全局样式 */
@import url('fonts.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #2c3e50;
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/*
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}*/

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px; 
    width: auto; 
    margin:0 0; 
    object-fit: contain; 
    transition: transform 0.3s ease; 
}

.logo:hover .logo-img {
    transform: scale(1.1);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    transition: width 0.3s ease;
}

.activity {
    color: #3498db;
    border-bottom: 2px solid #2ecc71;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #3498db;
    transform: translateY(-2px);
}

/* 导航栏搜索框 */
.nav-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.nav-search-input {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    width: 150px;
    transition: all 0.3s ease;
}

.nav-search-input:focus {
    outline: none;
    border-color: #3498db;
    width: 200px;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.nav-search-btn {
    padding: 0.5rem 0.8rem;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

main {
    max-width: 1200px;
    margin: 6rem auto 2rem;
    padding: 0 2rem;
}

footer {
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(10px);
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.copyright {
    color: #adb5bd;
}

.copyright a {
    color: #ffffff;
    text-decoration: underline;
}

/* 首页样式 */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
    animation: rotate 20s linear infinite;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    color: #7f8c8d;
    position: relative;
    z-index: 1;
}

.posts article {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.posts article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.posts h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.posts h3 a:hover {
    color: #3498db;
}

.posts h2 {
    margin-bottom: 1rem;
}

.posts p {
    color: #7f8c8d;
    margin: 1rem 0;
}

.posts time {
    color: #95a5a6;
    font-size: 0.9rem;
}

.post-body ol,ul{
    margin-left: 1rem;
}

.post-body hr{
    margin: 0.5rem 0;
}
.post-body table {
  width: 100%;
  max-width: 760px;
  margin: 1rem auto;
  border-collapse: collapse;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.post-body table th {
  background-color: #2d3748;
  color: #ffffff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
}

.post-body table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #333;
  font-size: 1rem;
}

.post-body table tbody tr:hover {
  background-color: #f8fafc;
  transition: background 0.2s ease;
}

.post-body table tbody tr:last-child td {
  border-bottom: none;
}

/* 关于页面样式 */
.about {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.about-intro {
    flex: 1;
    min-width: 0;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 100%;
    margin: 0 0 2rem 0;
    text-align: left;
}

.about h1 {
    display: none;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.about-intro {
    margin-bottom: 2rem;
    text-align: left;
}

.about-intro h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    border-bottom: 3px solid rgba(52, 152, 219, 0.3);
    padding-bottom: 0.5rem;
}

.about-intro h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #34495e;
}

.about-intro p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-intro ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.about-intro li {
    color: #555;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.skill-badge {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
    border: 2px solid rgba(52, 152, 219, 0.3);
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(46, 204, 113, 0.2));
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-card img {
    width: 11.5rem;
}

.contact-card p {
    color: #555;
    margin-bottom: 1rem;
}

.contact-card ul {
    list-style: none;
}

.contact-card li {
    color: #555;
    margin-bottom: 0.8rem;
}

.contact-card a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    color: #2ecc71;
    text-decoration: underline;
}

/* 博客列表样式 */
.blog-list article {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-list article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.blog-list h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-list h2 a:hover {
    color: #3498db;
}

.blog-list p {
    color: #7f8c8d;
    margin: 1rem 0;
}

.blog-list time {
    color: #95a5a6;
    font-size: 0.9rem;
}

/* 文章页面样式 */
.post {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post time {
    color: #95a5a6;
    font-size: 1rem;
    margin-bottom: 2rem;
    display: block;
}

.post p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
}

/* 相册样式 */
.gallery {
    text-align: left;
}

.gallery h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



.gallery-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.gallery-sidebar {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 15px;
    padding: 1.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.gallery-sidebar h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.gallery-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-sidebar li {
    margin-bottom: 0.7rem;
}

.gallery-sidebar .filter-btn {
    width: 100%;
    text-align: left;
    padding: 0.6rem 0.8rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 0.8rem;
    font-weight: 600;
    color: #34495e;
    border-top: 1px solid rgba(52, 152, 219, 0.1);
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.gallery-grid img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* 模态框样式 */
.modal {
    /* 将 display 修改为 flex (或者在 JS 显示时设置为 flex) */
    display: none;

    /* 核心居中代码 */
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */

    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* overflow: auto;  使用 Flex 居中时，通常不再需要 overflow: auto */
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    /* 移除之前的 margin: auto，因为父级 Flex 已经处理了居中 */
    display: block;
    width: 80%;
    max-width: 800px;
    animation: zoomIn 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: #3498db;
    transform: scale(1.1);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    color: #2c3e50;
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 0.2rem;
}

.page-link.active,
.page-link:hover {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    border-color: #3498db;
    transform: translateY(-2px);
}

.page-link:hover {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.page-link.active {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    border-color: #2ecc71;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(149, 165, 166, 0.1);
    border-color: rgba(149, 165, 166, 0.3);
}

.page-ellipsis {
    padding: 0.6rem 0.5rem;
    color: #7f8c8d;
    font-weight: 600;
    user-select: none;
}

.article-item {
    display: block;
    animation: fadeIn 0.3s ease;
}

.article-item.active {
    display: block;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid rgba(52, 152, 219, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

/* 过滤器样式 */
.filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.filter-group h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.category-list,
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.category-tag,
.filter-tag {
    padding: 0.6rem 1.2rem;
    border: 2px solid rgba(52, 152, 219, 0.3);
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    cursor: pointer;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.category-tag:hover,
.filter-tag:hover {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.category-tag.active,
.filter-tag.active {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* 博客列表侧边栏布局 */
.blog-list {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.blog-list>h1 {
    grid-column: 1 / -1;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.filter-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-card h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.icon {
    font-size: 1.3rem;
}

.filter-content {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.filter-btn {
    padding: 0.8rem 1rem;
    border: 2px solid rgba(52, 152, 219, 0.3);
    background: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    cursor: pointer;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    font-size: 0.95rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.filter-btn:hover {
    background: rgba(52, 152, 219, 0.15);
    border-color: #3498db;
    transform: translateX(4px);
}

.filter-btn.active {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    border-color: #3498db;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.tags-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.tags-more {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(52, 152, 219, 0.2);
}

.more-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #2ecc71;
}

.more-link-container {
    margin-top: 1.5rem;
    text-align: center;
}

.more-link-container .more-link {
    font-weight: 700;
    font-size: 1rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.2);
    margin-left: auto;
    margin-right: auto;
    color: #2c3e50;
}

.contact-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.contact-card ul {
    list-style: none;
    margin-top: 0.8rem;
    padding-left: 0;
}

.contact-card li {
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: #3498db;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.comment-form,
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    margin-top: 1.2rem;
    margin-left: auto;
    margin-right: auto;
}

.comment-form h3,
.contact-form h2 {
    margin-bottom: 0.9rem;
    color: #2c3e50;
}

.comment-form label,
.contact-form label {
    display: block;
    text-align: left;
    margin-top: 0.8rem;
    margin-bottom: 0.3rem;
    color: #2c3e50;
    font-size: 0.95rem;
}

.comment-form input,
.comment-form textarea,
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.8rem;
}

.submit-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(52, 152, 219, 0.3);
}

.comments-section {
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.comments-section h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.comments .comment {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
}

.comments .comment h3 {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.comments .comment h3 span {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-left: 0.6rem;
}

.comments .comment p {
    color: #34495e;
}

.gallery-pagination {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.gallery-pagination .page-link {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.25);
    transition: all 0.3s ease;
}

.gallery-pagination .page-link:hover {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
}

/* 搜索统计 */
.search-stats {
    color: #7f8c8d;
    font-size: 0.9rem;
    padding: 0.8rem 0;
    text-align: center;
}

.stats-card {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(46, 204, 113, 0.05)) !important;
    border: 2px solid rgba(52, 152, 219, 0.2);
}

/* 博客主要内容区域 */
.blog-main {
    display: flex;
    flex-direction: column;
}

/* 文章标签 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    padding: 0.4rem 0.8rem;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-radius: 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.tag:hover {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    border-color: transparent;
    transform: scale(1.05);
}

/* 分类徽章 */
.category-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 1rem;
}

.tags-page {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.tags-page h1 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.tag-card {
    border: 1px solid rgba(52, 152, 219, 0.2);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tag-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.tag-name {
    display: block;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.4rem;
}

.tag-count {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.8rem;
}

.tag-link {
    display: inline-block;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(52, 152, 219, 0.3);
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    background: rgba(52, 152, 219, 0.08);
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    border-color: #3498db;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.article-header h2 {
    flex: 1;
    margin: 0;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 90%;
    width: 300px;
    text-align: center;
}
.modal-box h3{
	margin-bottom: 0.5rem;
}

.modal-btn {
    margin-top: 20px;
    padding: 10px 20px;
}

/* 动画 */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 修改按钮基础样式 */
.copy-to-clipboard-button {
    padding: 5px 10px !important;
    background-color: #999 !important;
    color: #fff !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 0.8em !important;
    transition: background-color 0.3s ease !important;
}

/* 悬停效果 */
.copy-to-clipboard-button:hover {
    background-color: #555 !important;
    color: #00e676 !important; /* 比如变个绿色 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        position: static;
        padding: 1.5rem 0;
    }

    main {
        margin-top: 1rem;
        padding: 0 1rem;
    }

    nav {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .nav-search {
        width: 100%;
        margin-left: 0;
    }

    .nav-search-input {
        width: 100%;
        flex: 1;
    }

    .nav-search-input:focus {
        width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .post {
        padding: 2rem 1rem;
    }

    .about {
        padding: 3rem 1rem;
    }

    .search-box {
        flex-direction: column;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .article-header {
        flex-direction: column;
    }

    .category-badge {
        margin-left: 0;
    }

    /* 博客列表响应式 */
    .blog-list {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        grid-column: 1;
        order: -1;
    }

    .about {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-intro {
        text-align: left;
        width: 100%;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .comments-section {
        padding: 1rem;
    }

    .about .profile-img {
        order: -1;
        margin-bottom: 1.5rem;
        width: 180px;
        height: 180px;
    }
}