/* 自定义字体 */
@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/ttf.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 全局变量 */
:root {
    --primary-color: #229fff;
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f8f9fa;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --border-color: #e0e0e0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-color: #0f0f0f;
    --text-color: #e0e0e0;
    --card-bg: #1a1a1a;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --border-color: #333333;
}

/* 加载屏幕 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: #333;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(34, 159, 255, 0.2);
    border-top-color: #229fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.loading-text {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 25px;
    color: #666;
}

.loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(34, 159, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar {
    height: 100%;
    background: #229fff;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(34, 159, 255, 0.3);
}

/* 暗色主题的加载屏幕 */
[data-theme="dark"] .loading-screen {
    background: #0f0f0f;
}

[data-theme="dark"] .loading-content {
    color: #e0e0e0;
}

[data-theme="dark"] .loading-title {
    color: #e0e0e0;
}

[data-theme="dark"] .loading-text {
    color: #999;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'CustomFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -3;
}

/* 视频背景 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 当卡片悬停时，视频背景也模糊 */
body:has(.site-card:hover) .video-background {
    filter: blur(8px);
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

[data-theme="dark"] .video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* 背景画布 */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    transition: all 0.3s ease;
}

/* 当卡片悬停时，背景粒子也模糊 */
body:has(.site-card:hover) #backgroundCanvas {
    filter: blur(5px);
    opacity: 0.08;
}

/* 天气卡片 */
.weather-card {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    cursor: pointer;
    width: 200px;
    box-sizing: border-box;
}

[data-theme="dark"] .weather-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-card:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .weather-card:hover {
    background: rgba(0, 0, 0, 0.4);
}

.weather-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
}

.weather-compact i {
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.weather-city {
    font-weight: 600;
    flex: 0 1 auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-temp {
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    margin-left: auto;
}

.weather-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    color: #fff;
    width: 100%;
}

.weather-card:hover .weather-details {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
}

.weather-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 5px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.weather-detail-item > span {
    flex: 1;
    word-break: break-word;
    white-space: normal;
    line-height: 1.5;
    min-width: 0;
}

.weather-detail-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.weather-detail-item i {
    width: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.weather-update {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
}

.weather-update i {
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
}

.weather-update span {
    flex: 1;
    word-break: break-word;
    white-space: normal;
    line-height: 1.5;
    overflow-wrap: break-word;
    min-width: 0;
}

/* 设置按钮组 */
.settings-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

/* 主设置按钮 */
.settings-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .settings-toggle {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.settings-toggle:hover {
    transform: rotate(90deg) scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

/* 设置菜单 */
.settings-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.settings-container:hover .settings-menu,
.settings-container.active .settings-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

/* 设置项按钮 */
.settings-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .settings-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.settings-item:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.settings-item:active {
    transform: scale(0.95);
}

/* 主题切换动画 */
.theme-toggle {
    transition: transform 0.3s ease;
}

.theme-toggle.rotating {
    animation: rotate-once 0.6s ease;
}

@keyframes rotate-once {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

.container > section:not(.header) {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* 头部样式 */
.header {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 25px;
    min-height: 100vh;
    padding: 320px 10px 60px 20px;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    max-width: 100%;
    margin: 0;
}

.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.avatar:hover {
    transform: scale(1.05);
}

@keyframes ring-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.avatar-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: ring-pulse 2s infinite;
    z-index: 1;
    opacity: 0.6;
}

.header-content {
    flex: 0 1 auto;
    max-width: 750px;
}

.name {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.4);
}

.subtitle-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
}

.heart {
    font-size: 1.3rem;
    animation: heartbeat 1.5s infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.9;
    min-height: 1.5em;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    max-width: 700px;
}

.subtitle.typing {
    border-right: 2px solid var(--primary-color);
    padding-right: 5px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.subtitle.shadow {
    text-shadow: 2px 2px 4px var(--card-shadow);
}

/* 字符渐显动画 */
.char {
    display: inline-block;
}

.fade-in-char {
    animation: charFadeIn 0.5s ease-in forwards;
    opacity: 0;
}

@keyframes charFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 向下滚动提示 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-indicator:hover {
    color: var(--primary-color);
}


.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

[data-theme="dark"] .social-link {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.social-link i {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* 自定义图标基础样式 */
[class^="icon-"]::before,
[class*=" icon-"]::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 图标样式 */
.icon-github::before { 
    content: '\f09b'; 
    font-family: 'Font Awesome 6 Brands'; 
    font-weight: 400;
}
.icon-twitter::before { 
    content: '\f099'; 
    font-family: 'Font Awesome 6 Brands'; 
    font-weight: 400;
}
.icon-x::before { 
    content: '\e61b'; 
    font-family: 'Font Awesome 6 Brands'; 
    font-weight: 400;
}
.icon-qq::before { 
    content: '\f1d6'; 
    font-family: 'Font Awesome 6 Brands'; 
    font-weight: 400;
}
.icon-telegram::before { 
    content: '\f2c6'; 
    font-family: 'Font Awesome 6 Brands'; 
    font-weight: 400;
}
.icon-email::before { 
    content: '\f0e0'; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900;
}
.icon-steam::before { 
    content: '\f1b6'; 
    font-family: 'Font Awesome 6 Brands'; 
    font-weight: 400;
}
/* B站图标 - 使用自定义SVG背景 */
.icon-bilibili::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.813 4.653h.854c1.51.054 2.769.578 3.773 1.574 1.004.995 1.524 2.249 1.56 3.76v7.36c-.036 1.51-.556 2.769-1.56 3.773s-2.262 1.524-3.773 1.56H5.333c-1.51-.036-2.769-.556-3.773-1.56S.036 18.858 0 17.347v-7.36c.036-1.511.556-2.765 1.56-3.76 1.004-.996 2.262-1.52 3.773-1.574h.774l-1.174-1.12a1.234 1.234 0 0 1-.373-.906c0-.356.124-.658.373-.907l.027-.027c.267-.249.573-.373.92-.373.347 0 .653.124.92.373L9.653 4.44c.071.071.134.142.187.213h4.267a.836.836 0 0 1 .16-.213l2.853-2.747c.267-.249.573-.373.92-.373.347 0 .662.151.929.4.267.249.391.551.391.907 0 .355-.124.657-.373.906zM5.333 7.24c-.746.018-1.373.276-1.88.773-.506.498-.769 1.13-.786 1.894v7.52c.017.764.28 1.395.786 1.893.507.498 1.134.756 1.88.773h13.334c.746-.017 1.373-.275 1.88-.773.506-.498.769-1.129.786-1.893v-7.52c-.017-.765-.28-1.396-.786-1.894-.507-.497-1.134-.755-1.88-.773zM8 11.107c.373 0 .684.124.933.373.25.249.383.569.4.96v1.173c-.017.391-.15.711-.4.96-.249.25-.56.374-.933.374s-.684-.125-.933-.374c-.25-.249-.383-.569-.4-.96V12.44c0-.373.129-.689.386-.947.258-.257.574-.386.947-.386zm8 0c.373 0 .684.124.933.373.25.249.383.569.4.96v1.173c-.017.391-.15.711-.4.96-.249.25-.56.374-.933.374s-.684-.125-.933-.374c-.25-.249-.383-.569-.4-.96V12.44c.017-.391.15-.711.4-.96.249-.249.56-.373.933-.373Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

/* 暗色主题下的B站图标 */
[data-theme="dark"] .icon-bilibili::before {
    filter: brightness(0.9);
}
.icon-discord::before { 
    content: '\f392'; 
    font-family: 'Font Awesome 6 Brands'; 
    font-weight: 400;
}
.icon-instagram::before { 
    content: '\f16d'; 
    font-family: 'Font Awesome 6 Brands'; 
    font-weight: 400;
}

/* 区块标题样式 */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

/* 站点链接 */
.sites-section {
    margin-bottom: 60px;
    position: relative;
}

.site-category {
    margin-bottom: 50px;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    position: relative;
}

.site-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .site-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 当有卡片悬停时，所有卡片默认缩小并模糊 */
.sites-grid:has(.site-card:hover) .site-card {
    transform: scale(0.95);
    opacity: 0.5;
    filter: blur(3px);
}

/* 悬停的卡片放大并清晰 */
.site-card:hover {
    transform: translateY(-8px) scale(1.08) !important;
    opacity: 1 !important;
    filter: blur(0) !important;
    border-color: var(--primary-color);
    box-shadow: 
        0 12px 40px rgba(34, 159, 255, 0.3), 
        0 0 0 2px var(--primary-color),
        0 0 30px rgba(34, 159, 255, 0.4),
        inset 0 0 20px rgba(34, 159, 255, 0.1);
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
    animation: cardGlow 2s ease-in-out infinite;
}

[data-theme="dark"] .site-card:hover {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 
        0 12px 40px rgba(34, 159, 255, 0.4), 
        0 0 0 2px var(--primary-color),
        0 0 40px rgba(34, 159, 255, 0.5),
        inset 0 0 20px rgba(34, 159, 255, 0.15);
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow: 
            0 12px 40px rgba(34, 159, 255, 0.3), 
            0 0 0 2px var(--primary-color),
            0 0 30px rgba(34, 159, 255, 0.4),
            inset 0 0 20px rgba(34, 159, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(34, 159, 255, 0.5), 
            0 0 0 2px var(--primary-color),
            0 0 50px rgba(34, 159, 255, 0.6),
            inset 0 0 30px rgba(34, 159, 255, 0.2);
    }
}

/* 页面其他元素模糊效果 */
.sites-grid:has(.site-card:hover) ~ * {
    filter: blur(2px);
    opacity: 0.7;
    transition: all 0.3s ease;
}

body:has(.site-card:hover) .header,
body:has(.site-card:hover) .footer,
body:has(.site-card:hover) .weather-card,
body:has(.site-card:hover) .settings-container {
    filter: blur(2px);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.site-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.site-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s ease;
}

.site-card:hover .site-icon img {
    transform: scale(1.1);
}

.site-info {
    flex: 1;
    min-width: 0;
}

.site-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.85);
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-text a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: var(--transition);
}

.footer-text a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container > section:not(.header) {
        padding: 40px 20px;
    }

    .header {
        text-align: center;
        padding: 40px 20px;
        gap: 25px;
        align-items: center;
        justify-content: center;
    }

    .header-content {
        text-align: center;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .subtitle-wrapper {
        align-items: center;
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .name {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .sites-grid {
        grid-template-columns: 1fr;
    }
    
    /* 移动端减弱模糊效果 */
    .sites-grid:has(.site-card:hover) .site-card {
        transform: scale(0.98);
        opacity: 0.6;
        filter: blur(2px);
    }
    
    .site-card:hover {
        transform: translateY(-5px) scale(1.05) !important;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .weather-card {
        top: 15px;
        right: 15px;
        padding: 10px 12px;
        width: 180px;
    }

    .weather-compact {
        font-size: 13px;
        gap: 5px;
    }
    
    .weather-compact i {
        font-size: 15px;
    }

    .weather-temp {
        font-size: 14px;
    }
    
    .weather-detail-item {
        font-size: 11px;
    }

    .settings-container {
        bottom: 20px;
        right: 20px;
    }

    .settings-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .settings-item {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .avatar {
        width: 120px;
        height: 120px;
    }

    .header {
        padding: 30px 20px;
        align-items: center;
        justify-content: center;
    }

    .name {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .site-card {
        padding: 15px;
    }

    .site-icon {
        width: 40px;
        height: 40px;
    }
    
    /* 超小屏幕进一步减弱效果 */
    .sites-grid:has(.site-card:hover) .site-card {
        transform: scale(0.98);
        opacity: 0.7;
        filter: blur(1px);
    }
    
    .site-card:hover {
        transform: translateY(-3px) scale(1.03) !important;
        box-shadow: 0 8px 24px rgba(34, 159, 255, 0.3), 0 0 0 1px var(--primary-color);
    }
    
    /* 移动端禁用页面其他元素模糊 */
    body:has(.site-card:hover) .header,
    body:has(.site-card:hover) .footer,
    body:has(.site-card:hover) .weather-card,
    body:has(.site-card:hover) .settings-container {
        filter: none;
        opacity: 1;
    }
    
    body:has(.site-card:hover) #backgroundCanvas,
    body:has(.site-card:hover) .video-background {
        filter: none;
        opacity: 0.15;
    }

    .social-link {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .weather-card {
        top: 10px;
        right: 10px;
        padding: 8px 10px;
        width: 160px;
    }

    .weather-compact {
        font-size: 12px;
        gap: 4px;
    }

    .weather-compact i {
        font-size: 14px;
    }

    .weather-temp {
        font-size: 13px;
    }

    .weather-detail-item {
        font-size: 10px;
    }
    
    .weather-update {
        font-size: 10px;
    }

    .settings-container {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .settings-toggle {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .settings-item {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .scroll-indicator {
        bottom: 20px;
        font-size: 20px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
    background-clip: padding-box;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    background-clip: padding-box;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
    background-clip: padding-box;
}

/* 加载动画延迟 */
.header { animation-delay: 0.1s; }
.sites-section { animation-delay: 0.2s; }
.footer { animation-delay: 0.3s; }

