/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
}

/* 主容器 */
.main-container {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

/* 背景图片 */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/background.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.85);
}

/* 头部区域 */
.header {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* 时间日期显示 */
.time-date {
    background: rgba(16, 42, 67, 0.6);
    backdrop-filter: blur(8px);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(144, 202, 249, 0.4);
    text-align: right;
    color: white;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(16, 42, 67, 0.4);
}

.date {
    font-size: 12px;
    margin-bottom: 2px;
    color: rgba(240, 248, 255, 0.9);
}

.time {
    font-size: 16px;
    font-weight: bold;
    margin: 3px 0;
    color: white;
    text-shadow: 0 0 8px rgba(144, 202, 249, 0.5);
}

.weather {
    font-size: 10px;
    color: rgba(240, 248, 255, 0.8);
    margin-top: 2px;
}

/* 主要内容区域 */
.main-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 150px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    gap: 300px;
}

/* 个人信息区域 - 左侧 */
.personal-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(16, 42, 67, 0.6);
    text-align: left;
    flex-shrink: 0;
    margin-top: 20px;
}

/* 头像 */
.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(144, 202, 249, 0.6);
    box-shadow: 0 0 15px rgba(144, 202, 249, 0.5);
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(144, 202, 249, 0.8);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 用户名 */
.username {
    font-size: 22px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(144, 202, 249, 0.7);
}

/* 座右铭 */
.motto {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(240, 248, 255, 0.9);
    max-width: 250px;
}

/* 引用 */
.quote {
    background: rgba(16, 42, 67, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    border-left: 3px solid rgba(144, 202, 249, 0.8);
    max-width: 250px;
    box-shadow: 0 3px 15px rgba(16, 42, 67, 0.4);
    transition: all 0.3s ease;
}

.quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 42, 67, 0.6);
}

.quote p {
    font-size: 13px;
    color: rgba(240, 248, 255, 0.9);
    font-style: italic;
    line-height: 1.6;
}

/* 快捷链接 - 右侧 */
.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.link-item {
    background: rgba(16, 42, 67, 0.6);
    backdrop-filter: blur(8px);
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid rgba(144, 202, 249, 0.4);
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(16, 42, 67, 0.4);
}

.link-item:hover {
    background: rgba(144, 202, 249, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(144, 202, 249, 0.6);
    border-color: rgba(144, 202, 249, 0.8);
}

.link-icon {
    font-size: 20px;
}

.link-item span {
    font-size: 12px;
    text-align: center;
    font-weight: bold;
}

/* 页脚和备案号区域 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(16, 42, 67, 0.6);
    backdrop-filter: blur(12px);
    padding: 10px 8px 8px;
    text-align: center;
    color: rgba(240, 248, 255, 0.7);
    font-size: 12px;
    border-top: 1px solid rgba(144, 202, 249, 0.2);
    z-index: 100;
}

.footer p:first-child {
    margin-bottom: 5px;
}

.footer p:last-child {
    margin: 0;
    font-size: 11px;
    color: rgba(240, 248, 255, 0.6);
}

.footer a {
    color: rgba(144, 202, 249, 0.8);
    text-decoration: none;
}

.footer a:hover {
    color: rgba(144, 202, 249, 1);
    text-decoration: underline;
}

.icp-info a {
    color: rgba(144, 202, 249, 0.8);
    text-decoration: none;
}

.icp-info a:hover {
    color: rgba(144, 202, 249, 1);
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        width: 800px;
    }
}

@media (max-width: 768px) {
    .header {
        top: 15px;
        right: 30px;
    }
    
    .time-date {
        min-width: 250px;
        padding: 15px 20px;
    }
    
    .time {
        font-size: 28px;
    }
    
    .main-content {
        flex-direction: column;
        justify-content: center;
        width: 90%;
        height: auto;
        gap: 40px;
    }
    
    .personal-info {
        align-items: center;
        text-align: center;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .username {
        font-size: 28px;
    }
    
    .motto {
        font-size: 16px;
    }
    
    .quote {
        max-width: 100%;
        padding: 15px 20px;
    }
    
    .quick-links {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        max-width: 400px;
        gap: 15px;
    }
    
    .link-item {
        min-width: 100px;
        padding: 10px 15px;
    }
    
    .link-icon {
        font-size: 20px;
    }
    
    .link-item span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header {
        top: 10px;
        right: 20px;
    }
    
    .time-date {
        min-width: 200px;
        padding: 10px 15px;
    }
    
    .time {
        font-size: 24px;
    }
    
    .main-content {
        padding: 20px;
        gap: 30px;
    }
    
    .avatar {
        width: 70px;
        height: 70px;
    }
    
    .username {
        font-size: 24px;
    }
    
    .motto {
        font-size: 14px;
    }
    
    .quote {
        padding: 10px 15px;
    }
    
    .quote p {
        font-size: 14px;
    }
    
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .link-item {
        min-width: 90px;
        padding: 10px;
    }
    
    .link-icon {
        font-size: 18px;
    }
    
    .link-item span {
        font-size: 12px;
    }
}
