/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: #F5D76E;
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

/* 绿色背景区域 */
.green-background {
    background: #A8D96E;
    width: 100%;
    /* max-width: 2400px; */
    min-height: 450px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    overflow: visible;
}

/* 左侧装饰树图 */
.left-tree-decoration {
    position: absolute;
    right: 50px;
    bottom: 0;
    z-index: 5;
}

.tree-image {
    width: 200px;
    height: auto;
    display: block;
}

/* 顶部装饰图标 */
.header-icons {
    display: none;
}

.icon-headphone {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 主标题区域 */
.main-header {
    max-width: 900px;
    margin: 40px auto 30px;
    text-align: center;
    position: relative;
}

.header-decoration {
    position: absolute;
    top: 30px;
    right: 0;
    width: 300px;
    height: auto;
    z-index: 10;
}

.title-banner {
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}

/* 介绍文字 */
.intro-section {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.highlight {
    font-weight: bold;
    color: #E74C3C;
}

/* 内容展示网格 */
.content-grid {
    max-width: 1000px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

/* 内容卡片 */
.content-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.card-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    padding: 8px 20px;
    font-weight: bold;
    font-size: 14px;
    color: white;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    z-index: 1;
    transform: rotate(-5deg);
}

.badge-red {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
}

.badge-green {
    background: linear-gradient(135deg, #27AE60, #229954);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.book-cover {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 5/7;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.book-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 10px 0 5px 0;
    text-align: center;
    line-height: 1.4;
}

.qr-code img {
    width: 120px;
    height: 120px;
    border: 3px solid #333;
    border-radius: 5px;
}

.qr-text {
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* 底部区域 */
.footer-section {
    width: 100%;
    margin: 50px auto 30px;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-qr-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.footer-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-qr {
    margin-bottom: 20px;
}

.footer-qr img {
    width: 150px;
    height: 150px;
    border: 4px solid #000;
    border-radius: 8px;
}

.footer-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-logo img {
    width: auto;
    height: 20px;
}

.footer-icp {
    margin-top: 15px;
}

.footer-icp p {
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.footer-icp .separator {
    margin: 0 10px;
    color: #999;
}

.footer-icp a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-icp .beian-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

.footer-icp a:hover {
    color: #333;
    text-decoration: underline;
}

/* 装饰元素 */
.decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.deco-book {
    position: absolute;
    font-size: 40px;
    animation: float 3s ease-in-out infinite;
}

.deco-yellow {
    bottom: 60%;
    left: 5%;
    animation-delay: 0s;
}

.deco-orange {
    top: 15%;
    right: 8%;
    animation-delay: 1s;
}

.deco-tree {
    position: absolute;
    top: 40%;
    right: 3%;
    font-size: 60px;
    animation: sway 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes sway {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .icon-headphone {
        width: 50px;
        height: 50px;
    }

    .header-decoration {
        width: 200px;
        top: 40px;
    }

    .title-image {
        max-width: 500px;
    }

    .intro-text {
        font-size: 14px;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .tree-image {
        width: 150px;
    }

    .left-tree-decoration {
        right: 30px;
    }

    .footer-qr-container {
        gap: 40px;
    }

    .footer-text {
        font-size: 16px;
    }

    .deco-tree {
        font-size: 45px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
    body {
        padding: 10px;
        background: linear-gradient(180deg, #A8D96E 0%, #A8D96E 65%, #F5D76E 65%, #F5D76E 100%);
    }

    .icon-headphone {
        width: 40px;
        height: 40px;
        top: 10px;
        left: 10px;
    }

    .main-header {
        margin: 30px auto 20px;
    }

    .header-decoration {
        width: 150px;
        top: 50px;
        right: -10px;
    }

    .title-banner {
        padding: 20px 15px;
    }

    .title-image {
        max-width: 100%;
    }

    .intro-section {
        margin: 20px auto;
    }

    .intro-text {
        font-size: 13px;
        padding: 15px;
        line-height: 1.6;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 30px auto;
    }

    .content-card {
        padding: 15px;
    }

    .card-badge {
        font-size: 12px;
        padding: 6px 15px;
    }

    .book-cover {
        max-width: 180px;
    }

    .qr-code img {
        width: 100px;
        height: 100px;
    }

    .tree-image {
        width: 120px;
    }

    .left-tree-decoration {
        right: 20px;
    }

    .footer-icp p {
        font-size: 12px;
        flex-direction: column;
        gap: 8px;
    }

    .footer-icp .separator {
        display: none;
    }

    .footer-qr-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-qr img {
        width: 120px;
        height: 120px;
    }

    .footer-text {
        font-size: 14px;
    }

    .footer-logo img {
        height: 35px;
    }

    /* 隐藏部分装饰元素以简化移动端 */
    .deco-book {
        display: none;
    }

    .deco-tree {
        font-size: 35px;
        right: 5%;
        top: 35%;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .title-image {
        max-width: 100%;
    }

    .intro-text {
        font-size: 12px;
    }

    .book-cover {
        max-width: 150px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
    }

    .title-image {
        max-width: 700px;
    }
}