/* 更新全局变量 - 更简洁的颜色方案 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #7f8c8d;
    --accent-color: #3498db;
    --light-color: #f5f7fa;
    --dark-color: #2c3e50;
    --text-color: #333333;
    --text-muted: #7f8c8d;
    --border-color: #e0e6ed;
    --bg-light: #f8f9fa;
}

/* 基础样式 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.7;
    margin: 0;
    background-color: var(--bg-light);
    color: var(--text-color);
}

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

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


/* 搜索提示样式 */
.search-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #856404;
    font-size: 0.9em;
}

.search-notice p {
    margin: 0;
    display: flex;
    align-items: center;
}

.search-notice p::before {
    content: "ℹ️";
    margin-right: 8px;
    font-size: 1.1em;
}

/* 搜索框样式调整 */
#search-box {
    margin-bottom: 20px;
}

/* 搜索结果样式 */
.ais-Hits-item {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    background: var(--card-background);
}

.ais-Highlight-highlighted {
    background-color: #fbeeb8;
}

.hit-title {
    margin: 0 0 8px 0;
}

.hit-summary {
    margin: 0;
    color: var(--text-muted);
}


/* 头部样式 */
.site-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

/* Logo 样式 */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.logo-image {
    height: 85px; /* 根据您的 Logo 调整高度 */
    width: auto; /* 保持宽高比 */
    margin-right: 10px; /* Logo 和文字之间的间距 */
    vertical-align: middle;
    transition: transform 0.3s ease, opacity 0.3s ease;
    /* 添加以下属性确保图片正确显示 */
    display: block;
    max-width: 100%;
}

.logo-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.inspirational-quote {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9em;
    text-align: center;
    flex-grow: 1;
    margin: 0 20px;
}

.main-nav {
    display: flex;
    gap: 10px;
    align-items: center; /* 确保导航项垂直居中 */
}

.nav-search-button {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-button:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .logo-image {
        height: 60px; /* 稍微缩小 */
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    .logo-image {
        height: 50px; /* 进一步缩小 */
        margin-right: 8px;
    }
}

/* 小屏幕移动设备 */
@media (max-width: 480px) {
    .logo-image {
        height: 45px; /* 在小屏幕上更小 */
        margin-right: 5px;
    }
}

/* 欢迎区域 */
.welcome-section {
    text-align: center;
    background: white;
    color: var(--text-color);
    padding: 30px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid var(--accent-color);
}

.welcome-section h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.welcome-section p {
    font-size: 1em;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* 内容分区 */
.content-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0;
    font-size: 1.3em;
    color: var(--primary-color);
}

.view-all {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9em;
}

/* 卡片布局 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.1em;
}

.card p {
    margin: 0 0 12px 0;
    color: var(--text-muted);
    font-size: 0.9em;
    line-height: 1.5;
}

.card .meta {
    font-size: 0.8em;
    color: var(--text-muted);
}

/* 特色卡片 */
.featured-card {
    background: var(--light-color);
    grid-column: 1 / -1;
}

.featured-card h4 {
    color: var(--primary-color);
}

.featured-card p {
    color: var(--text-muted);
}

/* 页脚样式 */
.site-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.8em;
    color: var(--text-muted);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        order: 1;
    }
    
    .inspirational-quote {
        order: 2;
        width: 100%;
        margin: 10px 0;
    }
    
    .main-nav {
        order: 3;
    }
    
    .logo-image {
        height: 32px; /* 在小屏幕上稍微缩小 Logo */
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
    
    .welcome-section h2 {
        font-size: 1.5em;
    }
}
