/* Banner轮播样式 */
#hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#hero-slider .slider-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1500ms ease-in-out;
}

#hero-slider .slider-slide.active {
    opacity: 1;
}

#hero-slider .slider-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(100%);
    transition: transform 10000ms ease-out;
}

#hero-slider .slider-slide.active .slider-bg {
    transform: scale(110%);
}

#hero-slider .slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.2));
}

#hero-slider .slider-content {
    position: relative;
    z-index: 10;
    height: 100%;
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
}

#hero-slider .slider-text {
    transform: translateY(10px);
    opacity: 0;
    transition: all 1000ms ease-out 300ms;
}

#hero-slider .slider-slide.active .slider-text {
    transform: translateY(0);
    opacity: 1;
}

#hero-slider .slider-text h2 {
    font-family: serif;
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    color: white;
    line-height: 1.25;
    margin-bottom: 24px;
    max-width: 40rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#hero-slider .slider-text p {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
    color: #e5e7eb;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 32rem;
}

#hero-slider .slider-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #b91c1c;
    color: white;
    font-size: 1.125rem;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 300ms ease;
}

#hero-slider .slider-link:hover {
    background-color: #dc2626;
}

#hero-slider .slider-link .arrow-icon {
    transition: transform 300ms ease;
}

#hero-slider .slider-link:hover .arrow-icon {
    transform: translateX(8px);
}

#hero-slider .slider-indicator {
    height: 4px;
    border: none;
    cursor: pointer;
    transition: all 500ms ease;
    background: rgba(255, 255, 255, 0.5);
}

#hero-slider .slider-indicator:hover {
    background: white;
}

#hero-slider .slider-indicator.active {
    background: #b91c1c;
    width: 64px;
}

#hero-slider .slider-indicator:not(.active) {
    width: 32px;
}

/* 头部导航样式 */
header.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(4px);
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 移动端菜单 */
.mobile-menu-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-overlay .flex {
    display: flex;
}

.mobile-menu-overlay .flex-col {
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay .gap-1 {
    gap: 4px;
}

.mobile-menu-overlay .max-h-0 {
    max-height: 0;
}

.mobile-menu-overlay .max-h-96 {
    max-height: 24rem;
}

.mobile-menu-overlay .overflow-hidden {
    overflow: hidden;
}

.mobile-menu-overlay .transition-all {
    transition: all 300ms ease-in-out;
}

.mobile-menu-overlay .opacity-0 {
    opacity: 0;
}

.mobile-menu-overlay .opacity-100 {
    opacity: 1;
}


.cover {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

.toast-dialog {
    position: absolute;
    top: 30%;
    left: 30%;
    right: 30%;
    border-radius: 20px;
    text-align: center;
    padding: 20px;
    vertical-align: middle;
    background-color: white;
}

.toast-icon {
    text-align: center;
}

.toast-icon img {
    display: inline-block;
}

.toast-header {
    font-size: 30px;
    margin: 20px;
}

.toast-content {
    padding: 10px;
    font-family: "miSans";
}

.toast-icon img {
    height: 40px;
    width: 40px;
}

.toast-footer {
    margin-top: 20px;
    text-align: center;
}

.toast-footer .button {
    border: 1px solid #0f172a;
    padding: 8px 14px;
    width: 100px;
    margin: 0 auto;
    border-radius: 10px;
    cursor: pointer;
}

.toast-footer .button:hover {
    background-color: #f4f4f4;
}

#loading-cover.cover {
    background-color: rgba(0, 0, 0, 0.8);
}

#loading-cover .loading {
    text-align: center;
    padding-top: 100px;
    font-size: 200%;
    line-height: 250%;
    color: white;
}

#loading-cover .auto-circle {
    display: block;
    margin: 15% auto 10px auto;
    /* animation: circleing linear 3s infinite; */
}

#loading-cover .auto-circle img {
    display: inline-block;
    width: 150px;
}


@media (max-width: 1280px) {
    .toast-dialog {
        left:10% ;
        right: 10%;
    }
}

@media (max-width: 768px) {
    .toast-header {
        font-size:24px;
    }
}