/* 全局样式 */
:root {
    --primary-color: #3a86ff;
    --primary-color-light: #e6f0ff;
    --secondary-color: #ff006e;
    --secondary-color-light: #ffe6f0;
    --success-color: #38b000;
    --warning-color: #ffbe0b;
    --danger-color: #d90429;
    --text-color: #333;
    --text-color-light: #666;
    --text-color-lighter: #999;
    --background-color: #f8f9fa;
    --white: #fff;
    --border-color: #e0e0e0;
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 设备容器 */
.device-container {
    width: 100%;
    height: 100vh;
    max-width: 414px;
    margin: 0 auto;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 状态栏 */
.status-bar {
    height: 44px;
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    position: relative;
    z-index: 10;
}

.status-bar-left {
    font-weight: 600;
}

.status-bar-right {
    display: flex;
    align-items: center;
}

.status-bar-right i {
    margin-left: 8px;
    font-size: 16px;
}

/* 应用头部 */
.app-header {
    height: 56px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 9;
}

.back-button {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
}

.back-button i {
    margin-right: 4px;
}

.header-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin: 0 16px;
}

.header-action {
    width: 24px;
}

/* 主内容区域 */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

/* 底部标签栏 */
.tab-bar {
    height: 56px;
    background-color: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 9;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: var(--text-color-light);
    font-size: 12px;
    cursor: pointer;
}

.tab-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.tab-item.active {
    color: var(--primary-color);
}

/* 卡片样式 */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 16px;
}

.card-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.card-body {
    padding: 16px;
}

.card-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2a75e6;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e6005e;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color-light);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color-light);
}

.form-control::placeholder {
    color: var(--text-color-lighter);
}

/* 列表样式 */
.list-group {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.list-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.list-item-subtitle {
    color: var(--text-color-light);
    font-size: 12px;
}

.list-item-action {
    color: var(--text-color-lighter);
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background-color: var(--primary-color-light);
    color: var(--primary-color);
}

.badge-secondary {
    background-color: var(--secondary-color-light);
    color: var(--secondary-color);
}

.badge-success {
    background-color: #e6ffe6;
    color: var(--success-color);
}

.badge-warning {
    background-color: #fff9e6;
    color: var(--warning-color);
}

.badge-danger {
    background-color: #ffe6e6;
    color: var(--danger-color);
}

/* 分割线 */
.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 16px 0;
}

/* 辅助类 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-success {
    color: var(--success-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-light {
    color: var(--text-color-light);
}

.text-lighter {
    color: var(--text-color-lighter);
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }

.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 16px; }
.ml-4 { margin-left: 24px; }
.ml-5 { margin-left: 32px; }

.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 16px; }
.mr-4 { margin-right: 24px; }
.mr-5 { margin-right: 32px; }

.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 16px; }
.p-4 { padding: 24px; }
.p-5 { padding: 32px; }

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .device-container {
        max-width: 100%;
    }
} 