* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
}
.app {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}
.app-header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.3rem;
}
.avatar-link {
    color: white;
    font-size: 1.8rem;
    line-height: 1;
}
.avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.app-main {
    flex: 1;
    padding: 20px;
    padding-bottom: 80px; /* 为底部导航留出空间 */
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 4px;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
    z-index: 100;
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #7f8c8d;
    font-size: 0.75rem;
    transition: color 0.2s;
}
.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}
.nav-item.active {
    color: #3498db;
}
.nav-item span {
    font-size: 0.7rem;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #eef2f6;
}
.section-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #34495e;
}
.badge {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.75rem;
    margin-left: 8px;
}

/* 空间网格 */
.space-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.space-item {
    background: #f0f4f8;
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    border: 1px solid transparent;
    transition: 0.2s;
}
.space-item.active {
    border-color: #3498db;
    background: #ebf5ff;
}
.space-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 8px;
}
.space-item span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}
.space-item small {
    font-size: 0.75rem;
    color: #7f8c8d;
}

/* 物品列表 */
.item-card {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #ecf0f1;
    padding: 12px 0;
}
.item-card:last-child {
    border-bottom: none;
}
.item-photo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: #ecf0f1;
}
.item-info {
    flex: 1;
}
.item-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}
.item-meta {
    font-size: 0.8rem;
    color: #7f8c8d;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.tag {
    background: #ecf0f1;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    color: #2c3e50;
}
.tag-color {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

/* 表单 */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dcdfe6;
    border-radius: 16px;
    font-size: 1rem;
    background: #fafbfc;
}
.form-control:focus {
    border-color: #3498db;
    outline: none;
}
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 50px;
    background: #3498db;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    margin: 16px 0;
}
.btn-secondary {
    background: #95a5a6;
}
.btn-danger {
    background: #e74c3c;
}

/* 标签选择 */
.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.tag-option {
    background: #f0f4f8;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
}
.tag-option input {
    margin-right: 4px;
}

/* 图片预览 */
.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}
.photo-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
}
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-item .remove-photo {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
}