:root {
    /* Design Tokens */
    --bg-color: #07030d;
    --purple-900: #0b0615;
    --purple-800: #140a23;
    --purple-700: #221040;
    --purple-500: #552799;
    --purple-400: #7c45d4;
    --purple-300: #a072e6;
    --purple-100: #e0cef8;

    --accent-gold: #e8c872;
    --accent-teal: #5bc0be;
    --accent-coral: #e07a5f;

    --text-primary: #f2ebfc;
    --text-secondary: #c2a1f0;
    --text-muted: #8d7ca3;

    --glass-bg: rgba(20, 10, 35, 0.45);
    --glass-border: rgba(160, 114, 230, 0.12);
    --glass-border-hover: rgba(160, 114, 230, 0.35);
    --glass-shadow: 0 8px 32px 0 rgba(7, 3, 13, 0.37);

    --font-family: 'Noto Sans TC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    position: relative;
    padding: 3rem 1.25rem 4rem 1.25rem;
    line-height: 1.6;
}

/* Background Canvas and Glows */
#universe-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(124, 69, 212, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 60%, rgba(91, 192, 190, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(232, 200, 114, 0.06) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Container */
.page-container {
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* Header Section */
.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-logo-container {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--purple-400), var(--accent-teal));
    box-shadow: 0 0 25px rgba(124, 69, 212, 0.4);
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-base);
}

.profile-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--purple-900);
}

.profile-name {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    background: linear-gradient(120deg, #ffffff 30%, var(--purple-100) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Link List */
.links-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-bottom: 3.5rem;
}

.link-card {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 1.1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

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

.link-card:hover {
    transform: translateY(-3px);
    background: rgba(30, 15, 50, 0.6);
    border-color: var(--glass-border-hover);
    box-shadow: 0 12px 28px rgba(124, 69, 212, 0.15), 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.link-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.link-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
    transition: var(--transition-base);
}

.link-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

.link-arrow {
    color: var(--text-muted);
    opacity: 0.5;
    transition: var(--transition-base);
    margin-left: 0.5rem;
}

.link-card:hover .link-arrow {
    opacity: 1;
    color: #ffffff;
    transform: translateX(3px);
}

/* Featured Glowing Cards */
.link-card.featured-gold {
    border: 1px solid rgba(232, 200, 114, 0.35);
    background: rgba(25, 18, 10, 0.55);
    box-shadow: 0 4px 20px rgba(232, 200, 114, 0.08);
}

.link-card.featured-gold:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 8px 25px rgba(232, 200, 114, 0.2);
}

.link-card.featured-gold .link-title {
    color: var(--accent-gold);
}

.link-card.featured-teal {
    border: 1px solid rgba(91, 192, 190, 0.35);
    background: rgba(8, 25, 25, 0.55);
    box-shadow: 0 4px 20px rgba(91, 192, 190, 0.08);
}

.link-card.featured-teal:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 8px 25px rgba(91, 192, 190, 0.2);
}

.link-card.featured-teal .link-title {
    color: var(--accent-teal);
}

.link-card.featured-purple {
    border: 1px solid rgba(160, 114, 230, 0.35);
    background: rgba(18, 12, 35, 0.55);
    box-shadow: 0 4px 20px rgba(160, 114, 230, 0.08);
}

.link-card.featured-purple:hover {
    border-color: var(--purple-300);
    box-shadow: 0 8px 25px rgba(160, 114, 230, 0.25);
}

.link-card.featured-purple .link-title {
    color: var(--text-primary);
}

/* Category Grouping Styles */
.category-group {
    width: 100%;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.category-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    padding-left: 0.5rem;
    border-left: 2px solid var(--accent-teal);
    line-height: 1;
}

/* Latest News Featured Card */
.latest-news-card {
    width: 100%;
    display: flex;
    background: rgba(30, 12, 45, 0.45);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(7, 3, 13, 0.4);
    margin-bottom: 2.25rem;
    text-decoration: none;
    color: var(--text-primary);
    overflow: hidden;
}

.news-image-wrapper {
    width: 38%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 150px;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content-wrapper {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.news-tag {
    font-size: 0.7rem;
    color: var(--accent-teal);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.news-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.6rem;
    font-weight: 300;
}

.news-card-date {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 400;
}

@media (max-width: 500px) {
    .latest-news-card {
        flex-direction: column;
        margin-bottom: 2rem;
    }
    .news-image-wrapper {
        width: 100%;
        height: 135px;
        min-height: auto;
    }
    .news-content-wrapper {
        padding: 1.1rem 1.25rem;
    }
    .news-card-title {
        font-size: 1.05rem;
    }
}



/* Footer Copyright */
.footer-copyright {
    margin-top: 3.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Animation class for loading cards in sequence */
.animate-in {
    opacity: 0;
    transform: translateY(15px);
    animation: card-appear 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes card-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Settings */
@media (max-width: 500px) {
    body {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .profile-logo-container {
        width: 84px;
        height: 84px;
    }

    .profile-name {
        font-size: 1.4rem;
    }

    .link-card {
        padding: 0.95rem 1.2rem;
    }

    .link-title {
        font-size: 0.95rem;
    }

    .link-desc {
        font-size: 0.75rem;
    }


}
