/* 公共样式文件 */
:root {
    --primary-color: #0088cc; /* Telegram主色调 */
    --secondary-color: #4fafed;
    --light-color: #f2f6fa;
    --text-color: #333;
    --light-text: #8e8e93;
    --danger-color: #ff3b30;
    --success-color: #34c759;
    --warning-color: #ffcc00;
    --border-color: #e0e0e0;
    --background-color: #f2f6fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
}

/* iOS状态栏 */
.status-bar {
    height: 44px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    font-size: 12px;
}

.status-bar-light {
    background-color: white;
    color: black;
    border-bottom: 1px solid var(--border-color);
}

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

.status-bar .icons {
    display: flex;
}

.status-bar .icons i {
    margin-left: 5px;
}

/* 导航栏 */
.navbar {
    height: 44px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    font-weight: 500;
}

.navbar-light {
    background-color: white;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.navbar .title {
    font-size: 17px;
    font-weight: 600;
}

.navbar .back {
    display: flex;
    align-items: center;
}

.navbar .back i {
    margin-right: 5px;
}

.navbar .action {
    font-weight: 400;
}

/* 底部标签栏 */
.tab-bar {
    height: 50px;
    background-color: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.tab-bar .tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 10px;
}

.tab-bar .tab.active {
    color: var(--primary-color);
}

.tab-bar .tab i {
    font-size: 22px;
    margin-bottom: 3px;
}

/* 页面内容 */
.content {
    padding: 16px;
    margin-bottom: 50px; /* 为底部标签栏留出空间 */
    overflow-y: auto;
    height: calc(100vh - 44px - 44px - 50px); /* 减去状态栏、导航栏、标签栏的高度 */
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn {
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-secondary {
    background-color: #e9e9eb;
    color: var(--text-color);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

/* 输入框样式 */
.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    background-color: #fafafa;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
}

/* 列表样式 */
.list-group {
    background-color: white;
    border-radius: 10px;
    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 {
    margin-right: 16px;
    color: var(--primary-color);
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.list-item .content {
    flex: 1;
}

.list-item .title {
    font-weight: 500;
    margin-bottom: 4px;
}

.list-item .subtitle {
    font-size: 14px;
    color: var(--light-text);
}

.list-item .chevron {
    color: #c7c7cc;
    font-size: 14px;
}

/* 加载指示器 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 136, 204, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

/* 提示框样式 */
.alert {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.alert-warning {
    background-color: #fff8e6;
    border: 1px solid #ffeeba;
    color: #856404;
}

.alert-danger {
    background-color: #ffeaea;
    border: 1px solid #ffcccc;
    color: #721c24;
}

.alert-success {
    background-color: #e6fff2;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert i {
    margin-right: 10px;
    font-size: 20px;
}

/* 搜索框 */
.search-bar {
    background-color: #e9e9eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 16px;
}

.search-bar input {
    border: none;
    background: transparent;
    padding: 10px;
    flex: 1;
    font-size: 16px;
}

.search-bar input:focus {
    outline: none;
}

.search-bar i {
    color: #8e8e93;
}

/* 组织架构样式 */
.org-tree {
    margin-left: 20px;
}

.org-level {
    margin-bottom: 10px;
}

.org-level-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.org-item {
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 头像样式 */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
} 