/* 古风导航网站样式 - 古典女性风格 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ZCOOL XiaoWei', serif;
    background: linear-gradient(135deg, #f5f5dc 0%, #ffe4e1 100%);
    color: #4a4a4a;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #8b4513 0%, #daa520 100%);
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="20" fill="rgba(255,255,255,0.1)">古</text></svg>') repeat;
    opacity: 0.1;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.5em;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 300;
}

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

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.admin-link {
    background: rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

/* 主要内容样式 */
.main-content {
    padding: 60px 0;
}

/* 搜索区域 */
.search-section {
    text-align: center;
    margin-bottom: 80px;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.search-section h2 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #8b4513;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #daa520;
    border-radius: 25px;
    font-size: 1.1em;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.search-input:focus {
    border-color: #8b4513;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.search-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #8b4513 0%, #daa520 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'ZCOOL XiaoWei', serif;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 分类区域 */
.categories-section {
    margin-bottom: 80px;
}

.categories-section h2 {
    text-align: center;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #8b4513;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1) 0%, rgba(139, 69, 19, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #daa520;
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.category-card h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #8b4513;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.category-link {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #8b4513 0%, #daa520 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.category-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 精选推荐 */
.featured-section {
    margin-bottom: 80px;
}

.featured-section h2 {
    text-align: center;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #8b4513;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5dc 0%, #ffe4e1 100%);
}

.featured-content {
    padding: 20px;
}

.featured-content h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #8b4513;
}

.featured-content p {
    color: #666;
    font-size: 0.95em;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #8b4513 0%, #daa520 100%);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 80px;
}

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

.footer-section h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .categories-grid,
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
        align-items: center;
    }
    
    .search-input {
        width: 100%;
        max-width: 400px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.featured-item {
    animation: fadeIn 0.6s ease-out;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }