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

/* Banner样式 */
.banner {
    background: linear-gradient(135deg, #007AFF, #00C6FF);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.banner.scrolled {
    transform: translateY(-100%);
}

.banner h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* 功能按钮网格样式 */
.function-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    position: relative;
    z-index: 10;
}

.function-grid.sticky {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 353px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.function-grid.sticky {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 353px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.function-item {
    background: white;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.function-item:hover {
    background: #f8f9fa;
}

.function-item i {
    font-size: 20px;
    color: #007AFF;
}

.function-item span {
    color: #333;
    font-size: 14px;
}

/* 待收款租户列表样式 */
.rent-list {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 80px;
}

.rent-list h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.rent-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tenant-info {
    flex: 1;
}

.tenant-name {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.tenant-address {
    font-size: 14px;
    color: #666;
}

.rent-amount {
    font-size: 18px;
    color: #007AFF;
    font-weight: bold;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
}

.app-container {
    width: 393px;
    height: 852px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.content-area {
    height: calc(100% - 60px);
    overflow: hidden;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    background-color: #f5f5f5;
}

.page.active {
    visibility: visible;
    opacity: 1;
}

.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    padding: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item.active {
    color: #007AFF;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 12px;
}

@media (max-width: 393px) {
    .app-container {
        width: 100%;
        height: 100vh;
    }
}