/* 中国红主题 - 娜娜-北京四合院 */
:root {
    --primary-red: #c81623; /* 中国红 */
    --dark-red: #a0121a;
    --light-red: #f8e0e0;
    --gold: #d4af37; /* 金色点缀 */
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SimHei', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

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

/* 排版 */
h1, h2, h3, h4 {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    border-left: 4px solid var(--primary-red);
    padding-left: 1rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--dark-red);
}

.btn {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--dark-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.btn-outline:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* 导航栏 */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-red);
}

.logo span {
    color: var(--dark-gray);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: bold;
    color: var(--dark-gray);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-red);
    cursor: pointer;
}

/* 页脚 */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-red);
    padding-left: 1rem;
}

.footer-section p, .footer-section a {
    color: #ccc;
    margin-bottom: 0.5rem;
    /*display: block;*/
}

.footer-section-page a {
    color: #ccc;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--medium-gray);
    color: #aaa;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 6rem 1rem;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #eee;
}

/* 特色区域 */
.features {
    padding: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

/* 房源卡片 */
.listings {
    padding: 3rem 0;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.listing-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.listing-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.listing-content {
    padding: 1.5rem;
}

.listing-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.listing-price {
    color: var(--primary-red);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.listing-location, .listing-size {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

/* 关于页面 */
.about-hero {
    background: linear-gradient(rgba(200, 22, 35, 0.9), rgba(160, 18, 26, 0.9)), url('../images/about-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 3rem;
}

.about-hero h1 {
    color: var(--white);
}

.about-content {
    padding: 3rem 0;
}

.about-section {
    margin-bottom: 3rem;
}

/* 联系页面 */
.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 3rem;
}

.contact-hero h1 {
    color: var(--white);
}

.contact-content {
    padding: 3rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    background-color: var(--primary-red);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
        margin-left: 0;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .btn {
        padding: 10px 20px;
    }
}