/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* iPhone 16 Pro 样式 */
.iphone-frame {
    width: 393px;
    height: 852px;
    scale: 70%;
    background-color: white;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto ;
    border: 10px solid #000;
}

.iphone-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 原型容器 */
.prototype-container {
    margin-right: -3rem;
    margin-left: -3rem;
 
}

/* iOS状态栏 */
.ios-status-bar {
    height: 44px;
    background-color: #f8f8f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #e0e0e0;
}

.status-bar-time {
    font-weight: 600;
    font-size: 14px;
}

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

.battery-icon, .wifi-icon, .signal-icon {
    margin-left: 5px;
}

/* 底部导航栏 */
.bottom-tab-bar {
    height: 84px;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 30px; /* 为iPhone底部间距留出空间 */
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8e8e93;
    font-size: 10px;
}

.tab-item.active {
    color: #007aff;
}

.tab-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

/* 内容区域 */
.screen-content {
    padding: 15px;
    padding-bottom: 100px; /* 为底部导航留出空间 */
    height: calc(100% - 44px);
    overflow-y: auto;
}

/* 卡片样式 */
.property-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    background-color: white;
}

.property-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.property-info {
    padding: 15px;
}

.property-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff4858;
}

.property-title {
    font-size: 16px;
    font-weight: 600;
    margin: 5px 0;
}

.property-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.property-specs {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

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

.search-icon {
    color: #8e8e93;
    margin-right: 10px;
}

.search-input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 16px;
    outline: none;
}

/* 按钮样式 */
.primary-button {
    background-color: #007aff;
    color: white;
    border-radius: 12px;
    padding: 15px 20px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    border: none;
    font-size: 16px;
}

.secondary-button {
    background-color: #e9e9eb;
    color: #007aff;
    border-radius: 12px;
    padding: 15px 20px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    border: none;
    font-size: 16px;
}

/* 图表容器 */
.chart-container {
    background-color: white;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 列表项样式 */
.list-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.list-item:last-child {
    border-bottom: none;
}

/* 过滤器标签 */
.filter-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

.filter-tag {
    background-color: #f1f1f1;
    padding: 8px 15px;
    border-radius: 20px;
    margin-right: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.filter-tag.active {
    background-color: #007aff;
    color: white;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* 表单元素 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.form-input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-size: 16px;
    background-color: #f9f9f9;
}

.form-input:focus {
    border-color: #007aff;
    outline: none;
}

/* 响应式设计 */
@media (max-width: 640px) {
    .iphone-frame {
        width: 320px;
        height: 690px;
    }
} 