/*
Theme Name: Jinsom Theme
Theme URI: http://q.jinsom.cn
Author: Jinsom
Author URI: http://q.jinsom.cn
Description: A WordPress theme based on http://q.jinsom.cn
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: responsive, blog, portfolio
Text Domain: jinsom
*/

/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主题颜色 */
    --primary-color: #409eff;
    --primary-hover: #66b1ff;
    --primary-light: #ecf5ff;
    --success-color: #67c23a;
    --success-hover: #85ce61;
    --warning-color: #e6a23c;
    --warning-hover: #ebb563;
    --danger-color: #f56c6c;
    --danger-hover: #f78989;
    --info-color: #909399;
    --info-hover: #a6a9ad;
    
    /* 中性色 */
    --text-primary: #303133;
    --text-regular: #606266;
    --text-secondary: #909399;
    --text-placeholder: #c0c4cc;
    
    --border-color: #e4e7ed;
    --border-light: #ebeef5;
    --background-color: #f5f7fa;
    --card-background: #ffffff;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
    
    /* 圆角 */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    
    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 通用按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-success {
    color: #fff;
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    color: #fff;
    background-color: var(--success-hover);
    border-color: var(--success-hover);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-warning {
    color: #fff;
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.btn-warning:hover {
    color: #fff;
    background-color: var(--warning-hover);
    border-color: var(--warning-hover);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-danger {
    color: #fff;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    color: #fff;
    background-color: var(--danger-hover);
    border-color: var(--danger-hover);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--text-regular);
    background-color: var(--card-background);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* 按钮尺寸 */
.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 通用卡片样式 */
.card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color), var(--warning-color), var(--danger-color));
    z-index: -1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.5);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.5);
}

/* 网格系统 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    padding: 0 15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* 响应式网格 */
@media (max-width: 575.98px) {
    .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
    .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 767.98px) {
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 991.98px) {
    .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Header styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

nav ul li {
    margin: 0;
    position: relative;
}

nav ul li a {
    color: var(--text-regular);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    transition: width 0.3s;
    border-radius: 2px;
}

nav ul li a:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li.current-menu-item a {
    color: var(--primary-color);
    font-weight: 600;
}

nav ul li.current-menu-item a::after {
    width: 100%;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;charset=utf-8,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffffff" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
    animation: float 20s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(90deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero .btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 18px;
    box-shadow: var(--shadow);
    border: none;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

/* Main content */
main {
    padding: 60px 0;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin-top: -30px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    box-shadow: var(--shadow);
    z-index: 10;
}

/* Blog posts */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.post-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    z-index: -1;
}

.post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.post-card:hover img {
    transform: scale(1.1);
}

.post-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-shrink: 0;
}

.post-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    background: linear-gradient(90deg, var(--primary-color), var(--text-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-card h3 a:hover {
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex-shrink: 0;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.post-meta span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    margin-right: 8px;
}

.post-excerpt {
    color: var(--text-regular);
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    background-color: transparent;
    gap: 5px;
    align-self: flex-start;
    margin-top: auto;
    flex-shrink: 0;
}

.read-more:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.read-more::after {
    content: '→';
    transition: var(--transition);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Sidebar */
.sidebar {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 120px;
    transition: var(--transition);
}

.sidebar:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.sidebar-widget {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.sidebar-widget:hover {
    border-left-color: var(--success-color);
    background: rgba(255, 255, 255, 0.8);
}

.sidebar-widget h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary-color), var(--success-color));
    border-radius: var(--border-radius-sm);
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: var(--border-radius-sm);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 22px;
    transition: var(--transition);
}

.sidebar-widget ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 12px;
    transition: var(--transition);
}

.sidebar-widget ul li:hover {
    transform: translateX(5px);
}

.sidebar-widget ul li:hover::before {
    transform: scale(1.2) rotate(180deg);
    color: var(--success-color);
}

.sidebar-widget ul li a {
    color: var(--text-regular);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.sidebar-widget ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 搜索表单样式 */
.search-form {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    font-size: 14px;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.2);
    background-color: #fff;
}

.search-form input[type="search"]::placeholder {
    color: var(--text-placeholder);
    font-style: italic;
}

.search-form button {
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    color: #fff;
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition);
    padding: 14px 25px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    filter: brightness(1.1);
}

.search-form button::before {
    content: '🔍';
    font-size: 16px;
}

.search-form button::after {
    content: 'Search';
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 单篇文章样式 */
.single-post {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 50px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-header {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    text-align: center;
    position: relative;
}

.post-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: var(--border-radius-sm);
}

.post-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
    color: var(--text-primary);
    background: linear-gradient(90deg, var(--primary-color), var(--text-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-meta-single {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 14px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.post-meta-single span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-content {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-regular);
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
    margin: 30px 0 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
}

.post-content h1::before, .post-content h2::before, .post-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary-color), var(--success-color));
    border-radius: var(--border-radius-sm);
}

.post-content h1 {
    font-size: 32px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.post-content h2 {
    font-size: 28px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.post-content h3 {
    font-size: 24px;
}

.post-content p {
    margin-bottom: 25px;
    text-align: justify;
    text-indent: 2em;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.post-content img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.post-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 2px 4px;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(180deg, transparent, rgba(64, 158, 255, 0.1));
}

.post-content a:hover {
    color: var(--primary-hover);
    text-decoration: none;
    background: linear-gradient(180deg, transparent, rgba(64, 158, 255, 0.3));
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
    transform: translateY(-2px);
}

.post-content ul, .post-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 12px;
    position: relative;
}

.post-content ul li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

.post-content ol li {
    list-style: decimal-leading-zero;
}

.post-content blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--primary-light), var(--success-color) 0.1%);
    border-left: 5px solid var(--primary-color);
    font-style: italic;
    color: var(--text-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 50px;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.post-content pre {
    margin: 30px 0;
    padding: 25px;
    background-color: #1e1e1e;
    border: none;
    border-radius: var(--border-radius);
    overflow-x: auto;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #d4d4d4;
    box-shadow: var(--shadow-lg);
}

.post-content code {
    padding: 3px 8px;
    background-color: #1e1e1e;
    color: #d4d4d4;
    border: none;
    border-radius: 4px;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.post-thumbnail {
    margin-bottom: 40px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.post-thumbnail img:hover {
    transform: scale(1.05);
}

.post-footer {
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.prev-post, .next-post {
    flex: 1;
    transition: var(--transition);
}

.prev-post {
    text-align: left;
}

.next-post {
    text-align: right;
}

.prev-post a, .next-post a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.prev-post a {
    justify-content: flex-start;
}

.next-post a {
    justify-content: flex-end;
}

.prev-post a::before {
    content: '←';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.next-post a::after {
    content: '→';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.prev-post a:hover, .next-post a:hover {
    color: var(--primary-color);
    transform: translateX(var(--prev-post-direction, -5px));
}

.next-post a:hover {
    --prev-post-direction: 5px;
}

/* 页面样式 */
.page {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 50px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.page:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.page-header {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: var(--border-radius-sm);
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
    color: var(--text-primary);
    background: linear-gradient(90deg, var(--primary-color), var(--text-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-content {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-regular);
}

.page-content h1, .page-content h2, .page-content h3, .page-content h4, .page-content h5, .page-content h6 {
    margin: 30px 0 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
}

.page-content h1::before, .page-content h2::before, .page-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary-color), var(--success-color));
    border-radius: var(--border-radius-sm);
}

.page-content h1 {
    font-size: 32px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.page-content h2 {
    font-size: 28px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.page-content h3 {
    font-size: 24px;
}

.page-content p {
    margin-bottom: 25px;
    text-align: justify;
    text-indent: 2em;
}

.page-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.page-content img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* 评论样式 */
.comments-area {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.comments-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    color: var(--text-primary);
    background: linear-gradient(90deg, var(--primary-color), var(--text-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: var(--border-radius-sm);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list li {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    border-left: 4px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.comment-list li:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    transform: translateX(10px);
}

.comment-list li.bypostauthor {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.1), rgba(103, 194, 58, 0.1));
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    transition: var(--transition);
}

.comment-author img:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--success-color);
}

.comment-author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.comment-meta a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.comment-meta a:hover {
    color: var(--success-color);
    text-decoration: underline;
}

.comment-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-regular);
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(64, 158, 255, 0.05);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid rgba(64, 158, 255, 0.5);
}

.comment-reply-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    background-color: transparent;
}

.comment-reply-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.comment-form {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.comment-form p {
    margin-bottom: 25px;
}

.comment-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.comment-form input[type="text"]:focus, .comment-form input[type="email"]:focus, .comment-form input[type="url"]:focus, .comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.2);
    background-color: #fff;
}

.comment-form textarea {
    resize: vertical;
    min-height: 200px;
    font-family: inherit;
    line-height: 1.7;
}

.comment-form input[type="text"]::placeholder, .comment-form input[type="email"]::placeholder, .comment-form input[type="url"]::placeholder, .comment-form textarea::placeholder {
    color: var(--text-placeholder);
    font-style: italic;
}

.comment-form .form-submit {
    margin-top: 30px;
}

.comment-form .form-submit input {
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    padding: 14px 30px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}

.comment-form .form-submit input:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    filter: brightness(1.1);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-regular);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid var(--border-color);
    min-width: 45px;
    height: 45px;
    font-weight: 500;
}

.pagination .page-numbers:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.pagination .current {
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    font-weight: 600;
}

.pagination .dots {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
    pointer-events: none;
}

.pagination .prev, .pagination .next {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 600;
}

.pagination .prev:hover, .pagination .next:hover {
    background: linear-gradient(90deg, var(--primary-hover), var(--success-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* 404页面样式 */
.error-404 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(64, 158, 255, 0.1));
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 80px 40px;
    text-align: center;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-404::before {
    content: '404';
    position: absolute;
    top: -50px;
    left: -50px;
    font-size: 200px;
    font-weight: 900;
    color: rgba(64, 158, 255, 0.1);
    z-index: 0;
    transform: rotate(-15deg);
}

.error-404 .page-title {
    font-size: 80px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-shadow: 0 4px 10px rgba(64, 158, 255, 0.3);
    position: relative;
    z-index: 1;
}

.error-404 p {
    font-size: 22px;
    color: var(--text-regular);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-404 .btn {
    position: relative;
    z-index: 1;
    font-size: 18px;
    padding: 15px 40px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border: none;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.error-404 .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

/* 自定义小工具样式 */
.jinsom-recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jinsom-recent-posts li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    gap: 15px;
}

.jinsom-recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.jinsom-recent-posts li:hover {
    padding-left: 10px;
}

.jinsom-recent-posts .post-thumbnail {
    margin-right: 0;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.jinsom-recent-posts .post-thumbnail img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid transparent;
}

.jinsom-recent-posts .post-thumbnail:hover img {
    transform: scale(1.15);
    border-color: var(--primary-color);
}

.jinsom-recent-posts .post-info {
    flex-grow: 1;
    min-width: 0;
}

.jinsom-recent-posts .post-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 8px;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.jinsom-recent-posts .post-title:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jinsom-recent-posts .post-date {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    transition: var(--transition);
}

.jinsom-recent-posts li:hover .post-date {
    color: var(--primary-color);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #333, #666);
    color: #fff;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color), var(--warning-color), var(--danger-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-widget {
    transition: var(--transition);
    padding: 20px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.footer-widget h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-widget h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary-color), var(--success-color));
    border-radius: var(--border-radius-sm);
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: var(--border-radius-sm);
}

.footer-widget p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 22px;
    transition: var(--transition);
}

.footer-widget ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 12px;
    transition: var(--transition);
}

.footer-widget ul li:hover::before {
    transform: translateX(5px);
    color: var(--success-color);
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

.footer-widget ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
}

.footer-widget ul li a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-bottom a:hover {
    color: var(--success-color);
    text-decoration: underline;
}

/* 全局动画和过渡效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 添加到主要元素的动画 */
.single-post, .page, .comments-area, .error-404 {
    animation: fadeIn 0.6s ease-out;
}

.post-card, .sidebar-widget, .comment-list li {
    animation: fadeIn 0.4s ease-out;
    animation-fill-mode: both;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--success-color));
    border-radius: 4px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-hover), var(--success-hover));
    box-shadow: 0 0 10px rgba(64, 158, 255, 0.5);
}

/* 选中文本样式 */
::selection {
    background: rgba(64, 158, 255, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(64, 158, 255, 0.3);
    color: var(--text-primary);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 图片加载动画 */
img {
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out;
}

/* 按钮点击效果 */
.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 20px;
        flex-direction: column;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 15px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }
}

/* 社区功能样式 */

/* 论坛板块样式 */
.forum-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.forum-category-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
}

.forum-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.forum-category-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.forum-category-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.forum-category-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #999;
}

/* 论坛帖子列表样式 */
.forum-posts-list {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.forum-posts-list table {
    width: 100%;
    border-collapse: collapse;
}

.forum-posts-list th,
.forum-posts-list td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.forum-posts-list th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.forum-posts-list td {
    font-size: 14px;
    color: #555;
}

.forum-post-title {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forum-post-title:hover {
    color: #007bff;
}

.forum-post-meta {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.forum-post-stats {
    display: flex;
    gap: 15px;
    align-items: center;
}

.forum-post-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 精华帖和置顶帖样式 */
.forum-post-elite {
    color: #ff9800;
    font-weight: bold;
    margin-right: 8px;
}

.forum-post-sticky {
    color: #f44336;
    font-weight: bold;
    margin-right: 8px;
}

/* 问答样式 */
.questions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.question-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.question-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.question-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.question-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.question-bounty {
    color: #f44336;
    font-weight: bold;
}

.question-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.question-status.open {
    background-color: #e3f2fd;
    color: #1976d2;
}

.question-status.answered {
    background-color: #e8f5e8;
    color: #388e3c;
}

.question-status.resolved {
    background-color: #fff3e0;
    color: #f57c00;
}

/* 回答样式 */
.answers-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.answer-card {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
}

.answer-card.best-answer {
    border-left-color: #ffc107;
    background-color: #fff8e1;
}

.answer-content {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.answer-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select-best-answer {
    background-color: #ffc107;
    color: #333;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-best-answer:hover {
    background-color: #ffb300;
}

/* VIP会员样式 */
.vip-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vip-level-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.vip-level-card.featured {
    border-color: #ffc107;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.2);
}

.vip-level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.vip-level-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.vip-level-price {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    text-align: center;
    margin-bottom: 15px;
}

.vip-level-duration {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

.vip-level-privileges {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.vip-level-privileges li {
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
}

.vip-level-privileges li:before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

/* 充值样式 */
.recharge-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.recharge-option {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recharge-option:hover {
    border-color: #007bff;
    transform: translateY(-3px);
}

.recharge-option.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.recharge-option-amount {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.recharge-option-desc {
    font-size: 12px;
    color: #666;
}

.payment-methods {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #007bff;
}

.payment-method.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.payment-method-icon {
    font-size: 24px;
    margin-right: 15px;
}

/* 付费内容样式 */
.paid-content-notice {
    background-color: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.paid-content-notice h3 {
    color: #f57c00;
    margin-bottom: 15px;
}

.paid-content-notice p {
    color: #666;
    margin-bottom: 20px;
}

/* 社区互动样式 */
.interaction-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.interaction-buttons .btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

.like-button.liked {
    background-color: #007bff;
    color: #fff;
}

.favorite-button.favorited {
    background-color: #ffc107;
    color: #333;
}

/* 会员中心样式 */
.member-center {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.member-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
}

.member-details h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.member-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 20px;
}

.member-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.member-stat-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.member-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.member-stat-label {
    font-size: 14px;
    color: #666;
}

/* 私信样式 */
.messages-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.messages-sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-right: 1px solid #eee;
}

.messages-list {
    padding: 20px;
}

.message-item {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.message-item:hover {
    background-color: #e9ecef;
}

.message-item.unread {
    background-color: #e3f2fd;
    font-weight: bold;
}

.message-content {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.message-meta {
    font-size: 12px;
    color: #999;
}

/* 关注样式 */
.user-profile {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.user-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.user-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-right: 30px;
    object-fit: cover;
}

.user-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.user-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.user-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-stat-value {
    font-weight: 600;
    color: #333;
}

/* 响应式社区样式 */
@media (max-width: 768px) {
    .forum-categories,
    .questions-list,
    .vip-levels {
        grid-template-columns: 1fr;
    }
    
    .forum-posts-list th:nth-child(3),
    .forum-posts-list td:nth-child(3),
    .forum-posts-list th:nth-child(4),
    .forum-posts-list td:nth-child(4) {
        display: none;
    }
    
    .messages-container {
        grid-template-columns: 1fr;
    }
    
    .messages-sidebar {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .member-info,
    .user-header {
        flex-direction: column;
        text-align: center;
    }
    
    .member-avatar,
    .user-avatar-large {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .member-meta,
    .user-stats {
        justify-content: center;
    }
}
