/* 基础样式与变量定义 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: 'CustomFont', sans-serif;
}

:root {
    /* 颜色变量 */
    --primary-color: #ff6b93;
    --secondary-color: #ff6b93;
    --accent-color: #ff6b93;
    --text-color: #5a5a7a;
    --text-light: #888;
    --text-lighter: #aaa;
    --bg-light: linear-gradient(135deg, #f5f7fa 0%, #e4e8f5 100%);
    --bg-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --card-bg-light: linear-gradient(135deg, rgba(255, 107, 147, 0.2) 0%, rgba(255, 107, 147, 0.1) 100%);
    --card-bg-dark: linear-gradient(135deg, rgba(255, 107, 147, 0.2) 0%, rgba(255, 107, 147, 0.1) 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-bg-night: rgba(26, 26, 46, 0.85);
    --article-bg: rgba(255, 255, 255, 0.95);
    --article-bg-night: rgba(26, 26, 46, 0.95);
    --border-light: rgba(0, 0, 0, 0.05);
    --border-night: rgba(255, 255, 255, 0.1);

    /* 布局变量 */
    --sidebar-width: 300px;
    --header-height: 70px;
    --border-radius: 16px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-night: 0 10px 25px rgba(0, 0, 0, 0.3);
    --card-border: 2px solid rgba(255, 107, 147, 0.3);
    --card-border-night: 2px solid rgba(255, 107, 147, 0.2);

    /* 主题色变量 - 统一使用同一颜色 */
    --theme-primary: var(--primary-color);
    --theme-secondary: var(--secondary-color);
    --theme-accent: var(--accent-color);

    /* 新增性能优化变量 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 主题色预设 */
body[data-theme="default"] {
    --theme-primary: #ff6b93;
    --theme-secondary: #ff6b93;
    --theme-accent: #ff6b93;
}

body[data-theme="blue"] {
    --theme-primary: #4a86e8;
    --theme-secondary: #4a86e8;
    --theme-accent: #4a86e8;
}

body[data-theme="green"] {
    --theme-primary: #4caf50;
    --theme-secondary: #4caf50;
    --theme-accent: #4caf50;
}

/* 基础body样式 */
body {
    background: var(--bg-light);
    background-image: url('/img/background.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    transition: background var(--transition-normal), color var(--transition-normal);
}

/* 夜间模式变量 */
body.night-mode {
    --text-color: #e0e0e0;
    --text-light: #aaa;
    --text-lighter: #888;
    --bg-light: var(--bg-dark);
    --card-bg: var(--card-bg-night);
    --article-bg: var(--article-bg-night);
    --shadow: var(--shadow-night);
    --card-border: var(--card-border-night);
    --border-light: var(--border-night);
}

/* 引入字体 */
@font-face {
    font-family: 'CustomFont';
    src: url('/font/ziti.woff2') format('woff2');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

/* 通用卡片样式 - 优化动画性能 */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* 优化性能 */
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

body.night-mode .card {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 通用文本阴影 */
.text-shadow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

body.night-mode .text-shadow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 通用标签样式 */
.tag {
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
    color: var(--theme-primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    transition: all var(--transition-normal);
    display: inline-block;
}

.tag:hover {
    background: var(--theme-primary);
    color: white;
}

/* 头部导航 - 优化动画性能 */
header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 5%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
    /* 优化性能 */
    will-change: transform, background;
    transform: translateZ(0);
}

body.night-mode header {
    background: rgba(26, 26, 46, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 24px;
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.logo::after {
    content: "☆";
    position: absolute;
    top: -10px;
    right: -15px;
    font-size: 14px;
    color: var(--theme-primary);
    animation: spin 4s linear infinite;
}

.logo img {
    height: 40px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-normal);
    position: relative;
    padding: 5px 0;
    font-size: 16px;
}

nav a:hover {
    color: var(--theme-primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--theme-primary);
    transition: width var(--transition-normal);
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--theme-primary);
}

nav a.active::after {
    width: 100%;
}

/* 搜索框样式 */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 200px;
    padding: 8px 15px 8px 35px;
    border: 2px solid rgba(var(--theme-primary-rgb, 255, 107, 147), 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    transition: all var(--transition-normal);
    outline: none;
    color: var(--text-color);
}

body.night-mode .search-input {
    background: rgba(26, 26, 46, 0.9);
    border-color: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
    color: #e0e0e0;
}

.search-input:focus {
    width: 250px;
    border-color: var(--theme-primary);
    box-shadow: 0 0 10px rgba(var(--theme-primary-rgb, 255, 107, 147), 0.5);
}

.search-icon {
    position: absolute;
    left: 10px;
    color: var(--theme-primary);
    z-index: 1;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

body.night-mode .search-results {
    background: #1a1a2e;
    color: #e0e0e0;
}

.search-results.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition-normal);
}

body.night-mode .search-result-item {
    border-bottom-color: var(--border-night);
}

.search-result-item:hover {
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.1);
}

body.night-mode .search-result-item:hover {
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-color);
}

.search-result-excerpt {
    font-size: 12px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.night-mode .search-result-excerpt {
    color: var(--text-lighter);
}

.no-results {
    padding: 15px;
    text-align: center;
    color: var(--text-light);
}

body.night-mode .no-results {
    color: var(--text-lighter);
}

/* 汉堡菜单 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--theme-primary);
    border-radius: 5px;
    transition: all var(--transition-normal) linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
}

/* 移动端导航菜单 */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
    transition: height var(--transition-normal);
    z-index: 99;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body.night-mode .mobile-nav {
    background: rgba(26, 26, 46, 0.98);
}

.mobile-nav.active {
    height: auto;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 0;
}

.mobile-nav li {
    border-bottom: 1px solid var(--border-light);
}

body.night-mode .mobile-nav li {
    border-bottom-color: var(--border-night);
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-normal);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--theme-primary);
}

.mobile-nav .search-container {
    padding: 15px 20px;
    width: 100%;
}

.mobile-nav .search-input {
    width: 100%;
    padding-left: 35px;
}

.mobile-nav .search-input:focus {
    width: 100%;
}

/* 主内容区 */
.container {
    display: flex;
    max-width: 1280px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 30px;
    flex: 1;
    align-items: flex-start;
}

/* 左侧容器 - 侧边栏 */
.left-container {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: calc(var(--header-height) + 30px);
    height: fit-content;
    max-height: calc(100vh - var(--header-height) - 30px);
    overflow-y: auto;
}

/* 右侧容器 - 主内容 */
.right-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 主内容 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

/* 页脚 */
footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    padding: 25px;
    margin-top: 50px;
    border-top: 1px solid var(--border-light);
    position: relative;
    transition: background var(--transition-normal);
}

body.night-mode footer {
    background: rgba(26, 26, 46, 0.9);
    border-top: 1px solid var(--border-night);
}

/* 文章列表样式 */
.article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* 双列布局类 */
.article-list.two-columns {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* 布局切换按钮 */
.layout-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    gap: 10px;
}

.layout-btn {
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.1);
    border: 2px solid rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
    color: var(--theme-primary);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.layout-btn:hover {
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
}

.layout-btn.active {
    background: var(--theme-primary);
    color: white;
    border-color: var(--theme-primary);
}

/* 文章卡片样式 - 优化动画性能 */
.article-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    border: var(--card-border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(249, 243, 255, 0.85));
    /* 优化性能 */
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

body.night-mode .article-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.85));
    border-color: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
}

/* 单列布局样式 - 图片在左，内容在右 */
.article-list:not(.two-columns) .article-card {
    flex-direction: row;
    min-height: 250px;
    height: auto;
}

.article-list:not(.two-columns) .article-cover {
    width: 40%;
    height: 100%;
    flex-shrink: 0;
}

.article-list:not(.two-columns) .article-content {
    width: 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-list:not(.two-columns) .article-footer {
    margin-top: auto;
}

/* 双列布局样式 - 图片在上，内容在下 */
.article-list.two-columns .article-card {
    flex-direction: column;
    min-height: 420px;
    height: auto;
}

.article-list.two-columns .article-cover {
    width: 100%;
    height: 220px;
}

.article-list.two-columns .article-content {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
    border-color: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.5);
}

.article-cover {
    height: 220px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.article-card:hover .article-cover img {
    transform: scale(1.1);
}

/* 确保文章内容区域有足够的对比度 */
.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
    position: relative;
    background: var(--article-bg);
}

body.night-mode .article-content {
    background: var(--article-bg-night);
}

.article-header {
    margin-bottom: 12px;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-normal);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.article-title a {
    color: inherit;
    text-decoration: none;
}

.article-card:hover .article-title {
    color: var(--theme-primary);
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 10px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.8em;
}

body.night-mode .article-excerpt {
    color: #bbb;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.article-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.read-more {
    color: var(--theme-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap var(--transition-normal);
    font-size: 14px;
    white-space: nowrap;
}

.read-more:hover {
    gap: 8px;
}

/* 文章详情页样式 */
.article-detail {
    padding: 30px;
}

.article-content-full h1,
.article-content-full h2,
.article-content-full h3,
.article-content-full h4 {
    margin: 25px 0 15px;
    color: var(--text-color);
}

.article-content-full p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content-full blockquote {
    border-left: 4px solid var(--theme-primary);
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.05);
    padding: 15px 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

body.night-mode .article-content-full blockquote {
    background: rgba(15, 52, 96, 0.3);
    color: #ccc;
}

.article-content-full img {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.article-content-full pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: var(--border-radius);
    overflow: auto;
    margin: 20px 0;
}

.article-content-full code {
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.1);
    color: var(--theme-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-content-full pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-content-full ul,
.article-content-full ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-content-full li {
    margin-bottom: 8px;
}

.article-content-full table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content-full th,
.article-content-full td {
    padding: 10px;
    text-align: left;
    border: 1px solid #eee;
}

body.night-mode .article-content-full th,
body.night-mode .article-content-full td {
    border: 1px solid var(--border-night);
}

.article-content-full th {
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.1);
}

body.night-mode .article-content-full th {
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
}

/* 评论区域样式 */
.comments-section {
    margin-top: 40px;
}

comment {
    padding: 20px;
    border-radius: var(--border-radius);
    background: var(--article-bg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author {
    font-weight: 500;
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
}

.comment-content {
    line-height: 1.6;
}

/* 分类和标签云样式 */
.widget {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

body.night-mode .widget {
    background: rgba(26, 26, 46, 0.9);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
    color: var(--text-color);
    position: relative;
}

body.night-mode .widget-title {
    border-bottom-color: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.3);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 175px;
    overflow: hidden;
    position: relative;
    transition: max-height var(--transition-normal);
}

.tag-cloud.expanded {
    max-height: none;
}

.tag-cloud.expanded::after {
    opacity: 0;
}

/* 标签云容器相对定位 */
.widget.tag-cloud-container {
    position: relative;
}

/* 查看更多按钮样式 - 修改为右上角 */
.view-more-tags {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 8px;
    background: #fbf6fa;
    color: var(--theme-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 12px;
    z-index: 2;
}

.view-more-tags:hover {
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
}

.view-more-tags.hidden {
    display: none;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    cursor: pointer;
    background: transparent;
}

.category-item:hover {
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.15);
    padding-left: 10px;
}

.category-item:last-child {
    border-bottom: none;
}

.category-name {
    color: var(--text-color);
    transition: color var(--transition-normal);
}

.category-name:hover {
    color: var(--theme-primary);
}

.category-count {
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.1);
    color: var(--theme-primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* 分类激活状态 */
.category-item.active {
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.1);
    padding-left: 15px;
}

.category-item.active .category-name {
    color: var(--theme-primary);
    font-weight: 600;
}

/* 关于博客页面样式 */
.about-profile {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(var(--theme-primary-rgb, 255, 107, 147), 0.1);
}

body.night-mode .profile-header {
    border-bottom-color: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.3);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--theme-primary);
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(var(--theme-primary-rgb, 255, 107, 147), 0.3);
}

.profile-info h2 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.profile-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.profile-stats {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: var(--theme-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.profile-content h3 {
    margin: 20px 0 15px;
    color: var(--theme-primary);
    border-left: 4px solid var(--theme-primary);
    padding-left: 10px;
}

.profile-content p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.favorite-list {
    margin-left: 20px;
    margin-bottom: 20px;
}

.favorite-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.favorite-list li::before {
    content: "❤️";
    position: absolute;
    left: 0;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.1);
    color: var(--theme-primary);
    border-radius: 20px;
    transition: all var(--transition-normal);
}

.contact-link:hover {
    background: var(--theme-primary);
    color: white;
    transform: translateY(-2px);
}

/* 弹窗样式 */
.tanchuang {
    width: 700px;
    max-width: 90%;
    display: none;
    border-radius: var(--border-radius);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(249, 243, 255, 0.9));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 3px solid var(--theme-primary);
    box-shadow: 0 10px 25px rgba(var(--theme-primary-rgb, 255, 107, 147), 0.4),
        0 0 15px rgba(255, 230, 240, 0.6) inset;
    padding: 25px;
    z-index: 1000;
    opacity: 0;
    transition: transform var(--transition-normal) cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity var(--transition-normal) ease;
}

body.night-mode .tanchuang {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.9));
    border: 3px solid var(--theme-primary);
    box-shadow: 0 10px 25px rgba(var(--theme-primary-rgb, 255, 107, 147), 0.3),
        0 0 15px rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2) inset;
}

.tanchuang.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.tanchuang::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed var(--theme-primary);
    border-radius: calc(var(--border-radius) + 5px);
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
    animation: rotate 20s linear infinite;
}

.tanchuang h3 {
    font-size: 26px;
    text-align: center;
    margin: 15px auto 20px auto;
    color: var(--theme-primary);
    text-shadow: 2px 2px 0px #fff,
        3px 3px 0px rgba(var(--theme-primary-rgb, 255, 107, 147), 0.3);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

body.night-mode .tanchuang h3 {
    text-shadow: 2px 2px 0px #1a1a2e,
        3px 3px 0px rgba(var(--theme-primary-rgb, 255, 107, 147), 0.3);
}

.tanchuang h3::before,
.tanchuang h3::after {
    content: "✦";
    color: var(--theme-primary);
    margin: 0 15px;
    font-size: 22px;
    animation: sparkle 2s infinite;
}

.tanchuang p {
    padding: 0px 10px;
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
    text-indent: 2em;
    color: var(--text-color);
    margin-bottom: 20px;
    background: rgba(255, 240, 245, 0.7);
    border-radius: 12px;
    padding: 15px;
    border: 2px dotted rgba(var(--theme-primary-rgb, 255, 107, 147), 0.5);
    max-height: 50vh;
    overflow-y: auto;
}

body.night-mode .tanchuang p {
    background: rgba(15, 52, 96, 0.3);
    border: 2px dotted rgba(var(--theme-primary-rgb, 255, 107, 147), 0.5);
    color: #e0e0e0;
}

.tanchuang p::-webkit-scrollbar {
    width: 6px;
}

.tanchuang p::-webkit-scrollbar-track {
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
    border-radius: 8px;
}

.tanchuang p::-webkit-scrollbar-thumb {
    background: var(--theme-primary);
    border-radius: 8px;
}

.confirm-btn {
    display: block;
    margin: 0 auto;
    padding: 10px 30px;
    background: var(--theme-primary);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb, 255, 107, 147), 0.4);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.confirm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(var(--theme-primary-rgb, 255, 107, 147), 0.6);
}

.confirm-btn:active {
    transform: translateY(1px);
}

.confirm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: var(--transition-normal);
    z-index: -1;
}

.confirm-btn:hover::before {
    left: 100%;
}

.decoration {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: var(--theme-primary);
    animation: bounce 2s infinite;
}

/* 筛选信息样式 */
.filter-info {
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb, 255, 107, 147), 0.15), rgba(var(--theme-primary-rgb, 255, 107, 147), 0.1));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-left: 4px solid var(--theme-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.night-mode .filter-info {
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2), rgba(var(--theme-primary-rgb, 255, 107, 147), 0.15));
}

/* ==================== 装饰元素样式区域 ==================== */

/* 二次元装饰元素 */
.anime-decoration {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.deco-1 {
    top: 10%;
    left: 5%;
    font-size: 3rem;
    color: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
    animation: float 6s ease-in-out infinite;
}

.deco-2 {
    top: 30%;
    right: 5%;
    font-size: 2.5rem;
    color: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
    animation: float 8s ease-in-out infinite 1s;
}

.deco-3 {
    bottom: 20%;
    left: 10%;
    font-size: 2rem;
    color: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
    animation: float 7s ease-in-out infinite 0.5s;
}

.deco-4 {
    top: 60%;
    right: 15%;
    font-size: 2.2rem;
    color: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
    animation: float 9s ease-in-out infinite 1.5s;
}

.deco-5 {
    bottom: 40%;
    left: 15%;
    font-size: 1.8rem;
    color: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
    animation: float 7s ease-in-out infinite 2s;
}

/* 装饰星星 */
.star {
    position: absolute;
    color: #fff;
    font-size: 10px;
    opacity: 0.7;
    animation: twinkle 3s infinite;
}

.star:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 30%;
    left: 80%;
    animation-delay: 1s;
}

.star:nth-child(3) {
    top: 70%;
    left: 30%;
    animation-delay: 2s;
}

.star:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 1.5s;
}

/* 特殊装饰星星 */
.decoration-star {
    position: absolute;
    color: var(--theme-primary);
    font-size: 10px;
    opacity: 0;
    animation: twinkle 4s infinite;
    text-shadow: 0 0 6px rgba(var(--theme-primary-rgb, 255, 107, 147), 0.5);
}

.decoration-star:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0.5s;
}

.decoration-star:nth-child(2) {
    top: 25%;
    right: 12%;
    animation-delay: 1.5s;
}

.decoration-star:nth-child(3) {
    bottom: 25%;
    left: 12%;
    animation-delay: 2.5s;
}

.decoration-star:nth-child(4) {
    bottom: 35%;
    right: 10%;
    animation-delay: 3.5s;
}

/* 心跳效果 */
.heart-beat {
    position: absolute;
    color: var(--theme-primary);
    font-size: 16px;
    animation: heartbeat 1.8s infinite;
    text-shadow: 0 0 8px rgba(var(--theme-primary-rgb, 255, 107, 147), 0.4);
    z-index: 6;
}

/* ==================== 动画定义 ==================== */

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ==================== 装饰元素样式区域结束 ==================== */

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 95px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 10%;
    background: var(--theme-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--theme-primary);
    transform: translateY(-3px);
}

/* 夜间模式下的回到顶部按钮 */
body.night-mode .back-to-top {
    background: #1a1a2e;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.night-mode .back-to-top:hover {
    background: #2d2d4e;
}

/* 阅读进度按钮样式 */
.reading-progress-btn {
    position: fixed;
    bottom: 95px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 10%;
    background: var(--theme-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
}

/* 夜间模式下的阅读进度按钮 */
body.night-mode .reading-progress-btn {
    background: #1a1a2e;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.night-mode .reading-progress-btn:hover {
    background: #2d2d4e;
}

/* 设置按钮和菜单样式 */
.settings-button {
    position: fixed;
    bottom: 50px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 10%;
    background: var(--theme-primary);
    color: #feeeee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-normal);
}

/* 夜间模式下的设置按钮 */
body.night-mode .settings-button {
    background: #1a1a2e;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.night-mode .settings-button:hover {
    background: #2d2d4e;
}

/* 设置图标的旋转动画 */
.settings-button .fa-cog {
    animation: rotateCog 1.5s linear infinite;
    transition: transform var(--transition-normal);
}

/* 鼠标悬停时加快旋转速度 */
.settings-button:hover .fa-cog {
    animation-duration: 2.5s;
}

/* 旋转动画定义 */
@keyframes rotateCog {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 菜单打开时暂停旋转 */
.settings-menu.active~.settings-button .fa-cog {
    animation-play-state: paused;
}

.settings-menu {
    position: fixed;
    bottom: 150px;
    right: 30px;
    width: 200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 15px;
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.night-mode .settings-menu {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.settings-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.settings-menu h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    font-size: 16px;
    color: var(--text-color);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.setting-label {
    font-size: 14px;
    color: var(--text-color);
}

/* 开关按钮样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: var(--transition-normal);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: white;
    transition: var(--transition-normal);
    border-radius: 50%;
}

input:checked+.slider {
    background: var(--theme-primary);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .left-container {
        width: 100%;
        display: none;
        /* 移动端隐藏侧边栏 */
    }

    .right-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 5%;
    }

    .logo {
        font-size: 20px;
    }

    /* 移动端导航菜单 */
    nav ul {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .search-container {
        display: none;
    }

    .mobile-nav .search-icon {
        left: 30px;
    }

    .mobile-nav .search-container {
        display: flex;
    }

    /* 移动端隐藏侧边栏 */
    .sidebar {
        display: none;
    }

    .main-content {
        width: 100%;
    }

    /* 移动端文章卡片布局调整 */
    .article-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 移动端单列布局也使用垂直布局 */
    .article-list:not(.two-columns) .article-card {
        flex-direction: column;
        min-height: 320px;
        height: auto;
    }

    .article-list:not(.two-columns) .article-cover {
        width: 100%;
        height: 180px;
    }

    .article-list:not(.two-columns) .article-content {
        width: 100%;
    }

    .article-card {
        min-height: 320px;
        height: auto;
    }

    .article-cover {
        height: 180px;
    }

    .article-content {
        padding: 15px;
    }

    .article-title {
        font-size: 18px;
    }

    /* 修复：移动端元数据显示在一行 */
    .article-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* 修复：移动端双列布局不显示问题 */
    .article-list.two-columns {
        grid-template-columns: 1fr;
    }

    .article-list.two-columns .article-card {
        min-height: 320px;
        height: auto;
    }

    .article-list.two-columns .article-cover {
        height: 180px;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .contact-links {
        justify-content: center;
    }

    /* 文章详情页特定样式 */
    .article-cover-full {
        width: 100%;
    }

    .article-cover-full img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .article-detail .article-header {
        padding: 25px 25px 0;
    }

    .article-detail .article-title {
        font-size: 24px;
        margin-bottom: 15px;
        color: var(--text-color);
    }

    .article-detail .article-meta {
        margin-bottom: 20px;
    }

    .article-detail .article-content-full {
        padding: 0 25px 25px;
    }

    .article-detail .article-footer {
        padding: 0 25px 25px;
    }

    /* 移动端弹窗调整 */
    .tanchuang h3 {
        font-size: 22px;
    }

    .tanchuang p {
        font-size: 14px;
        padding: 10px;
    }

    .confirm-btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    /* 移动端减少模糊效果 */
    header,
    .card,
    footer,
    .settings-menu,
    .search-input,
    .mobile-nav,
    .filter-info,
    .widget {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    /* 移动端提高透明度确保可读性 */
    .card {
        background: rgba(255, 255, 255, 0.95);
    }

    body.night-mode .card {
        background: rgba(26, 26, 46, 0.95);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .article-title {
        font-size: 18px;
        -webkit-line-clamp: 2;
    }

    .article-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .article-content-full h1 {
        font-size: 24px;
    }

    .article-content-full h2 {
        font-size: 22px;
    }

    .article-content-full h3 {
        font-size: 20px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-info h2 {
        font-size: 20px;
    }

    .profile-stats {
        flex-direction: column;
        gap: 10px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-link {
        width: 100%;
        justify-content: center;
    }
}

/* 保持电脑和平板端的搜索框样式不变 */
@media (min-width: 769px) {
    .search-icon {
        left: 10px;
    }
}

/* 主题色选择器样式 */
.theme-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.theme-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}

.theme-option:hover {
    transform: scale(1.1);
}

.theme-option.active {
    border-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.theme-reset {
    margin-top: 10px;
    padding: 5px 10px;
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.1);
    border: 1px solid rgba(var(--theme-primary-rgb, 255, 107, 147), 0.3);
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 12px;
    transition: all var(--transition-normal);
}

.theme-reset:hover {
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.2);
}

/* 颜色选择器样式 */
.color-picker-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.color-picker-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-label {
    font-size: 12px;
    color: var(--text-color);
    min-width: 60px;
}

.color-picker {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: none;
}

.color-picker::-webkit-color-swatch {
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.color-picker::-moz-color-swatch {
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* 修复轮播图与侧边栏对齐问题 */
@media (min-width: 1025px) {
    .main-content>.carousel-container {
        margin-top: -10px;
    }
}

/* 友链页面样式 */
.friend-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.friend-link-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.05);
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    border: 1px solid rgba(var(--theme-primary-rgb, 255, 107, 147), 0.1);
}

.friend-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: rgba(var(--theme-primary-rgb, 255, 107, 147), 0.1);
}

.friend-link-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    border: 2px solid var(--theme-primary);
}

.friend-link-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-link-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.friend-link-info h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.friend-link-info h3 a:hover {
    color: var(--theme-primary);
}

.friend-link-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .friend-links-grid {
        grid-template-columns: 1fr;
    }

    .friend-link-card {
        flex-direction: column;
        text-align: center;
    }

    .friend-link-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* 添加以下内容到style.css文件末尾 */

/* SPA加载器样式 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-normal);
}

body.night-mode .page-loader {
    background: rgba(26, 26, 46, 0.9);
}

.loader-spinner {
    text-align: center;
    color: var(--theme-primary);
}

.loader-spinner i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.loader-spinner p {
    margin: 0;
    font-weight: 500;
}

/* 页面过渡动画 */
.main-content,
.right-container {
    transition: opacity var(--transition-normal);
}

.main-content.loading,
.right-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* 移动端SPA优化 */
@media (max-width: 768px) {
    .page-loader {
        backdrop-filter: blur(3px);
    }

    .loader-spinner i {
        font-size: 1.5rem;
    }
}

/*横幅区域样式 */
.hero-banner {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 147, 0.1) 0%, rgba(138, 124, 255, 0.1) 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    background: linear-gradient(135deg, var(--theme-primary) 0%, #8a7cff 100%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-container {
    min-height: 2.5rem;
    margin-bottom: 2rem;
}

#typing-subtitle {
    font-weight: 500;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--theme-primary);
    font-size: 2rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 10;
}

/*性能优化类 */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.will-change-contents {
    will-change: contents;
}

/*减少动画对性能的影响 */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/*焦点可见性样式 */
@media (prefers-reduced-motion: no-preference) {
    .focus-visible {
        outline: 2px solid var(--theme-primary);
        outline-offset: 2px;
    }
}

/*高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000;
        --text-light: #333;
        --border-light: rgba(0, 0, 0, 0.3);
    }

    body.night-mode {
        --text-color: #fff;
        --text-light: #ccc;
        --border-light: rgba(255, 255, 255, 0.3);
    }

    .card {
        border-width: 2px;
    }
}

/*减少透明效果 */
@media (prefers-reduced-transparency: reduce) {

    .card,
    header,
    footer,
    .settings-menu,
    .search-input,
    .mobile-nav,
    .filter-info,
    .widget {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--card-bg) !important;
    }

    body.night-mode .card,
    body.night-mode header,
    body.night-mode footer,
    body.night-mode .settings-menu,
    body.night-mode .search-input,
    body.night-mode .mobile-nav,
    body.night-mode .filter-info,
    body.night-mode .widget {
        background: var(--card-bg-night) !important;
    }
}