@charset "utf-8";

/* 使用自定义字体 */
@font-face {
    font-family: "DIY font";
    src: url("https://cdn.jsdelivr.net/gh/xiaoyanu/file-test@2021.11.24/more/HarmonyOS_Sans_SC_Medium.subset.woff2");
}

* {
    font-family: "DIY font";
    transition: all 0.2s;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 10px;
}

/* 主容器样式 */
.main-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* 统一所有卡片宽度 */
.status-bar,
.big-card {
    width: 100%;
    margin: 0 0 10px 0;
    box-sizing: border-box;
}

.status-bar {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color: #444444;
    padding: 7px;
    font-size: 14px;
}

.time {
    justify-content: center;
    font-weight: bold;
    flex: 1;
    text-align: left;
}

.right-content {
    font-weight: bold;
    text-align: right;
    justify-content: flex-end;
}

.icons-container {
    display: flex;
    align-items: center;
}

.signal-icons {
    width: 30px;
    height: 17px;
    background-image: url('images/signal-icons.png');
    background-size: cover;
}

.battery-icons {
    width: 34px;
    height: 17px;
    background-image: url('images/battery-icons.png');
    background-size: cover;
    right: 0px;
}

.tag {
    margin: 5px;
    display: inline-block;
    padding: 8px 11px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    color: #403080;
}

/* 通用的毛玻璃样式 */
.big-card {
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px) saturate(150%) contrast(60%) brightness(120%);
    background-clip: padding-box;
    border-radius: 10px;
}

.container {
    display: flex;
    align-items: center;
    width: 100%;
}

.avatar {
    width: 60px;
    height: 60px;
    padding: 1.5px;
    border-radius: 50%;
    background-color: lightgray;
}

.text-container {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
}

.text-container p {
    margin: 1px 0;
}

.additional-card {
    margin-top: 10px;
}

/* 导航容器样式 - 修复2x2网格布局 */
.nav-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    width: 100%;
    padding: 5px;
    margin: 0;
}

/* 移除按钮链接下划线 */
.nav-container a {
    text-decoration: none;
    display: block;
    width: 100%;
}

/* 按钮样式 */
.glass-button {
    width: 100%;
    margin: 0;
    padding: 15px 10px;
    border: none;
    border-radius: 15px;
    background: rgba(180, 200, 230, 0.2);
    backdrop-filter: blur(10px);
    color: #403080;
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 4px 6px rgba(50, 50, 100, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 50px; /* 统一按钮高度 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-button:hover {
    background: rgba(200, 220, 240, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(50, 50, 100, 0.15);
}

/* 弹窗动画 */
.success-popup {
    opacity: 0;
    animation: slideDown 0.5s ease forwards;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 内容区域统一样式 */
.content-section {
    padding: 15px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    width: 100%;
}

/* 响应式调整 - 加强移动端对齐 */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .main-container {
        width: 100%;
        padding: 0;
        max-width: 100%;
    }
    
    .status-bar,
    .big-card {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .glass-button {
        font-size: 14px;
        padding: 12px 8px;
    }
    
    .nav-container {
        gap: 5px;
        padding: 3px;
    }
}
