/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: white;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: transparent !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: rgba(26, 26, 46, 0.9);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    position: relative;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 40px;
    width: auto;
    /* filter: drop-shadow(0 0 8px rgba(0, 180, 219, 0.6)); */
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(45deg, #00b4db, #0083b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
    background: rgba(255,255,255,0.1);
}

.nav a:hover,
.nav a.active {
    background: rgba(0, 180, 219, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 219, 0.2);
}

.search-form {
    display: flex;
    gap: 5px;
}

.search-form input {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    width: 200px;
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(5px);
}

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

.search-form button {
    background: rgba(0, 180, 219, 0.8);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
}

.search-form button:hover {
    background: rgba(0, 180, 219, 1);
    transform: scale(1.05);
}

/* 主要内容布局 */
.main-container {
    display: flex;
    gap: 30px;
    margin: 30px auto;
    position: relative;
    z-index: 10;
}

.content {
    flex: 3;
    background: rgba(255,255,255,0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.sidebar {
    flex: 1;
    min-width: 250px;
}

/* 文章卡片 */
.articles-grid {
    display: grid;
    gap: 20px;
}

.article-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: rgba(0, 180, 219, 0.3);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

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

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

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #667eea;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.9rem;
}

.article-meta i {
    margin-right: 5px;
    color: #00b4db;
}

.article-intro {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
}

.article-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-read, .btn-external {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-read {
    background: rgba(0, 180, 219, 0.9);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-read:hover {
    background: rgba(0, 180, 219, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 219, 0.3);
}

.btn-external {
    background: rgba(241, 243, 249, 0.8);
    color: #666;
    border: 1px solid #ddd;
}

.btn-external:hover {
    background: rgba(228, 231, 240, 0.8);
    transform: translateY(-2px);
}

/* 侧边栏样式 */
.sidebar-widget {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.sidebar-widget h3 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00b4db;
    display: flex;
    align-items: center;
    gap: 10px;
}

.latest-articles li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.latest-articles li:last-child {
    border-bottom: none;
}

.latest-articles a {
    color: #333;
    text-decoration: none;
    flex: 1;
    transition: color 0.3s;
}

.latest-articles a:hover {
    color: #00b4db;
}

.article-date {
    color: #999;
    font-size: 0.85rem;
}

.site-info p {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.site-info i {
    color: #00b4db;
    width: 20px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 15px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.page-link:hover {
    background: rgba(0, 180, 219, 0.8);
    color: white;
    border-color: rgba(0, 180, 219, 0.8);
}

.page-link.active {
    background: rgba(0, 180, 219, 0.9);
    color: white;
    border-color: rgba(0, 180, 219, 0.9);
}

/* 页头样式 */
.page-header {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.page-header h2 {
    color: white;
    margin-bottom: 5px;
}

/* 无文章样式 */
.no-articles {
    text-align: center;
    padding: 50px 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    color: #666;
}

.no-articles i {
    color: #ddd;
    margin-bottom: 20px;
    font-size: 3em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .nav {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .search-form input {
        width: 100%;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
}