@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #FFFFFF;
    --secondary: #E0E0E0;
    --accent: #333333;
    --dark-bg: #1A1A1A;
    --card-bg: rgba(255, 255, 255, 0.95);
    --glass: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    --gradient-hover: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 50%, var(--primary) 100%);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
    --transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Microsoft YaHei', sans-serif;
    background: radial-gradient(circle at 20% 50%, #2A2A2A 0%, #121212 100%);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 16px;
    position: relative;
}

.floating-text {
    position: fixed;
    font-size: 140px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
    animation: textFloat 40s ease-in-out infinite;
}

.sentence-box {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: linear-gradient(90deg, rgba(150, 150, 150, 0.2) 0%, rgba(200, 200, 200, 0.3) 50%, rgba(150, 150, 150, 0.2) 100%);
    backdrop-filter: blur(30px);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid rgba(200, 200, 200, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeIn 1s ease 3s forwards;
    max-width: 85%;
    text-align: center;
}

.sentence-text {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    white-space: pre-wrap;
}

.time-display {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
    opacity: 0;
    animation: fadeIn 1s ease 2.5s forwards;
    background: linear-gradient(90deg, rgba(150, 150, 150, 0.2) 0%, rgba(200, 200, 200, 0.3) 50%, rgba(150, 150, 150, 0.2) 100%);
    backdrop-filter: blur(20px);
    padding: 12px 20px;
    border-radius: 20px;
    border: 1px solid rgba(150, 150, 150, 0.5);
    box-shadow: var(--shadow);
}

.time-item {
    text-align: center;
}

.time-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    animation: pulse 2s ease-in-out infinite;
}

.time-value {
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 20, 20, 1) 0%, rgba(50, 50, 50, 1) 50%, rgba(20, 20, 20, 1) 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: loaderOut 1s ease 2s forwards;
}

.loader-content {
    width: 320px;
    text-align: center;
}

.loader-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: logoFloat 3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loader-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2.5px;
    margin-bottom: 24px;
    opacity: 0.9;
    font-weight: 500;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 12px;
    animation: progressLoad 2s ease-in-out forwards;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    position: relative;
}

.progress-number {
    position: absolute;
    top: -28px;
    right: -25px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(60, 60, 60, 0.8);
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: progressNumber 2s ease-in-out forwards;
}

.main-container {
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    animation: containerSlide 1s ease 2.2s forwards;
    margin-top: 140px;
}

.main-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(35px);
    border-radius: 28px;
    padding: 48px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(150, 150, 150, 0.8) 0%, rgba(255, 255, 255, 1) 50%, rgba(150, 150, 150, 0.8) 100%);
}

.header {
    text-align: center;
    margin-bottom: 48px;
}

.logo-container {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.25);
    animation: logoRotate 20s linear infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: 1.2px;
}

.subtitle {
    color: #94a3b8;
    font-size: 14px;
    letter-spacing: 1.2px;
    font-weight: 400;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nav-item {
    opacity: 0;
    transform: translateY(20px);
}

.nav-item:nth-child(1) { animation: itemSlide 0.6s ease 2.8s forwards; }
.nav-item:nth-child(2) { animation: itemSlide 0.6s ease 3.0s forwards; }
.nav-item:nth-child(3) { animation: itemSlide 0.6s ease 3.2s forwards; }
.nav-item:nth-child(4) { animation: itemSlide 0.6s ease 3.4s forwards; }

.nav-link {
    display: flex;
    align-items: center;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
    gap: 12px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.15);
}

.nav-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover .nav-icon {
    transform: rotate(15deg) scale(1.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.nav-text {
    flex: 1;
    min-width: 0;
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    color: var(--primary);
    flex-shrink: 0;
    font-weight: 700;
}

.nav-link:hover .nav-arrow {
    opacity: 1;
    transform: translateX(0);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 48px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    width: 100%;
}

.social-link:nth-child(1) { animation: itemSlide 0.6s ease 3.6s forwards; }
.social-link:nth-child(2) { animation: itemSlide 0.6s ease 3.8s forwards; }
.social-link:nth-child(3) { animation: itemSlide 0.6s ease 4.0s forwards; }

.social-link:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.15);
}

.social-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover .social-icon {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.social-text {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}

.social-note {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
}

.music-control {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 22px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    z-index: 100;
    opacity: 0;
    animation: fadeIn 1s ease 4.2s forwards;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.music-control:hover {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.2);
}

.notice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.8) 0%, rgba(80, 80, 80, 0.9) 50%, rgba(50, 50, 50, 0.8) 100%);
    backdrop-filter: blur(15px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notice-modal.active {
    opacity: 1;
    visibility: visible;
}

.notice-box {
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 30px 25px;
    box-shadow: 0 25px 60px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notice-modal.active .notice-box {
    transform: scale(1);
    opacity: 1;
    animation: jellyIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notice-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(200, 200, 200, 0.2);
    border: none;
    color: #333333;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.notice-close-btn:hover {
    background: var(--accent);
    color: white;
    transform: rotate(90deg);
}

.notice-title {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
}

.notice-content {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 8px;
    white-space: pre-line;
}

@keyframes textFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-60px) scale(1.08);
    }
}

@keyframes progressLoad {
    0% {
        width: 0%;
        opacity: 0.6;
    }
    50% {
        width: 75%;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

@keyframes progressNumber {
    0% {
        opacity: 0;
        right: -25px;
    }
    10% {
        opacity: 1;
    }
    50% {
        right: calc(50% - 25px);
    }
    100% {
        right: 0;
        opacity: 1;
    }
}

@keyframes loaderOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.05);
    }
}

@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes containerSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes itemSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes jellyIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    25% {
        transform: scale(1.05);
    }
    50% {
        transform: scale(0.95);
    }
    75% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .floating-text {
        font-size: 100px;
    }

    .sentence-box {
        top: 10px;
        padding: 10px 18px;
        max-width: 85%;
    }

    .sentence-text {
        font-size: 13px;
    }

    .time-display {
        top: 60px;
        padding: 10px 18px;
    }

    .time-value {
        font-size: 20px;
    }

    .main-container {
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
        margin-top: 120px;
    }

    .main-card {
        padding: 40px 16px;
    }

    h1 {
        font-size: 30px;
    }

    .nav-link {
        padding: 16px 12px;
        gap: 10px;
    }

    .nav-title {
        font-size: 15px;
    }

    .nav-desc {
        font-size: 11px;
    }

    .social-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .loader-content {
        width: 280px;
    }

    .notice-box {
        max-width: 90%;
        padding: 24px 20px;
    }

    .notice-title {
        font-size: 16px;
    }

    .notice-content {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .floating-text {
        font-size: 70px;
    }

    .sentence-box {
        top: 8px;
        padding: 8px 16px;
        max-width: 90%;
    }

    .sentence-text {
        font-size: 12px;
    }

    .time-display {
        top: 50px;
        padding: 8px 16px;
        gap: 6px;
    }

    .time-label {
        font-size: 10px;
    }

    .time-value {
        font-size: 18px;
    }

    .main-container {
        margin-top: 110px;
    }

    .nav-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .nav-title {
        font-size: 14px;
    }

    .nav-desc {
        font-size: 10px;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .music-control {
        width: 48px;
        height: 48px;
        font-size: 20px;
        bottom: 20px;
        left: 20px;
    }

    .notice-box {
        padding: 20px 16px;
        max-width: 95%;
    }

    .notice-title {
        font-size: 16px;
    }

    .notice-content {
        font-size: 13px;
        max-height: 50vh;
    }
}
