/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0e0e0e;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 头部样式 */
header {
    background-color: #121212;
    padding: 20px 0;
    position: relative;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-icon, .menu-icon {
    font-size: 24px;
    cursor: pointer;
}

.logo {
    text-align: center;
    flex-grow: 1;
}

#logo-image {
    height: 70px;
    width: auto;
}

/* 主内容区样式 */
main {
    flex-grow: 1;
    padding: 40px 0;
}

.back-button {
    margin-bottom: 30px;
}

.back-button a {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

/* 分类导航样式 */
.category-nav {
    margin-bottom: 30px;
    text-align: center;
}

.category-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.category-nav li {
    font-size: 18px;
    text-transform: uppercase;
    padding: 5px 0;
    position: relative;
}

.category-nav li.active a {
    font-weight: bold;
}

.category-nav li.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
}

.category-nav li:not(.active) a {
    color: #777777;
}

/* 字母导航样式 */
.alphabet-nav {
    margin-bottom: 40px;
    text-align: center;
}

.alphabet-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.alphabet-nav li {
    font-size: 16px;
    text-transform: uppercase;
}

.alphabet-nav li a {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.alphabet-nav li a:hover {
    opacity: 1;
}

/* 模特卡片网格 */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* 模特卡片样式 */
.model-card {
    background-color: #1a1a1a;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s;
}

.model-card a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.model-card:hover {
    transform: translateY(-5px);
}

.model-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-name {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

/* 搜索框样式 */
.search-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 0 20px;
}

.search-box input {
    width: 100%;
    max-width: 600px;
    padding: 15px;
    font-size: 18px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #ffffff;
    color: #ffffff;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* 移动端菜单样式 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.mobile-menu .logo img {
    height: 50px;
}

.close-menu {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu nav {
    padding: 20px;
}

.mobile-menu nav ul li {
    margin-bottom: 15px;
}

.mobile-menu nav ul li a {
    font-size: 16px;
    display: block;
    padding: 10px 0;
}

/* 页脚样式 */
footer {
    background-color: #0e0e0e;
    padding: 50px 0 20px;
    text-align: center;
}

/* 页脚导航 */
.footer-nav {
    margin-bottom: 30px;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-nav li a {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

.footer-nav li a:hover {
    opacity: 0.8;
}

/* 社交媒体图标 */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    color: #fff;
    font-size: 20px;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.8;
}

.models-com img {
    height: 20px;
    width: auto;
}

/* 版权信息 */
.copyright {
    margin-top: 30px;
    font-size: 14px;
    color: #777;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-nav ul {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .category-nav li {
        font-size: 16px;
    }
    
    .alphabet-nav ul {
        gap: 10px;
    }
    
    .alphabet-nav li {
        font-size: 14px;
    }
    
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .footer-nav ul {
        gap: 20px;
    }
    
    .footer-nav li a {
        font-size: 14px;
    }
    
    .social-icons {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 0;
    }
    
    #logo-image {
        height: 30px;
    }
    
    .category-nav ul {
        gap: 10px;
    }
    
    .category-nav li {
        font-size: 14px;
    }
    
    .alphabet-nav ul {
        gap: 8px;
    }
    
    .alphabet-nav li {
        font-size: 12px;
    }
    
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .model-name {
        padding: 10px;
        font-size: 14px;
    }
    
    .footer-nav ul {
        gap: 15px;
        flex-direction: column;
    }
    
    .social-icons {
        gap: 15px;
    }
} 