/* Custom Styles */
/* 修复flex布局造成的空白 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
    font-family: 'M PLUS Rounded 1c', sans-serif
}

main {
    flex: 0 0 auto; /* 禁用flex-grow */
    width: 100%;
}

.content-wrapper {
    margin-bottom: -1px; /* 抵消可能的边框溢出 */
}

/* 确保contact-section自身不产生额外高度 */
.contact-section { 
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.navbar {
    padding: 15px 0;
    transition: all 0.3s;
    z-index: 1000;
}

.navbar-brand img {
    transition: transform 0.3s;
}

.navbar-brand img:hover {
    transform: rotate(-15deg);
}

.nav-link {
    position: relative;
    margin: 0 15px;
    transition: all 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.dropdown-item:hover {
    background-color: #8261ee;
    color: white !important;
}

.footer {
    background-size: cover;
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 10" xmlns="http://www.w3.org/2000/svg"><path d="M0 10 Q 25 5 50 10 Q 75 5 100 10 L 100 0 L 0 0" fill="%238261ee"/></svg>');
    z-index: -1;
}

.social-icons a {
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .navbar-collapse {
        background: linear-gradient(127deg, #a759d1 0%, #8261ee 91%);
        padding: 20px;
        margin-top: 10px;
    }
}
/* 
---------------------------------------------
Welcome area
--------------------------------------------- 
*/
  /* 修正后CSS */
.text-gradient-anime {
    /*background: linear-gradient(135deg, #a759d1 20%, #8261ee 80%);*/
    /*background:linear-gradient(127deg, #a759d1 0%, #8261ee 91%);*/
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 5s ease infinite;
    background-size: 300% 300%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
}

.highlight-text {
    position: relative;
    display: inline-block;
    padding: 0.2rem 0;
}

.highlight-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.highlight-text:hover::after {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .welcome-area {
        background-attachment: scroll;
    }
    
    h1.display-4 {
        font-size: 2.5rem !important;
    }
    
    .lead.fs-3 {
        font-size: 1.25rem !important;
    }
} 
  
/* 
---------------------------------------------
Showcases area
--------------------------------------------- 
*/
.showcases {
    --card-scale: 1.05;
    --transition-duration: 0.4s;
    background-color: #f8f9fa;
    padding: 3rem 1rem;
  }
  
  .photo-grid .photo-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 12px;
    background: white;
  }
  
  .photo-grid .photo-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .object-cover {
    object-fit: cover;
  }
  
  .custom-modal {
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0.6);
  }
  
  .custom-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
  }
  
  .custom-modal .close {
    color: #aaa;
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
  }
  
  .photo-modal.active {
    display: flex;
  }
  
  .photo-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-in-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }
   
---------------------------------------------
Work process area
--------------------------------------------- 
*/
/* Work process */
.hover-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(0);
}

.hover-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.15) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.text-light.opacity-75 {
    opacity: 0.85 !important;
}

/* Pricing plan Section */
:root {
    --bs-purple: #a759d1;
    --bs-purple-light: #c18fdb;
}

.text-purple { color: var(--bs-purple) !important; }
.bg-purple { background-color: var(--bs-purple) !important; }
.btn-purple { 
    background-color: var(--bs-purple) !important;
    border-color: var(--bs-purple) !important;
}

.card {
    border-radius: 25px !important;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn {
    border-radius: 25px !important;
    padding: 12px 30px !important;
    transition: all 0.3s ease;
}

.btn-purple:hover {
    background-color: var(--bs-purple-light) !important;
    transform: translateY(-2px);
}

.shadow-hover:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(167,89,209,0.2) !important;
    border-color: var(--bs-purple-light);
}

.active-plan {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(167,89,209,0.25) !important;
    border: 2px solid var(--bs-purple);
}

.bi-check2-circle { font-size: 1.2rem; }
.rounded-4 { border-radius: 1.5rem !important; }
.rounded-5 { border-radius: 2rem !important; }

.list-unstyled li:not(.text-muted) {
    font-weight: 500;
}  
/* 
---------------------------------------------
Contact area
--------------------------------------------- 
*/
/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, rgba(167,89,209,0.05) 0%, rgba(130,97,238,0.05) 100%);
    border-top: 3px solid #8261ee;
    border-bottom: 3px solid #8261ee;
}

.anime-title {
    text-shadow: 2px 2px 0 #8261ee;
    transform: rotate(-1deg);
    display: inline-block;
    position: relative;
    padding: 0 15px;
}

.anime-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #ff6b6b;
    border-radius: 2px;
}

.anime-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(130,97,238,0.1);
}

.anime-contact-info {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(130,97,238,0.1);
    border: 2px solid rgba(167,89,209,0.2);
}

.anime-contact-form {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(130,97,238,0.1);
    padding: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-section .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .anime-title {
        font-size: 2rem;
        transform: rotate(0);
    }
    
    .anime-subtitle {
        font-size: 1rem;
    }
}