/* 通用样式文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

/* 左侧菜单 */
.sidebar {
    width: 280px;
    background: #2c3e50;
    color: white;
    padding: 20px;
    overflow-y: auto;
}

.sidebar h2 {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #34495e;
    margin-bottom: 20px;
    color: #ecf0f1;
}

.menu-group {
    margin-bottom: 25px;
}

.menu-group-title {
    font-size: 14px;
    color: #95a5a6;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-item {
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    color: #ecf0f1;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.menu-item:hover {
    background: #34495e;
    transform: translateX(5px);
}

.menu-item.active {
    background: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
}

/* 右侧手机展示区域 */
.phone-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

        /* 手机外框 */
        .phone-frame {
            width: 375px;
            height: 900px;
            background: #1a1a1a;
            border-radius: 40px;
            padding: 8px;
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 0 0 2px #333;
            position: relative;
        }

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.phone-frame::after {
    content: '';
    position: absolute;
    top: 35px;
    right: 25px;
    width: 15px;
    height: 15px;
    background: #333;
    border-radius: 50%;
}

/* 手机屏幕 */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

/* 状态栏 */
.status-bar {
    height: 44px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

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

.signal-bars {
    display: flex;
    align-items: flex-end;
    margin-right: 5px;
}

.bar {
    width: 3px;
    background: #000;
    margin-right: 2px;
    border-radius: 1px;
}

.bar:nth-child(1) { height: 4px; }
.bar:nth-child(2) { height: 6px; }
.bar:nth-child(3) { height: 8px; }
.bar:nth-child(4) { height: 10px; }

.carrier {
    margin-right: 10px;
    font-size: 12px;
}

.wifi {
    font-size: 12px;
    margin-right: 5px;
}

.battery {
    display: flex;
    align-items: center;
}

.battery-level {
    font-size: 12px;
    margin-right: 5px;
}

.battery-icon {
    width: 20px;
    height: 10px;
    border: 1px solid #000;
    border-radius: 2px;
    position: relative;
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2px;
    width: 2px;
    height: 6px;
    background: #000;
    border-radius: 0 1px 1px 0;
}

.battery-fill {
    width: 80%;
    height: 100%;
    background: #4cd964;
    border-radius: 1px;
}

/* 页面内容区 */
.page-content {
    height: calc(100% - 44px);
    overflow-y: auto;
    background: #f8f9fa;
    position: relative;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
}

.header-action {
    color: white;
    font-size: 14px;
}

/* 内容容器 */
.content-container {
    padding: 20px;
    height: calc(100% - 60px);
    overflow-y: auto;
}

/* 等待内容样式 */
.waiting-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.waiting-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.waiting-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.waiting-desc {
    color: #666;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: 200px;
        order: 2;
    }
    
    .phone-container {
        order: 1;
        padding: 15px;
    }
    
    .phone-frame {
        width: 320px;
        height: 650px;
    }
}
