/* --- 全局与变量定义 --- */
:root {
    --bg-color: #0b0f19;
    --shard-bg: rgba(20, 25, 40, 0.75);
    --text-primary: #e6e6e6;
    --text-secondary: #a0a0b4;
    --accent-color: #00f6ff;
    --border-color: rgba(0, 246, 255, 0.3);
    --font-main: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* --- 动态星空背景 --- */
#star-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 5s infinite ease-in-out;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* --- 核心晶片容器 --- */
.shard-container {
    width: 90vw;
    max-width: 400px;
    padding: 35px 30px;
    background: var(--shard-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    /* 使用 clip-path 创建独特的切角形状 */
    clip-path: polygon(0 25px, 25px 0, calc(100% - 25px) 0, 100% 25px, 100% calc(100% - 25px), calc(100% - 25px) 100%, 25px 100%, 0 calc(100% - 25px));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-10px); }
	100% { transform: translateY(0px); }
}


/* --- 个人信息 --- */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 25px;
}
.avatar-wrapper {
    width: 90px;
    height: 90px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); /* 六边形 */
    background: var(--accent-color);
    padding: 3px;
    transition: transform 0.3s ease;
}
.avatar-wrapper:hover {
    transform: rotate(15deg);
}
.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inherit;
}
#nickname {
    margin-top: 15px;
    font-size: 1.6em;
    font-weight: 600;
}

/* --- 状态信息 --- */
.status-section {
    text-align: center;
    margin-bottom: 30px;
}
#time {
    font-family: var(--font-mono);
    font-size: 3em;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--accent-color);
}
#hitokoto {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 10px;
    min-height: 1.5em; /* 防止加载时跳动 */
}

/* --- 导航链接列表 --- */
.links-list ul {
    list-style: none;
}
.links-list li a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px 10px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: color 0.3s, background-color 0.3s;
}
.links-list li a::before { /* 悬停时的荧光指示条 */
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
    width: 3px;
    height: 60%;
    background-color: var(--accent-color);
    border-radius: 2px;
    transition: transform 0.3s ease;
}
.links-list li a:hover {
    color: var(--text-primary);
    background-color: rgba(0, 246, 255, 0.05);
}
.links-list li a:hover::before {
    transform: translateY(-50%) scaleX(1);
}
.links-list i {
    font-size: 1.1em;
    width: 30px;
    text-align: center;
    margin-right: 15px;
}
.links-list span {
    font-size: 1em;
    font-weight: 500;
}

/* --- 底部备案信息 --- */
.site-footer {
    position: fixed;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8em;
    color: var(--text-secondary);
    opacity: 0.6;
}
.site-footer a {
    color: inherit;
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--accent-color);
}

/* --- 响应式调整 --- */
@media (max-width: 480px) {
    .shard-container {
        padding: 25px 20px;
        clip-path: polygon(0 15px, 15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px));
    }
    #time { font-size: 2.5em; }
    .avatar-wrapper { width: 80px; height: 80px; }
}