/* AI简历诊断小程序 - 通用样式 */
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e8d5ff 0%, #d5e8ff 100%);
}

/* iPhone 15 模拟器样式 */
.iphone15 {
    width: 393px;
    height: 852px;
    margin: 0 auto;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 0 0 8px #000, 0 30px 60px rgba(0,0,0,0.3);
    background: linear-gradient(180deg, #f5f0ff 0%, #e8e0ff 100%);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 页面内容区域 */
.page-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* 滚动条样式 */
.page-content::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* 状态栏 */
.status-bar {
    height: 47px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: #6b4ce6;
}

/* 安全区域 */
.safe-area-top {
    height: 44px;
}

.safe-area-bottom {
    height: 34px;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #9b7cf5 0%, #7c5ce8 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 124, 245, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 124, 245, 0.5);
}

.btn-secondary {
    background: white;
    color: #7c5ce8;
    border: 2px solid #d5c5ff;
    border-radius: 25px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f5f0ff;
    border-color: #9b7cf5;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(155, 124, 245, 0.15);
    margin-bottom: 16px;
    border: 2px solid rgba(213, 197, 255, 0.3);
}

/* 评分圆圈 */
.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.score-circle svg {
    transform: rotate(-90deg);
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 10px;
    background: #e8e0ff;
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #9b7cf5 0%, #7c5ce8 100%);
    border-radius: 20px;
    transition: width 0.3s ease;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f0e8ff;
    color: #7c5ce8;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 2px;
    border: 1.5px solid #d5c5ff;
}

.tag-success {
    background: #d4f4dd;
    color: #0d9488;
    border-color: #99f6e4;
}

.tag-warning {
    background: #fef3c7;
    color: #d97706;
    border-color: #fde68a;
}

.tag-error {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

/* 底部导航 */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(213, 197, 255, 0.3);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(155, 124, 245, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #b4a0d9;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: #7c5ce8;
}

.nav-item.active i {
    transform: scale(1.1);
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

/* 页面外层容器 */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 0;
}

/* 装饰性图标样式 */
.deco-icon {
    position: absolute;
    font-size: 24px;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.deco-star {
    color: #ffd700;
}

.deco-heart {
    color: #ff69b4;
}

.deco-smile {
    color: #7c5ce8;
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, #9b7cf5 0%, #7c5ce8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 响应式设计 */
@media (max-width: 450px) {
    .iphone15 {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }
    
    body {
        padding: 0;
    }
}
