/* 博客页面特定样式 */
body {
    background: url('../assets/images/hero-bg.png') center/cover fixed;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.blog-main {
    padding: 20px 0;
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.page-title {
    font-size: 48px;
    font-family: '文鼎圆立体', serif;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
    animation: glow 3s ease-in-out infinite;
}

.page-subtitle {
    font-size: 18px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    opacity: 0.9;
}

/* 博客控制面板 */
.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInLeft 0.6s ease-out;
    position: relative;
    z-index: 100;
}

/* 搜索区域 */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 300px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.search-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* 筛选区域 */


.filter-container label {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.filter-container select {
    padding: 12px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 255, 255, 0.1);
    position: relative;
}

.filter-container select:focus,
.filter-container select:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 下拉选项样式 - 支持多浏览器 */
.filter-container select option {
    background: #2a2a2a !important;
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    padding: 12px 16px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    position: relative;
}

.filter-container select option:hover,
.filter-container select option:focus {
    background: #404040 !important;
    background-color: #404040 !important;
    color: #ffffff !important;
}

.filter-container select option:checked,
.filter-container select option:selected {
    background: #505050 !important;
    background-color: #505050 !important;
    color: #ffffff !important;
    font-weight: bold;
}

/* WebKit浏览器特定样式 */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .filter-container select {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .filter-container select option {
        background: #2a2a2a;
        color: #ffffff;
    }
    
    .filter-container select::-webkit-scrollbar {
        width: 8px;
    }
    
    .filter-container select::-webkit-scrollbar-track {
        background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
        border-radius: 4px;
    }
    
    .filter-container select::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #444 0%, #555 100%);
        border-radius: 4px;
        border: 2px solid #1a1a1a;
    }
    
    .filter-container select::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #555 0%, #666 100%);
    }
}

/* Firefox浏览器特定样式 */
@-moz-document url-prefix() {
    .filter-container select {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    
    .filter-container select option {
        background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%) !important;
        color: #ffffff !important;
        border-radius: 4px;
        margin: 2px 0;
    }
}

/* 自定义下拉组件样式 */
.custom-select {
    position: relative;
    display: inline-block;
    min-width: 100px;
    width: fit-content;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 255, 255, 0.1);
}

.custom-select-trigger:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.custom-select-trigger.active {
    border-color: rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.3);
}

.select-arrow {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.custom-select-trigger.active .select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
}

.custom-select-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 300px;
    overflow-y: auto;
}

.custom-select-option {
    padding: 12px 15px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    transform: translateX(5px);
    padding-left: 20px;
}

.custom-select-option.selected {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    font-weight: bold;
    color: #ffffff;
}

.custom-select-option.selected::before {
    content: '✓';
    position: absolute;
    left: 5px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

/* 自定义下拉框滚动条 */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #444 0%, #555 100%);
    border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #555 0%, #666 100%);
}

/* 增强的下拉框容器样式 */
.filter-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 101;
}

/* 博客内容区域 */
.blog-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 40px;
}

/* 文章列表 */
.articles-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-article-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.8) 100%);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.blog-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.blog-article-card:hover::before {
    left: 100%;
}

.blog-article-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 文章图片 */
.blog-article-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-article-card:hover .blog-article-image img {
    transform: scale(1.1);
}

/* 文章内容 */
.blog-article-content {
    padding: 25px;
}

.blog-article-title {
    margin-bottom: 15px;
}

.blog-article-title a {
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.blog-article-title a:hover {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.blog-article-excerpt {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.blog-article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.blog-article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-article-tag {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-article-tag:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(255, 255, 255, 0.1);
}

/* 格式标识样式 */
.format-badge {
    position: absolute;
    top: 10px;
    left: 10px; /* 修改为左上角显示 */
    right: auto;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    z-index: 2;
    display: inline-block;
    width: auto;
    min-width: fit-content;
    text-align: center;
}

.format-badge.rich {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(52, 152, 219, 0.7));
    color: #fff;
    border: 1px solid rgba(52, 152, 219, 0.9);
    display: inline-block;
    width: auto;
}

.format-badge.markdown {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.9), rgba(241, 196, 15, 0.7));
    color: #fff;
    border: 1px solid rgba(241, 196, 15, 0.9);
    display: inline-block;
    width: auto;
}

.format-badge.file {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.9), rgba(46, 204, 113, 0.7));
    color: #fff;
    border: 1px solid rgba(46, 204, 113, 0.9);
    display: inline-block;
    width: auto;
}

.format-icon {
    margin-left: 8px;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.blog-article-title:hover .format-icon {
    opacity: 1;
}

.blog-article-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.no-articles h3 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.no-articles p {
    font-size: 16px;
    line-height: 1.6;
}

/* 阅读进度条 */
.reading-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.6));
    width: 0%;
    transition: width 0.3s ease;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: slideInRight 0.8s ease-out;
}

.sidebar-section {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.sidebar-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.sidebar-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 20px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.recent-articles, .categories {
    list-style: none;
}

.recent-articles li, .categories li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.recent-articles li:last-child, .categories li:last-child {
    border-bottom: none;
}

.recent-articles a, .categories a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent-articles a:hover, .categories a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    padding-left: 10px;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination .current {
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.pagination a:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.pagination .current {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.3));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.4);
    }
    50% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.8), 0 0 50px rgba(255, 255, 255, 0.6);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-input {
        width: 100%;
    }
    
    .blog-content {
        grid-template-columns: 1fr;
    }
    
    .blog-article-card {
        margin-bottom: 20px;
    }
    
    .blog-article-image {
        height: 150px;
    }
    
    .blog-article-image img {
        height: 100%;
    }
    
    .page-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .blog-controls {
        padding: 15px;
    }
    
    .search-container {
        flex-direction: column;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .blog-article-content {
        padding: 20px;
    }
    
    .blog-article-title {
        font-size: 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
} 