* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

/* 头部样式 */
.header {
    background-color: #007AFF;
    color: white;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin: 0;
    flex: 1;
}

.nav {
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 5px;
}

.nav-item {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}

.nav-item.active {
    background-color: white;
    color: #007AFF;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 主内容区域 */
.main {
    padding: 15px;
}

/* 广告位样式 */
.ad-slot {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 平台列表 */
.platform-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 申请录入链接 */
.apply-entry {
    text-align: center;
    margin: 30px 0;
}

.apply-link {
    color: #007AFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.platform-item {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.platform-icon {
    font-size: 36px;
    margin-right: 16px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.platform-info {
    flex: 1;
}

.platform-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #000;
}

.platform-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.platform-arrow {
    font-size: 18px;
    color: #999;
    font-weight: 300;
}

/* 详情页样式 */
.detail-header {
    background-color: #007AFF;
    color: white;
    padding: 5px 20px 30px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.back-btn {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.detail-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 15px 0;
    order: 4;
}

.detail-icon {
    font-size: 64px;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: block;
    text-align: center;
    position: relative;
}

.detail-icon img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-name {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    width: 100%;
    order: 5;
}

.detail-content {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 0 20px;
    text-align: left;
    width: 100%;
    order: 6;
}

.comment-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 海报容器样式 */
.poster-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    background-color: #f5f5f5;
}

/* 调整按钮容器位置 */
.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* 确保滚动条正常显示 */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.privacy-content {
    flex: 1;
    overflow-y: auto;
    text-align: left;
    padding: 0 10px;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.6;
}

.about-content {
    flex: 1;
    overflow-y: auto;
    text-align: left;
    padding: 0 10px;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.6;
}

.comment-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 17px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 20px;
    outline: none;
}

.comment-input:focus {
    border-color: #007AFF;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-shrink: 0;
    margin-top: auto;
}

/* 滚动条样式 */
.privacy-content::-webkit-scrollbar,
.about-content::-webkit-scrollbar {
    width: 6px;
}

.privacy-content::-webkit-scrollbar-track,
.about-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.privacy-content::-webkit-scrollbar-thumb,
.about-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.privacy-content::-webkit-scrollbar-thumb:hover,
.about-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.btn-gray {
    background-color: #f0f0f0;
    color: #333;
}

/* 二维码样式 */
.qrcode-container {
    margin: 20px 0;
}

.qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qrcode img {
    width: 100%;
    height: 100%;
}

.qrcode-text {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    line-height: 1.4;
}

.detail-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    margin: 20px 0;
}

.btn {
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    display: block;
}

.btn-blue {
    background-color: #007AFF;
    color: white;
}

.btn-green {
    background-color: #34C759;
    color: white;
}

.btn-red {
    background-color: #FF3B30;
    color: white;
    margin: 0 15px;
    font-weight: 600;
}

/* 用户点评 */
.user-reviews {
    background-color: white;
    margin: 20px 15px 80px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.reviews-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.review-content {
    flex: 1;
}

.review-author {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.review-text {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 5px;
}

.review-time {
    font-size: 12px;
    color: #999;
    text-align: right;
}

/* 底部导航 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

/* 解决内容被底部导航遮挡的问题 */
.main {
    padding-bottom: 80px;
}

/* 申请录入表单样式 */
.apply-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 17px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 17px;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007AFF;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 12px;
}

.footer-item.active {
    color: #007AFF;
}

.footer-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

/* 登录页面 */
.login-container {
    min-height: 100vh;
    background-color: white;
}

.login-header {
    position: relative;
    padding: 20px;
    text-align: center;
    background-color: white;
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.login-form {
    padding: 0 20px;
    margin-top: 40px;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-size: 17px;
    color: #333;
    outline: none;
}

.form-input:focus {
    border-bottom-color: #007AFF;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background-color: #007AFF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
}

.login-note {
    text-align: center;
    font-size: 14px;
    color: #999;
}

/* 个人中心 */
.profile-header {
    background-color: #007AFF;
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: white;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #007AFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-title {
    font-size: 20px;
    font-weight: bold;
}

.profile-menu {
    background-color: white;
    margin: 20px 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    padding-bottom: 80px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-icon {
    width: 30px;
    font-size: 20px;
    margin-right: 15px;
    color: #666;
}

.menu-text {
    flex: 1;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 15px 15px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .nav-item {
        padding: 7px 14px;
        font-size: 13px;
    }
    
    .main {
        padding: 12px;
        padding-bottom: 80px;
    }
    
    .platform-list {
        gap: 8px;
    }
    
    .platform-item {
        padding: 15px;
        border-radius: 10px;
    }
    
    .platform-icon {
        font-size: 32px;
        width: 48px;
        height: 48px;
    }
    
    .platform-name {
        font-size: 16px;
    }
    
    .platform-desc {
        font-size: 13px;
    }
    
    .detail-header {
        padding: 30px 15px 25px;
    }
    
    .back-btn {
        left: 15px;
        top: 15px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .detail-icon {
        font-size: 64px;
        margin: 15px 0;
    }
    
    .detail-name {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .detail-content {
        font-size: 14px;
        padding: 0 15px;
        margin-bottom: 25px;
    }
    
    .detail-buttons {
        padding: 0 12px;
        gap: 12px;
    }
    
    .btn {
        padding: 14px 20px;
        border-radius: 10px;
        font-size: 16px;
    }
    
    .user-reviews {
        margin: 15px 12px 120px;
        padding: 12px;
        border-radius: 10px;
    }
    
    .profile-menu {
        margin: 15px 12px;
        border-radius: 10px;
    }
    
    .menu-item {
        padding: 15px 20px;
    }
}