:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --light: #f1f5f9;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --hover-bg: rgba(99, 102, 241, 0.15);
    --transition-speed: 0.4s;
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 加载动画样式 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out 0.5s;
    opacity: 1;
}

#loading-overlay.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
    position: relative;
}

.spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.spinner-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    transform-origin: center;
    opacity: 1;
    transition: all 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.spinner-dot:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
}

.spinner-dot:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: var(--secondary);
}

.spinner-dot:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
}

.spinner-dot:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: var(--primary);
}

/* 旋转动画 */
.spinner-container.rotating .spinner-dot:nth-child(1) {
    animation: rotateDot1 2s linear infinite;
}

.spinner-container.rotating .spinner-dot:nth-child(2) {
    animation: rotateDot2 2s linear infinite;
}

.spinner-container.rotating .spinner-dot:nth-child(3) {
    animation: rotateDot3 2s linear infinite;
}

.spinner-container.rotating .spinner-dot:nth-child(4) {
    animation: rotateDot4 2s linear infinite;
}

/* 散开动画 */
.spinner-container.scatter .spinner-dot:nth-child(1) {
    animation: scatterDot1 1s forwards cubic-bezier(0.22, 0.61, 0.36, 1);
}

.spinner-container.scatter .spinner-dot:nth-child(2) {
    animation: scatterDot2 1s forwards cubic-bezier(0.22, 0.61, 0.36, 1);
}

.spinner-container.scatter .spinner-dot:nth-child(3) {
    animation: scatterDot3 1s forwards cubic-bezier(0.22, 0.61, 0.36, 1);
}

.spinner-container.scatter .spinner-dot:nth-child(4) {
    animation: scatterDot4 1s forwards cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 600px) {
    .particles {
        display: none !important;
    }
    #loading-overlay {
        font-size: 0.9em;
    }
}

@keyframes rotateDot1 {
    0% {
        transform: translateX(-50%) rotate(0deg) translate(30px) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg) translate(30px) rotate(-360deg);
    }
}

@keyframes rotateDot2 {
    0% {
        transform: translateY(-50%) rotate(0deg) translate(30px) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg) translate(30px) rotate(-360deg);
    }
}

@keyframes rotateDot3 {
    0% {
        transform: translateX(-50%) rotate(0deg) translate(30px) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg) translate(30px) rotate(-360deg);
    }
}

@keyframes rotateDot4 {
    0% {
        transform: translateY(-50%) rotate(0deg) translate(30px) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg) translate(30px) rotate(-360deg);
    }
}

@keyframes scatterDot1 {
    0% {
        transform: translateX(-50%) translateY(0) translate(30px);
    }
    100% {
        transform: translate(calc(-50vw + 20px), calc(-50vh + 20px));
        opacity: 0;
    }
}

@keyframes scatterDot2 {
    0% {
        transform: translateY(-50%) translateX(0) translate(30px);
    }
    100% {
        transform: translate(calc(50vw - 40px), calc(-50vh + 20px));
        opacity: 0;
    }
}

@keyframes scatterDot3 {
    0% {
        transform: translateX(-50%) translateY(0) translate(30px);
    }
    100% {
        transform: translate(calc(-50vw + 20px), calc(50vh - 40px));
        opacity: 0;
    }
}

@keyframes scatterDot4 {
    0% {
        transform: translateY(-50%) translateX(0) translate(30px);
    }
    100% {
        transform: translate(calc(50vw - 40px), calc(50vh - 40px));
        opacity: 0;
    }
}

.loader p {
    color: var(--light);
    font-size: 1.2rem;
    animation: pulseText 1.5s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader.fade-out p {
    opacity: 0;
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@font-face {
    font-family: 'HarmonyOS_Sans_SC_Regular';
    src: url('./fonts/鸿蒙字体_HarmonyOS_Sans_SC_Regular.ttf') format('truetype'); /* 请确保字体文件路径正确 */
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-family: 'HarmonyOS_Sans_SC_Regular', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.postimg.cc/02njcLbZ/FELIX.png') no-repeat center center/cover;
    opacity: 0.2;
    z-index: -2;
    animation: backgroundMove 30s ease infinite;
}

@keyframes backgroundMove {
    0% {
        transform: scale(1) translate(0, 0);
    }
    25% {
        transform: scale(1.05) translate(10px, 10px);
    }
    50% {
        transform: scale(1.1) translate(0, 0);
    }
    75% {
        transform: scale(1.05) translate(-10px, 10px);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏样式 */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 30px;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    animation: fadeIn 1s ease-out;
}

.logo i {
    color: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.nav-links {
    display: flex;
    gap: 25px;
    animation: fadeIn 1s ease-out 0.2s both;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all var(--transition-speed) var(--bounce);
    position: relative;
    overflow: hidden;
}

.nav-links a::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: 0.5s;
}

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

.nav-links a:hover {
    background: var(--glass);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.nav-links a.active {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    animation: bounce 0.6s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-3px);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-6px);
    }
}

/* 汉堡菜单 */
/* 汉堡菜单动效与移动端菜单动画优化 */
.hamburger {
  position: relative;
  width: 36px;
  height: 36px;
  display: block;
  cursor: pointer;
  z-index: 200;
  transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.55);
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  display: block;
  position: absolute;
  height: 4px;
  width: 28px;
  background: var(--dark); /* 女仆围裙の深色喵~ */
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(.68,-0.55,.27,1.55);
}
.hamburger span {
  top: 16px;
  left: 4px;
}
.hamburger span::before {
  content: '';
  top: -10px;
  left: 0;
  right: 0;
}
.hamburger span::after {
  content: '';
  top: 10px;
  left: 0;
  right: 0;
}
.hamburger.active {
  transform: rotate(90deg) scale(1.1);
}
.hamburger.active span {
  background: transparent;
}
.hamburger.active span::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--primary); /* 激活时变主色喵~ */
}
.hamburger.active span::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--primary); /* 激活时变主色喵~ */
}

/* 页面内容 */
.page {
    display: none;
    min-height: 70vh;
    padding: 30px;
    margin-bottom: 40px;
    animation: fadeInScale 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    opacity: 0;
}

.page.active {
    display: block;
    opacity: 1;
}

@keyframes fadeInScale {
    from { 
        opacity: 0; 
        transform: scale(0.95) translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.page:not(.active) {
    display: none;
}

/* 主页样式 */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 40px 20px;
    gap: 50px;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--glass-border);
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.4s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.avatar:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.avatar:hover img {
    transform: scale(1.1);
}

.name {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.5));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.8));
    }
}

.tagline {
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    animation: slideInRight 1s ease-out 0.3s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    margin-top: 40px;
    animation: fadeIn 1s ease-out 0.5s both;
}

.contact-card {
    text-align: center;
    padding: 25px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 20px;
}

.contact-card:hover {
    transform: translateY(-10px);
    background: var(--hover-bg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.contact-card:hover i {
    transform: scale(1.2);
    color: var(--secondary);
}

.contact-card h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #f1f5f9;
}

.contact-card p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.8rem;
}

.contact-card a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary);
}

/* 博客页面样式 */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: cardAppear 0.6s forwards;
}

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

.blog-card:nth-child(1) {
    animation-delay: 0.1s;
}

.blog-card:nth-child(2) {
    animation-delay: 0.3s;
}

.blog-card:nth-child(3) {
    animation-delay: 0.5s;
}

.blog-card:hover {
    transform: translateY(-15px);
    background: var(--hover-bg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.blog-card:hover h3 {
    color: #fff;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

.blog-card .date {
    color: #94a3b8;
    margin-bottom: 15px;
    font-size: 0.6rem;
}

.blog-card p {
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #cbd5e1;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.read-more::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: 0.5s;
}

.read-more:hover::before {
    left: 100%;
}

.read-more:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* 应用商店样式 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.app-card {
    padding: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    animation: cardAppear 0.6s forwards;
}

.app-card:nth-child(1) {
    animation-delay: 0.1s;
}

.app-card:nth-child(2) {
    animation-delay: 0.3s;
}

.app-card:nth-child(3) {
    animation-delay: 0.5s;
}

.app-card:hover {
    transform: translateY(-15px) scale(1.03);
    background: var(--hover-bg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.app-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    transition: all 0.4s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
}

.app-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.app-card:hover h3 {
    color: var(--primary);
    transform: scale(1.05);
}

.app-card p {
    color: #94a3b8;
    margin-bottom: 10px;
    line-height: 1.4;
}

.download-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.download-btn::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: 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2px;
    color: #94a3b8;
    font-size: 1rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 10px;
    animation: fadeIn 1s ease-out;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.copyright-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.copyright-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #cbd5e1;
}

.copyright-symbol {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: bold;
}

.copyright-year {
    color: #60a5fa;
}

.copyright-name {
    color: #a78bfa;
    font-weight: 600;
}

.copyright-divider {
    color: #475569;
}

.copyright-rights {
    color: #94a3b8;
}

.copyright-subtext {
    font-size: 0.6rem;
    color: #64748b;
    margin-top: 0px;
}

.heart {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    5% { transform: scale(1.2); }
    10% { transform: scale(1); }
    15% { transform: scale(1.2); }
    20% { transform: scale(1); }
    100% { transform: scale(1); }
}

.tech-info {
    font-size: 0.6rem;
    color: #94a3b8;
    margin: 0px;
}

.tech-info p {
    margin: 0;
}

.social-links {
    margin-top: 0px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.social-links a {
    color: #94a3b8;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    transform: translateY(0);
    text-decoration: none;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

/* 产品页面样式 */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
.product-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.5s ease-in-out;
}
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .product-card {
        width: calc(50% - 40px); /* 调整平板设备上的卡片宽度 */
    }
}

@media (max-width: 480px) {
    .product-card {
        width: calc(100% - 40px); /* 调整移动设备上的卡片宽度 */
    }
}

/* 假设图标是 img 标签或者使用字体图标 */
/* 如果是 img 标签，可以这样调整 */
.product-card img {
    width: 60px; /* 调整图标大小 */
    height: 60px;
    margin-bottom: 10px;
}

/* 如果是字体图标，例如使用 Font Awesome，可以这样调整 */
.product-card .icon {
    font-size: 48px; /* 调整字体图标大小 */
    margin-bottom: 10px;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.product-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-card .btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* 响应式设计 */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 20px 0 20px 0;
    gap: 15px;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.4s;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    animation: slideInMobileNav 0.3s ease;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  .hamburger {
    display: block;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .name {
    font-size: 2.2rem;
  }
  .tagline {
    font-size: 1.2rem;
  }
  .page {
    padding: 20px;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .copyright-text {
    flex-wrap: wrap;
    font-size: 1rem;
  }
  .social-links {
    gap: 15px;
  }
}

@keyframes slideInMobileNav {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* From Uiverse.io by dexter-st */

.waves {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.waves::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  background: #160000;
  border-radius: 50%;
  transform: translate3d(calc(-0.5rem - 50%), calc(50% - 50%), 0);
  will-change: transform;
}

.waves-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.tilted-card-figure {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tilted-card-mobile-alert {
  position: absolute;
  top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  display: none;
}
@media (max-width: 640px) {
  .tilted-card-mobile-alert {
    display: block;
  }
  .tilted-card-caption {
    display: none;
  }
}
.tilted-card-inner {
  position: relative;
  transform-style: preserve-3d;
}
.tilted-card-img {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  border-radius: 15px;
  will-change: transform;
  transform: translateZ(0);
}
.tilted-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  will-change: transform;
  transform: translateZ(30px);
}
.tilted-card-caption {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 4px;
  background-color: #fff;
  padding: 4px 10px;
  font-size: 10px;
  color: #2d2d2d;
  opacity: 0;
  z-index: 3;
}

.wrapper-grid {
  --animation-duration: 2.1s;
  --cube-color: #0000;
  --highlight-color: #00cc44;
  --cube-width: 48px;
  --cube-height: 48px;
  --font-size: 1.8em;
  position: relative;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(7, var(--cube-width));
  grid-template-rows: auto;
  grid-gap: 0;
  width: calc(7 * var(--cube-width));
  height: var(--cube-height);
  perspective: 350px;
  font-family: "Poppins", sans-serif;
  font-size: var(--font-size);
  font-weight: 800;
  color: transparent;
}
.cube {
  position: relative;
  transform-style: preserve-3d;
}
.face {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cube-width);
  height: var(--cube-height);
  background-color: var(--cube-color);
}
.face-left,
.face-right,
.face-back,
.face-front {
  box-shadow:
    inset 0 0 2px 1px #0001,
    inset 0 0 12px 1px #fff1;
}
.face-front {
  transform: rotateY(0deg) translateZ(calc(var(--cube-width) / 2));
}
.face-back {
  transform: rotateY(180deg) translateZ(calc(var(--cube-width) / 2));
  opacity: 0.6;
}
.face-left {
  transform: rotateY(-90deg) translateZ(calc(var(--cube-width) / 2));
  opacity: 0.6;
}
.face-right {
  transform: rotateY(90deg) translateZ(calc(var(--cube-width) / 2));
  opacity: 0.6;
}
.face-top {
  height: var(--cube-width);
  transform: rotateX(90deg) translateZ(calc(var(--cube-width) / 2));
  opacity: 0.8;
}
.face-bottom {
  height: var(--cube-width);
  transform: rotateX(-90deg)
    translateZ(calc(var(--cube-height) - var(--cube-width) * 0.5));
  opacity: 0.8;
}
.cube:nth-child(1) {
  z-index: 0;
  animation-delay: 0;
}
.cube:nth-child(2) {
  z-index: 1;
  animation-delay: 0.2s;
}
.cube:nth-child(3) {
  z-index: 2;
  animation-delay: 0.4s;
}
.cube:nth-child(4) {
  z-index: 3;
  animation-delay: 0.6s;
}
.cube:nth-child(5) {
  z-index: 2;
  animation-delay: 0.8s;
}
.cube:nth-child(6) {
  z-index: 1;
  animation-delay: 1s;
}
.cube:nth-child(7) {
  z-index: 0;
  animation-delay: 1.2s;
}
.cube {
  animation: translate-z var(--animation-duration) ease-in-out infinite;
}
.cube .face {
  animation:
    face-color var(--animation-duration) ease-in-out infinite,
    edge-glow var(--animation-duration) ease-in-out infinite;
  animation-delay: inherit;
}
.cube .face.face-front {
  animation:
    face-color var(--animation-duration) ease-in-out infinite,
    face-glow var(--animation-duration) ease-in-out infinite,
    edge-glow var(--animation-duration) ease-in-out infinite;
  animation-delay: inherit;
}
@keyframes translate-z {
  0%,
  40%,
  100% {
    transform: translateZ(-2px);
  }
  30% {
    transform: translateZ(16px) translateY(-1px);
  }
}
@keyframes face-color {
  0%,
  50%,
  100% {
    background-color: var(--cube-color);
  }
  10% {
    background-color: var(--highlight-color);
  }
}
@keyframes face-glow {
  0%,
  50%,
  100% {
    color: #fff0;
    filter: none;
  }
  30% {
    color: #fff;
    filter: drop-shadow(0 14px 10px var(--highlight-color));
  }
}
@keyframes edge-glow {
  0%,
  40%,
  100% {
    box-shadow:
      inset 0 0 2px 1px #0001,
      inset 0 0 12px 1px #fff1;
  }
  30% {
    box-shadow: 0 0 2px 0px var(--highlight-color);
  }
}
.face-glow {
  color: #fff;
  filter: drop-shadow(0 14px 10px var(--highlight-color));
}
/* 优化：移除重复.face-glow 定义，提升渲染性能 */
/* From Uiverse.io by JustCode14 */
/* Theme Switch */
/* The switch - the box around the slider */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 4em;
  height: 2.2em;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2a2a2a;
  transition: 0.4s;
  border-radius: 30px;
  overflow: hidden;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.2em;
  width: 1.2em;
  border-radius: 20px;
  left: 0.5em;
  bottom: 0.5em;
  transition: 0.4s;
  transition-timing-function: cubic-bezier(0.81, -0.04, 0.38, 1.5);
  box-shadow: inset 8px -4px 0px 0px #fff;
}

.switch input:checked + .slider {
  background-color: #00a6ff;
}

.switch input:checked + .slider:before {
  transform: translateX(1.8em);
  box-shadow: inset 15px -4px 0px 15px #ffcf48;
}

.star {
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  width: 5px;
  transition: all 0.4s;
  height: 5px;
}

.star_1 {
  left: 2.5em;
  top: 0.5em;
}

.star_2 {
  left: 2.2em;
  top: 1.2em;
}

.star_3 {
  left: 3em;
  top: 0.9em;
}

.switch input:checked ~ .slider .star {
  opacity: 0;
}

.cloud {
  width: 3.5em;
  position: absolute;
  bottom: -1.4em;
  left: -1.1em;
  opacity: 0;
  transition: all 0.4s;
}

.switch input:checked ~ .slider .cloud {
  opacity: 1;
}
/* 主题切换联动优化：星星高亮与暗色模式联动 */
[data-theme="dark"] .switch .star {
  background-color: #fffbe6;
  box-shadow: 0 0 8px 2px #ffe066, 0 0 2px 1px #fff;
  opacity: 1;
}
[data-theme="light"] .switch .star {
  background-color: #fff;
  box-shadow: none;
  opacity: 1;
}
[data-theme="dark"] .switch .cloud {
  opacity: 0.2;
  filter: grayscale(0.7);
}
[data-theme="light"] .switch .cloud {
  opacity: 1;
  filter: none;
}