/* 全局样式 */
body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

/* 设备框架样式 */
.prototype-container {
    margin-bottom: 30px;
}

.device-frame {
    width: 375px;
    height: 812px;
    background-color: white;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    border: 10px solid #1a1a1a;
}

.device-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 状态栏样式 */
.status-bar {
    height: 44px;
    background-color: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 12px;
    color: #000;
    position: sticky;
    top: 0;
    z-index: 100;
}

.status-bar-time {
    font-weight: 600;
}

.status-bar-icons {
    display: flex;
    gap: 5px;
}

/* 底部导航栏样式 */
.nav-bar {
    height: 83px;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 20px;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8e8e93;
    font-size: 10px;
}

.nav-item.active {
    color: #ff6b6b;
}

.nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

/* 灵感广场样式 */
.inspiration-container {
    padding: 16px;
    padding-bottom: 90px;
}

.search-bar {
    position: relative;
    margin-bottom: 20px;
}

.search-bar input {
    background-color: #f2f2f7;
    border-radius: 16px;
    padding: 12px 16px 12px 40px;
    width: 100%;
    font-size: 16px;
}

.search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8e8e93;
}

.question-card {
    background-color: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 魔法话筒按钮 */
.magic-mic {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #ff6b6b;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    z-index: 50;
}

.magic-mic i {
    color: white;
    font-size: 24px;
}

/* 儿童语音模式样式 */
.voice-mode-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f0f8ff;
    padding-bottom: 90px;
}

.rabbit-container {
    width: 200px;
    height: 200px;
    position: relative;
    margin-bottom: 30px;
}

.voice-prompt {
    text-align: center;
    font-size: 18px;
    color: #505050;
    max-width: 260px;
    line-height: 1.5;
}

/* 问题详情页样式 */
.question-detail-container {
    padding: 16px;
    padding-bottom: 90px;
}

.question-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
}

.answers-container {
    display: flex;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
    margin: 0 -16px;
    padding-left: 16px;
}

.answers-container::-webkit-scrollbar {
    display: none;
}

.answer-card {
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    min-width: 280px;
    max-width: 280px;
    margin-right: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.ai-avatar {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    margin-bottom: 16px;
}

.answer-text {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 16px;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-button {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.action-button i {
    margin-right: 6px;
}

/* 个人中心样式 */
.profile-container {
    padding: 16px;
    padding-bottom: 90px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    margin-right: 16px;
}

.profile-info h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 4px;
}

.profile-info p {
    color: #666;
    font-size: 14px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    margin-top: 24px;
}

.masks-container {
    display: flex;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
    margin: 0 -16px;
    padding-left: 16px;
}

.masks-container::-webkit-scrollbar {
    display: none;
}

.mask-card {
    background-color: white;
    border-radius: 16px;
    padding: 16px;
    width: 140px;
    margin-right: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mask-icon {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.mask-icon i {
    font-size: 30px;
    color: #666;
}

.radar-chart {
    width: 100%;
    height: 200px;
    background-color: white;
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.badges-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.badge-item {
    background-color: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background-color: #ffe8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.badge-icon i {
    font-size: 24px;
    color: #ff6b6b;
}

.badge-name {
    font-size: 12px;
    text-align: center;
    color: #333;
}

/* 身份面具选择样式 */
.identity-container {
    padding: 16px;
    padding-bottom: 90px;
}

.identity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.identity-card {
    background-color: white;
    border-radius: 20px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.identity-card.active {
    border: 2px solid #ff6b6b;
}

.identity-icon {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.identity-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.identity-desc {
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

.create-identity {
    border: 2px dashed #ddd;
    background-color: #f9f9f9;
}

.create-identity .identity-icon {
    background-color: #f5f5f5;
}

/* 按钮样式 */
.btn-primary {
    background-color: #ff6b6b;
    color: white;
    border-radius: 16px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

/* 新手引导样式 */
.onboarding-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff8e1;
}

.onboarding-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.onboarding-image {
    width: 240px;
    height: 240px;
    margin-bottom: 40px;
}

.onboarding-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #333;
}

.onboarding-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 40px;
}

.onboarding-pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background-color: #ddd;
    margin: 0 4px;
}

.pagination-dot.active {
    width: 20px;
    background-color: #ff6b6b;
}

.onboarding-buttons {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

.btn-skip {
    color: #666;
    font-size: 16px;
}

.btn-next {
    background-color: #ff6b6b;
    color: white;
    border-radius: 24px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

/* 适配不同设备尺寸 */
@media (max-width: 768px) {
    .device-frame {
        width: 100%;
        height: 600px;
    }
}

