/* 全局样式 */
:root {
    --primary-color: #5b8731; /* 我的世界绿色 */
    --secondary-color: #3b511a;
    --accent-color: #f7d51d; /* 我的世界金色 */
    --text-color: #333333;
    --background-color: #f5f5f5;
    --background-color-rgb: 245, 245, 245; /* 背景色的RGB值，用于透明度设置 */
    --card-background: #ffffff;
    --header-background: #333333;
    --header-text: #ffffff;
    --button-color: #5b8731;
    --button-hover: #3b511a;
    --border-color: #cccccc;
}

/* 主题样式定义 */
html[data-theme="dark"] {
    --primary-color: #388e3c;
    --secondary-color: #1b5e20;
    --accent-color: #ffd600;
    --text-color: #e0e0e0;
    --background-color: #303030;
    --background-color-rgb: 48, 48, 48; /* 暗色背景的RGB值 */
    --card-background: #424242;
    --header-background: #212121;
    --header-text: #ffffff;
    --button-color: #388e3c;
    --button-hover: #1b5e20;
    --border-color: #616161;
}

html[data-theme="colorful"] {
    --primary-color: #8e24aa;
    --secondary-color: #5c007a;
    --accent-color: #ffab00;
    --text-color: #333333;
    --background-color: #f5f5f5;
    --background-color-rgb: 245, 245, 245;
    --card-background: #ffffff;
    --header-background: #6a1b9a;
    --header-text: #ffffff;
    --button-color: #8e24aa;
    --button-hover: #5c007a;
    --border-color: #e1bee7;
}

html[data-theme="pastel"] {
    --primary-color: #a5d6a7;
    --secondary-color: #66bb6a;
    --accent-color: #fff59d;
    --text-color: #4e342e;
    --background-color: #f5f8e3;
    --background-color-rgb: 245, 248, 227;
    --card-background: #ffffff;
    --header-background: #81c784;
    --header-text: #4e342e;
    --button-color: #81c784;
    --button-hover: #66bb6a;
    --border-color: #c8e6c9;
}

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

/* 字体大小样式，由js/settings.js中的getFontSizeValue函数使用 */
html {
    font-size: 16px; /* 默认字体大小 */
}

body {
    font-family: 'Minecraft', 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: url('../images/background.png');
    background-repeat: repeat;
    line-height: 1.6;
    animation: pageLoad 0.8s ease-out;
}

/* 对有深色背景的主题，调整背景图片透明度 */
html[data-theme="dark"] body {
    background-image: url('../images/background-dark.png');
}

/* 像素风格字体 */
@font-face {
    font-family: 'Minecraft';
    src: url('../fonts/minecraft.woff2') format('woff2'),
         url('../fonts/minecraft.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Minecraft', 'Arial', sans-serif;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* 段落样式 */
p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

/* 按钮样式 */
.button {
    display: inline-block;
    background-color: var(--button-color);
    color: white;
    padding: 10px 20px;
    border: 2px solid #000;
    border-bottom-width: 4px;
    border-right-width: 4px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-family: 'Minecraft', 'Arial', sans-serif;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.3),
                inset 2px 2px 0 rgba(255, 255, 255, 0.3);
}

.button:hover {
    background-color: var(--button-hover);
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.button:active {
    transform: translateY(4px);
    border-bottom-width: 0;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
}

/* 头部区域 */
header {
    background-color: var(--header-background);
    color: var(--header-text);
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.logo {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    image-rendering: pixelated;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.15));
}

.title-container h1 {
    margin-bottom: 5px;
    color: transparent;
    background-image: linear-gradient(90deg, 
        var(--accent-color) 0%, 
        var(--primary-color) 33%, 
        var(--accent-color) 67%, 
        var(--primary-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: title-shine 4s linear infinite;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.title-container p {
    color: #cccccc;
    font-size: 1rem;
}

/* 导航栏 */
nav {
    background-color: #222222;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0 20px;
    flex-wrap: wrap;
}

nav li {
    margin-right: 5px;
}

nav a {
    display: block;
    padding: 10px 15px;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* 主内容区域 */
main {
    padding: 40px 20px;
}

/* 英雄区域 */
.hero {
    background-color: rgba(91, 135, 49, 0.1);
    border: 4px solid #000;
    border-image: url('../images/border.png') 4 repeat;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: transparent;
    background-image: linear-gradient(45deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 25%, 
        var(--secondary-color) 50%, 
        var(--accent-color) 75%, 
        var(--primary-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: title-shine 5s linear infinite;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
}

.hero h2 span {
    display: inline-block;
    animation: title-wave 3s ease-in-out infinite;
    animation-delay: calc(0.15s * var(--i, 0));
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 功能卡片区域 */
.features {
    text-align: center;
    margin-bottom: 60px;
}

.features h2 {
    margin-bottom: 30px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-background);
    border: 4px solid #000;
    border-image: url('../images/border.png') 4 repeat;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card img {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    image-rendering: pixelated;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.feature-card .button {
    align-self: center;
}

/* 页脚区域 */
footer {
    background-color: var(--header-background);
    color: var(--header-text);
    padding: 30px 0;
    text-align: center;
}

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

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #cccccc;
    margin: 0 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: var(--accent-color);
}

footer p {
    font-size: 0.9rem;
    color: #999999;
}

/* 全屏模式 */
.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    background-image: url('../images/background.png');
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: 20px;
}

.fullscreen-mode header,
.fullscreen-mode footer,
.fullscreen-mode .go-back {
    display: none;
}

.fullscreen-mode .tool-container {
    flex: 1;
    margin: 0;
    max-width: none;
    border: none;
    overflow: auto;
}

.fullscreen-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.exit-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1001;
    font-family: 'Minecraft', 'Arial', sans-serif;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.exit-fullscreen:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .feature-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    nav ul {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .feature-cards {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin-right: 0;
        margin-bottom: 5px;
        width: 100%;
        text-align: center;
    }
}

/* 我的世界风格像素边框 */
.pixel-border {
    border: 4px solid #000;
    border-image: url('../images/border.png') 4 repeat;
}

/* 动画和渐变效果 */
@keyframes button-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(var(--primary-color-rgb), 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0); }
}

@keyframes title-shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes title-wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-8px);
    }
    75% {
        transform: translateY(8px);
    }
}

@keyframes title-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
        text-shadow: 0 1px 0 #ccc, 0 2px 0 #ccc, 0 3px 0 #bbb, 0 4px 0 #aaa, 0 5px 0 #999, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.15);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        text-shadow: 0 1px 0 #ccc, 0 2px 0 #ccc, 0 3px 0 #bbb, 0 4px 0 #aaa, 0 5px 0 #999, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.15);
    }
}

@keyframes letter-bounce {
    0%, 40%, 100% {
        transform: translateY(0) scale(1);
    }
    20% {
        transform: translateY(-30px) scale(1.2);
    }
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes neon-flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 0.99;
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #ff00de, 0 0 35px #ff00de, 0 0 40px #ff00de, 0 0 50px #ff00de, 0 0 75px #ff00de;
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.4;
        text-shadow: none;
    }
}

/* 按钮动画 */
.animated-button {
    animation: button-pulse 2s infinite;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.animated-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 标题样式增强 */
.title-container h1 {
    font-size: 2.5rem;
    margin: 0;
    background-image: linear-gradient(45deg, #ff7b00, #ff8800, #ff9500, #ffa700, #ffb800, #ffc000, #ffd700, #ffea00, #fff400, #daff00, #b8ff00, #91ff00);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: title-bounce 5s ease-in-out infinite;
    display: inline-block;
    position: relative;
    font-weight: 800;
    letter-spacing: 1px;
}

.title-container h1::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    color: rgba(0, 0, 0, 0.2);
    transform: translateY(5px);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    perspective: 1000px;
}

.hero h2 span {
    display: inline-block;
    animation: letter-bounce 1.5s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--i));
    position: relative;
    color: transparent;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4, #fad0c4, #a1c4fd, #c2e9fb, #d1fdff, #a6c0fe, #f68084);
    background-size: 800% 800%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: letter-bounce 1.5s ease-in-out infinite, gradient-animation 10s ease infinite;
    animation-delay: calc(0.1s * var(--i)), 0s;
}

.hero h2 span:hover {
    animation: neon-flicker 1.5s ease-in-out infinite;
    color: white;
}

.title-container p {
    margin: 0;
    opacity: 0.8;
    font-size: 1.1rem;
    animation: title-shine 3s linear infinite;
    background: linear-gradient(90deg, #3a7bd5, #00d2ff, #3a7bd5);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

/* 首页英雄区域样式优化 */
.hero {
    background-color: rgba(var(--background-color-rgb), 0.8);
    padding: 60px 40px;
    border-radius: 20px;
    margin: 40px auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
}

/* 导航栏增强 */
nav ul li a {
    transition: color 0.3s, transform 0.3s;
    position: relative;
    padding: 8px 15px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active::after {
    width: 100%;
    background-color: var(--primary-color);
}

/* 重写header容器样式 */
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 标题动画效果 */
@keyframes title-wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-8px);
    }
    75% {
        transform: translateY(8px);
    }
}

@keyframes title-shine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* 为标题容器添加效果 */
.logo-container .title {
    background: linear-gradient(45deg, 
        #FF5722, 
        #E91E63, 
        #9C27B0, 
        #673AB7, 
        #3F51B5, 
        #2196F3,
        #4CAF50,
        #8BC34A);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: title-shine 8s ease infinite;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
}

/* 页面标题的动画效果 */
.page-title {
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    transform-origin: center;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.8);
    }
}

/* 全局过渡效果 */
.main-content {
    animation: fadeIn 1s ease;
}

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

/* 优化按钮样式 */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::after {
    width: 300%;
    height: 300%;
}

.btn:active {
    transform: translateY(2px) translateZ(0);
}

/* 主页英雄区块 */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.05) 0%, 
        rgba(var(--accent-color-rgb), 0.05) 100%);
    z-index: -1;
}

/* 为主要内容添加卡片样式 */
.card, 
.panel, 
.module-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover, 
.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* 定义滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* 页面加载动画 */
@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes title-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
        text-shadow: 0 1px 0 #ccc, 0 2px 0 #ccc, 0 3px 0 #bbb, 0 4px 0 #aaa, 0 5px 0 #999, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.15);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        text-shadow: 0 1px 0 #ccc, 0 2px 0 #ccc, 0 3px 0 #bbb, 0 4px 0 #aaa, 0 5px 0 #999, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.15);
    }
}

@keyframes letter-bounce {
    0%, 40%, 100% {
        transform: translateY(0) scale(1);
    }
    20% {
        transform: translateY(-30px) scale(1.2);
    }
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes neon-flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 0.99;
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #ff00de, 0 0 35px #ff00de, 0 0 40px #ff00de, 0 0 50px #ff00de, 0 0 75px #ff00de;
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.4;
        text-shadow: none;
    }
}

/* 按钮动画 */
.animated-button {
    animation: button-pulse 2s infinite;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.animated-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 标题样式增强 */
.title-container h1 {
    font-size: 2.5rem;
    margin: 0;
    background-image: linear-gradient(45deg, #ff7b00, #ff8800, #ff9500, #ffa700, #ffb800, #ffc000, #ffd700, #ffea00, #fff400, #daff00, #b8ff00, #91ff00);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: title-bounce 5s ease-in-out infinite;
    display: inline-block;
    position: relative;
    font-weight: 800;
    letter-spacing: 1px;
}

.title-container h1::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    color: rgba(0, 0, 0, 0.2);
    transform: translateY(5px);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    perspective: 1000px;
}

.hero h2 span {
    display: inline-block;
    animation: letter-bounce 1.5s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--i));
    position: relative;
    color: transparent;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4, #fad0c4, #a1c4fd, #c2e9fb, #d1fdff, #a6c0fe, #f68084);
    background-size: 800% 800%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: letter-bounce 1.5s ease-in-out infinite, gradient-animation 10s ease infinite;
    animation-delay: calc(0.1s * var(--i)), 0s;
}

.hero h2 span:hover {
    animation: neon-flicker 1.5s ease-in-out infinite;
    color: white;
}

.title-container p {
    margin: 0;
    opacity: 0.8;
    font-size: 1.1rem;
    animation: title-shine 3s linear infinite;
    background: linear-gradient(90deg, #3a7bd5, #00d2ff, #3a7bd5);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

/* 首页英雄区域样式优化 */
.hero {
    background-color: rgba(var(--background-color-rgb), 0.8);
    padding: 60px 40px;
    border-radius: 20px;
    margin: 40px auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
}

/* 导航栏增强 */
nav ul li a {
    transition: color 0.3s, transform 0.3s;
    position: relative;
    padding: 8px 15px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active::after {
    width: 100%;
    background-color: var(--primary-color);
}

/* 重写header容器样式 */
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
} 