/*
Theme Name: 爱思助手 Theme
Description: 基于爱思助手官网设计的WordPress主题
Version: 1.0
Author: Jun
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.site-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.site-logo img {
    height: 40px;
    margin-right: 10px;
}

.site-title {
    font-size: 20px;
    font-weight: bold;
}

.main-navigation {
    margin-top: 10px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    background-color: rgba(255,255,255,0.1);
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 主要内容区域 */
.main-content {
    padding: 40px 0;
    background: white;
}

.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* 文章卡片样式 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.article-title a {
    color: inherit;
    text-decoration: none;
}

.article-title a:hover {
    color: #4a90e2;
}

.article-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.read-more {
    color: #4a90e2;
    text-decoration: none;
    font-weight: bold;
}

/* 精选游戏区域样式 */
.featured-games {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.more-link {
    font-size: 14px;
    color: #4a90e2;
    text-decoration: none;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-2px);
}

.game-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.game-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.game-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.rating-star {
    color: #ffa500;
}

/* 新闻区域样式 */
.news-section {
    background: #f8f9fa;
    padding: 40px 0;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
    align-items: center;
}

.news-icon {
    width: 60px;
    height: 60px;
    background: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.news-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.news-content h3 a {
    color: inherit;
    text-decoration: none;
}

.news-content h3 a:hover {
    color: #4a90e2;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.news-date {
    font-size: 12px;
    color: #999;
}

/* 侧边栏样式 */
.sidebar {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.widget ul li a:hover {
    color: #4a90e2;
}

/* 单页文章样式 */
.single-article {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.single-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.3;
}

.single-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.single-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.single-content p {
    margin-bottom: 20px;
}

.single-content h1, .single-content h2, .single-content h3 {
    margin: 30px 0 15px 0;
    color: #2c3e50;
}

.single-content h1 {
    font-size: 28px;
}

.single-content h2 {
    font-size: 24px;
}

.single-content h3 {
    font-size: 20px;
}

/* 底部样式 */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #4a90e2;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
}

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

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #bbb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .content-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
        text-align: center;
    }

    .single-article {
        padding: 20px;
    }

    .single-title {
        font-size: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 40px 0;
    }

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

    .article-card, .game-card, .sidebar {
        margin: 0 10px;
    }
}
