@font-face {
    font-family: 'MiSans-Bold';
    src: url('/wikistatic/font/MiSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'MiSans-Medium';
    src: url('/wikistatic/font/MiSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'MiSans-Regular';
    src: url('/wikistatic/font/MiSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'MiSans-Regular', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    padding-top: 70px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo h1 {
    font-family: 'MiSans-Bold', sans-serif;
    font-size: 24px;
    margin-left: 10px;
}

.logo i {
    font-size: 28px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-family: 'MiSans-Medium', sans-serif;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: white;
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover:after {
    width: 100%;
}

nav ul li.active a:after {
    width: 100%;
}

/* Main Content Styles */
.main-content {
    display: flex;
    margin-top: 30px;
    gap: 30px;
}

.content-left {
    flex: 0 0 70%;
}

.content-right {
    flex: 0 0 30%;
}

/* Carousel Styles */
.carousel {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
    height: 300px;
}

.carousel-content {
    padding: 30px;
    background: linear-gradient(to right, rgba(26, 115, 232, 0.8), rgba(13, 71, 161, 0.9));
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel h2 {
    font-family: 'MiSans-Bold', sans-serif;
    font-size: 32px;
    margin-bottom: 15px;
}

.carousel p {
    font-size: 16px;
    margin-bottom: 20px;
    max-width: 80%;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.carousel-indicator.active {
    background: white;
}

/* Category Section Styles */
.category-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.section-header h2 {
    font-family: 'MiSans-Bold', sans-serif;
    font-size: 20px;
    color: #1a73e8;
    display: flex;
    align-items: center;
}

.section-header h2 i {
    margin-right: 10px;
    font-size: 22px;
}

.view-more {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.view-more:hover {
    color: #0d47a1;
}

.view-more i {
    margin-left: 5px;
    font-size: 16px;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-item {
    padding: 15px;
    border-radius: 8px;
    background: #f5f7fa;
    transition: all 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(26, 115, 232, 0.1);
}

.category-item h3 {
    font-family: 'MiSans-Medium', sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.category-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.category-item a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.category-item a i {
    margin-left: 5px;
    font-size: 14px;
}

/* Sidebar Styles */
.sidebar-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-header h3 {
    font-family: 'MiSans-Bold', sans-serif;
    font-size: 18px;
    color: #1a73e8;
    display: flex;
    align-items: center;
}

.sidebar-header h3 i {
    margin-right: 10px;
    font-size: 20px;
}

.ranking-list {
    list-style: none;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-number {
    width: 24px;
    height: 24px;
    background: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 10px;
    font-family: 'MiSans-Medium', sans-serif;
}

.ranking-item:nth-child(1) .ranking-number {
    background: #f44336;
}

.ranking-item:nth-child(2) .ranking-number {
    background: #ff9800;
}

.ranking-item:nth-child(3) .ranking-number {
    background: #4caf50;
}

.ranking-content {
    flex: 1;
}

.ranking-content a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
}

.ranking-content a:hover {
    color: #1a73e8;
}

.ranking-views {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.update-list {
    list-style: none;
}

.update-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.update-item:last-child {
    border-bottom: none;
}

.update-item a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    display: block;
    margin-bottom: 5px;
}

.update-item a:hover {
    color: #1a73e8;
}

.update-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.recommended-item {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #f5f7fa;
    transition: all 0.3s;
}

.recommended-item:last-child {
    margin-bottom: 0;
}

.recommended-item:hover {
    background: #e3f2fd;
}

.recommended-item h4 {
    font-family: 'MiSans-Medium', sans-serif;
    font-size: 16px;
    margin-bottom: 8px;
}

.recommended-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.recommended-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* Footer Styles */
footer {
    background: #1a73e8;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    padding: 0 15px;
}

.footer-column h3 {
    font-family: 'MiSans-Bold', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: white;
    bottom: 0;
    left: 0;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .content-left, .content-right {
        flex: 0 0 100%;
    }
    
    .category-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        margin-bottom: 30px;
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: #1a73e8;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'MiSans-Medium', sans-serif;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1a73e8;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    z-index: 999;
}

.fab:hover {
    background: #0d47a1;
    transform: scale(1.1);
}

.fab i {
    font-size: 24px;
}