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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.8;
    color: #555;
    background-color: #fef8f5;
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: #ff6b6b;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #ff8c94;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

/* 按钮样式 */
button, .btn-primary, .btn-secondary, .btn-submit, .btn-back, .btn-ask {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background-color: #ff5252;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background-color: #ffa5a5;
    color: white;
}

.btn-secondary:hover {
    background-color: #ff8c8c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 165, 165, 0.3);
}

.btn-submit {
    background-color: #ff9a76;
    color: white;
    padding: 14px 36px;
    font-size: 18px;
    border-radius: 30px;
}

.btn-submit:hover {
    background-color: #ff875f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 154, 118, 0.3);
}

.btn-back, .btn-ask {
    background-color: #ffeaa7;
    color: #555;
    margin-top: 20px;
}

.btn-back:hover, .btn-ask:hover {
    background-color: #fdcb6e;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 234, 167, 0.4);
}

.btn-share {
    background-color: #74b9ff;
    color: white;
    margin-top: 20px;
    margin-left: 15px;
}

.btn-share:hover {
    background-color: #0984e3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(116, 185, 255, 0.4);
}

.btn-share.copied {
    background-color: #00b894;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4);
}

/* 头部样式 */
header {
    background-color: #fff5f5;
    box-shadow: 0 2px 15px rgba(255, 107, 107, 0.1);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #ffebee;
    width: 100%;
}

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

.logo {
    font-size: 32px;
    font-weight: bold;
    color: #ff6b6b;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    text-shadow: 1px 1px 2px rgba(255, 107, 107, 0.3);
}

.logo a {
    color: #ff6b6b;
    text-decoration: none;
}

.ask-box {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
    min-width: 200px;
}

.ask-box form {
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ask-box input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #ffebee;
    border-right: none;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    background-color: white;
    transition: all 0.3s ease;
    height: 48px;
}

.ask-box input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.ask-box button {
    background-color: #ff6b6b;
    color: white;
    padding: 0 25px;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 48px;
}

.ask-box button:hover {
    background-color: #ff5252;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* 导航菜单 */
nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 25px;
    position: relative;
    white-space: nowrap;
}

nav ul li a {
    color: #666;
    padding: 10px 15px;
    font-weight: 500;
    font-size: 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

nav ul li a:hover {
    color: #ff6b6b;
    background-color: #fff5f5;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.15);
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.15);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid #ffebee;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #555;
    border-radius: 0;
    font-size: 15px;
}

.dropdown-menu li a:hover {
    background-color: #fff5f5;
    color: #ff6b6b;
    transform: translateX(5px);
    box-shadow: none;
}

/* 面包屑样式 */
.breadcrumb {
    margin-bottom: 30px;
    padding: 12px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
    color: #ffb6b9;
    font-weight: bold;
}

.breadcrumb a {
    color: #ff8c94;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

.breadcrumb .current {
    color: #ff6b6b;
    font-weight: 600;
}

/* 主内容区域 */
main {
    padding: 30px 0;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #ffb6b9, #ffdac1);
    color: #555;
    padding: 80px 0;
    margin: 40px 0 40px 0;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(255, 182, 185, 0.3);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff6b6b;
    text-shadow: 1px 1px 2px rgba(255, 107, 107, 0.2);
    font-weight: bold;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 分类展示 */
.categories-section {
    margin-bottom: 60px;
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 36px;
    color: #ff6b6b;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.category-item {
    background-color: white;
    padding: 35px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #555;
    border: 2px solid #ffebee;
}

.category-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffb6b9, #ffdac1);
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 2px 10px rgba(255, 182, 185, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ff6b6b;
}

.category-item:hover .category-icon {
    transform: rotate(10deg);
    background: linear-gradient(135deg, #ff6b6b, #ffa5a5);
    color: white;
}

/* 分类列表页面样式 */
.categories-list-section {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffebee;
}

.categories-list-section h1 {
    text-align: center;
    margin-bottom: 15px;
    color: #ff6b6b;
    font-size: 36px;
}

.section-description {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 18px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.category-description-short {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.5;
    text-align: center;
}

.category-tips {
    background-color: #fff5f5;
    border-radius: 16px;
    padding: 25px;
    margin-top: 40px;
    border: 2px solid #ffebee;
}

.category-tips h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 20px;
}

.category-tips ul {
    padding-left: 20px;
    color: #666;
}

.category-tips li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.category-tips a {
    color: #ff6b6b;
    font-weight: 500;
}

.category-tips a:hover {
    color: #ff5252;
    text-decoration: underline;
}

/* 下拉菜单分隔线 */
.dropdown-divider {
    height: 1px;
    background-color: #ffebee;
    margin: 8px 0;
}

/* AI分类预览相关样式 */
.category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.category-option {
    background-color: #fff5f5;
    border: 2px solid #ffebee;
    border-radius: 16px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

.category-option:hover {
    background-color: #ffebee;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
}

.category-option input {
    margin-right: 8px;
    accent-color: #ff6b6b;
}

.category-option input:checked + span {
    color: #ff6b6b;
    font-weight: bold;
}

.ai-category-option {
    background-color: #fff5f5;
    border: 2px solid #ffebee;
}

.ai-category-option:hover {
    background-color: #ffebee;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
}

.ai-category-option input:checked + span {
    color: #ff6b6b;
    font-weight: bold;
    background-color: transparent;
}

.ai-icon {
    margin-right: 5px;
}

.ai-category-preview {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.ai-category-preview .preview-header {
    font-weight: bold;
    color: #4c6ef5;
    margin-bottom: 10px;
    font-size: 16px;
}

.ai-category-preview .preview-content {
    font-size: 14px;
    line-height: 1.5;
}

.confidence-score {
    font-weight: bold;
    font-size: 15px;
}

.category-reason {
    font-style: italic;
    color: #6c757d;
    margin-top: 8px;
    font-size: 13px;
}

.error-message {
    color: #dc3545;
    font-weight: bold;
}

/* 文章展示 */
.latest-articles, .related-articles {
    margin-bottom: 60px;
}

.latest-articles h2, .related-articles h2 {
    margin-bottom: 30px;
    font-size: 36px;
    color: #ff6b6b;
    text-align: center;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.article-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #ffebee;
    padding: 30px;
    margin-bottom: 25px;
    cursor: pointer;
}

.article-card h3,
.article-card h4 {
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 1.4;
}

.article-card .article-excerpt {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
}

.article-card .article-info {
    padding: 0;
}

.article-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
}

/* 动态加载指示器样式 */
.loading-indicator {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background-color: #ff6b6b;
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
    background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    from {
        background-position: 1rem 0;
    }
    to {
        background-position: 0 0;
    }
}

.loading-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.loading-dots {
    font-weight: bold;
    color: #495057;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.loading-steps .step {
    color: #6c757d;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.loading-steps .step.active {
    color: #ff6b6b;
    opacity: 1;
    font-weight: bold;
}

.article-info {
    /* 移除内边距，因为 .article-card 已经有了内边距 */
    padding: 0;
}

.article-info h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #ff6b6b;
}

.article-info h3 a {
    color: #ff6b6b;
    text-decoration: none;
}

.article-info h3 a:hover {
    color: #ff5252;
    text-decoration: underline;
}

.article-excerpt {
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.7;
}

.article-meta {
    display: flex;
    font-size: 14px;
    color: #999;
    flex-wrap: wrap;
    gap: 15px;
}

.article-meta span {
    margin-right: 0;
    background-color: #fff5f5;
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid #ffebee;
}

/* 文章标签样式 */
.article-meta-tags {
    background-color: #fff5f5;
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid #ffebee;
    margin-right: 15px;
    color: #999;
    font-weight: normal;
}

.article-tag-link {
    color: #ff6b6b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.article-tag-link:hover {
    color: #ff8c94;
    text-decoration: underline;
}

/* 常见问题 */
.faq-section {
    margin-bottom: 60px;
}

.faq-section h2 {
    margin-bottom: 30px;
    font-size: 36px;
    color: #ff6b6b;
    text-align: center;
}

.faq-list {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffebee;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #ffebee;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #ff6b6b;
    display: flex;
    align-items: center;
}

.faq-item h3::before {
    content: "💡";
    margin-right: 10px;
    font-size: 24px;
}

.faq-item p {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    margin-left: 34px;
}

/* 提问页面 */
.ask-section {
    background-color: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffebee;
}

/* API配置警告样式 */
.api-configuration-alert {
    display: flex;
    background-color: #fff5f5;
    border: 2px solid #ffb6b9;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    align-items: flex-start;
}

.api-configuration-alert .alert-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: #ff6b6b;
}

.api-configuration-alert .alert-content h3 {
    color: #ff6b6b;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.api-configuration-alert .alert-content p {
    color: #666;
    margin-bottom: 0.5rem;
}

.api-configuration-alert .alert-content a {
    color: #ff6b6b;
    text-decoration: underline;
    font-weight: bold;
}

.api-configuration-alert .alert-content a:hover {
    color: #ff5252;
}

.ask-section h1 {
    margin-bottom: 30px;
    font-size: 36px;
    color: #ff6b6b;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #ff6b6b;
    font-size: 18px;
}

.form-group textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid #ffebee;
    border-radius: 16px;
    font-size: 16px;
    resize: vertical;
    min-height: 180px;
    font-family: 'Microsoft YaHei', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-tips {
    background-color: #fff5f5;
    border-left: 4px solid #ff6b6b;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 0 16px 16px 0;
    border: 1px solid #ffebee;
}

.form-tips h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #ff6b6b;
}

.form-tips ul {
    padding-left: 20px;
}

.form-tips ul li {
    margin-bottom: 8px;
    color: #666;
}

.popular-questions {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #ffebee;
}

.popular-questions h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #ff6b6b;
}

.popular-questions ul {
    padding-left: 20px;
}

.popular-questions ul li {
    margin-bottom: 12px;
}

.popular-questions ul li a {
    color: #ff8c94;
    font-size: 15px;
    line-height: 1.6;
}

.popular-questions ul li a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

/* 搜索页面 */
.search-section {
    background-color: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffebee;
}

.search-section h1 {
    margin-bottom: 20px;
    font-size: 36px;
    color: #ff6b6b;
    text-align: center;
}

.search-form {
    margin-bottom: 30px;
}

.search-form form {
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ffebee;
    border-right: none;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.search-form button {
    background-color: #ff6b6b;
    color: white;
    padding: 0 25px;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background-color: #ff5252;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* 无查询时的提示容器 */
.no-query-container {
    text-align: center;
    padding: 40px 20px;
    background-color: #fafafa;
    border-radius: 15px;
    margin-top: 20px;
}

.no-query-container h2 {
    color: #ff6b6b;
    font-size: 28px;
    margin-bottom: 10px;
}

.no-query-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* 热门TAG词 */
.hot-tags {
    margin-top: 30px;
    text-align: left;
}

.hot-tags h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.tag-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ffebee;
    color: #ff6b6b;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #ffebee;
}

.tag-button:hover {
    background-color: #ff6b6b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.2);
}

.search-results {
    margin-bottom: 30px;
}

.search-results h2 {
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #ffebee;
    padding-bottom: 10px;
    color: #ff6b6b;
}

.result-item {
    padding: 20px;
    border: 2px solid #ffebee;
    border-radius: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background-color: white;
}

.result-item:hover {
    border-color: #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
    transform: translateY(-2px);
}

.result-item h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #ff6b6b;
}

.result-item h3 a {
    color: #ff6b6b;
    text-decoration: none;
}

.result-item h3 a:hover {
    color: #ff5252;
    text-decoration: underline;
}

.result-meta {
    display: flex;
    font-size: 14px;
    color: #999;
    flex-wrap: wrap;
    gap: 15px;
}

.result-meta span {
    margin-right: 0;
    background-color: #fff5f5;
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid #ffebee;
}

/* 文章详情页面 */
.article-section {
    background-color: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffebee;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ffebee;
    text-align: center;
}

.article-header h1 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content h2, .article-content h3 {
    margin: 30px 0 15px;
    color: #ff6b6b;
}

.related-qa {
    background-color: #fff5f5;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid #ffebee;
}

.related-qa h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #ff6b6b;
}

.qa-item {
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #ffebee;
}

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

.qa-question, .qa-answer {
    margin-bottom: 10px;
}

.qa-question {
    font-weight: 600;
    color: #ff6b6b;
}

.qa-answer {
    color: #666;
    line-height: 1.7;
}

.article-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #ffebee;
    justify-content: center;
}

/* 分类页面 */
.category-section {
    background-color: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffebee;
}

.category-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ffebee;
    text-align: center;
}

.category-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #ff6b6b;
}

.category-description {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}

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

.pagination a, .pagination span {
    padding: 12px 18px;
    margin: 0 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.pagination span.current, .pagination a.active {
    background-color: #ff6b6b;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
}

.pagination a {
    background-color: #fff5f5;
    color: #ff6b6b;
    border: 2px solid #ffebee;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* 上一页/下一页按钮样式 */
.pagination .prev, .pagination .next {
    background-color: #fff5f5;
    color: #ff6b6b;
    border: 2px solid #ffebee;
    min-width: 100px;
    font-weight: 600;
}

.pagination a.prev:hover, .pagination a.next:hover {
    background-color: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* 禁用状态样式 */
.pagination .disabled {
    background-color: #f5f5f5;
    color: #ccc;
    border: 2px solid #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #ffb6b9, #ffdac1);
    color: #555;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 2px solid #ffebee;
}

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

.footer-info h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 32px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 107, 107, 0.3);
}

.footer-links h4, .footer-categories h4 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #ff6b6b;
}

.footer-links ul, .footer-categories ul {
    list-style: none;
}

.footer-links li, .footer-categories li {
    margin-bottom: 10px;
}

.footer-links a, .footer-categories a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover, .footer-categories a:hover {
    color: #ff6b6b;
    text-decoration: underline;
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #ffebee;
    color: #666;
    font-size: 14px;
}

/* 消息提示 */
.success-message, .error-message {
    padding: 18px 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 2px solid #c8e6c9;
}

.success-message::before {
    content: "✅";
    font-size: 20px;
}

.error-message {
    background-color: #fff5f5;
    color: #c62828;
    border: 2px solid #ffb6b9;
}

.error-message::before {
    content: "❌";
    font-size: 20px;
}

.no-results, .no-articles, .no-query {
    text-align: center;
    padding: 50px 20px;
    color: #999;
    background-color: white;
    border-radius: 20px;
    border: 2px solid #ffebee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.no-results::before, .no-articles::before, .no-query::before {
    content: "📭";
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    color: #ffb6b9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    .ask-box {
        width: 100%;
        margin: 0 0 15px 0;
    }

    nav ul {
        width: 100%;
        justify-content: space-around;
    }

    nav ul li {
        margin: 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions a {
        width: 80%;
    }

    .articles-grid, .categories-grid {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 28px;
    }

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

    .article-actions {
        flex-direction: column;
    }

    .article-actions a, .article-actions button {
        width: 100%;
    }

    .ask-section, .search-section, .article-section, .category-section {
        padding: 20px;
    }
}
