@font-face {
    font-family: "Pacifico-Regular";
    font-display: swap;
    src: url("../font/Pacifico-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "UnidreamLED";
    font-display: swap;
    src: url("../font/UnidreamLED.ttf") format("truetype");
}

:root {
    --primary: #7ea8ff;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text-high: rgba(255, 255, 255, 0.92);
    --text-mid: rgba(255, 255, 255, 0.85);
    --text-low: rgba(255, 255, 255, 0.60);
    --content-max: 1200px;
    --radius: 14px;
    --shadow-soft: 0 8px 24px rgba(0,0,0,0.18);
    --shadow-strong: 0 16px 40px rgba(0,0,0,0.24);
    --glass-hover-bg: rgba(255, 255, 255, 0.16);
    --accent-glow: rgba(126,168,255,0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    color: #fff;
    text-decoration: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "HarmonyOS_Regular", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

.cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95) contrast(1.06) saturate(110%);
    will-change: transform, filter;
    animation: fade-blur-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: scale(1.05);
}

.gray-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(100% 100% at 50% 50%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.28) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.18) 100%);
}

#app {
    position: relative;
    width: 100%;
    height: 100%;
    padding: clamp(10px, 3vw, 30px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
    z-index: 1;
}

#app::-webkit-scrollbar {
    display: none;
}

.cards {
    position: relative;
    border-radius: var(--radius);
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow:
        var(--shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cards:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        var(--shadow-strong),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--glass-hover-bg);
}

.cards::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
    opacity: 0.35;
    pointer-events: none;
}

.cards::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: clamp(20px, 4vw, 40px);
    padding: 25px 20px;
    position: relative;
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

.logo {
    font-family: "Pacifico-Regular";
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    background: linear-gradient(120deg, #ff7eb3, #7ea8ff, #7effd4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.logo::before, .logo::after { display: none; }
.logo::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(180px, 40vw, 520px);
    height: clamp(90px, 18vw, 240px);
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
    filter: blur(36px);
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

.content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: clamp(15px, 3vw, 25px);
    height: calc(100% - 180px);
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

.left-panel, .right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 3vw, 25px);
}

.time-card, .weather-card, .hitokoto-card, .links-card {
    padding: clamp(15px, 2vw, 25px);
    height: fit-content;
    position: relative;
}

.time-card h3, .weather-card h3, .hitokoto-card h3, .links-card h3 {
    margin-bottom: clamp(10px, 2vw, 18px);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-high);
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.time-card h3::after, .weather-card h3::after, .hitokoto-card h3::after, .links-card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.time-card h3 i, .weather-card h3 i, .hitokoto-card h3 i, .links-card h3 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 50%;
    background: rgba(126, 168, 255, 0.18);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(126, 168, 255, 0.35);
}

.time-card {
    text-align: center;
}

.date {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    margin-bottom: 15px;
    color: var(--text-mid);
}

.clock {
    font-family: "UnidreamLED";
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-shadow: 0 0 15px rgba(126, 168, 255, 0.5);
    letter-spacing: 2px;
}

.hitokoto-content {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.8;
    color: var(--text-high);
    letter-spacing: 0.5px;
}

.hitokoto-author {
    text-align: right;
    margin-top: 15px;
    color: var(--text-low);
    font-size: 0.9rem;
    font-style: italic;
}

.links-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(10px, 1.5vw, 18px);
    margin-top: clamp(10px, 2vw, 18px);
}

.link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(12px, 2vw, 20px) 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

.link-item:hover .link-icon {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.link-item:active {
    transform: translateY(-1px) scale(0.995);
}

.link-item:focus-visible {
    outline: none;
    border-color: rgba(126, 168, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(126, 168, 255, 0.35);
}

.link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-icon i {
    font-size: 1.2rem;
    color: var(--text-high);
}

.link-name {
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    text-align: center;
    color: var(--text-mid);
    font-weight: 500;
}

#weather-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#weather-info p {
    font-size: 1.1rem;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: 8px;
}

#weather-info p i {
    color: #7ea8ff;
    width: 20px;
    text-align: center;
}

.footer {
    text-align: center;
    padding: 20px 15px;
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    color: rgba(255, 255, 255, 0.82);
    margin-top: 20px;
    line-height: 1.8;
    background: transparent;
    border: none;
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

.footer a {
    color: #7ea8ff;
    padding: 3px 8px;
    border-radius: 4px;
}

.footer a:hover {
    color: #fff;
    background: rgba(126, 168, 255, 0.2);
}

.beian-number {
    color: rgba(255, 255, 255, 0.55);
    margin-left: 8px;
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
}

.beian-number:hover {
    color: #7ea8ff;
    background: transparent;
    text-decoration: underline;
}

@supports not ((backdrop-filter: blur(1px))) {
    .cards {
        background: rgba(15, 18, 28, 0.55);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

@keyframes fade-blur-in {
    from {
        filter: blur(22px) brightness(0.7) contrast(1);
        transform: scale(1.2);
    }
    to {
        filter: brightness(1) contrast(1.06) saturate(110%);
        transform: scale(1.05);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 768px) {
    .content {
        display: flex;
        flex-direction: column;
        height: auto;
    }
    .clock {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }
    .links-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .logo::before, .logo::after {
        display: none;
    }
    .footer {
        font-size: 0.8rem;
    }
    .beian-number {
        display: inline-block;
        margin-top: 5px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .clock {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
    .links-container {
        grid-template-columns: 1fr;
    }
    .cards:hover {
        transform: translateY(-3px) scale(1.005);
    }
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
