/* 少女风格可爱UI样式 */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comic Sans MS', 'Microsoft YaHei', cursive, sans-serif;
    background: linear-gradient(135deg, #fff5f8 0%, #fff0f6 50%, #ffe8f0 100%);
    min-height: 100vh;
}

nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3) !important;
    border-radius: 0 0 25px 25px;
    margin: 0 20px;
    width: auto !important;
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.4) !important;
}

nav a {
    color: #ff6b9d !important;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px !important;
    border-radius: 20px;
}

nav a:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    transform: scale(1.05);
}

nav a.text-2xl {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ffecd2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem !important;
}

nav a.text-2xl:hover {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffc3d9 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.btn-primary,
.btn-secondary {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ffecd2 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
    position: relative;
    overflow: visible;
}

.btn-primary::before,
.btn-secondary::before {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.btn-primary::after,
.btn-secondary::after {
    content: '🎀';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.5);
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    opacity: 1;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

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

section {
    position: relative;
    overflow: visible;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffc3d9' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.bg-gradient-to-r {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ffecd2 100%) !important;
}

.bg-gray-50 {
    background: linear-gradient(180deg, #fff5f8 0%, #ffe8f0 100%) !important;
}

.bg-gray-800 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-blue-600 {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
}

h1, h2, h3 {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffc3d9 50%, #ffecd2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-blue-600 {
    color: #ff6b9d !important;
}

.text-blue-800 {
    color: #ff4d7d !important;
}

.text-gray-600,
.text-gray-700,
.text-gray-800 {
    color: #7c5295 !important;
}

.text-gray-400 {
    color: #b8a3c7 !important;
}

.card-hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 20px !important;
    border: 2px solid rgba(255, 182, 193, 0.3) !important;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
}

.card-hover::before {
    content: '🌸';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
}

.card-hover::after {
    content: '🦋';
    position: absolute;
    bottom: -15px;
    right: 20px;
    font-size: 24px;
    animation: float 3s ease-in-out infinite reverse;
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #ff9a9e !important;
    box-shadow: 0 15px 35px rgba(255, 182, 193, 0.4) !important;
}

.card-hover .w-12.h-12 {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

.card-hover i {
    color: #fff !important;
}

.rounded-lg {
    border-radius: 20px !important;
}

.rounded-full {
    border-radius: 50% !important;
}

img {
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.3) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 182, 193, 0.4) !important;
}

input,
textarea {
    border: 2px solid rgba(255, 182, 193, 0.3) !important;
    border-radius: 15px !important;
    transition: all 0.3s ease !important;
}

input:focus,
textarea:focus {
    border-color: #ff9a9e !important;
    box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.2) !important;
    outline: none !important;
}

footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 30px 30px 0 0 !important;
    margin: 0 20px;
    position: relative;
}

footer::before {
    content: '🎀';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    animation: bounce 2s infinite;
}

footer h3 {
    background: linear-gradient(135deg, #fff 0%, #ffc3d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer a:hover {
    color: #ffc3d9 !important;
}

.fa-check-circle {
    color: #ff9a9e !important;
}

.border-t,
.border-t + div {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

::-webkit-scrollbar {
    width: 10px;
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #fff5f8 0%, #ffe8f0 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff9a9e 0%, #ffc3d9 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff6b9d 0%, #ff9a9e 100%);
}

#mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

#mobile-menu a {
    color: #ff6b9d !important;
    border-radius: 10px;
    margin: 5px 10px;
}

#mobile-menu a:hover {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #fff !important;
}

.text-xl {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.shadow-xl {
    box-shadow: 0 20px 40px rgba(255, 182, 193, 0.3) !important;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.3) !important;
}

.shadow-md {
    box-shadow: 0 8px 20px rgba(255, 182, 193, 0.3) !important;
}

.space-x-8 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 2rem;
}

.py-16 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.transition-colors {
    transition: all 0.3s ease;
}

.hover\:text-blue-800:hover {
    color: #ff4d7d !important;
}

.hover\:text-white:hover {
    color: #fff !important;
}

/* 可爱装饰元素 */
.decoration-bear {
    position: fixed;
    font-size: 60px;
    z-index: 1000;
    animation: float 4s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(255, 182, 193, 0.4));
}

.decoration-bear.left {
    top: 30%;
    left: 20px;
    animation-delay: 0s;
}

.decoration-bear.right {
    top: 40%;
    right: 20px;
    animation-delay: 2s;
}

.decoration-bear.bottom-left {
    bottom: 100px;
    left: 30px;
    animation-delay: 1s;
}

.decoration-bear.bottom-right {
    bottom: 120px;
    right: 30px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* 星星闪烁装饰 */
.star-decoration {
    position: fixed;
    font-size: 30px;
    z-index: 999;
    animation: sparkle 2s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

.star-decoration.star1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.star-decoration.star2 {
    top: 25%;
    right: 15%;
    animation-delay: 0.5s;
}

.star-decoration.star3 {
    top: 50%;
    left: 5%;
    animation-delay: 1s;
}

.star-decoration.star4 {
    top: 60%;
    right: 8%;
    animation-delay: 1.5s;
}

.star-decoration.star5 {
    top: 75%;
    left: 12%;
    animation-delay: 2s;
}

.star-decoration.star6 {
    top: 85%;
    right: 12%;
    animation-delay: 2.5s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* 心形装饰 */
.heart-decoration {
    position: fixed;
    font-size: 25px;
    z-index: 998;
    animation: heartbeat 1.5s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 2px 5px rgba(255, 105, 180, 0.4));
}

.heart-decoration.heart1 {
    top: 20%;
    right: 20%;
    animation-delay: 0s;
}

.heart-decoration.heart2 {
    top: 35%;
    left: 15%;
    animation-delay: 0.3s;
}

.heart-decoration.heart3 {
    top: 55%;
    right: 10%;
    animation-delay: 0.6s;
}

.heart-decoration.heart4 {
    top: 70%;
    left: 20%;
    animation-delay: 0.9s;
}

.heart-decoration.heart5 {
    top: 80%;
    right: 18%;
    animation-delay: 1.2s;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.15);
    }
}

/* 花朵装饰 */
.flower-decoration {
    position: fixed;
    font-size: 35px;
    z-index: 997;
    animation: sway 3s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(255, 182, 193, 0.4));
}

.flower-decoration.flower1 {
    top: 10%;
    right: 25%;
    animation-delay: 0s;
}

.flower-decoration.flower2 {
    top: 45%;
    left: 8%;
    animation-delay: 1s;
}

.flower-decoration.flower3 {
    bottom: 15%;
    right: 25%;
    animation-delay: 2s;
}

@keyframes sway {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* 蘑菇装饰 */
.mushroom-decoration {
    position: fixed;
    font-size: 45px;
    z-index: 996;
    animation: jump 2s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(255, 182, 193, 0.4));
}

.mushroom-decoration.mushroom1 {
    top: 30%;
    right: 3%;
    animation-delay: 0s;
}

.mushroom-decoration.mushroom2 {
    top: 65%;
    left: 3%;
    animation-delay: 1s;
}

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

/* 独角兽装饰 */
.unicorn-decoration {
    position: fixed;
    font-size: 50px;
    z-index: 995;
    animation: gallop 4s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(255, 182, 193, 0.4));
}

.unicorn-decoration.unicorn1 {
    top: 15%;
    left: 3%;
    animation-delay: 0s;
}

.unicorn-decoration.unicorn2 {
    bottom: 10%;
    right: 5%;
    animation-delay: 2s;
}

@keyframes gallop {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(10px) translateY(-5px);
    }
    50% {
        transform: translateX(20px) translateY(0);
    }
    75% {
        transform: translateX(10px) translateY(-5px);
    }
}

/* 彩虹装饰 */
.rainbow-decoration {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 80px;
    z-index: 994;
    animation: rainbow 5s linear infinite;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(255, 182, 193, 0.3));
}

@keyframes rainbow {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* 糖果装饰 */
.candy-decoration {
    position: fixed;
    font-size: 40px;
    z-index: 993;
    animation: spin 4s linear infinite;
    pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(255, 182, 193, 0.4));
}

.candy-decoration.candy1 {
    top: 5%;
    right: 40%;
    animation-delay: 0s;
}

.candy-decoration.candy2 {
    bottom: 20%;
    left: 2%;
    animation-delay: 1s;
}

.candy-decoration.candy3 {
    top: 50%;
    right: 2%;
    animation-delay: 2s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 兔子装饰 */
.rabbit-decoration {
    position: fixed;
    font-size: 55px;
    z-index: 992;
    animation: hop 2.5s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(255, 182, 193, 0.4));
}

.rabbit-decoration.rabbit1 {
    top: 25%;
    left: 2%;
    animation-delay: 0s;
}

.rabbit-decoration.rabbit2 {
    bottom: 15%;
    right: 3%;
    animation-delay: 1.25s;
}

@keyframes hop {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* 猫咪装饰 */
.cat-decoration {
    position: fixed;
    font-size: 50px;
    z-index: 991;
    animation: purr 3s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(255, 182, 193, 0.4));
}

.cat-decoration.cat1 {
    top: 20%;
    right: 8%;
    animation-delay: 0s;
}

.cat-decoration.cat2 {
    bottom: 25%;
    left: 5%;
    animation-delay: 1.5s;
}

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

/* 闪烁文字效果 */
.glow-text {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #ff9a9e, 0 0 20px #ff9a9e, 0 0 30px #ff9a9e;
    }
    to {
        text-shadow: 0 0 20px #ffc3d9, 0 0 30px #ffc3d9, 0 0 40px #ffc3d9;
    }
}

/* 彩带效果 */
.ribbon-decoration {
    position: fixed;
    font-size: 35px;
    z-index: 990;
    animation: wave 2s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(255, 182, 193, 0.4));
}

.ribbon-decoration.ribbon1 {
    top: 3%;
    left: 15%;
    animation-delay: 0s;
}

.ribbon-decoration.ribbon2 {
    top: 8%;
    right: 12%;
    animation-delay: 1s;
}

.ribbon-decoration.ribbon3 {
    bottom: 8%;
    left: 18%;
    animation-delay: 2s;
}

@keyframes wave {
    0%, 100% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(10deg);
    }
}

/* 可爱边框装饰 */
.cute-border {
    border: 3px dashed #ff9a9e !important;
    border-radius: 25px !important;
    position: relative;
}

.cute-border::before {
    content: '🎀';
    position: absolute;
    top: -18px;
    left: 20px;
    background: linear-gradient(180deg, #fff5f8 0%, #ffe8f0 100%);
    padding: 0 10px;
    font-size: 20px;
}

.cute-border::after {
    content: '🌸';
    position: absolute;
    bottom: -18px;
    right: 20px;
    background: linear-gradient(180deg, #fff5f8 0%, #ffe8f0 100%);
    padding: 0 10px;
    font-size: 20px;
}

/* 气泡装饰 */
.bubble-decoration {
    position: fixed;
    font-size: 30px;
    z-index: 989;
    animation: rise 4s ease-in infinite;
    pointer-events: none;
    opacity: 0.7;
}

.bubble-decoration.bubble1 {
    bottom: -50px;
    left: 10%;
    animation-delay: 0s;
}

.bubble-decoration.bubble2 {
    bottom: -50px;
    left: 30%;
    animation-delay: 1s;
}

.bubble-decoration.bubble3 {
    bottom: -50px;
    left: 50%;
    animation-delay: 2s;
}

.bubble-decoration.bubble4 {
    bottom: -50px;
    left: 70%;
    animation-delay: 3s;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) scale(1.5);
        opacity: 0;
    }
}

/* 星星链装饰 */
.stars-chain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 988;
    overflow: hidden;
}

.stars-chain::before {
    content: '⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐';
    position: absolute;
    top: 50px;
    left: 0;
    width: 200%;
    font-size: 20px;
    animation: scrollStars 20s linear infinite;
    white-space: nowrap;
    color: #ffc3d9;
    opacity: 0.6;
}

@keyframes scrollStars {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 可爱光标 */
.cute-cursor {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="28" font-size="28">🎀</text></svg>'), auto;
}

/* 按钮上的小装饰 */
.button-decoration {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 16px;
    animation: wiggle 1s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(10deg);
    }
}

@media (max-width: 768px) {
    nav {
        margin: 0 10px;
        border-radius: 0 0 15px 15px;
    }
    
    nav a.text-2xl {
        font-size: 1.5rem !important;
    }
    
    .card-hover {
        border-radius: 15px !important;
        margin: 0 10px;
    }
    
    .card-hover::before,
    .card-hover::after {
        font-size: 20px;
    }
    
    img {
        border-radius: 15px !important;
        margin: 0 10px;
    }
    
    footer {
        margin: 0 10px;
        border-radius: 20px 20px 0 0 !important;
    }
    
    footer::before {
        font-size: 30px;
    }
    
    .decoration-bear {
        font-size: 40px;
    }
    
    .star-decoration,
    .heart-decoration,
    .flower-decoration {
        font-size: 20px;
    }
    
    .mushroom-decoration,
    .unicorn-decoration,
    .rabbit-decoration,
    .cat-decoration {
        font-size: 35px;
    }
    
    .rainbow-decoration {
        font-size: 50px;
    }
}
