/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 头部样式 */
.header {
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.nav ul li {
    margin: 0 15px;
}

.nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav ul li a:hover {
    color: #ff4d4d;
}

.contact {
    flex-shrink: 0;
}

.contact a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    background-color: #ff4d4d;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

/* 语言切换按钮样式 */
.language-switch {
    flex-shrink: 0;
}

.lang-btn {
    color: #ff4d4d;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s ease;
    display: inline-block;
}

.lang-btn:hover {
    color: #ff6b35;
    text-decoration: underline;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff4d4d, #ff6b35);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    margin-left: 20px;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #000;
}

.btn-link {
    background-color: transparent;
    color: #ff4d4d;
    padding: 0;
    font-size: 14px;
    text-decoration: underline;
}

.btn-link:hover {
    color: #ff3333;
    text-decoration: none;
}

.btn-full {
    width: 100%;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
    z-index: 0;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 77, 77, 0.2), transparent 40%), rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #ddd;
    line-height: 1.5;
}

/* 特性区域样式 */
.features {
    padding: 100px 0;
    background-color: #000;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: #ff4d4d;
}

.features p {
    text-align: center;
    font-size: 18px;
    margin-bottom: 60px;
    color: #ddd;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 77, 77, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff4d4d;
}

.feature-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.feature-item p {
    text-align: left;
    font-size: 16px;
    color: #ddd;
    margin-bottom: 0;
}

/* 户型区域样式 */
.house-types {
    padding: 100px 0;
    background-color: #0a0a0a;
}

.house-types h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: #ff4d4d;
}

.house-types p {
    text-align: center;
    font-size: 18px;
    margin-bottom: 60px;
    color: #ddd;
}

.house-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: stretch;
}

.house-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.house-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 77, 77, 0.2);
}

.house-image {
    background-color: rgba(255, 77, 77, 0.1);
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ff4d4d;
    flex-shrink: 0;
}

.house-image h3 {
    font-size: 48px;
    margin-bottom: 10px;
}

.house-image p {
    font-size: 18px;
    color: #ff4d4d;
    margin-bottom: 0;
}

.house-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.house-info p {
    text-align: left;
    margin-bottom: 15px;
    color: #ddd;
}

.house-info ul {
    list-style: none;
    margin-bottom: 20px;
}

.house-info ul li {
    color: #ddd;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.house-info ul li::before {
    content: "•";
    color: #ff4d4d;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 预约区域样式 */
.booking {
    padding: 100px 0;
    background-color: #000;
}

.booking h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: #ff4d4d;
}

.booking p {
    text-align: center;
    font-size: 18px;
    margin-bottom: 60px;
    color: #ddd;
}

.booking-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4d4d;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.form-group input[type="checkbox"] + label {
    display: inline-block;
    margin-bottom: 0;
    font-size: 14px;
    color: #ddd;
}

.form-group input[type="checkbox"] + label a {
    color: #ff4d4d;
    text-decoration: underline;
}

.form-group input[type="checkbox"] + label a:hover {
    text-decoration: none;
}

/* 页脚样式 */
.footer {
    background-color: #0a0a0a;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ff4d4d;
}

.footer-info p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #ddd;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ff4d4d;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ff4d4d;
}

.footer-social h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ff4d4d;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ff4d4d;
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    color: #666;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-cta {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1200;
}

.floating-cta .cta-btn {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: center;
    font-weight: 600;
}

.floating-cta .cta-btn.primary {
    background: linear-gradient(135deg, #ff4d4d, #ff6b35);
    border-color: transparent;
}

.floating-cta .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(255, 77, 77, 0.25);
    border-color: rgba(255, 255, 255, 0.25);
}

/* 项目介绍页面样式 */
.project-hero,
.house-type-hero,
.booking-hero,
.house-detail-hero,
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), linear-gradient(135deg, #ff4d4d, #ff6b35);
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.project-hero-content h1,
.house-type-hero-content h1,
.booking-hero-content h1,
.house-detail-hero-content h1,
.about-hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
}

.project-hero-content p,
.house-type-hero-content p,
.booking-hero-content p,
.house-detail-hero-content p,
.about-hero-content p {
    font-size: 20px;
    color: #ddd;
}

.project-info,
.booking-form-section,
.house-detail,
.about-company,
.company-history,
.company-values,
.contact-section {
    padding: 50px 0;
    background-color: #000;
}

/* 移除house-features的额外padding，它现在是section内部的div */
.house-features {
    padding: 0;
}

.project-content,
.about-content,
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 500px;
    background-color: rgba(255, 0, 0, 0.2);
    padding: 20px;
    border: 2px solid red;
}

.company-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border: none;
    box-shadow: none;
    visibility: visible !important;
    opacity: 1 !important;
}

.project-text h2,
.project-features h2,
.house-features h2,
.house-detail h2,
.about-text h2,
.company-history h2,
.company-values h2,
.contact-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #ff4d4d;
}

.project-text p,
.about-text p {
    margin-bottom: 20px;
    color: #ddd;
}

.project-features ul,
.house-features ul {
    list-style: none;
    margin-top: 10px;
}

.house-features h3 {
    margin-bottom: 0;
}

.project-features ul li,
.house-features ul li {
    margin-bottom: 20px;
    color: #ddd;
    padding-left: 30px;
    position: relative;
}

.project-features ul li::before,
.house-features ul li::before {
    content: "•";
    color: #ff4d4d;
    position: absolute;
    left: 0;
    font-size: 24px;
    line-height: 1;
    top: 5px;
}

.project-location,
.project-amenities,
.highlight-item,
.booking-section {
    padding: 120px 0;
    background-color: #0a0a0a;
}

.project-location h2,
.project-amenities h2,
.booking-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #ff4d4d;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.location-map {
    height: 400px;
}

.map-placeholder,
.image-placeholder {
    background-color: rgba(255, 77, 77, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ff4d4d;
    border-radius: 10px;
}

.map-placeholder h3,
.image-placeholder h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.map-placeholder p,
.image-placeholder p {
    font-size: 16px;
    color: #ddd;
}

.location-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #fff;
}

.location-info ul {
    list-style: none;
}

.location-info ul li {
    margin-bottom: 20px;
    color: #ddd;
}

.location-info ul li strong {
    color: #ff4d4d;
    margin-right: 10px;
}

.amenities-grid,
.highlights-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    align-items: stretch;
}

.amenity-item,
.highlight-item,
.value-item {
    text-align: center;
    padding: 40px 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.amenity-item:hover,
.highlight-item:hover,
.value-item:hover {
    transform: translateY(-10px);
}

.amenity-icon,
.highlight-icon,
.value-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff4d4d;
}

.amenity-item h3,
.highlight-item h3,
.value-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.amenity-item p,
.highlight-item p,
.value-item p {
    font-size: 16px;
    color: #ddd;
    margin: 0 auto;
    max-width: 100%;
    line-height: 1.8;
}

.highlight-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    display: block;
}

.project-highlights {
    padding: 100px 0 60px;
    background-color: #0a0a0a;
}

.project-highlights h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: #ff4d4d;
}

.project-highlights p {
    text-align: center;
    font-size: 18px;
    margin-bottom: 50px;
    color: #ddd;
}

.booking-section {
    text-align: center;
}

.booking-section h2 {
    margin-bottom: 20px;
}

.booking-section p {
    margin-bottom: 40px;
    font-size: 18px;
    color: #ddd;
}

/* 预约表单页面样式 */
.booking-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.booking-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ff4d4d;
}

.booking-info ul {
    list-style: none;
    margin-bottom: 40px;
}

.booking-info ul li {
    margin-bottom: 20px;
    color: #ddd;
}

.booking-info ul li strong {
    color: #fff;
    margin-right: 10px;
}

.booking-info p {
    margin-bottom: 15px;
    color: #ddd;
}

.booking-info p strong {
    color: #fff;
}

.booking-info p a {
    color: #ff4d4d;
    text-decoration: none;
}

.booking-info p a:hover {
    text-decoration: underline;
}

/* 户型详情页面样式 */
.house-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.house-detail-image {
    height: 500px;
}

.house-detail-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.house-detail-info p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ddd;
}

.house-type-specs {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.spec-item {
    margin-bottom: 15px;
    color: #ddd;
}

.spec-item:last-child {
    margin-bottom: 0;
}

.spec-label {
    font-weight: bold;
    color: #fff;
    margin-right: 10px;
}

.house-booking {
    background-color: rgba(255, 77, 77, 0.1);
    padding: 40px;
    border-radius: 10px;
    margin-top: 60px;
}

.house-booking h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ff4d4d;
}

.house-booking p {
    margin-bottom: 30px;
    color: #ddd;
}

.quick-booking-form {
    max-width: 500px;
}

/* 时间线样式 */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: rgba(255, 77, 77, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #ff4d4d;
    border: 4px solid #ff4d4d;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.05);
    position: relative;
    border-radius: 10px;
}

.timeline-year {
    font-size: 24px;
    font-weight: bold;
    color: #ff4d4d;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.timeline-content p {
    color: #ddd;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav ul li {
        margin: 0 15px;
    }
    
    .hero-content h1,
    .project-hero-content h1,
    .house-type-hero-content h1,
    .booking-hero-content h1,
    .house-detail-hero-content h1,
    .about-hero-content h1 {
        font-size: 36px;
    }
    
    .project-content,
    .about-content,
    .contact-content,
    .booking-form-container,
    .house-detail-main {
        grid-template-columns: 1fr;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    
    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 15px;
    }
}

@media (max-width: 768px) {
    .hero-content h1,
    .project-hero-content h1,
    .house-type-hero-content h1,
    .booking-hero-content h1,
    .house-detail-hero-content h1,
    .about-hero-content h1 {
        font-size: 28px;
    }
    
    .booking h2,
    .features h2,
    .house-types h2,
    .project-location h2,
    .project-amenities h2,
    .project-highlights h2 {
        font-size: 28px;
    }
    
    .hero-content p,
    .project-hero-content p,
    .house-type-hero-content p,
    .booking-hero-content p,
    .house-detail-hero-content p,
    .about-hero-content p,
    .booking p,
    .features p,
    .house-types p,
    .project-highlights p {
        font-size: 16px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .features-grid,
    .house-grid,
    .amenities-grid,
    .highlights-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .project-info,
    .house-features,
    .booking-form-section,
    .house-detail,
    .about-company,
    .company-history,
    .company-values,
    .contact-section {
        padding: 60px 0;
    }
    
    .booking-form,
    .house-booking {
        padding: 30px 20px;
    }

    .floating-cta {
        right: 16px;
        bottom: 16px;
    }
    
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .nav ul li {
        margin: 0 10px;
    }
    
    .nav ul li a {
        font-size: 14px;
    }
    
    .contact a {
        font-size: 16px;
        padding: 8px 16px;
    }
    
    .hero-content h1,
    .project-hero-content h1,
    .house-type-hero-content h1,
    .booking-hero-content h1,
    .house-detail-hero-content h1,
    .about-hero-content h1 {
        font-size: 24px;
    }
    
    .booking h2,
    .features h2,
    .house-types h2,
    .project-location h2,
    .project-amenities h2,
    .project-highlights h2 {
        font-size: 24px;
    }
    
    .container {
        padding: 0 15px;
    }

    .floating-cta {
        right: 12px;
        bottom: 12px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-info h3,
    .footer-links h4,
    .footer-social h4 {
        font-size: 20px;
    }
}