:root {
    --mint-dark: #0A5E5A;
    --mint-medium: #1F8884;
    /* 其实想用#78FAD2 */
    --mint-light: #2DAB92;
    --pink-accent: #FF6B8B;
    --pink-light: #FFA5B5;
    --pink-dark: #D25A7F;
    --white: #F5F5F5;
    --gray-dark: #2A2A2A;
}

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

body {
    background-color: var(--white);
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============ 动画关键帧 ============ */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pop-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    80% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 107, 139, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 107, 139, 0.6);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 107, 139, 0.3);
    }
}

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

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes card-appear {
    0% {
        opacity: 0;
        transform: translateY(30px) rotate(2deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

/* ============ 动态类 ============ */
.animate-pop {
    animation: pop-in 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fade-in 0.8s forwards 0.5s;
}

.animate-float {
    animation: float 4s infinite ease-in-out;
    animation-delay: var(--delay, 0);
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-glow {
    animation: glow 2s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-slide-up {
    opacity: 0;
    animation: slide-up 1s forwards 0.3s;
}

.animate-card {
    opacity: 0;
    animation: card-appear 0.6s forwards;
    animation-delay: calc(0.1s * var(--i));
}

.animate-form-field {
    transition: all 0.3s ease;
}

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

.section {
    padding: 100px 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mint-light), transparent);
    opacity: 0.4;
}

/* ============ 欢迎区域 ============ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--mint-dark), var(--mint-medium));
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 20%, transparent 10%, rgba(0, 0, 0, 0.05) 20%),
        radial-gradient(circle at 85% 80%, transparent 10%, rgba(0, 0, 0, 0.05) 20%);
    background-size: 40px 40px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-name {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--white);
}

/* 装饰元素 */
.shape {
    position: absolute;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.shape-circle {
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background-color: var(--pink-accent);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: calc(var(--size) / 2) solid transparent;
    border-right: calc(var(--size) / 2) solid transparent;
    border-bottom: var(--size) solid var(--pink-light);
}

.shape-square {
    width: var(--size);
    height: var(--size);
    transform: rotate(45deg);
    background-color: var(--mint-light);
}

/* ============ 作品展示 ============ */
.section-title {
    font-size: 2.5rem;
    color: var(--mint-dark);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background-color: var(--pink-accent);
    margin: 10px auto;
}

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

.gallery-item {
    padding-top: 0;
    border: none;
    line-height: 0;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    transform-origin: center;
    opacity: 0;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.gallery-image {

    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    /* 4:3 比例 */
    background-color: #eee;
    background-image:
        linear-gradient(45deg, #ddd 25%, transparent 25%),
        linear-gradient(-45deg, #ddd 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ddd 75%),
        linear-gradient(-45deg, transparent 75%, #ddd 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--mint-light), var(--pink-light));
    opacity: 0;
    transition: opacity 0.5s;
}

.gallery-item:hover .gallery-image::before {
    opacity: 0.2;
}

.loading {
    color: #999;
    font-size: 1.2rem;
    text-align: center;
    z-index: 2;
}

.image-title {
    text-align: center;    
    line-height: 3rcap;
    padding: 15px 10px;
    color: var(--mint-dark);
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
}

/* ============ B站链接 ============ */
.bilibili-link {
    display: block;
    max-width: 300px;
    margin: 50px auto;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: var(--mint-dark);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(10, 94, 90, 0.3);
    transform: translateZ(0);
}

.bilibili-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 0;
}

.bilibili-link:hover::before {
    transform: translateX(100%);
}

.bilibili-icon {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 15px;
    position: relative;
    transition: transform 0.3s;
}

.bilibili-text {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
}

.bilibili-link:hover {
    transform: scale(1.05);
    background-color: var(--pink-dark);
    box-shadow: 0 15px 30px rgba(210, 90, 127, 0.4);
}

.bilibili-link:hover .bilibili-icon {
    transform: rotate(-5deg) scale(1.1);
}

/* ============ 留言区域 ============ */
.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--mint-medium);
    position: relative;
    overflow: hidden;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--mint-dark);
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.5s ease;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--mint-light);
    border-radius: 8px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
    transform: scale(0.98);
    opacity: 0;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--pink-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 139, 0.2);
    transform: scale(1);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(45deg, var(--pink-accent), var(--pink-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 107, 139, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--pink-dark), var(--pink-accent));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 107, 139, 0.4);
}

.submit-btn:active {
    transform: translateY(1px);
}

/* ============ 页脚 ============ */
footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 50px 0 30px;
    text-align: center;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
}

.copyright {
    text-decoration: none;
    /* 去掉下划线 */
    color: inherit;
    /* 继承父元素文字颜色 */
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;

}

.copyright-note {
    line-height: 1rcap;
    position: absolute;
    /* 绝对定位 */
    right: 15px;
    /* 距离右侧15px */
    bottom: 10px;
    /* 距离底部10px */
    font-size: 0.75rem;
    /* 小字体 */
    color: rgba(255, 255, 255, 0.7);
    /* 半透明白色 */
    background: rgba(0, 0, 0, 0.4);
    /* 半透明背景 */
    padding: 4px 8px;
    border-radius: 3px;
    z-index: 3;
    /* 确保在图片上方 */
}

.fixing-note {
    position: absolute;
    bottom: 22%;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.7);
    /* 半透明白色 */
    background: rgba(0, 0, 0, 0.4);
    /* 半透明背景 */
    padding: 4px 8px;
    border-radius: 3px;
    z-index: 3;
    /* 确保在图片上方 */
}

/* 悬停效果增强 */
.gallery-image:hover .copyright-note {
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
}

.foot-paw {
    position: absolute;
    width: 80px;
    height: 60px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.2;
}

.foot-paw::before,
.foot-paw::after {
    content: '';
    position: absolute;
    background: var(--pink-light);
    border-radius: 50%;
}

.foot-paw::before {
    width: 40px;
    height: 40px;
    bottom: 0;
    left: 20px;
}

.foot-paw::after {
    width: 30px;
    height: 30px;
    bottom: 10px;
    left: 0;
}

.foot-paw span {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--pink-light);
    border-radius: 50%;
    bottom: 25px;
}

.foot-paw span:nth-child(1) {
    left: 7px;
}

.foot-paw span:nth-child(2) {
    left: 27px;
}

.foot-paw span:nth-child(3) {
    left: 47px;
}

/* ============ 响应式设计 ============ */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .bilibili-link {
        max-width: 250px;
    }
}

/* 滚动导航栏样式 */
.scroll-navbar {
    position: fixed;
    top: -100px;
    /* 初始位置在视口外 */
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #1e2227;
    /* 深色背景 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    transition: top 0.5s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-navbar.visible {
    top: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    color: white;
}

.logo-circle {
    width: 36px;
    height: 36px;
    background: #FF6B8B;
    /* 粉色 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle i {
    font-size: 1.1rem;
    color: white;
}

.nav-title {
    font-weight: 600;
    color: white;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.nav-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: transparent;
    color: #FFA5B5;
    /* 浅粉色 */
    border: 1px solid #FFA5B5;
}

.cancel-btn:hover {
    background: rgba(255, 107, 139, 0.15);
}

.create-btn {
    background: linear-gradient(135deg, #FF6B8B, #D25A7F);
    /* 粉色渐变 */
    color: white;
    border: none;
}

.create-btn:hover {
    background: linear-gradient(135deg, #D25A7F, #FF6B8B);
    box-shadow: 0 0 12px rgba(255, 107, 139, 0.5);
}