    
    .bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sound-btn {
  position: fixed;
  right: 10px;
  top: 35px;
  z-index: 10;
  cursor: pointer;
}
.sound-btn1 {
  position: fixed;
  right: 40px;
  top: 40px;
  z-index: 10;
  cursor: pointer;
}
.sound-btn2 {
  position: fixed;
  right: 150px;
  top: 40px;
  z-index: 10;
  cursor: pointer;
}
.write.login {
            height: 50px;

            display: flex;

            padding: 0 8px;

    position: fixed;
  bottom: 20px; /* 距离底部 */

  justify-content: space-between;
  align-items: center;
  z-index: 9999; /* 让它最顶层 */
}



        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            
            height: 100vh;
            /*display: flex;*/
            justify-content: center;
            align-items: center;
            /*overflow: hidden;*/
            /*background: #ffffff;*/
        }
        
.iphone {
    color: #fff;
    width: 270px;
    height: 550px;
    border-radius: 40px;
    overflow: hidden; /* 不影响外部按钮 */
    position: relative;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    border: 4px solid #333;
    background: #000;
}

/* 电源按钮 - 右上 */
.power-btn {
    position: absolute;
    right: -5px; /* 超出机身 */
    top: 90px;
    width: 3px;
    height: 40px;
    border-radius: 4px;
    background: linear-gradient(145deg, #777, #333);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5), inset -1px -1px 2px rgba(255,255,255,0.2);
    cursor: pointer;
}

/* 音量按钮 - 右侧 */
.volume-btn {
    position: absolute;
    right: -5px; /* 超出机身 */
    width: 3px;
    border-radius: 4px;
    background: linear-gradient(145deg, #777, #333);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5), inset -1px -1px 2px rgba(255,255,255,0.2);
    cursor: pointer;
}

/* 音量+ */
.volume-btn.volume-up {
    top: 150px;  /* 可以根据机身比例调整 */
    height: 30px;
}

/* 音量- */
.volume-btn.volume-down {
    top: 190px;  /* 可以根据机身比例调整 */
    height: 30px;
}

/* 按下效果 */
.power-btn:active,
.volume-btn:active {
    transform: translateX(1px) translateY(1px);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.5);
}
        
        /* 应用容器 */
        .app-container {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
        }
        
        /* 通用顶部状态栏 - 透明 */
.status-bar {
    position: absolute;  /* 改成固定在容器顶部 */
    top: 15px;
    left: 0;
    right: 0;
    /*height: 44px;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    font-size: 12px;
    z-index: 100;
    /*background: rgba(0, 0, 0, 0.2); */
}

        
        .time {
            font-weight: 600;
            color: #fff;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }
        
        .status-icons {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        /* 通用灵动岛 - 透明 */
        .dynamic-island {
              position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            width: 90px;
            height: 25px;
            background: rgba(0, 0, 0, 0.9);
            border-radius: 20px;
            z-index: 110;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 15px;
            overflow: hidden;
            backdrop-filter: blur(20px);
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .dynamic-island.expanded {
            width: 200px;
            height: 100px;
            border-radius: 30px;
            padding: 20px;
            flex-direction: column;
            justify-content: flex-start;
            gap: 15px;
        }
        
        .island-camera {
            width: 15px;
            height: 15px;
            background: rgba(83, 83, 83, 0.6);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .island-camera::before {
            content: "";
            width: 12px;
            height: 12px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 50%;
        }
        
        .island-faceid {
            width: 22px;
            height: 22px;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }
        
        .island-faceid::before {
            content: "";
            position: absolute;
            width: 14px;
            height: 14px;
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: 50%;
        }
        
        /* 灵动岛通知内容 */
        .island-notification {
            display: none;
            width: 100%;
        }
        
        .dynamic-island.expanded .island-notification {
            display: block;
        }
        
        .dynamic-island.expanded .island-camera,
        .dynamic-island.expanded .island-faceid {
            display: none;
        }
        
        .notification-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .notification-app-icon {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            background: linear-gradient(45deg, #5856d6, #007aff);
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .notification-title {
            font-weight: 600;
            font-size: 16px;
            color: #fff;
        }
        
        .notification-time {
            margin-left: auto;
            font-size: 12px;
            opacity: 0.8;
            color: #fff;
        }
        
        .notification-content {
            font-size: 14px;
            line-height: 1.4;
            opacity: 0.9;
            color: #fff;
        }
        
        /* 通用控制中心 - 透明 */
        .control-center {
            position: absolute;
            top: -400px;
            left: 0;
            right: 0;
            background: rgba(40, 40, 40, 0.8);
            backdrop-filter: blur(30px);
            border-radius: 0 0 30px 30px;
            padding: 70px 20px 30px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            z-index: 120;
            transition: top 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
        }
        
        .control-center.visible {
            top: 0;
        }
        
        .control-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .control-title {
            font-size: 20px;
            font-weight: 700;
            color: #fff;
        }
        
        .control-close {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            color: #fff;
            transition: background 0.2s;
        }
        
        .control-close:active {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .control-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }
        
        .control-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
        
        .control-icon {
            width: 60px;
            height: 60px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.15);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 24px;
            color: #fff;
            transition: transform 0.1s, background 0.2s;
            cursor: pointer;
        }
        
        .control-icon:active {
            transform: scale(0.95);
            background: rgba(255, 255, 255, 0.2);
        }
        
        .control-name {
            font-size: 12px;
            color: #fff;
        }
        
        /* 通用底部导航 - 透明 */
        .bottom-bar {
            height: 20px;
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 100;
            /*background: rgba(0, 0, 0, 0.01);*/
        }
        
        .home-indicator {
            width: 130px;
            height: 5px;
            background: #fff;
            border-radius: 3px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }
        
        /* 应用内容区域 */
        .app-content {
            flex: 1;
            overflow: hidden;
            position: relative;
        }
        
        /* 主屏幕 */
        .home-screen {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, #8a2387, #e94057, #f27121);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding-top: 44px;
            padding-bottom: 34px;
            transition: opacity 0.3s, transform 0.3s;
        }
        
        .home-content {
            flex: 1;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .home-content h1 {
            font-size: 32px;
            margin: 20px 0;
            text-align: center;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }
        
        .date {
            font-size: 16px;
            margin-bottom: 30px;
            opacity: 0.9;
        }
        
        .apps {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: 20px;
            width: 100%;
            padding: 0 15px;
        }
        
        .app-icon {
            width: 55px;
            height: 55px;
            border-radius: 15px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 24px;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: transform 0.2s;
            cursor: pointer;
            color: #fff;
        }
        
        .app-icon:active {
            transform: scale(0.9);
        }
        
        .app {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
        
        .app-name {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.95);
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }
        
        /* 信息应用 - 修改为正常背景和黑色文字 */
        .message-app {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #ffffff;
            display: none;
            flex-direction: column;
            padding-bottom: 20px;
            transform: translateY(20px);
            opacity: 0;
            transition: transform 0.3s, opacity 0.3s;
        }
        
        .message-app.visible {
            display: flex;
            transform: translateY(0);
            opacity: 1;
        }
        
        .message-header {
            /*height: 60px;*/
            /*background: #f6f6f6;*/
            display: flex;
            align-items: center;
            padding: 0 15px;
            gap: 15px;
            /*border-bottom: 1px solid #e0e0e0;*/
             /*margin-top: 44px*/
        }
        
        .back-button {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            color: #007aff;
            transition: background 0.2s;
            margin-top: 30px;
        }
        
        .back-button:active {
            background: rgba(0, 0, 0, 0.2);
        }
        
        .message-contact {
            font-weight: 600;
            font-size: 16px;
            color: #000;
            margin-top: 30px;
        }
        
        .message-content {
            flex: 1;
            overflow-y: auto;
            /*padding: 20px;*/
            height: 100px;
            /*display: flex;*/
            flex-direction: column;
            /*gap: 15px;*/
            /*background: #ffffff;*/
            display: flex;
    /*justify-content: center;*/
    align-items: center;
    text-align: center;

        }
        
        .message-bubble {
            max-width: 70%;
            padding: 12px 15px;
            border-radius: 18px;
            position: relative;
            line-height: 1.4;
            animation: fadeIn 0.3s;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .message-received {
            background: #e5e5ea;
            align-self: flex-start;
            border-bottom-left-radius: 4px;
            color: #000;
        }
        
        .message-sent {
            background: #007aff;
            align-self: flex-end;
            border-bottom-right-radius: 4px;
            color: #fff;
        }
        
        .message-time {
            font-size: 11px;
            opacity: 0.7;
            margin-top: 5px;
            text-align: right;
        }
        
        .message-received .message-time {
            color: #666;
        }
        
        .message-sent .message-time {
            color: rgba(255, 255, 255, 0.8);
        }
        
        .message-input {
            height: 50px;
            /*background: #f6f6f6;*/
            display: flex;
            align-items: center;
            /*padding: 0 15px;*/
            gap: 5px;
    position: fixed;
    bottom: 20px;
            /*border-top: 1px solid #e0e0e0;*/
        }
        
        .input-field {
            flex: 1;
            height: 36px;
            background: #ffffff;
            border-radius: 18px;
            padding: 0 10px;
            display: flex;
            align-items: center;
            color: #000;
            border: 1px solid #e0e0e0;
            /*font-size: 15px;*/
        }
        
        .send-button {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #007aff;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            color: #fff;
            transition: background 0.2s;
        }
        
        .send-button:active {
            background: #0056b3;
        }
        
        /* 电池动画 */
        @keyframes battery {
            0% { width: 20px; }
            50% { width: 22px; }
            100% { width: 20px; }
        }
        
        .battery {
            width: 22px;
            height: 10px;
            background: #34c759;
            border-radius: 2px;
            position: relative;
            animation: battery 2s infinite;
        }
        
        .battery::after {
            content: "";
            position: absolute;
            right: -3px;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 5px;
            background: #34c759;
            border-radius: 0 2px 2px 0;
        }
        
        .signal {
            display: flex;
            align-items: flex-end;
            gap: 2px;
            height: 10px;
        }
        
        .signal-bar {
            width: 3px;
            background: #fff;
            border-radius: 1px;
        }
        
        .signal-bar:nth-child(1) { height: 4px; }
        .signal-bar:nth-child(2) { height: 6px; }
        .signal-bar:nth-child(3) { height: 8px; }
        .signal-bar:nth-child(4) { height: 10px; }
        
        /* 图标颜色 */
        .status-icons i {
            color: #fff;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }
        
        /* 下拉指示器 */
        .pull-indicator {
            position: absolute;
            top: 5px;
            left: 50%;
            transform: translateX(-50%);
            width: 36px;
            height: 5px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 3px;
        }
            #chatContent {
      width: 100%;
      /*height: calc(100% - 40px);*/
      height: 100%;
      border: none;
    }