/**
 * AINovel 紧急修复样式
 * 解决菜单栏和布局混乱问题
 */

/* 基础重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 头部样式 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 64px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.site-logo:hover {
    color: #6200ee;
}

.logo-icon {
    font-size: 1.5rem;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #666;
    font-weight: 500;
    padding: 0.5rem 0;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #6200ee;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #6200ee;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-form {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 0.25rem;
}

.search-input {
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    width: 200px;
    outline: none;
}

.search-btn {
    border: none;
    background: #6200ee;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #3700b3;
}

.admin-link {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    color: #666;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}

.admin-link:hover {
    background: #6200ee;
    color: white;
}

/* 主要内容区域 */
main {
    min-height: calc(100vh - 64px - 160px);
    padding: 2rem 0;
}

/* 底部样式 */
.site-footer {
    background: #333;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-desc {
    color: #aaa;
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #aaa;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #6200ee;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1.5rem;
    text-align: center;
    color: #aaa;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 0.25rem;
}

/* Material Icons 基础样式 */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid #e0e0e0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-input {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .search-input {
        width: 120px;
    }
    
    .site-logo .logo-text {
        display: none;
    }
}