    @font-face {
    font-family: 'qhy';
    src: url('v.ttf') format('woff'),
         url('v.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
}
:root {
    --primary-color: #f7f6fe;
    --secondary-color: #e8f0fe;
    --accent-color: #9592fc;
    --text-color: #64667e;
    --button-text-color: #F7F7F8;
    --border-radius: 10px;
    --box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
     --bg-color: #F7F6FE; 
    --bg-secondary: #ffffff;     
}

body {
    font-family: 'qhy', sans-serif;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%, #d6a4e0 50%, #f7f6fe 100%);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s, opacity 1s ease-in-out;
    opacity: 0;
}

body.loaded {
    opacity: 1;
}

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

header {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.fade-out {
    animation: fadeOut 1s ease-in-out;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.hero {
    text-align: center;
    padding: 6rem 0;
    background: url('https://mhuany.xyz/tupian.php') no-repeat center center/cover;
    color: white;
    position: relative;
    transition: opacity 1s ease-in-out;
    opacity: 1;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background-color: #A5A3F9;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    font-size: 1.1rem;
    box-shadow: 0 4px #A5A3F9;
    text-shadow: 0 2px 2px rgba(255, 255, 255, 0.5);
}

.cta-button:hover {
    background-color: #FFB6C1;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px #D176D4;
}

.services {
    padding: 6rem 0;
    background-color: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--accent-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-item {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonials {
    padding: 6rem 0;
    background-color: var(--primary-color);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--accent-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

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

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 500;
    text-align: right;
    color: var(--accent-color);
}
footer {
    background-color: #f8f9fa;
    padding: 8px 0;  /* 减小内边距 */
    font-size: 12px; /* 缩小字体 */
    color: #666;
    border-top: 1px solid #eee;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

footer:hover {
    transform: translateY(-1px); /* 减小悬浮效果 */
    box-shadow: 0 1px 5px rgba(142, 138, 242, 0.1);
}

footer .container {
    max-width: 800px;  /* 减小最大宽度 */
    margin: 0 auto;
    text-align: center;
    line-height: 1.4;  /* 减小行高 */
}

footer p {
    margin: 2px 0;  /* 减小段落间距 */
}

footer a {
    color: #8e8af2;
    text-decoration: none;
    padding: 1px 2px;  /* 减小链接内边距 */
    border-radius: 3px;
    transition: all 0.2s ease;
}

footer a:hover {
    color: #7b77d4;
    background: rgba(142, 138, 242, 0.1);
}

/* 更小的装饰元素 */
footer::before, footer::after {
    content: '♡';  /* 改用更小的心形 */
    position: absolute;
    font-size: 10px;  /* 缩小装饰元素 */
    top: 50%;
    transform: translateY(-50%);
    color: #8e8af2;
    opacity: 0.4;
    animation: float 2s ease-in-out infinite;
}

footer::before {
    left: 5px;
}

footer::after {
    right: 5px;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(3px); /* 减小浮动距离 */
    }
}


        /* 进度条容器 */
        #progress-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.8); /* 背景色和透明度 */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999; /* 确保进度条在最上层 */
            opacity: 1; /* 初始不透明 */
            transition: opacity 0.5s ease; /* 淡化效果 */
        }

        /* 圆形进度条 */
        #progress-bar {
            width: 100px; /* 进度条直径 */
            height: 100px; /* 进度条直径 */
            border-radius: 50%; /* 圆形 */
            border: 10px solid transparent; /* 边框 */
            border-top-color: var(--accent-color); /* 设置顶部边框颜色 */
            animation: spin 1s linear infinite; /* 旋转动画 */
        }
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 确保雪花不会干扰其他元素 */
    overflow: hidden; /* 确保雪花不会超出容器 */
    z-index: 9999; /* 确保雪花在最上层 */
}

.snowflake {
    position: absolute;
    font-size: 24px; /* 设置图标的大小 */
    color: rgba(255, 255, 255, 0.8); /* 雪花的颜色 */
    pointer-events: none; /* 确保雪花不会干扰鼠标事件 */
    animation: fall linear forwards; /* 雪花下落动画 */
}

@keyframes fall {
    0% {
        transform: translateY(0);
        opacity: 1; /* 初始透明度 */
    }
    100% {
        transform: translateY(100vh); /* 从顶部到页面底部 */
        opacity: 0; /* 最终透明度为 0 */
    }
}


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


        /* 旋转动画 */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 页面加载完成后隐藏进度条 */
        .loaded #progress-container {
            opacity: 0; /* 淡化 */
            pointer-events: none; /* 禁用鼠标事件 */
        }
#progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

#anime-girl {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background: url(' ') no-repeat center center/cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    animation: float 3s ease-in-out infinite;
}

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

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

.sakura {
    position: absolute;
    background: #ffc0cb;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
}

    body {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }
    .hero::before {
        background: rgba(0, 0, 0, 0.7);
    }

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        padding: 1rem;
    }
    .nav-links.active {
        display: flex;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .services h2,
    .testimonials h2 {
        font-size: 2rem;
    }
}

#settings-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

#settings-button i {
    color: white;
    font-size: 24px;
}

#settings-button:hover {
    transform: scale(1.1);
}

#settings-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 250px;
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

#settings-panel h3 {
    margin-top: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    text-align: center;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

#ad-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
    animation: fadeIn 1s ease-in-out;
}

#ad-image {
    width: 280px;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    display: block;
}

#ad-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

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

#floating-tip {
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    opacity: 0;
    animation: floatTip 5s ease-in-out infinite;
}

@keyframes floatTip {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
    opacity: 0;
        transform: translate(-50%, -20px);
    }
}

#reminder-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
    z-index: 1002;
}

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

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

.smooth-float {
    animation: float 3s ease-in-out infinite;
}

.bounce-on-hover:hover {
    animation: bounce 0.5s;
}

.rotate-on-hover:hover {
    animation: rotate 1s linear infinite;
}

.fade-in {
    animation: fadeIn 1s forwards;
}
#close-reminder {
    background-color: var(--accent-color); 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 5px;
    cursor: pointer; 
    transition: background-color 0.3s ease; 
    display: block; 
    margin: 10px auto; 
    font-size: 16px;
    font-family: 'qhy', sans-serif; /* 使用自定义字体 */
}

#close-reminder:hover {
    background-color: var(--hover-color);
}
.logo img {
    width: 150px; /* 设置固定的宽度 */
    height: auto; /* 保持原始的宽高比例 */
}
/* 团队介绍部分样式 */
.team {
    background-color: #f4f3ff;
    padding: 30px 0;
}

.team h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.team-member {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 15px;
    padding: 20px;
    text-align: center;
    width: 250px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-member img {
    width: 80%; /* 将宽度调整为80% */
    max-width: 150px; /* 设置最大宽度为150px */
    border-radius: 50%;
    margin-bottom: 15px;
}

/* 常见问题部分样式 */
.faq {
    background-color: #f4f3ff;
    padding: 50px 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.faq-item {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.faq-item h3 {
    cursor: pointer;
    margin: 0;
    font-size: 1.5em;
}

.faq-item p {
    display: none; /* 默认隐藏答案 */
    margin-top: 10px;
}

/* 联系我们部分样式 */
.contact {
    background-color: #f4f3ff;
    padding: 50px 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.contact button:hover {
    background-color: #0056b3;
}
/* 新增CSS样式 */
.lyrics {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* 清欢云: 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 清欢云: 添加渐入动画基础类 */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* 清欢云: 添加悬浮卡片效果 */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 清欢云: 添加波纹点击效果 */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: inherit;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.ripple:active::after {
    transform: scale(2);
    opacity: 0;
    transition: 0s;
}

/* 清欢云: 添加3D翻转效果 */
.flip-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.flip-card:hover {
    transform: rotateY(180deg);
}

/* 清欢云: 添加闪光扫过效果 */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
    transform: skewX(-25deg);
    transition: 0.7s;
}

.shine:hover::before {
    animation: shine 0.7s;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

/* 清欢云: 添加脉冲动画效果 */
.pulse {
    animation: pulse 2s infinite;
}

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