* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
.text-red {
    color: #e60012 !important;
}
.text-green {
    color: #009933 !important;
}

/* 顶部导航 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    height: 40px;
}
.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}
.menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}

/* 侧边菜单 */
.menu-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: #fff;
    z-index: 200;
    transition: right 0.3s ease;
}
.menu-sidebar.active {
    right: 0;
}
.menu-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 199;
    display: none;
}
.menu-mask.active {
    display: block;
}
.menu-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}
.menu-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}
.menu-tabs .tab.active {
    color: #e60012;
    border-bottom-color: #e60012;
}
.tab-content {
    display: none;
    padding: 20px;
}
.tab-content.active {
    display: block;
}
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background-color: #f9f9f9;
    border-radius: 10px;
    gap: 10px;
}
.menu-item-full {
    grid-column: 1 / 3;
}
.menu-item img {
    width: 30px;
    height: 30px;
}
.lang-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
}
.lang-box select {
    width: 100%;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    font-size: 16px;
}

/* 轮播图通用 */
.banner-swiper, .news-swiper, .journal-swiper, .partner-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}
.swiper-slide {
    width: 100%;
    flex-shrink: 0;
}
.swiper-slide img {
    width: 100%;
    border-radius: 8px;
}
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.swiper-pagination span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
}
.swiper-pagination span.active {
    background-color: #fff;
}

/* 收益滚动公告 */
.profit-notice {
    background-color: #fff;
    padding: 15px;
    font-size: 16px;
    color: #0066cc;
    font-weight: bold;
}

/* 通用区块 */
.section {
    background-color: #fff;
    margin: 10px 0;
    padding: 15px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.section-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}
.more {
    font-size: 14px;
    color: #e60012;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 新闻区块 */
.news-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}
.tag {
    background-color: #e60012;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}
.date {
    font-size: 14px;
    color: #666;
}
.news-slide h3 {
    font-size: 16px;
    margin-top: 5px;
}

/* 申请加入 */
.apply-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.apply-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 16px;
}
.apply-btn {
    width: 100%;
    padding: 12px;
    background-color: #ff9900;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
}

/* 悬浮客服按钮 */
.service-btn {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #e60012;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
}
.service-btn img {
    width: 30px;
    height: 30px;
}

/* 认证/登录页面 */
.auth-page {
    background-color: #fff;
    min-height: 100vh;
}
.auth-container {
    padding: 20px;
}
.back-btn {
    font-size: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}
.page-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
}
.logo-box {
    text-align: center;
    margin-bottom: 40px;
}
.logo-box img {
    height: 80px;
    margin: 0 auto;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-item label {
    font-size: 16px;
    font-weight: bold;
}
.form-item input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}
.captcha-tip {
    font-size: 14px;
    color: #666;
    text-align: center;
}
.auth-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}
.login-btn {
    background-color: #e60012;
}
.register-btn {
    background-color: #ff6600;
}
.auth-link {
    text-align: center;
    font-size: 14px;
    color: #0066cc;
}

/* 个人中心 */
.page-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.page-header .back-btn {
    margin-bottom: 0;
    margin-right: 15px;
}
.page-header .page-title {
    margin-bottom: 0;
    flex: 1;
}
.user-container {
    padding: 20px 15px;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}
.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #eee;
}
.user-text h2 {
    font-size: 20px;
    margin-bottom: 5px;
}
.user-text p {
    color: #666;
}
.balance-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #eee;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.balance-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
}
.balance-num {
    flex: 1;
    font-size: 20px;
    font-weight: bold;
}
.withdraw-btn {
    padding: 10px 20px;
    background-color: #e60012;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}
.user-menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}
.user-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #eee;
    border-radius: 8px;
    font-size: 16px;
}
.menu-arrow {
    color: #666;
}
.logout-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #e60012;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
}

/* 资料认证 */
.verify-container {
    padding: 20px 15px;
}
.verify-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.upload-btn {
    width: 100%;
    padding: 15px;
    background-color: #009966;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
}
.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #990000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

/* 广告频道 */
.ad-container {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ad-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
}
.ad-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
}
.ad-images {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}
.ad-images img {
    width: 100%;
    border-radius: 5px;
}
.share-btn {
    padding: 10px 20px;
    background-color: #0066ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    float: right;
}

/* 收益明细 */
.profit-container {
    padding: 20px 15px;
}
.log-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}
.log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
}
.log-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.log-type {
    font-size: 16px;
    font-weight: bold;
}
.log-time {
    font-size: 12px;
    color: #666;
}
.log-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}
.log-money {
    font-size: 18px;
    font-weight: bold;
}
.log-balance {
    font-size: 12px;
    color: #666;
}
.empty-tip {
    text-align: center;
    padding: 50px 0;
    color: #999;
}
.back-home-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #eee;
    color: #333;
    text-align: center;
    border-radius: 8px;
    font-size: 16px;
}

/* 电脑端适配 */
@media (min-width: 768px) {
    .menu-sidebar {
        width: 400px;
    }
    .menu-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .menu-item-full {
        grid-column: 1 / 4;
    }
    .section {
        margin: 20px auto;
        max-width: 800px;
        border-radius: 10px;
    }
    .auth-container, .user-container, .verify-container, .ad-container, .profit-container {
        max-width: 500px;
        margin: 0 auto;
    }
}
