/* 朴仁教育 - 公共样式 */

:root {
    --primary-color: #0066FF;
    --primary-light: #E6F0FF;
    --success-color: #00C853;
    --warning-color: #FF9100;
    --error-color: #FF1744;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F4;
    --gray-200: #E8EAED;
    --gray-500: #9AA0A6;
    --gray-700: #5F6368;
    --gray-900: #202124;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray-900);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}

/* 页面容器 */
#app {
    min-height: 100vh;
}

.page {
    min-height: 100vh;
    padding-bottom: 70px;
}

/* 加载页 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-block {
    width: 100%;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    margin: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.card-header .icon {
    font-size: 20px;
    margin-right: 8px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 16px;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, var(--primary-color), #3385FF);
    color: #fff;
    padding: 20px 16px;
}

.user-info {
    display: flex;
    align-items: center;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid rgba(255,255,255,0.3);
}

/* 进度条 */
.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #3385FF);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid var(--gray-200);
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray-500);
    padding: 4px 12px;
}

.nav-item.active {
    color: var(--primary-color);
}

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

.nav-text {
    font-size: 12px;
}

/* 登录页 */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary-color), #3385FF);
}

.logo {
    text-align: center;
    color: #fff;
    margin-bottom: 48px;
}

.logo h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.logo p {
    opacity: 0.9;
}

.tips {
    margin-top: 16px;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

/* 响应式 */
@media (min-width: 768px) {
    .card {
        max-width: 600px;
        margin: 16px auto;
    }
}
