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

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 自定义光标 */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #74c69d;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, background 0.15s ease;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: #74c69d;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.05s ease;
}

.cursor.hover {
    transform: scale(2);
    background: rgba(116, 198, 157, 0.2);
}

/* 粒子背景 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(116, 198, 157, 0.3);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 背景渐变动画 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    animation: fadeInPage 1.2s ease-in;
    overflow-x: hidden;
    background: linear-gradient(135deg, hsl(159, 66%, 91%) 0%, hsl(160, 70%, 88%) 50%, hsl(158, 65%, 93%) 100%);
    background-size: 400% 400%;
    animation: fadeInPage 1.2s ease-in, gradientBg 15s ease infinite;
}

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

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 加载遮罩 */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #74c69d 0%, #52b788 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    animation: fadeOutLoader 0.8s ease-out 1s forwards;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeOutLoader {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 导航栏玻璃态效果 */
.nav{
   background: rgba(255, 255, 255, 0.25) !important;
   backdrop-filter: blur(20px) !important;
   -webkit-backdrop-filter: blur(20px) !important;
   height:50px !important;
   width:700px !important;
   margin: 20px auto 0 !important;
   border-radius: 25px !important;
   box-shadow: 0 8px 32px rgba(82, 183, 136, 0.2) !important;
   border: 1px solid rgba(255, 255, 255, 0.3) !important;
   overflow: visible !important;
   animation: slideDown 1s cubic-bezier(0.4, 0, 0.2, 1) !important;
   position: relative;
   z-index: 9999 !important;
}

.nav::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #74c69d, #52b788, #95d5b2, #74c69d);
    border-radius: 27px;
    z-index: -1;
    background-size: 400% 400%;
    animation: gradientBorder 4s ease infinite;
}

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

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

/*横向一级菜单样式设置*/
ul{
   list-style:none !important;
}

ul li{
   float:left !important;
   line-height:50px !important;
   text-align:center !important;
   position:relative !important;
   animation: fadeInItem 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
   opacity: 0;
}

ul li:nth-child(1) { animation-delay: 0.1s; }
ul li:nth-child(2) { animation-delay: 0.2s; }
ul li:nth-child(3) { animation-delay: 0.3s; }
ul li:nth-child(4) { animation-delay: 0.4s; }
ul li:nth-child(5) { animation-delay: 0.5s; }
ul li:nth-child(6) { animation-delay: 0.6s; }
ul li:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInItem {
    from {
        transform: translateY(-30px) rotateX(90deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
}

a{
    text-decoration:none !important;
    color:#1b4332 !important;
    display:block !important;
    width:100px !important;
    height:50px !important;
    font-weight: 500 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 25px !important;
    position: relative;
    overflow: hidden;
}

a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

a:hover::before {
    width: 200px;
    height: 200px;
}

a:hover{
    background: linear-gradient(135deg, rgba(149, 213, 178, 0.9) 0%, rgba(116, 198, 157, 0.9) 100%) !important;
    color:#081c15 !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 10px 30px rgba(82, 183, 136, 0.4) !important;
    animation: bounce 0.5s ease-in-out !important;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-3px) scale(1.05); }
    50% { transform: translateY(-8px) scale(1.05); }
}

a:active {
    transform: translateY(0) scale(0.98) !important;
}

/*二级下拉菜单样式设置*/
ul li ul{
    position:absolute !important;
    top:50px !important;
    left:0px !important;
    display:none !important;
    width:130px !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15) !important;
    overflow: visible !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    z-index: 10000 !important;
    animation: slideDownMenu 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

ul li ul li{
    float:none !important;
    position: relative !important;
    width: 100% !important;
    line-height: 45px !important;
    animation: slideInRight 0.3s ease-out forwards !important;
    opacity: 0;
}

ul li ul li:nth-child(1) { animation-delay: 0.05s; }
ul li ul li:nth-child(2) { animation-delay: 0.1s; }
ul li ul li:nth-child(3) { animation-delay: 0.15s; }
ul li ul li:nth-child(4) { animation-delay: 0.2s; }
ul li ul li:nth-child(5) { animation-delay: 0.25s; }

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

ul li ul li a:link,ul li ul li a:visited{
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    color: #1b4332 !important;
    border-radius: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    height: 45px !important;
    line-height: 45px !important;
    position: relative;
}

ul li ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #52b788, #74c69d);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

ul li ul li a:hover::after {
    width: 80%;
}

ul li ul li a:hover{
    background: linear-gradient(135deg, #74c69d 0%, #52b788 100%) !important;
    color:#081c15 !important;
    transform: translateX(8px) scale(1.02) !important;
    box-shadow: 0 4px 15px rgba(82, 183, 136, 0.3) !important;
}

/*鼠标滑过一级菜单的元素时显示下拉菜单*/
ul li:hover ul{
    display:block !important;
}

/*为第一个和最后一个子菜单项添加圆角*/
ul li ul li:first-child a {
    border-radius: 15px 15px 0 0 !important;
}

ul li ul li:last-child a {
    border-radius: 0 0 15px 15px !important;
}

/*时间显示动画 - 增强版*/
#timeDisplay {
    animation: timeGlow 3s ease-in-out infinite !important;
    cursor: default;
    position: relative;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #1b4332 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#timeDisplay:hover {
    animation: timeGlowHover 0.5s ease-in-out !important;
}

@keyframes timeGlow {
    0%, 100% {
        text-shadow: 3px 3px 6px rgba(0,0,0,0.15);
        transform: scale(1);
        background-position: 0% center;
    }
    50% {
        text-shadow: 3px 3px 6px rgba(0,0,0,0.15), 0 0 40px rgba(116, 198, 157, 0.6), 0 0 80px rgba(116, 198, 157, 0.3);
        transform: scale(1.02);
        background-position: 100% center;
    }
}

@keyframes timeGlowHover {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

#dateDisplay {
    animation: fadeInUp 1.2s ease-out !important;
    position: relative;
    color: #2d6a4f !important;
}

#dateDisplay::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #52b788, #74c69d, #95d5b2);
    border-radius: 2px;
    transition: width 0.6s ease;
    transform: translateX(-50%);
}

#dateDisplay:hover::after {
    width: 100%;
}

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

/* 欢迎文字动画 - 增强版 */
p[align="center"] {
    animation: fadeInText 1.5s ease-out !important;
    position: relative;
}

p[align="center"]::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, #74c69d, transparent);
    transition: height 0.6s ease;
    transform: translateX(-50%);
}

p[align="center"]:hover::before {
    height: 100%;
}

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

/* 滚动显示动画 */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 按钮悬停效果 - 增强版 */
.btn {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.btn:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 35px rgba(82, 183, 136, 0.4) !important;
}

.btn:active {
    transform: translateY(0) scale(0.95) !important;
}

/* 卡片悬浮效果 - 增强版 */
.card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* 加载动画 - 增强版 */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(116, 198, 157, 0.3);
    border-radius: 50%;
    border-top-color: #74c69d;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 波纹效果 - 增强版 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.8s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(5);
        opacity: 0;
    }
}

/* 霓虹灯效果 - 增强版 */
.neon {
    animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #74c69d, 0 0 20px #74c69d, 0 0 25px #74c69d, 0 0 30px #74c69d;
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #74c69d, 0 0 40px #74c69d, 0 0 50px #74c69d, 0 0 60px #74c69d;
    }
}

/* 3D 旋转效果 */
.rotate-3d {
    perspective: 1000px;
}

.rotate-3d-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.rotate-3d:hover .rotate-3d-inner {
    transform: rotateY(180deg);
}

/* 淡入淡出效果 */
.fade-in-out {
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    border-right: 3px solid #74c69d;
    white-space: nowrap;
    animation: typing 3s steps(30) 1s forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: #74c69d; }
}

/* 弹跳效果 */
.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* 旋转进入效果 */
.rotate-in {
    animation: rotateIn 0.8s ease-out;
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* 缩放进入效果 */
.zoom-in {
    animation: zoomIn 0.6s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 摇晃效果 */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 发光边框效果 */
.glow-border {
    animation: glowBorder 2s ease-in-out infinite alternate;
}

@keyframes glowBorder {
    from {
        box-shadow: 0 0 5px #74c69d, 0 0 10px #74c69d;
    }
    to {
        box-shadow: 0 0 20px #74c69d, 0 0 30px #74c69d;
    }
}