/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.5;
    font-size: 16px;
    overflow-x: hidden;
}

/* 应用容器 */
.app-container {
    position: relative;
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 主内容区域 */
.main-content {
    padding: 20px 16px 80px;
    min-height: 100vh;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 375px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    width: 20%;
    color: #9e9e9e;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-item.active {
    color: #00bcd4;
}

.nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 12px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.primary-btn {
    background: linear-gradient(135deg, #00bcd4, #009688);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3);
}

.primary-btn:hover, .primary-btn:active {
    box-shadow: 0 6px 15px rgba(0, 188, 212, 0.4);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: #f5f5f5;
    color: #00bcd4;
    border: 1px solid #e0e0e0;
}

.secondary-btn:hover, .secondary-btn:active {
    background-color: #e0f7fa;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 20px;
}

/* 表单元素 */
input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 16px;
}

input:focus, textarea:focus, select:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.2);
    outline: none;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

.tag-primary {
    background-color: #e0f7fa;
    color: #00bcd4;
}

.tag-secondary {
    background-color: #f5f5f5;
    color: #757575;
}

/* 进度条 */
.progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00bcd4, #009688);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

/* 响应式调整 */
@media (max-width: 374px) {
    body {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
}