/* 整体布局 */
body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
}

/* 页头样式 */
header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    margin: 0;
    color: #333;
    font-size: 32px;
}

/* 导航样式 */
nav {
    width: 1200px;
    margin: 20px auto 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 20px;
}

nav a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
}

nav a:hover {
    color: #e74c3c;
}

/* 焦点图 */
.banner {
    width: 1200px;
    margin: 20px auto;
}

.banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* 内容区样式 */
main {
    width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    background: #fff;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 5px;
}

section h2 {
    color: #333;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    margin-top: 0;
}

.book-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.book-item {
    text-align: center;
}

.book-item img {
    width: 200px;
    height: 280px;
    object-fit: cover;
}

.book-item h3 {
    margin: 10px 0;
    font-size: 16px;
}

.price {
    color: #e74c3c;
    font-weight: bold;
}

/* 页脚样式 */
footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.copyright {
    font-size: 14px;
    color: #999;
}

/* 添加新的样式 */
.discount {
    color: #e74c3c;
    font-size: 20px;
    font-weight: bold;
}

del {
    color: #999;
    font-size: 14px;
}

.sales {
    color: #666;
    font-size: 14px;
}

.book-item {
    position: relative;
    transition: transform 0.3s;
}

.book-item:hover {
    transform: translateY(-5px);
}

[class^="rank-"]::before {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
}

.rank-1::before {
    content: "1";
    background: #e74c3c;
}

.rank-2::before {
    content: "2";
    background: #e67e22;
}

.rank-3::before {
    content: "3";
    background: #f1c40f;
}

.rank-4::before {
    content: "4";
    background: #95a5a6;
}

.theme-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.theme-item {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
}

.theme-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.theme-item h3 {
    margin: 15px 0 10px;
    font-size: 18px;
}

.theme-item p {
    color: #666;
    margin-bottom: 15px;
} 