body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    background-color: #000;
    padding: 6px 15px;
    font-size: 14px;
}

.icons {
    display: flex;
    gap: 5px;
}

.header {
    display: flex;
    align-items: center;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    background-color: #111;
    position: relative;
    border-bottom: 1px solid #222;
}

.back-button {
    margin-right: 15px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}

.page-content {
    height: calc(100vh - 30px);
    display: flex;
    flex-direction: column;
}

.content-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 80px; /* 为底部操作栏留出空间 */
}

/* 元数据摘要部分 */
.metadata-summary {
    background-color: #222;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.summary-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.summary-stats {
    display: flex;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #4CD964;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #aaa;
}

/* 房间列表部分 */
.metadata-container {
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ddd;
}

.add-room-button {
    background-color: #333;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-room-button:hover {
    background-color: #444;
}

.rooms-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.room-card {
    background-color: #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.room-header {
    background-color: #444;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #555;
}

.room-name {
    font-weight: 600;
    font-size: 16px;
}

.room-actions {
    display: flex;
    gap: 10px;
}

.action-icon {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    background-color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.action-icon:hover {
    background-color: #666;
}

.devices-container {
    padding: 10px;
}

.device-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #444;
}

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

.device-icon {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    background-color: #007AFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.device-info {
    flex: 1;
}

.device-name {
    font-size: 14px;
    margin-bottom: 3px;
}

.device-type {
    font-size: 12px;
    color: #999;
}

.device-actions {
    display: flex;
    gap: 8px;
}

.add-device-button {
    padding: 10px;
    text-align: center;
    background-color: #444;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
}

.add-device-button:hover {
    background-color: #555;
}

/* 底部操作栏 */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #111;
    display: flex;
    padding: 15px;
    gap: 10px;
    border-top: 1px solid #333;
}

.action-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.action-button.apply {
    background-color: #4CD964;
    color: white;
}

.action-button.cancel {
    background-color: #555;
    color: white;
}

/* 对话框样式 */
.dialog {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.dialog-content {
    background-color: #222;
    margin: 20% auto;
    width: 85%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dialog-header {
    padding: 15px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.close-button {
    font-size: 24px;
    cursor: pointer;
}

.dialog-body {
    padding: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ddd;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
    font-size: 14px;
}

.dialog-footer {
    padding: 15px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.dialog-footer button {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.save-button {
    background-color: #4CD964;
    color: white;
}

.cancel-button {
    background-color: #555;
    color: white;
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 30px 0;
    color: #888;
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 14px;
}
