:root {
    --color-white: #ffffff;
    --color-blue-light: #77b3ee;
    --color-yellow: #ffc964;
    --color-deep-blue: #1f2996;
    --color-mid-blue: #4d6dc9;
    --color-dark: #0d1536;
    --color-gray: #a0a8d0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, var(--color-blue-light), var(--color-deep-blue));
    color: #fff;
    scroll-behavior: smooth;
    overflow-x: hidden;
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(31, 41, 150, 0.85);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

header.scrolled {
    background: rgba(15, 23, 64, 0.95);
}

.nav-avatar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-avatar img {
    height: 40px;
    border-radius: 50%;
}

.nav-avatar span {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

#main-nav {
    display: flex;
    gap: 20px;
}

#main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
    position: relative;
}

#main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-yellow);
    transition: all 0.3s;
    transform: translateX(-50%);
}

#main-nav a:hover {
    color: var(--color-yellow);
}

#main-nav a:hover::after {
    width: 80%;
}

#mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
}

section.page {
    min-height: 100vh;
    padding: 100px 24px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-yellow);
    border-radius: 2px;
}

/* 欢迎区 */
#welcome {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent);
    backdrop-filter: blur(8px);
    padding-top: 150px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#welcome h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

#welcome p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: #eef;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}

/* OC设定区 */
#oc {
    background: rgba(15, 23, 64, 0.4);
    backdrop-filter: blur(6px);
}

.oc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.oc-info {
    background: rgba(31, 41, 150, 0.3);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.oc-info h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--color-yellow);
}

.oc-info ul {
    list-style: none;
}

.oc-info li {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
}

.oc-info li:last-child {
    border-bottom: none;
}

.oc-info strong {
    min-width: 120px;
    color: var(--color-yellow);
}

.oc-display {
    text-align: center;
}

.oc-display img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.oc-display img:hover {
    transform: scale(1.02);
}

.switch-btns {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.switch-btns button {
    background: rgba(255, 201, 100, 0.2);
    border: 2px solid var(--color-yellow);
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.switch-btns button:hover {
    background: rgba(255, 201, 100, 0.4);
}

.switch-btns button.active {
    background: var(--color-yellow);
    color: var(--color-dark);
}

.oc-desc {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 40px;
    font-size: 1.3rem;
    font-style: italic;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

/* 朋友展示区 */
#friends {
    background: linear-gradient(to bottom, var(--color-deep-blue), #142063);
}

.friends-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.friend-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.friend-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: rgba(31, 41, 150, 0.3);
}

.friend-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--color-yellow);
    margin-bottom: 20px;
    object-fit: cover;
}

.friend-card span {
    display: block;
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--color-yellow);
}

.friend-card p {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--color-gray);
}

/* 社交媒体链接区 */
#social {
    background: rgba(15, 23, 64, 0.4);
}

/* 标签切换样式 */
.social-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.tab-btn.active {
    background: var(--color-yellow);
    color: var(--color-dark);
    border-color: var(--color-yellow);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 201, 100, 0.4);
}

/* 标签内容样式 */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 社交链接网格 */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 25px 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-item:hover {
    transform: translateY(-8px);
    background: rgba(31, 41, 150, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
}

.social-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* 数据统计样式 */
.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 概览统计卡片 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.overview-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.overview-card h3 {
    color: var(--color-gray);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-yellow);
    margin: 0;
}

/* 平台统计数据网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* 单个平台统计卡片 */
.platform-stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.platform-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(31, 41, 150, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-header img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.platform-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.platform-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
}

.stat-item p {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin: 0 0 5px 0;
}

.stat-item .value {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.platform-stats .value.followers {
    color: #4CAF50;
}

.platform-stats .value.posts {
    color: #2196F3;
}

.platform-stats .value.likes {
    color: #FF5722;
}

.platform-update-time {
    text-align: right;
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* 统计说明 */
.stats-note {
    text-align: center;
    margin-top: 40px;
    color: var(--color-gray);
}

/* 评论区 */
#comments {
    min-height: 300px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    padding: 40px;
    border-radius: 16px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.comment-box {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.comment-header h3 {
    font-size: 1.1rem;
}

.comment-header span {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-left: auto;
}

.comment-content p {
    line-height: 1.6;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(4px);
}

footer p {
    margin: 10px 0;
}

/* 动画效果 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes twinkle {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* 响应式 */
@media (max-width: 992px) {
    .oc-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .friends-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 25px;
    }

    #welcome h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    #main-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: rgba(31, 41, 150, 0.95);
        width: 70%;
        height: calc(100vh - 70px);
        transition: right 0.3s;
        padding: 30px 20px;
        gap: 15px;
    }

    #main-nav.active {
        right: 0;
    }

    #main-nav a {
        margin: 10px 0;
        font-size: 1.2rem;
        padding: 12px 20px;
    }

    #mobile-menu-btn {
        display: block;
    }

    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #welcome h1 {
        font-size: 2.3rem;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .friends-grid {
        grid-template-columns: 1fr;
    }

    #welcome h1 {
        font-size: 2rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .nav-avatar span {
        font-size: 1.2rem;
    }
}
#github-comments .loading,
#github-comments .no-comments,
#github-comments .error {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: var(--color-gray);
}

#github-comments .error {
    background: rgba(255, 100, 100, 0.1);
    border-radius: 12px;
    margin: 20px 0;
}
.github-link {
    margin-top: 20px;
    text-align: center;
}

.github-link .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 201, 100, 0.2);
    color: var(--color-yellow);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--color-yellow);
}

.github-link .btn:hover {
    background: rgba(255, 201, 100, 0.4);
    transform: translateY(-3px);
}
.issue-body {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
}
.social-item {
    text-decoration: none;
    color: inherit;
}
@media (max-width: 768px) {
    .github-link .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .issue-body {
        padding: 10px;
        font-size: 0.9rem;
    }
}