/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 颜色变量 - 与深色主题保持一致的青绿色 */
    --primary-color: #32E6B9;
    --primary-hover: #2bc9a0;
    --primary-rgb: 50, 230, 185;
    --secondary-color: #6c757d;
    --text-color: #333;
    --text-light: #6e6e6e;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e9ecef;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* 字体变量 */
    --font-sans: 'Noto Sans SC', sans-serif;
    --font-serif: 'Noto Serif SC', serif;
}

/* 暗色模式 */
.dark-mode {
    --primary-color: #32E6B9;
    --primary-hover: #2bc9a0;
    --primary-rgb: 50, 230, 185;
    --secondary-color: #adb5bd;
    --text-color: #e9ecef;
    --text-light: #ced4da;
    --bg-color: #121212;
    --bg-secondary: #1e1e1e;
    --border-color: #2d2d2d;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(var(--primary-rgb), 0.05) 0%, transparent 30%),
        radial-gradient(circle at 50% 10%, rgba(var(--primary-rgb), 0.03) 0%, transparent 40%),
        radial-gradient(circle at 20% 60%, rgba(var(--primary-rgb), 0.03) 0%, transparent 35%),
        radial-gradient(circle at 80% 40%, rgba(var(--primary-rgb), 0.03) 0%, transparent 35%),
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.01) 0%, transparent 50%);
    background-attachment: fixed;
    background-size: 100% 100%, 100% 100%, 50% 50%, 40% 40%, 40% 40%, 100% 100%;
    position: relative;
    cursor: none;
}

/* 自定义鼠标指针 */
.custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.custom-cursor svg {
    width: 100%;
    height: 100%;
    transform: rotate(20deg); /* 进一步减少倾斜角度 */
}

/* 链接和按钮的鼠标样式 - 全局统一 */
a, button, .tab, .theme-toggle, .action-button, .social-icons a, .author-social a, .visit-link, .card-title, .search-result-item, .quick-link, input, .logo, .logo-avatar {
    cursor: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.dark-mode {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.08) 0%, transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(var(--primary-rgb), 0.08) 0%, transparent 35%),
        radial-gradient(circle at 50% 10%, rgba(var(--primary-rgb), 0.05) 0%, transparent 45%),
        radial-gradient(circle at 20% 60%, rgba(var(--primary-rgb), 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 40%, rgba(var(--primary-rgb), 0.05) 0%, transparent 40%),
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, transparent 70%);
}

.dark-mode::before {
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    transition: var(--transition);
}

input {
    font-family: inherit;
}

/* 应用容器 */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.dark-mode .header {
    background-color: var(--bg-color);
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
}

.logo-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.logo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.logo:hover .logo-avatar img {
    transform: scale(1.1);
}

/* 确保在深色模式下头像悬停效果也能正常工作 */
.dark-mode .logo-avatar {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark-mode .logo:hover .logo-avatar img {
    transform: scale(1.1);
}

.signature-container {
    position: absolute;
    top: -15px;
    left: 0;
    font-size: 0.7rem;
    transform: rotate(-5deg);
}

.artistic-signature {
    font-family: 'Brush Script MT', cursive;
    color: var(--primary-color);
    opacity: 0.7;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--primary-color), #9179ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 0.25rem;
    position: relative;
    z-index: 1;
}

.logo-text::before {
    content: '';
    position: absolute;
    width: 0;
    height: 8px;
    background-color: rgba(74, 108, 247, 0.2);
    bottom: 4px;
    left: 0;
    z-index: -1;
    transition: width 0.3s ease;
}

.logo:hover .logo-text::before {
    width: 100%;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}

/* 搜索框样式 */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-box:focus-within {
    box-shadow: 0 0 0 2px var(--primary-color), 0 5px 15px rgba(74, 108, 247, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    border: none;
    background: none;
    outline: none;
    color: var(--text-color);
    padding-right: 40px;
}

.search-button {
    display: none; /* 隐藏搜索按钮 */
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: hidden;
    display: none;
    z-index: 10;
}

.search-results.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background-color: var(--bg-secondary);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* 导航样式 */
.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-light);
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

/* 主题切换按钮 */
.theme-toggle {
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: transform 0.5s ease, color 0.3s ease;
    position: relative;
    z-index: 2;
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
    color: white;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary-color), rgba(var(--primary-rgb), 0.7));
    transition: height 0.4s ease;
    z-index: -1;
}

.theme-toggle:hover::before {
    height: 100%;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* 英雄区域 */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    z-index: -1;
}

.hero-content {
    margin-bottom: 2.5rem;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    animation: fadeIn 0.8s ease-out forwards;
    background: linear-gradient(45deg, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 2rem auto 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
    line-height: 1.8;
}

/* 分类标签 */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
    padding: 0.5rem;
    position: relative;
}

.category-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.category-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.tab {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    background-color: var(--bg-secondary);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), rgba(var(--primary-rgb), 0.7));
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: -1;
}

.tab:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab:hover::before {
    transform: translateX(0);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary-color), rgba(var(--primary-rgb), 0.7));
    color: white;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
    transform: translateY(-3px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab.active::before {
    transform: translateX(0);
}

/* 资源网格 */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

.resource-card {
    background-color: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-bounce);
    border: 1px solid var(--border-color);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: calc(0.1s * var(--card-index, 0));
    position: relative;
}

.resource-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.resource-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.resource-card:hover::after {
    opacity: 1;
}

.card-image {
    height: 160px;
    overflow: hidden;
}

.card-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    background-color: var(--bg-secondary);
}

.card-image .fallback-image {
    object-fit: contain;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-color));
}

.card-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--primary-rgb), 0.1));
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), transparent);
    pointer-events: none;
}

.resource-card:hover .card-image img {
    transform: scale(1.1) rotate(1deg);
}

.card-content {
    padding: 1.25rem;
}

.card-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5rem; /* 固定描述高度，确保卡片底部对齐 */
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    position: relative; /* 确保底部固定位置 */
}

.visit-link {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
}

.visit-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.visit-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.visit-link i {
    margin-left: 0.25rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.visit-link:hover i {
    transform: translateX(4px);
}

/* 确保深色模式下访问链接的动画效果正常 */
.dark-mode .visit-link {
    color: var(--primary-color);
}

.dark-mode .visit-link::after {
    background-color: var(--primary-color);
}

.dark-mode .visit-link:hover::after {
    transform: scaleX(1);
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

/* 统一的按钮动画效果 - 与主题切换按钮一致 */
.card-actions .action-button,
.social-icons a,
.author-social a {
    color: var(--text-light);
    font-size: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

/* 主题切换按钮图标 */
.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: transform 0.5s ease, color 0.3s ease;
    position: relative;
    z-index: 2;
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
    color: white;
}

/* 收藏/分享按钮图标 - 不旋转 */
.card-actions .action-button i,
.social-icons a i,
.author-social a i {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-actions .action-button:hover i,
.social-icons a:hover i,
.author-social a:hover i {
    color: white;
}

/* 确保收藏/分享按钮的填充效果正确 */
.card-actions .action-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary-color), rgba(var(--primary-rgb), 0.7));
    transition: height 0.4s ease;
    z-index: 1;
}

/* 所有按钮统一样式 - 直线填充动画 */
.social-icons a,
.author-social a,
.theme-toggle,
.card-actions .action-button {
    color: var(--text-light);
    font-size: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-color);
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    z-index: 1;
}

/* 所有按钮的图标统一样式 */
.social-icons a i,
.author-social a i,
.card-actions .action-button i {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

/* 主题切换按钮图标特殊处理 - 只有旋转效果不同 */
.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: transform 0.5s ease, color 0.3s ease;
    position: relative;
    z-index: 2;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
    color: white;
}

/* 其他按钮悬停效果 - 只改变颜色 */
.social-icons a:hover i,
.author-social a:hover i,
.card-actions .action-button:hover i {
    color: white;
}

/* 统一的直线填充效果 - 所有按钮完全相同 */
.social-icons a::before,
.author-social a::before,
.theme-toggle::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #32E6B9;
    transition: height 0.4s ease;
    z-index: 1;
    border-radius: 0 !important; /* 强制所有按钮都使用直线填充 */
}

/* 统一所有按钮的悬停填充效果 */
.social-icons a:hover::before,
.author-social a:hover::before,
.card-actions .action-button:hover::before,
.theme-toggle:hover::before {
    height: 100%;
}

/* 确保收藏/分享按钮的填充效果与社交按钮完全一致 */
.card-actions .action-button::before {
    background-color: #32E6B9;
    border-radius: 0;
    z-index: 1;
}

.card-actions .action-button:hover::before,
.social-icons a:hover::before,
.author-social a:hover::before {
    height: 100%;
}

.card-actions .action-button:hover,
.social-icons a:hover,
.author-social a:hover {
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 确保深色模式下按钮动画效果正常 */
.dark-mode .card-actions .action-button,
.dark-mode .social-icons a,
.dark-mode .author-social a {
    background-color: var(--bg-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.dark-mode .card-actions .action-button::before,
.dark-mode .social-icons a::before,
.dark-mode .author-social a::before {
    background: linear-gradient(135deg, var(--primary-color), rgba(var(--primary-rgb), 0.7));
}

.dark-mode .card-actions .action-button:hover,
.dark-mode .social-icons a:hover,
.dark-mode .author-social a:hover {
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.favorite-btn i.fa-heart {
    color: #ff3e6c;
}

/* 页脚样式 */
.footer {
    background-color: var(--bg-secondary);
    padding: 4rem 2rem 1.5rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(var(--primary-rgb), 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(var(--primary-rgb), 0.05) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

/* 删除这个重复的样式块，因为上面已经定义过了 */

/* 快速链接样式 */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.quick-link {
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 0.25rem 0;
    position: relative;
    display: inline-block;
    transition: var(--transition);
    width: fit-content;
}

.quick-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.quick-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.quick-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 确保深色模式下快速链接的动画效果正常 */
.dark-mode .quick-link {
    color: var(--text-light);
}

.dark-mode .quick-link:hover {
    color: var(--primary-color);
}

.dark-mode .quick-link::after {
    background-color: var(--primary-color);
}

/* 技术栈样式 */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: flex-start;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.tech-item:hover .tech-icon {
    transform: scale(1.2);
}

.tech-name {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* 彩色技术图标 */
.tech-html {
    color: #E34F26;
}

.tech-css {
    color: #1572B6;
}

.tech-js {
    color: #F7DF1E;
}

.tech-db {
    color: #4DB33D;
}

.tech-theme {
    color: #9C27B0;
}

.tech-mobile {
    color: #3DDC84;
}

/* 确保页脚技术栈在小屏幕上正确显示 */
@media (max-width: 768px) {
    .tech-stack {
        justify-content: center;
        gap: 1rem;
    }
    
    .tech-item {
        width: 30%;
    }
}

.author-signature {
    max-width: 1280px;
    margin: 2rem auto 0;
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
}

.author-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.author-name {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--primary-color), #9179ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding: 0 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.author-name::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    background: linear-gradient(45deg, rgba(74, 108, 247, 0.2), rgba(145, 121, 255, 0.2));
    bottom: 5px;
    left: 0;
    z-index: -1;
    border-radius: 4px;
}

.copyright {
    max-width: 1280px;
    margin: 1rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 内容区域样式 */
.main-sections {
    position: relative;
    min-height: 400px;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.content-section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* 关于页面样式 */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-description p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: var(--bg-secondary);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.about-author {
    margin-top: 4rem;
}

.author-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--primary-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.author-avatar:hover img {
    transform: scale(1.1);
}

.author-details {
    text-align: left;
}

.author-name-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    background: linear-gradient(45deg, var(--primary-color), #9179ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.author-role {
    color: var(--text-light);
    font-size: 1rem;
}

.author-bio {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-color);
    color: var(--text-light);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

/* 删除重复的样式定义，保持上面的统一样式 */

/* 禁用浏览器默认鼠标样式 */
* {
    cursor: none !important;
}
