:root {
    --color-accent: #8b9a6f;
    --color-villas-bg: #f9f5f0;
    --color-news-bg: #f8f1e9;
}
#villas {
    background: var(--color-villas-bg);
}
#news {
    background: var(--color-news-bg);
}
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}
.hero {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 85vh;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.card-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7) 0%,
        transparent 60%
    );
}
#villas .card .position-relative {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e9e2d8;
}
#villas .card .card-img-top {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.btn-outline-accent {
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.btn-outline-accent:hover {
    background-color: var(--color-accent);
    color: white;
}
.summary {
    max-width: 720px;
    margin: auto;
}
.btn-dark-custom {
    background-color: #1f2937;
    color: #fff;
    border: none;
    transition: all 0.25s ease;
}
.btn-dark-custom:hover,
.btn-dark-custom:focus {
    background-color: #111827;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    text-decoration: none;
}
.btn-dark-custom:active {
    background-color: #0f172a;
    color: #fff; /* 点击时也保持白色 */
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
#gallery {
    background: #fff;
}
#homeGallery {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
#homeGallery .carousel-inner {
    aspect-ratio: 16 / 9;
}
#homeGallery .carousel-item {
    height: 100%;
}
#homeGallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#homeGallery::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25), rgba(0,0,0,0.05) 40%, transparent);
    pointer-events: none;
}
#homeGallery .carousel-control-prev, #homeGallery .carousel-control-next {
    width: 52px;
    height: 52px;
    top: 50%;
    transform: translateY(-50%);
}
#homeGallery .carousel-control-prev-icon, #homeGallery .carousel-control-next-icon {
    background-size: 50%;
    background-color: rgba(30, 30, 30, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
}
#homeGallery .carousel-control-prev:hover .carousel-control-prev-icon, #homeGallery .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(30, 30, 30, 0.55);
    transform: scale(1.08);
}
#homeGallery .carousel-control-prev:active .carousel-control-prev-icon, #homeGallery .carousel-control-next:active .carousel-control-next-icon {
    transform: scale(0.95);
}
#homeGallery .carousel-indicators {
    bottom: 18px;
}
#homeGallery .carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    margin: 0 4px;
    transition: all 0.2s ease;
}
#homeGallery .carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.6);
}

@media (max-width: 767.98px) {
    #villas .card .position-relative {
        aspect-ratio: 4 / 3;
    }
}