﻿:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --secondary-text: #666666;
    --copyright-color: #999999;
    --gradient-start: #006fff;
    --gradient-end: #0052cc;
    --particle-color: rgba(0, 0, 0, 0.1);
    --font-family: 'HarmonyOS Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --bg-color-rgb: 255, 255, 255;
}

[data-theme="dark"] {
    --bg-color: #111111;
    --text-color: #ffffff;
    --secondary-text: #cccccc;
    --copyright-color: #888888;
    --gradient-start: #006fff;
    --gradient-end: #0052cc;
    --particle-color: rgba(255, 255, 255, 0.1);
    --bg-color-rgb: 17, 17, 17;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

#particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.content {
    text-align: center;
    position: relative;
    transition: opacity 0.5s ease;
}

.tagline {
    margin-top: -5px;
    font-size: clamp(14px, 3.5vw, 20px);
    font-weight: 300;
    letter-spacing: 0.25em;
    opacity: 0.75;
    transition: opacity 0.5s ease;
}

.copyright {
    font-size: 14px;
    color: var(--copyright-color);
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    opacity: 0;
    animation: fadeUp 1s ease-out 0.6s forwards;
    transition: color 0.3s ease;
}

.theme-toggle {
    display: none;
}

#theme-toggle-btn {
    background: none;
    box-shadow: none;
    border: none;
    width: auto;
    height: auto;
}

#theme-toggle-btn:hover {
    transform: none;
    box-shadow: none;
}

#theme-toggle-btn:active {
    transform: none;
    box-shadow: none;
}

.sun-icon, .moon-icon {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body:not([data-theme="dark"]) .moon-icon {
    display: none;
}

body[data-theme="dark"] .sun-icon {
    display: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .tagline {
        margin-bottom: 30px;
    }
}

/* 主题通知样式 - 调整位置 */
.theme-notification {
    position: fixed;
    top: 50px; /* 调整为更高的位置 */
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background-color: rgba(var(--bg-color-rgb), 0.75);
    color: var(--text-color);
    padding: 14px 28px;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001; /* 确保比位置通知高 */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.7px;
    text-align: center;
    white-space: nowrap;
}

.theme-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

/* 优化域名展示样式，使其更简约大气 */
.domain-name {
    font-size: clamp(60px, 14vw, 160px);
    font-weight: 500;
    letter-spacing: -0.02em;
    font-family: 'HarmonyOS Sans SC', 'Space Grotesk', sans-serif;
    margin-bottom: 35px;
    line-height: 1;
    transition: opacity 0.5s ease;
}

/* 基础样式设置 - 两部分共有的属性 */
.domain-name .part.first,
.domain-name .part.last {
    display: inline-block;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 第一部分(ssss)的渐变 */
.domain-name .part.first {
    background: linear-gradient(135deg, #0062db 0%, #4c9aff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #0062db; /* 备用颜色 */
}

/* 第二部分(ss)的渐变 - 确保单独设置所有必要属性 */
.domain-name .part.last {
    background: linear-gradient(135deg, #4c9aff 0%, #0062db 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #0062db; /* 备用颜色 */
}

/* 微信浏览器兼容性修复 - 分别处理两个部分 */
@supports not (background-clip: text) {
    .domain-name .part.first {
        background: none;
        -webkit-text-fill-color: #0062db;
        text-fill-color: #0062db;
        color: #0062db;
    }
    
    .domain-name .part.last {
        background: none;
        -webkit-text-fill-color: #0062db;
        text-fill-color: #0062db;
        color: #0062db;
    }
}

/* 确保波浪字母样式继承渐变 */
.wave-letter {
    background-clip: inherit !important;
    -webkit-background-clip: inherit !important;
    -webkit-text-fill-color: inherit !important;
    text-fill-color: inherit !important;
    color: inherit !important;
}

/* 将点的颜色从青色改为橙色，创造更强烈的色彩对比 */
.domain-name .part.dot {
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
    margin: 0;
    margin-left: -0.29em;
    margin-right: -0.22em;
    font-weight: 400;
    
    /* 移除背景和文字填充颜色设置 */
    background: none;
    
    /* 设置点的颜色为橙色，与蓝色形成互补对比 */
    color: #ff8c38;
    -webkit-text-fill-color: #ff8c38;
    
    /* 调整透明度 */
    opacity: 0.85;
    
    /* 更新发光效果配合橙色 */
    text-shadow: 0 0 3px rgba(255, 140, 56, 0.4);
}

/* 深色模式下点的颜色调整为更亮的橙色 */
[data-theme="dark"] .domain-name .part.dot {
    color: #ff9d54;
    -webkit-text-fill-color: #ff9d54;
    opacity: 0.9;
    text-shadow: 0 0 4px rgba(255, 157, 84, 0.5);
}

.domain-name .first {
    animation: slideInFromLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform: translateX(-30px);
    opacity: 0;
}

.domain-name .last {
    animation: slideInFromRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform: translateX(30px);
    opacity: 0;
}

.domain-name .dot {
    opacity: 0.15;
    font-size: 0.8em;
    position: relative;
    top: -0.05em;
    animation: none;
    color: var(--secondary-text);
    margin: 0;
    margin-left: -0.33em;
    margin-right: -0.25em;
    font-weight: 300;
    background: none;
    -webkit-text-fill-color: var(--secondary-text);
    opacity: 0.15;
    letter-spacing: -0.1em;
}

/* 优化悬停效果 */
.domain-name:hover .part {
    transform: scale(1.01);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 悬停时仅改变透明度，无缩放效果 */
.domain-name:hover .part.dot {
    opacity: 1;
    transform: none;
    transition: opacity 0.3s ease;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(30px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0.15;
    }
    100% {
        opacity: 0.15;
    }
}

.social-links {
    display: none;
}

/* 极简图标导航 */
.minimal-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 100;
    transition: opacity 0.5s ease;
}

/* 导航按钮基础样式 */
.nav-link, .theme-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

/* 悬停效果 - 添加蓝色调 */
.nav-link:hover, .theme-btn:hover {
    background-color: rgba(0, 110, 255, 0.1);
    color: #006eff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 110, 255, 0.15);
    border-color: rgba(0, 110, 255, 0.2);
}

/* 活跃状态 */
.nav-link:active, .theme-btn:active {
    transform: translateY(0);
    background-color: rgba(0, 110, 255, 0.15);
}

/* 主题切换按钮 */
.theme-btn {
    border: none;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.9);
}

.theme-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* 深色模式调整 */
[data-theme="dark"] .nav-link,
[data-theme="dark"] .theme-btn {
    background-color: rgba(30, 30, 30, 0.8);
    color: #ccc;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .theme-btn:hover {
    background-color: rgba(0, 110, 255, 0.25);
    color: #59a7ff;
    border-color: rgba(89, 167, 255, 0.3);
}

[data-theme="dark"] .nav-link:active,
[data-theme="dark"] .theme-btn:active {
    background-color: rgba(0, 110, 255, 0.35);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .nav-link, .theme-btn {
        width: 38px;
        height: 38px;
    }
    
    .nav-link svg, .theme-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* 使用图标替代文字，需要在HTML中添加 */

.mouse-follower {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--text-color);
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: difference;
    opacity: 0.5;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.mouse-follower.link-hover {
    width: 30px;
    height: 30px;
    opacity: 0.15;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    visibility: visible;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: var(--text-color);
    border-radius: 50%;
    display: inline-block;
    animation: loader 1.5s infinite ease-in-out both;
}

.loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loader {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1.0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 全新的弹窗设计 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-color);
    color: var(--text-color);
    width: 95%;
    max-width: 550px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(128, 128, 128, 0.05);
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    position: relative;
}

.modal-header:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 32px;
    right: 32px;
    height: 1px;
    background: linear-gradient(to right, 
                rgba(128, 128, 128, 0.05), 
                rgba(128, 128, 128, 0.15), 
                rgba(128, 128, 128, 0.05));
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0;
    background: linear-gradient(135deg, var(--text-color), var(--secondary-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-modal {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(128, 128, 128, 0.1);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--secondary-text);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.close-modal:hover {
    background-color: rgba(128, 128, 128, 0.15);
    color: var(--text-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
    line-height: 1.7;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(128, 128, 128, 0.05);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.2);
    border-radius: 3px;
}

.modal-body p {
    margin-bottom: 24px;
    color: var(--secondary-text);
    font-size: 1.05rem;
    font-weight: 400;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body ul {
    margin: 32px 0;
    padding-left: 5px;
    list-style-type: none;
}

.modal-body li {
    margin-bottom: 20px;
    position: relative;
    padding-left: 32px;
    color: var(--secondary-text);
}

.modal-body li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 18px;
    height: 2px;
    background: linear-gradient(to right, var(--text-color), rgba(128, 128, 128, 0.2));
    opacity: 0.8;
    border-radius: 1px;
}

.modal-body strong {
    color: var(--text-color);
    font-weight: 600;
}

/* 联系方式弹窗样式 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 8px;
    perspective: 1000px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 18px;
    border-radius: 16px;
    background-color: rgba(128, 128, 128, 0.03);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(128, 128, 128, 0.06);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.contact-item:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(128, 128, 128, 0.1), rgba(128, 128, 128, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px) rotateX(2deg);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(128, 128, 128, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-item:hover:before {
    opacity: 1;
}

.contact-item svg {
    min-width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 16px;
    color: var(--secondary-text);
    transition: transform 0.3s ease;
}

.contact-item:hover svg {
    transform: scale(1.1);
    color: var(--text-color);
}

.contact-item span {
    font-size: 1.05rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 为论坛链接添加外部链接图标 */
a[href="https://6ke.li"] {
    position: relative;
    background: linear-gradient(135deg, rgba(140, 84, 255, 0.03), rgba(140, 84, 255, 0.08));
}

a[href="https://6ke.li"]:after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    margin-left: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

a[href="https://6ke.li"]:hover:after {
    opacity: 1;
}

/* 添加联系方式的品牌色彩 */
/* 邮箱图标 - 蓝色系 */
a[href^="mailto"] .contact-item svg,
a[href^="mailto"]:hover .contact-item svg {
    color: #4285F4;
}

a[href^="mailto"]:before {
    background: linear-gradient(to bottom, #4285F4, rgba(66, 133, 244, 0.2));
}

/* 微信图标 - 绿色系 */
.contact-item:nth-child(2) svg,
.contact-item:nth-child(2):hover svg {
    color: #07C160;
}

.contact-item:nth-child(2):before {
    background: linear-gradient(to bottom, #07C160, rgba(7, 193, 96, 0.2));
}

/* QQ图标 - 蓝色系 */
.contact-item:nth-child(3) svg,
.contact-item:nth-child(3):hover svg {
    color: #12B7F5;
}

.contact-item:nth-child(3):before {
    background: linear-gradient(to bottom, #12B7F5, rgba(18, 183, 245, 0.2));
}

/* 论坛图标 - 紫色系 */
a[href^="https://6ke.li"] svg,
a[href^="https://6ke.li"]:hover svg {
    color: #8C54FF;
}

a[href^="https://6ke.li"]:before {
    background: linear-gradient(to bottom, #8C54FF, rgba(140, 84, 255, 0.2));
}

/* 为不同的联系方式添加独特的背景 */
a[href^="mailto"] {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.03), rgba(66, 133, 244, 0.08));
}

.contact-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.03), rgba(7, 193, 96, 0.08));
}

.contact-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(18, 183, 245, 0.03), rgba(18, 183, 245, 0.08));
}

a[href^="https://6ke.li"] {
    background: linear-gradient(135deg, rgba(140, 84, 255, 0.03), rgba(140, 84, 255, 0.08));
}

/* 添加卡片聚焦效果 */
.contact-grid {
    perspective: 1000px;
}

.contact-item {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.contact-item:hover {
    transform: translateY(-5px) rotateX(2deg);
}

/* 当激活深色模式时调整颜色亮度 */
[data-theme="dark"] .contact-item svg {
    filter: brightness(1.15);
}

/* 全屏按钮样式 */
.fullscreen-icon, .exit-fullscreen-icon {
    transition: all 0.3s ease;
}

/* 在全屏模式下隐藏进入全屏图标，显示退出全屏图标 */
.is-fullscreen .fullscreen-icon {
    display: none;
}

.is-fullscreen .exit-fullscreen-icon {
    display: block;
}

/* 在非全屏模式下隐藏退出全屏图标，显示进入全屏图标 */
:not(.is-fullscreen) .fullscreen-icon {
    display: block;
}

:not(.is-fullscreen) .exit-fullscreen-icon {
    display: none;
}

/* 全屏模式下的一些优化 */
:fullscreen {
    background-color: var(--bg-color);
}

:-webkit-full-screen {
    background-color: var(--bg-color);
}

:-moz-full-screen {
    background-color: var(--bg-color);
}

:-ms-fullscreen {
    background-color: var(--bg-color);
}

/* 修复全屏按钮的鼠标指针 */
#fullscreen-btn {
    cursor: pointer;
}

/* 或者更全面地修复所有导航按钮 */
.nav-link, .theme-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

/* 修复域名波浪动画效果，保留原始渐变色 */
.wave-letter {
    display: inline-block;
    position: relative;
    animation: letterWave 2s ease-in-out infinite;
    transform-origin: center;
    background-clip: inherit;
    -webkit-background-clip: inherit;
    -webkit-text-fill-color: inherit;
    text-shadow: 
        0 1px 1px rgba(0, 0, 0, 0.05),
        0 2px 2px rgba(0, 0, 0, 0.03);
    transform-style: preserve-3d;
    transition: transform 0.2s ease;
    /* 添加微弱边缘以增强可见性 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 恢复奇偶字母不同的立体感，增强交错效果 */
.wave-letter:nth-child(odd) {
    transform: perspective(500px) rotateX(2deg);
    animation-delay: 0s;
}

.wave-letter:nth-child(even) {
    transform: perspective(500px) rotateX(-2deg);
    animation-delay: 0.2s;
    animation-direction: alternate-reverse;
}

/* 恢复波浪动画，增加一高一低的明显效果 */
@keyframes letterWave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-3px);
    }
    75% {
        transform: translateY(3px);
    }
}

/* 确保深色模式下保持一致的效果 */
[data-theme="dark"] .wave-letter {
    text-shadow: 
        0 1px 1px rgba(255, 255, 255, 0.05),
        0 2px 2px rgba(255, 255, 255, 0.03);
}

/* 确保波浪动画不会破坏原有的hover效果 */
.domain-name:hover .wave-letter {
    animation-play-state: paused;
}

/* 添加鸿蒙字体设置 */
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('https://cdn.jsdelivr.net/gh/younghz/HarmonyOS-Sans/HarmonyOS_Sans_SC_Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('https://cdn.jsdelivr.net/gh/younghz/HarmonyOS-Sans/HarmonyOS_Sans_SC_Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* 确保域名文字使用鸿蒙字体 */
.domain-name .part {
    font-family: var(--font-family);
    font-weight: bold;
}

/* 波浪字母继承字体 */
.wave-letter {
    font-family: inherit;
}

/* 更精致的字母动画 */
@keyframes letterWave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-2px);
    }
    75% {
        transform: translateY(2px);
    }
}

/* 交错波浪效果：相邻字母动画相反 */
.wave-letter:nth-child(even) {
    animation-direction: alternate-reverse;
}

/* 确保波浪动画不会破坏原有的hover效果 */
.domain-name:hover .wave-letter {
    animation-play-state: paused;
}

/* 欢迎语样式 */
.welcome-message {
    font-size: clamp(14px, 2.8vw, 18px);
    font-weight: 300;
    color: var(--secondary-text);
    margin-top: -15px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.welcome-message.show {
    opacity: 1;
    transform: translateY(0);
}

.welcome-text {
    position: relative;
    display: inline-block;
}

/* 打字机效果 */
.typing::after {
    content: "|";
    position: absolute;
    right: -4px;
    animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 位置通知样式 - 确保位置合适 */
.location-notification {
    position: fixed;
    top: 120px; /* 调整为更低的位置 */
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background-color: rgba(var(--bg-color-rgb), 0.75);
    color: var(--text-color);
    padding: 16px 32px;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.7px;
    min-width: 240px;
    max-width: 90vw;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 为移动设备优化通知样式 */
@media (max-width: 480px) {
    .location-notification {
        font-size: 15px;
        padding: 14px 24px;
        letter-spacing: 0.5px;
    }
    
    .highlight-location {
        letter-spacing: 0.3px;
    }
}

/* 超窄屏幕优化 */
@media (max-width: 360px) {
    .location-notification {
        font-size: 14px;
        padding: 12px 20px;
        max-width: 95vw;
    }
}

/* 更现代的显示动画 */
.location-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    animation: elegant-float 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 深色模式下的调整 */
[data-theme="dark"] .location-notification {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
    background-color: rgba(20, 20, 25, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 高亮位置信息样式优化 */
.highlight-location {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    margin: 0 3px;
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* 更微妙的底部装饰效果 */
.highlight-location::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gradient-start) 20%, var(--gradient-end) 80%, transparent);
    opacity: 0.2;
    transform: scaleX(0.9);
    transition: all 0.4s ease;
}

/* 悬停效果优化 */
.highlight-location:hover::after {
    opacity: 0.6;
    transform: scaleX(1.1);
}

/* 更优雅的浮动动画 */
@keyframes elegant-float {
    0% { transform: translateX(-50%) translateY(15px); opacity: 0; }
    40% { opacity: 0.9; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* 添加到:root变量中 */
:root {
    --bg-color-rgb: 255, 255, 255;
}

[data-theme="dark"] {
    --bg-color-rgb: 17, 17, 17;
}

/* 改进内容显示过渡效果 */
.content, .domain-name, .tagline, .minimal-nav {
    transition: opacity 0.5s ease;
}

/* 默认加载器状态 */
.loader {
    visibility: visible;
}

/* 加载完成后加载器状态 */
.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 通知管理系统 - 当两个通知同时存在时的位置处理 */
.theme-notification.with-location {
    top: 30px;
}
.location-notification.with-theme {
    top: 140px;
}

/* 访客侧边栏样式 */
.sidebar-toggle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(var(--bg-color-rgb), 0.8);
    backdrop-filter: blur(12px);
    border-radius: 12px 0 0 12px;
    padding: 14px 12px;
    cursor: pointer;
    z-index: 95;
    border: 1px solid rgba(128, 128, 128, 0.12);
    border-right: none;
    box-shadow: -3px 0 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    /* 增加点击区域 */
    min-width: 44px;
    min-height: 44px;
}

.sidebar-toggle:hover {
    background: rgba(var(--bg-color-rgb), 0.95);
    transform: translateY(-50%) translateX(-3px);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle .toggle-icon {
    color: var(--gradient-start);
    display: flex;
    align-items: center;
    justify-content: center;
    /* 确保图标区域足够大，方便点击 */
    width: 100%;
    height: 100%;
    pointer-events: none; /* 确保点击事件传递到父元素 */
}

/* 确保SVG图标本身不接收点击事件，而是传递给父元素 */
.sidebar-toggle svg {
    pointer-events: none;
}

.visitors-sidebar {
    position: fixed;
    right: -350px;
    top: 0;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: rgba(var(--bg-color-rgb), 0.95);
    backdrop-filter: blur(20px);
    z-index: 100;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid rgba(128, 128, 128, 0.1);
}

.visitors-sidebar.open {
    right: 0;
}

/* 修改侧边栏标题样式 */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.12);
    background: rgba(var(--bg-color-rgb), 0.95);
}

.sidebar-header h2 {
    font-size: 22px;
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 2px;
}

/* 添加精致的标题下划线效果 */
.sidebar-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 3px;
}

/* 关闭按钮样式优化 */
.close-sidebar {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-sidebar:hover {
    opacity: 1;
    background: rgba(128, 128, 128, 0.1);
    transform: rotate(90deg);
}

/* 美化统计数字区域 */
.visitors-stats {
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 20px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.08);
    background: rgba(var(--bg-color-rgb), 0.6);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-item:hover {
    background: rgba(var(--gradient-start-rgb), 0.05);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--gradient-start);
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Space Grotesk', var(--font-family);
}

.stat-label {
    font-size: 14px;
    color: var(--secondary-text);
    font-weight: 400;
}

/* 美化访客列表容器 */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px 20px;
}

.visitors-list {
    max-height: none;
    padding-right: 5px;
    margin-top: 10px;
}

/* 优化访客项卡片样式 */
.visitor-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(var(--bg-color-rgb), 0.6);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(128, 128, 128, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.visitor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    border-color: rgba(var(--gradient-start-rgb), 0.2);
}

/* 访问次数样式 */
.visitor-count {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-right: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--gradient-start-rgb), 0.25);
    flex-shrink: 0;
}

/* 访客信息中间部分 */
.visitor-info {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
    display: flex;
    flex-direction: column;
}

/* 访客地址 */
.visitor-location {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.visitor-location .location-label {
    font-size: 13px;
    color: var(--secondary-text);
    flex-shrink: 0;
}

.visitor-location .highlight-location {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 访问时间 */
.visitor-time {
    color: var(--secondary-text);
    font-size: 13px;
    text-align: right;
    margin-left: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 美化加载中和无记录状态 */
.loading-visitors {
    text-align: center;
    padding: 30px 20px;
    color: var(--secondary-text);
    font-style: italic;
    background: rgba(var(--bg-color-rgb), 0.5);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.no-visitors {
    text-align: center;
    padding: 40px 20px;
    color: var(--secondary-text);
    font-style: italic;
    background: rgba(var(--bg-color-rgb), 0.5);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px dashed rgba(128, 128, 128, 0.15);
}

/* 改进暗黑模式样式 */
[data-theme="dark"] .sidebar-toggle {
    box-shadow: -3px 0 15px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .visitor-item {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .visitor-item:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* 添加刷新按钮样式 */
.sidebar-actions {
    display: flex;
    align-items: center;
}

.refresh-btn {
    background: none;
    border: none;
    opacity: 0.7;
    cursor: pointer;
    margin-right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    opacity: 1;
    background: rgba(128, 128, 128, 0.1);
    transform: rotate(30deg);
}

.refresh-btn.loading {
    animation: spin 1s linear infinite;
}

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

/* 确保移动端按钮可点击 */
@media screen and (max-width: 768px) {
  .nav-button, #about-btn, #contact-btn {
    cursor: pointer;
    position: relative;
    z-index: 10; /* 确保按钮在最上层 */
    pointer-events: auto; /* 确保事件传递正常 */
    touch-action: manipulation; /* 优化移动端触摸行为 */
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* 移除iOS上的点击高亮 */
  }
}



