* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.phone-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('picture/千海一中校园.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'SimSun', 'Songti SC', serif;
    position: relative;
}

body.phone-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

/* ========== 手机外壳 ========== */

.phone {
    width: 380px;
    height: 700px;
    background: #1a1a1a;
    border-radius: 42px;
    padding: 14px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

/* ========== 屏幕区域 ========== */

.phone-screen {
    width: 100%;
    height: 100%;
    background-image: url('picture/张建强夜晚篮球场.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.phone-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* ========== 摄像头 ========== */

.phone-camera {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    z-index: 3;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
}

/* ========== 第一页 · 手机首页 ========== */

.phone-home {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px 24px;
    text-align: center;
}

.phone-title {
    font-size: 40px;
    font-weight: normal;
    color: #fff;
    letter-spacing: 8px;
    margin-bottom: 24px;
}

.phone-desc {
    font-size: 18px;
    color: #c9d1d9;
    letter-spacing: 2px;
    line-height: 1.8;
    margin-bottom: 70px;
}

.phone-btn {
    display: inline-block;
    padding: 16px 56px;
    border: 1px solid #8b949e;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 19px;
    letter-spacing: 4px;
    transition: all 0.3s;
}

.phone-btn:hover {
    border-color: #e6edf3;
    color: #e6edf3;
    background: rgba(255, 255, 255, 0.05);
}

/* ========== 第二页 · 桌面 ========== */

body.desktop-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('picture/张建强卧室.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'SimSun', 'Songti SC', serif;
    position: relative;
}

body.desktop-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.desktop {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 60px 24px 30px;
}

/* 上方六个应用，3列2行 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 16px;
}

.app {
    text-align: center;
    cursor: pointer;
    text-decoration: none;   /* 去掉链接下划线 */
    color: inherit;          /* 继承颜色 */
    display: block;          /* 让链接占满格子 */
}

.app-icon-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px;
    opacity: 0.9;
    transition: all 0.3s;
}

.app:hover .app-icon-img {
    opacity: 1;
    transform: scale(1.08);
}

.app p {
    font-size: 15px;
    color: #e6edf3;
}

/* 下方 dock */
.dock {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-icon {
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
}

.dock-icon:hover {
    transform: scale(1.1);
}

.app-icon-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}

.app-icon-wrap .app-icon-img {
    margin-bottom: 0;
}

.app-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    box-sizing: border-box;
}