/* 首页轮播样式 */
.carousel-container {
    position: relative;
    width: 100%;
    max-height: 460px;
    overflow: hidden;
    margin-top: 100px; /* 避免固定导航栏重叠 */
}

.carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.carousel-slide img.active {
    opacity: 1;
    transform: scale(1);
}

/* 轮播箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    z-index: 10;
    user-select: none;
    padding: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
}

.carousel-arrow:hover {
    background: rgba(0,0,0,0.6);
}

.carousel-arrow.left {
    left: 20px;
}

.carousel-arrow.right {
    right: 20px;
}

/* Hero 区块 */
.hero {
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
}

.hero p {
    font-size: 24px;
    margin-top: 10px;
}

/* 快速查看弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fff;
    margin: 100px auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.modal .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
}

.modal-gallery img {
    max-width: 100%;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 22px;
    margin: 10px 0;
}

.modal-price {
    color: #e33;
    font-weight: bold;
    margin-bottom: 15px;
}

.modal-buy-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #003366;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
}

.modal-buy-btn:hover {
    background: #63a3d7;
}
