* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #222222;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1200px;
    z-index: 99;
    position: relative;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #222222;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 80px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 48px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.nav-link {
    flex-shrink: 0;
    text-decoration: none;
    color: #999999;
    font-size: 16px;
    transition: color 0.3s;
    cursor: pointer;
    position: relative;
    padding: 24px 0;
}

.nav-link:hover {
    color: #F9E305;
}

.nav-link.active {
    color: #F9E305;
    font-weight: bold;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #F9E305;
}

img {
    display: block !important;
    margin: 0;
}

/* Hero Section */
.hero {
    position: relative;
    margin-top: 80px;
    background: #F9E305;
    display: flex;
    align-items: center;
    /* overflow-x 单独设置会使 overflow-y 变为 auto，叠加大块绝对定位 .mark 易出现 hero 内竖向滚动条 */
    overflow: hidden;
}

.hero .mark {
    position: absolute;
    right: 0;
    top: 0;
    height: 750px;
    width: 1157px;
    background: url("../img/index_mark.png") no-repeat;
    background-size: cover;
    z-index: 1;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 24px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}


.hero-title {
    width: 388px;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.btn-download {
    background: #222222;
    color: #F9E305;
    border: none;
    width: 228px;
    padding: 18px 50px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(249, 227, 5, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 227, 5, 0.3);
}

.hero-image {
    flex: 1;
    text-align: center;
    margin-top: 26px;
    min-width: 0;
    margin-right: -156px;
}

.hero-image img {
    width: 100%;
    max-width: 700px;
    height: auto;
}

/* Section Styles */
.section {
    padding: 98px 0;
    background: #fff;
}

.section-02 {
    background: #F9E305;
}

.section-01 {
    position: relative;
    background-image: url("../img/logo_mark.png");
    background-size: 637px 570px;
    background-repeat: no-repeat;
    background-position: 58px 92px;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-number {
    margin-bottom: 18px;
}

.section-number img {
    width: 59px;
    height: 63px;
}

.section-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 48px;
    font-weight: bold;
    color: #333;
    margin-bottom: 28px;
}

.section-split {
    width: 46px;
    height: 4px;
    background: #222222;
    margin-bottom: 28px;
}

.section-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 60px;
    letter-spacing: 4px;
}

.section-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    padding: 16px 16px 16px 50px;
    background: #FFFFFF;
    border-radius: 24px;
    margin: auto;
}

/* Section 01: 热门题材 */
.genres-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}


.genre-list-box {
    flex: 1;
    background: #fff;
    border-radius: 15px;
    padding: 30px;
}

.genre-list-label {
    font-size: 36px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 16px;
}

.genre-list {
    font-size: 20px;
    color: #999;
}

.genre-cards {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.genre-card {
    position: relative;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    width: 240px;
    flex-shrink: 0;
}

/* 都市和修仙卡片宽度为176px */
.genre-card:nth-child(2),
.genre-card:nth-child(3) {
    width: 176px;
}

.genre-card:hover {
    transform: translateY(-5px);
}

.genre-card img {
    width: 100%;
    height: 370px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

.genre-card .mark {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 16px;
    background-color: rgba(0, 0, 0, 0.4);
}

.genre-card span {
    position: absolute;
    display: block;
    font-size: 36px;
    color: #ffffff;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
}

/* Section 02: 边看边赚 */
.earn-content {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.earn-description {
    align-items: flex-start;
}

.earn-description .section-title-group {
    align-items: flex-start;
}

/* 小屏幕下居中显示 */
@media (max-width: 1023px) {
    .earn-description {
        align-items: center !important;
    }

    .earn-description .section-title-group {
        align-items: center !important;
    }
}

.earn-images {
    text-align: center;
    margin-top: 40px;
}

.earn-images img {
    width: 100%;
    max-width: 583px;
    height: auto;
}

/* Section 03: 关于我们（大图须限制在容器内，避免 intrinsic 宽度撑出横向滚动） */
.about-images {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.about-images img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Section: 用户协议和隐私政策 */
.section-agreement {
    margin-top: 40px;
    padding: 100px 0;
    background: #fff;
    min-height: 600px;
    display: none; /* 默认隐藏 */
}

.iframe-container {
    width: 100%;
    height: 892px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.content-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Footer */
.footer {
    background: #222222;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    font-size: 20px;
    color: #999999;
    margin: 8px 0;
    line-height: 1.6;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ==================== 响应式设计 ==================== */

/* 大屏幕 (1440px 及以上) */
@media (min-width: 1440px) {
    .container {
        max-width: 1200px;
    }
}

/* 中等屏幕 (1024px - 1439px) */
@media (max-width: 1439px) {
    .container {
        max-width: 1200px;
        padding: 0 40px;
        box-sizing: border-box;
    }

    .section-content {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero .mark {
        width: 100%;
        max-width: 100%;
        height: 600px;
    }

    .hero-content {
        justify-content: center;
    }

    .hero-image {
        margin-right: 0;
    }

    .hero-image img {
        width: 100%;
        max-width: 600px;
        height: auto;
    }

    .hero-title {
        max-width: 100%;
        height: auto;
    }

    .section-content {
        width: 100%;
        max-width: 1100px;
    }

    .genre-card {
        width: 200px;
    }

    /* 都市和修仙卡片宽度 */
    .genre-card:nth-child(2),
    .genre-card:nth-child(3) {
        width: 147px;
    }

    .genre-card img {
        width: 100%;
        height: 310px;
        object-fit: cover;
    }

    .earn-content {
        width: 100%;
        max-width: 1100px;
    }

    .earn-images img {
        width: 100%;
        max-width: 500px;
        height: auto;
    }

}

/* 平板 (768px - 1023px) */
@media (max-width: 1023px) {
    .container {
        padding: 0 30px;
    }

    .header {
        height: 70px;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo {
        flex-shrink: 0;
    }

    /* 不要用 flex:1 + min-width:0，否则 .nav 会被压窄而 .nav-link 不收缩，链接会被裁切 */
    .nav {
        gap: 20px;
        flex-wrap: wrap;
        flex-shrink: 0;
        justify-content: flex-end;
    }

    .nav-link {
        font-size: 14px;
        padding: 20px 0;
        white-space: nowrap;
    }

    .hero {
        margin-top: 70px;
        min-height: 500px;
    }

    .hero .mark {
        display: none;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-text {
        align-items: center;
        margin-bottom: 30px;
    }

    .hero-title {
        width: 240px;
        margin-bottom: 30px;
    }

    .hero-image {
        margin-top: 0;
        margin-right: 0;
    }

    .hero-image img {
        width: 100%;
        max-width: 500px;
        height: auto;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 36px;
    }

    .section-subtitle {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .section-content {
        flex-direction: column;
        width: 100% !important;
        max-width: 100%;
        padding: 30px 20px;
        gap: 30px;
        align-items: stretch;
    }

    .genres-content {
        width: 100%;
        margin-bottom: 20px;
    }

    .genre-list-box {
        padding: 20px;
    }

    .genre-list-label {
        font-size: 28px;
    }

    .genre-list {
        font-size: 18px;
    }

    .genre-cards {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .genre-card {
        width: 180px;
    }

    /* 小屏幕下所有卡片宽度一致 */
    .genre-card:nth-child(2),
    .genre-card:nth-child(3) {
        width: 180px;
    }

    .genre-card img {
        width: 100% !important;
        height: 280px !important;
        object-fit: cover;
    }

    .genre-card span {
        font-size: 28px;
    }

    .earn-content {
        flex-direction: column;
        width: 100% !important;
        max-width: 100%;
        gap: 40px;
        padding: 0 20px;
        align-items: center;
    }

    .earn-description {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .earn-description .section-title-group {
        align-items: center;
    }

    .earn-images {
        margin-top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .earn-images img {
        width: 100%;
        max-width: 450px;
        height: auto;
    }

    .section-01 {
        background-size: 400px 360px;
        background-position: 20px 40px;
    }

    .iframe-container {
        height: 700px;
    }

    .footer-content p {
        font-size: 16px;
    }
}

/* 手机 (小于 768px) */
@media (max-width: 767px) {
    body {
        zoom: 1;
    }

    * {
        max-width: 100%;
    }

    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .header {
        height: auto;
        min-height: 60px;
        padding: 10px 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo img {
        height: 32px;
    }

    .logo img.ic_name {
        display: none !important;
    }

    .nav {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .nav-link {
        font-size: 13px;
        padding: 8px 4px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .hero {
        margin-top: 60px;
        min-height: 400px;
    }

    .hero-content {
       padding-top: 30px;
    }

    .hero-text {
        width: 100%;
    }

    .hero-title {
        width: 200px;
        margin-bottom: 20px;
    }

    .btn-download {
        width: 180px;
        padding: 14px 30px;
        font-size: 16px;
    }

    .hero-image img {
        max-width: 100%;
        height: auto;
    }

    .section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
        align-items: center;
    }

    .section-number {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .section-number img {
        width: 45px;
        height: 48px;
    }

    .section-title {
        font-size: 28px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .section-split {
        width: 36px;
        height: 3px;
    }

    .section-subtitle {
        font-size: 16px;
        letter-spacing: 1px;
        margin-bottom: 30px;
        text-align: center;
        padding: 0 20px;
    }

    .section-content {
        padding: 20px 15px;
        border-radius: 16px;
        width: 100% !important;
        max-width: 100%;
        margin: 0 auto;
        overflow: hidden;
        align-items: stretch;
    }

    .genres-content {
        width: 100%;
        margin-bottom: 15px;
    }

    .genre-list-box {
        padding: 20px 15px;
    }

    .genre-list-label {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .genre-list {
        font-size: 16px;
        line-height: 1.6;
    }

    .genre-cards {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }

    .genre-card {
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* 手机屏幕下所有卡片宽度一致 */
    .genre-card:nth-child(2),
    .genre-card:nth-child(3) {
        width: 100%;
    }

    .genre-card img {
        width: 100% !important;
        height: 400px !important;
        object-fit: cover;
        display: block;
    }

    .genre-card .mark {
        display: block;
    }

    .genre-card span {
        font-size: 24px;
        bottom: 20px;
    }

    .earn-content {
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .earn-description {
        width: 100%;
        padding: 0 20px;
        align-items: center;
        text-align: center;
    }

    .earn-description .section-header {
        align-items: center;
    }

    .earn-description .section-number {
        margin: 0 auto 18px;
    }

    .earn-description .section-title-group {
        align-items: center;
        text-align: center;
    }

    .earn-description .section-title {
        justify-content: center;
    }

    .earn-description .section-subtitle {
        text-align: center;
    }

    .earn-images {
        width: 100%;
        padding: 0 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .earn-images img {
        width: 100%;
        max-width: 350px;
        height: auto;
    }

    .about-images {
        padding: 0 20px;
        box-sizing: border-box;
    }

    .section-01 {
        background-size: 250px 225px;
        background-position: center top;
        background-position-y: 20px;
    }

    .section-content {
        box-sizing: border-box;
    }

    .section-agreement {
        padding: 40px 0;
        margin-top: 20px;
    }

    .iframe-container {
        height: 600px;
        border-radius: 8px;
    }

    .footer {
        padding: 30px 0;
    }

    .footer-content {
        padding: 0 20px;
    }

    .footer-content p {
        font-size: 14px;
        margin: 6px 0;
        line-height: 1.8;
    }
}

/* 小手机 (小于 480px) */
@media (max-width: 479px) {
    .header {
        padding: 8px 0;
    }

    .header-content {
        gap: 8px;
    }

    .logo img {
        height: 28px;
    }

    .nav {
        gap: 8px;
        justify-content: center;
    }

    .nav-link {
        font-size: 11px;
        padding: 6px 2px;
    }

    .hero-title {
        width: 160px;
    }

    .btn-download {
        width: 160px;
        padding: 12px 25px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .genre-list-label {
        font-size: 20px;
    }

    .genre-list {
        font-size: 14px;
    }

    .genre-card span {
        font-size: 20px;
    }

    .iframe-container {
        height: 500px;
    }

    .footer-content p {
        font-size: 12px;
    }
}

