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

img {
    user-select: none;
    -webkit-user-drag: none;
}

body {
    background: linear-gradient(180deg, #e8f4fa 0%, #f0f7fb 15%, #fdf6f8 40%, #fafcfe 70%, #f5f0f8 100%);
    background-attachment: fixed;
    min-height: 100vh;
    font-family: "Microsoft YaHei", sans-serif;
    cursor: image-set(url(../assets/cursor/pointernew.png) 3x) 1 1, auto;
    user-select: none;
    -webkit-user-select: none;
}

a, .tag, .card {
    cursor: image-set(url(../assets/cursor/linknew.png) 3x) 13 1, pointer;
}

input, textarea, [contenteditable] {
    cursor: image-set(url(../assets/cursor/beamnew.png) 3x) 7 17, text;
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background: rgba(180, 190, 200, 0.5);
    border-radius: 3px;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(160, 170, 180, 0.7);
}

html {
    scrollbar-color: rgba(180, 190, 200, 0.5) transparent;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.container {
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    max-width: 65vw;
    height: auto;
    display: block;
    margin: 0 auto;
    transform: translateX(-8%);
    opacity: 0;
    translate: 0 20px;
}
.logo.animate {
    animation: fadeIn 1.5s ease 0.1s forwards, breath 4s ease-in-out 1.6s infinite;
}

@media (max-width: 600px) {
    .logo {
        max-width: 85vw;
        transform: translateX(-6%);
    }
}

.intro {
    margin-top: 24px;
    font-size: 18px;
    color: #7a8fa6;
    letter-spacing: 4px;
    font-weight: 600;
}

.type-text {
    display: inline-block;
    opacity: 0;
    translate: 0 8px;
}
.type-text.animate {
    animation: fadeIn 1s ease 1.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes breath {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

.bottom-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.bottom-left {
    flex: 2.5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bottom-right {
    flex: 1.2;
}

.group {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 12px rgba(150, 170, 190, 0.12);
    opacity: 0;
    translate: 0 24px;
    transition: opacity 2.0s ease, translate 2.0s ease;
}

.group.reveal {
    opacity: 1;
    translate: 0 0;
}

.group-title {
    font-size: 14px;
    color: #8a9db0;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.group-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    color: #5a6f84;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: background 0.2s, transform 0.2s;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.card {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border-radius: 12px;
    background: transparent;
    color: #5a6f84;
    text-decoration: none;
    font-size: 13px;
    border: 2px solid transparent;
    transition: border-color 1s, all 0.35s;
    word-break: break-word;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
    border-color: #7ec8e3;
    box-shadow: 0 8px 28px rgba(150, 170, 190, 0.22);
    animation: borderCycle 2s ease-in-out 1s infinite;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent 35%, rgba(126, 200, 227, 0.08) 45%, rgba(74, 159, 199, 0.12) 55%, transparent 65%);
    pointer-events: none;
    transform: translate(-100%, -100%);
    will-change: transform;
}
.card:hover::before {
    animation: shimmerDiagonal 3s linear forwards;
    animation-delay: 0s;
}
.card:not(:hover)::before {
    animation: none;
    transform: translate(-100%, -100%);
}

@keyframes shimmerDiagonal {
    0% { transform: translate(-100%, -100%); }
    100% { transform: translate(100%, 100%); }
}

@keyframes borderCycle {
    0%, 100% { border-color: #7ec8e3; }
    50% { border-color: #f4c2d0; }
}

.contact-card {
    display: flex;
    flex-direction: column;
}

.contact-header {
    font-size: 16px;
    font-weight: 600;
    color: #4a6075;
    margin-bottom: 10px;
}

.contact-divider {
    height: 1px;
    background: rgba(150, 170, 190, 0.2);
    margin-bottom: 12px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.4);
    color: #5a6f84;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.8);
}

.item-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.item-label {
    color: #8a9db0;
    font-size: 12px;
    min-width: 36px;
}

.item-value {
    color: #5a6f84;
    word-break: break-all;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #4a6075;
}

.card-desc {
    font-size: 12px;
    color: #8a9db0;
    margin-top: 3px;
}

.profile-card {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    padding: 32px 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 12px rgba(150, 170, 190, 0.12);
    text-align: center;
    opacity: 0;
    translate: 0 24px;
    transition: opacity 2.0s ease, translate 2.0s ease;
}

.profile-card.reveal {
    opacity: 1;
    translate: 0 0;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 16px;
    border: 2px solid rgba(126, 200, 227, 0.6);
    box-shadow: 0 0 10px rgba(126, 200, 227, 0.4);
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(126, 200, 227, 0.3); border-color: rgba(126, 200, 227, 0.5); scale: 1; }
    50% { box-shadow: 0 0 18px rgba(126, 200, 227, 0.7); border-color: rgba(126, 200, 227, 0.9); scale: 1.08; }
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: #4a6075;
    margin-bottom: 8px;
}

.profile-bio {
    font-size: 14px;
    color: #8a9db0;
}

.music-card {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 12px rgba(150, 170, 190, 0.12);
    margin-top: 16px;
    opacity: 0;
    translate: 0 24px;
    transition: opacity 2.0s ease, translate 2.0s ease;
}
.music-card.reveal {
    opacity: 1;
    translate: 0 0;
}
.music-title {
    font-size: 14px;
    color: #8a9db0;
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.music-name {
    font-size: 15px;
    font-weight: 600;
    color: #4a6075;
    margin-bottom: 12px;
}
.music-player {
    width: 100%;
    height: 36px;
    outline: none;
    filter: brightness(0);
}
.music-player::-webkit-media-controls-panel,
.music-player::-webkit-media-controls-enclosure,
.music-player::-webkit-media-controls {
    background: transparent !important;
    background-color: transparent !important;
}
.music-player::-webkit-media-controls-current-time-display,
.music-player::-webkit-media-controls-time-remaining-display {
    color: #000;
    font-size: 12px;
    font-weight: 500;
    text-shadow: none;
}
.music-player::-webkit-media-controls-timeline {
    border-radius: 4px;
}
.music-player::-webkit-media-controls-volume-slider {
    border-radius: 4px;
}

.uptime-card {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 12px rgba(150, 170, 190, 0.12);
    margin-top: 16px;
    opacity: 0;
    translate: 0 24px;
    transition: opacity 2.0s ease, translate 2.0s ease;
}
.uptime-card.reveal {
    opacity: 1;
    translate: 0 0;
}
.uptime-title {
    font-size: 14px;
    color: #8a9db0;
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.uptime-display {
    font-size: 13px;
    color: #8a9db0;
    margin-bottom: 4px;
}
.uptime-counter {
    font-size: 20px;
    font-weight: 700;
    color: #4a6075;
    font-variant-numeric: tabular-nums;
}
.uptime-counter .unit {
    font-size: 13px;
    font-weight: 400;
    color: #000;
}

.uptime-stats {
    font-size: 13px;
    color: #7a8fa6;
    margin-top: 6px;
    padding-top: 6px;
}
.uptime-stats #busuanzi_site_pv,
.uptime-stats #busuanzi_today_pv {
    font-weight: 600;
    color: #4a6075;
}
.uptime-stats .stats-divider {
    color: #c8d8e8;
    margin: 0 6px;
}

@media (max-width: 700px) {
    .bottom-section {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .music-player::-webkit-media-controls-current-time-display,
    .music-player::-webkit-media-controls-time-remaining-display {
        display: none !important;
    }
}

.blog-footer {
    text-align: center;
    padding: 30px 20px;
    color: #a0b8cc;
    font-size: 0.85em;
    letter-spacing: 1px;
    position: relative;
}

.footer-halo {
    display: inline-block;
    width: 50px;
    height: 16px;
    border: 2px solid rgba(180, 210, 235, 0.5);
    border-radius: 50%;
    transform: rotate(-8deg);
    margin: 0 auto 8px;
    animation: haloGlow 4s ease-in-out infinite;
}

.footer-icp {
    color: #f4a7c0;
    font-weight: bold;
    text-decoration: none;
}

@keyframes haloGlow {
    0%, 100% { border-color: #7ec8e3; border-top-color: transparent; border-bottom-color: #f4c2d0; translate: 0 0; }
    33% { border-color: #f4c2d0; border-top-color: transparent; border-bottom-color: #b8e4f0; translate: 0 -15px; }
    66% { border-color: #b8e4f0; border-top-color: transparent; border-bottom-color: #7ec8e3; translate: 0 -8px; }
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    z-index: 999;
    pointer-events: none;
}

.toast {
    background: rgba(90, 110, 130, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    pointer-events: auto;
    animation: toastIn 0.35s ease forwards;
    transition: all 0.4s ease;
    overflow: hidden;
}

.toast-out {
    opacity: 0;
    transform: translateX(100%);
}

/* 中考倒计时卡片 */
.exam-countdown-card {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 12px rgba(150, 170, 190, 0.12);
    margin-top: 16px;
    opacity: 0;
    translate: 0 24px;
    transition: opacity 2.0s ease, translate 2.0s ease;
}
.exam-countdown-card.reveal {
    opacity: 1;
    translate: 0 0;
}
.exam-countdown-title {
    font-size: 14px;
    color: #8a9db0;
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.exam-countdown-display {
    font-size: 13px;
    color: #8a9db0;
    margin-bottom: 4px;
}
.exam-countdown-counter {
    font-size: 20px;
    font-weight: 700;
    color: #4a6075;
    font-variant-numeric: tabular-nums;
}
.exam-countdown-counter .unit {
    font-size: 13px;
    font-weight: 400;
    color: #000;
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* 天气卡片 */
.weather-card {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 12px rgba(150, 170, 190, 0.12);
    margin-top: 16px;
    opacity: 0;
    translate: 0 24px;
    transition: opacity 2.0s ease, translate 2.0s ease;
}
.weather-card.reveal {
    opacity: 1;
    translate: 0 0;
}
.weather-title {
    font-size: 14px;
    color: #8a9db0;
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.weather-body {
    font-size: 14px;
    color: #5a6f84;
    line-height: 1.8;
}
.weather-loading {
    color: #8a9db0;
    font-size: 13px;
}
.weather-error {
    color: #d4a0a0;
    font-size: 13px;
}
.weather-location {
    font-weight: 600;
    color: #4a6075;
    font-size: 15px;
}
.weather-temp {
    font-size: 22px;
    font-weight: 700;
    color: #4a6075;
}
.weather-desc {
    color: #7a8fa6;
}
.weather-meta {
    font-size: 12px;
    color: #a0b8cc;
    margin-top: 4px;
}
.weather-divider {
    display: inline-block;
    margin: 0 6px;
    color: #c8d8e8;
}

/* 位置卡片 */
.location-card {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 12px rgba(150, 170, 190, 0.12);
    margin-top: 16px;
    opacity: 0;
    translate: 0 24px;
    transition: opacity 2.0s ease, translate 2.0s ease;
}
.location-card.reveal {
    opacity: 1;
    translate: 0 0;
}
.location-title {
    font-size: 14px;
    color: #8a9db0;
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.location-body {
    font-size: 14px;
    color: #5a6f84;
    line-height: 1.8;
}
.location-body .loc-main {
    font-size: 15px;
    font-weight: 600;
    color: #4a6075;
}
.location-body .loc-distance {
    font-size: 14px;
    color: #7a8fa6;
}
.location-body .loc-distance strong {
    font-weight: 700;
    color: #4a6075;
}
.location-loading {
    color: #8a9db0;
    font-size: 13px;
}
.location-error {
    color: #d4a0a0;
    font-size: 13px;
}

/* 留言板 */
.comments-group .group-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.comment-name {
    font-weight: 600;
    color: #4a6075;
    font-size: 15px;
}
.comment-email {
    font-style: italic;
    color: #8a9db0;
    font-size: 13px;
    text-align: right;
    flex: 1;
}
.comment-content {
    color: #5a6f84;
    font-size: 14px;
    margin: 4px 0;
}
.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}
.comment-time {
    font-style: italic;
    font-size: 12px;
    color: #a0b8cc;
    text-align: left;
}

/* 频谱 */
#spectrum-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.container,
.bottom-section,
.blog-footer {
    position: relative;
    z-index: 1;
}

.toast-container {
    z-index: 999;
}