/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header Styles */
.header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 40px;
    margin-left: 60px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #E31E24;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 5px;
    margin: 0 20px;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-btn:hover {
    color: #E31E24;
    background: rgba(227, 30, 36, 0.05);
}

.lang-btn.active {
    background: #fff;
    color: #E31E24;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.qr-code {
    width: 78px;
    height: 78px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(74, 95, 127, 0.92) 0%, rgba(90, 111, 143, 0.92) 100%),
                url('https://images.unsplash.com/photo-1525625293386-3f8f99389edd?w=1920&h=600&fit=crop') center/cover;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1565967511849-76a60a516170?w=400&h=400&fit=crop&q=20') center/contain no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.hero h1 {
    color: #fff;
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    margin-top: 10px;
    opacity: 0.98;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 粒子动画容器 */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* 烟花效果 */
.firework {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: firework-rise 3s ease-out infinite;
}

.firework::before,
.firework::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

@keyframes firework-rise {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) scale(1);
        opacity: 0;
    }
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700;
    animation: sparkle 2s infinite ease-in-out;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-input {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    flex: 1;
    min-width: 150px;
}

.search-btn {
    padding: 12px 40px;
    background-color: #4DD0BF;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #3BB9A8;
}

/* Property Listings Section */
.property-listings {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.property-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #E31E24;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.property-info .location {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Feature Sections */
.feature-section {
    padding: 80px 0;
    text-align: center;
}

.feature-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.green-bg {
    background-color: #5DD9C1;
    color: #fff;
}

.grey-bg {
    background-color: #6B6B6B;
    color: #fff;
}

.yellow-bg {
    background-color: #D4E157;
    color: #333;
}

.feature-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 60px 40px;
    border-radius: 8px;
}

.yellow-box {
    background-color: #FFD740;
}

.white-box {
    background-color: #fff;
}

/* Video Section Styles */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
    max-width: 100%;
    padding: 0 20px;
}

.video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    height: 0;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.6;
}

/* Section Subtitle */
.section-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
    font-weight: 400;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.feature-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Community Features */
.community-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.community-item {
    text-align: center;
    padding: 20px;
}

.community-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.community-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.community-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Reasons Grid */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.reason {
    padding: 20px;
}

.reason h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #E31E24;
}

.reason p {
    font-size: 16px;
    line-height: 1.6;
}

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.step {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Footer Section */
.footer {
    background-color: #1B2947;
    color: #fff;
    padding: 60px 0 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.footer-column .column-subtitle {
    font-size: 13px;
    color: #b8c5d6;
    margin-bottom: 15px;
    font-style: italic;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #b8c5d6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

/* Bottom Footer */
.bottom-footer {
    background-color: #f5f5f5;
    padding: 40px 0 20px;
}

.bottom-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #E31E24;
}

.footer-brand h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 5px;
}

.footer-brand p {
    font-size: 14px;
    color: #666;
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #E31E24;
}

.copyright {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* Footer Contact Section */
.footer-contact {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.contact-section {
    text-align: center;
}

.contact-section h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.contact-phones p {
    font-size: 16px;
    color: #555;
    margin: 10px 0;
}

.contact-phones strong {
    color: #E31E24;
}

.contact-qr {
    text-align: center;
}

.footer-qr-code {
    width: 120px;
    height: 120px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
}

.contact-qr p {
    font-size: 14px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .search-form {
        flex-direction: column;
    }

    .property-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .community-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .process-steps {
        flex-direction: column;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .bottom-footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .contact-details {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .property-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
