/* 通用样式 - 共享 CSS 文件 */

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

/* 全局体样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* 页面容器 */
.page-container {
    max-width: 600px;
    margin: 0 auto;
}

/* 导航栏 */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 16px;
}

.nav-header .header-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-header h1 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

/* 搜索框 */
.search-box {
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 10px 16px;
    color: #999;
    font-size: 14px;
    margin: 0 16px 16px;
}

/* 卡片样式 */
.card {
    margin: 0 16px 16px;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.card .card-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card .icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

.card .title {
    font-size: 20px;
    font-weight: bold;
    color: #6b4e9c;
}

.card .subtitle {
    font-size: 16px;
    color: #666;
}

.card .card-right {
    display: flex;
    align-items: center;
}

.card .arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b4e9c;
}

.card .arrow svg {
    width: 20px;
    height: 20px;
}

/* 浮动按钮 (FAB) */
.fab {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    background-color: #6b4e9c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(107, 78, 156, 0.4);
    cursor: pointer;
    z-index: 100;
}

.fab svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}

/* 卡片颜色变体 */
.purple-dark {
    background: linear-gradient(135deg, #6b4e9c 0%, #8b6ecf 100%);
    color: #fff;
}

.purple-light {
    background: linear-gradient(135deg, #9b7ebd 0%, #b892d6 100%);
    color: #fff;
}

.card-white {
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

.card-white .title {
    color: #6b4e9c;
}

.card-white .arrow {
    color: #6b4e9c;
}

/* 卡片文本样式 */
.card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-text .rank {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
}

.card-text .count {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
}

.card-text .people-label {
    font-size: 16px;
    color: #fff;
    opacity: 0.8;
}

.card-text .notification {
    font-size: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 卡片按钮 */
.add-btn {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* SVG 图标 */
.icon svg,
.arrow svg {
    fill: currentColor;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-container {
        max-width: 100%;
    }
    
    .nav-header {
        padding: 12px;
    }
    
    .card {
        margin: 0 12px 12px;
        padding: 16px;
    }
}
