* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

/* 顶部菜单样式 */
.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.logo img {
    width: 150px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding-left: 40px;
}

.nav-menu li {
    margin-left: 90px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #777777;
}

.banner img {
    width: 100%;
    object-fit: contain;
}

/* 主背景区域 */
.hero-section {
    background: #FFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 40px 20px;
}

.hero-content {
    max-width: 888px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #000;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 21px;
    color: #555;
    line-height: 1.6;
}

.reviews {
    padding: 20px;
}

.review-item {
    font-style: italic;
    margin: 15px 0;
    color: #666;
    font-size: 18px;
}

.review-source {
    color: #888;
    margin-top: 5px;
    font-style: normal;
}


.books-container {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 80px;
}

.book-item {
    text-align: center;
    flex: 1;
}

.book-cover {
    height: 370px;
    margin: 40px auto 0;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.buy-button {
    display: inline-block;
    padding: 10px 50px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    margin-top: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.buy-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.button-1 {
    background-color: #fadadd;
}

.button-2 {
    background-color: #fff5cc;
}

.button-3 {
    background-color: #e6daf5;
}

/* 作者介绍区域 */
.author-section {
    background-color: #d6eaf8;
    padding: 80px 0;
}

.author-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.author-info {
    flex: 1;
    padding-right: 100px;
}

.author-image {
    height: 400px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-action {
    flex: 1;
    padding-left: 160px;
}

.author-title {
    font-size: 30px;
    margin-bottom: 20px;
    color: #000;
    font-weight: 800;
}

.author-text {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.press-button {
    display: inline-block;
    padding: 15px 50px;
    background-color: #fff5cc;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.press-button:hover {
    background-color: #d0bdec;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 订阅区域 */
.subscribe-section {
    padding: 80px 20px;
    background: #fff;
}

.subscribe-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #e6daf5;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.subscribe-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
    text-align: left;
}

.subscribe-text {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    text-align: left;
}

form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.submit-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #fadadd;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 20px auto 0;
}

.submit-button:hover {
    background-color: #f8c8cc;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 底部区域 */
.footer {
    background-color: #d6eaf8;
    padding: 50px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 20px;
}

.footer-left {
    flex: 1;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.footer-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.footer-links a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #777777;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    margin-left: 85px;
}

.social-icon {
    width: 40px;
    height: 40px;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-menu .active {
    color: #777777;
}

/* 响应式媒体查询 */
@media (max-width: 1200px) {
    .books-container {
        gap: 50px;
    }

    .author-container {
        padding: 0 20px;
    }

    .author-info {
        padding-right: 50px;
    }

    .author-action {
        padding-left: 50px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 40px;
    }

    .books-container {
        gap: 30px;
    }

    .book-cover {
        height: 320px;
    }

    .author-container {
        flex-direction: column;
    }

    .author-info {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }

    .author-action {
        padding-left: 0;
        text-align: center;
        margin-top: 30px;
    }

    .subscribe-container {
        padding: 40px;
    }
}

@media (max-width: 768px) {

    /* 顶部菜单响应式 */
    .menu-bar {
        padding: 15px 0;
    }

    .menu-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-direction: column;
        padding-left: 0;
        margin-top: 15px;
        width: 100%;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
        margin-left: 0;
    }

    .hamburger {
        display: block !important;
        position: absolute;
        top: 35px;
        right: 20px;
        cursor: pointer;
    }

    /* 主内容区 */
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .books-container {
        flex-direction: column;
        gap: 40px;
    }

    .book-item {
        max-width: 300px;
        margin: 0 auto;
    }

    /* 表单区域 */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    /* 底部区域 */
    .footer-container {
        flex-direction: column;
    }

    .footer-right {
        text-align: left;
        margin-top: 30px;
    }

    .social-icons {
        justify-content: flex-start;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        margin: 20px 10px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .review-item {
        font-size: 16px;
    }

    .book-cover {
        height: 280px;
    }

    .author-title {
        font-size: 24px;
    }

    .author-text {
        font-size: 16px;
    }

    .subscribe-container {
        padding: 30px 20px;
    }

    .subscribe-title {
        font-size: 24px;
    }

    .subscribe-text {
        font-size: 16px;
    }

    .footer-title {
        font-size: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* 新增汉堡菜单样式 */
.hamburger {
    display: none;
    width: 30px;
    height: 25px;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.open span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}