/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#citySelect{
    max-height: 500px !important;
}
@media (max-width: 450px) {
    #citySelect {
        width: 300px !important;
        right: 0px;
    }
}


.menu_active{
    border-bottom: 2px solid #fff;
}
.vip_img{
    position: absolute;
    left: 0;
    top: 0;
    width: 60px !important;
    height: 30px !important;
    z-index: 9;
}

/* 房源卡片基础样式 */
.property-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.property-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-info {
    padding: 15px;
}
/* 房源卡片头部：头像、标题和价格 */
.property-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    justify-content: space-between;
}

/* 手机端房源卡片头部布局：头像在左，标题和价格垂直排列 */
@media (max-width: 768px) {
    /* 手机端房源大图高度改为原来的1/3 */
    .main-image-container {
        height: 167px !important;
    }
    .property-card .property-header {
        display: flex;
        align-items: flex-start;
    }
    
    .property-card .property-header > div {
        display: flex;
        flex-direction: column;
    }
    
    .property-card .property-header .price {
        margin-left: 0;
        margin-top: 5px;
    }
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons .contact-button {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    min-width: auto;
}

.action-buttons .contact-button1 {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    min-width: auto;
}


.action-buttons .contact-button:nth-child(1) {
    background-color: #fff;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}
.action-buttons .contact-button1:nth-child(1) {
    background-color: #fff;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.action-buttons .contact-button:nth-child(2) {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}
.action-buttons .contact-button1:nth-child(2) {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

.publisher-info {
    display: block;
    margin-right: 20px;
    margin-left: 15px;
    flex: 1;
}

.publisher-name {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.publish-time {
    margin: 0;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

/* 弹窗遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 联系发布者弹窗 */
.contact-modal {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 弹窗头部 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

/* 关闭图标 */
.close-icon {
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-icon:hover {
    color: #333;
}

/* 复制按钮 */
.copy-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.copy-button:hover {
    background-color: #0056b3;
}

/* 调整联系信息样式 */
.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.wechat-qr {
    text-align: center;
    margin-top: 20px;
}

.property-header .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 10px;
}

.property-header .avatar img {
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.property-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    width: 170px !important;
    height: 25px !important;
    overflow: hidden !important;
}

.property-details {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.property-details .price {
    color: #ff4757;
    font-weight: bold;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* 顶部轮播图容器 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

/* 房源列表页面全局样式 */
.list-page {
    font-size: 16px;
}

/* 房源详情页面样式 */
.property-detail-page,
.rent-detail-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    color: #333;
    font-family: 'Arial', sans-serif;
}

/* 详情页面头部样式 */
.property-detail-page .header-container,
.rent-detail-page .header-container {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 0;
    box-sizing: border-box;
    min-height: 90px;
    z-index: 100;
}

.property-detail-page .carousel-header {
    width: 100%;
    box-sizing: border-box;
}

.property-detail-container,
.rent-detail-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.property-main,
.rent-main {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.property-content,
.rent-content {
    flex: 1;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.property-images {
    margin-bottom: 30px;
}

.main-image-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    flex: 0 0 100px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover {
    border-color: #007bff;
}

.thumbnail.active {
    border-color: #007bff;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-info {
    margin-bottom: 30px;
}

.property-header {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.property-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.property-meta {
    /* 使用默认的block布局，确保meta-section垂直堆叠 */
    /* display: flex;
    flex-wrap: wrap;
    gap: 20px; */
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

.property-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-price {
    font-size: 24px;
    font-weight: bold;
    color: #ff4757;
    margin-bottom: 20px;
}

.property-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #555;
}

.property-description h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px; /* 确保与其他标题保持一致 */
    font-weight: 600;
    color: #333;
}

.property-facilities {
    margin-bottom: 30px;
}

.property-facilities h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.facility-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    font-size: 14px;
    color: #666;
}

.property-sidebar {
    width: 300px;
}

.contact-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #555;
}

.contact-info strong {
    color: #333;
}

.contact-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.contact-button1 {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.contact-button:hover {
    background-color: #0056b3;
}
.contact-button1:hover {
    background-color: #0056b3;
}
/* 房源详情页面新增样式 */
/* 信息分组 */
.meta-section {
    margin-bottom: 25px;
    padding: 20px;
    /* 移除背景色 */
    /* background-color: #f8f9fa; */
    border-radius: 8px;
}

.meta-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px; /* 调整为与房源描述标题一致的大小 */
    font-weight: 600; /* 与房源描述标题保持一致的字重 */
    color: #333;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 每行显示两条数据 */
    gap: 10px 20px; /* 调整间距 */
}

.meta-item {
    margin-bottom: 10px;
    padding: 0;
    background-color: transparent;
}

.meta-label {
    font-weight: bold;
    margin-right: 5px;
}

/* 视频展示 */
.property-videos {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.property-videos h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

.video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.video-item {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
}

.video-item video {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.video-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 通用内容区块 */
.property-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.property-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

/* 可接受入住人群 */
.acceptance-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.acceptance-item {
    padding: 8px 15px;
    background-color: #e9ecef;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

/* 预订渠道 */
.booking-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.channel-item {
    padding: 8px 15px;
    background-color: #e9ecef;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

/* 微信二维码 */
.wechat-qr {
    margin-top: 20px;
    text-align: center;
}

.wechat-qr img {
    border: 2px solid #e9ecef;
    border-radius: 5px;
    margin-bottom: 10px;
}

.wechat-qr p {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .property-main {
        flex-direction: column;
    }
    
    .property-sidebar {
        width: 100%;
    }
    
    .meta-grid {
        grid-template-columns: 1fr;
    }
    
    .video-item {
        min-width: 100%;
    }
    
    .property-title {
        font-size: 24px;
    }
}

.property-map {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.property-map h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.map-container {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
}

/* 登录和注册页面公共样式 */
.login-page,
.register-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    color: #333;
    font-family: 'Arial', sans-serif;
}

/* 登录和注册页面头部样式 */
.login-page .header-container,
.register-page .header-container {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    box-sizing: border-box;
    min-height: 90px;
    z-index: 100;
}

.login-container,
.register-container {
    max-width: 500px;
    margin: 80px 40% 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.login-container {
    margin: 80px 40% 200px;
}

.login-container h2,
.register-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.login-form .form-item,
.register-form .form-item {
    margin-bottom: 20px;
}

.login-form .form-item label,
.register-form .form-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.login-form .form-item input,
.register-form .form-item input {
    width: 100%;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    height: auto;
}

input[type="password"] {
    padding: 12px !important;
}

.login-form .form-item input:focus,
.register-form .form-item input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.captcha-item .captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-item .captcha-container input {
    flex: 1;
    padding: 18px;
}

.captcha-item .captcha-image {
    width: 120px;
    height: 45px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 5px;
    cursor: pointer;
    user-select: none;
}



.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* 登录表单选项样式 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    color: #555;
}

.remember-me input {
    margin-right: 5px;
    width: auto;
}

.forgot-password {
    color: #007bff;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn,
.register-btn {
    width: 100%;
    padding: 14px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover,
.register-btn:hover {
    background-color: #0056b3;
}

.login-link,
.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.login-link a,
.register-link a {
    color: #007bff;
    text-decoration: none;
}

.login-link a:hover,
.register-link a:hover {
    text-decoration: underline;
}

/* 房源列表页面筛选区域样式 */
.list-page .filter-section {
    font-size: 16px;
}

.list-page .filter-item label {
    font-size: 14px !important;
}

.list-page .filter-item select,
.list-page .filter-item input {
    font-size: 14px !important;
}

/* 房源卡片样式 */
.list-page .property-card {
    font-size: 16px;
}

.list-page .property-title {
    /* 去掉了font-size:16px !important */
}

.list-page .property-details {
    /* 去掉了font-size:14px !important */
}

.list-page .property-price {
    font-size: 18px !important;
}

/* 基础头部容器样式 - 列表页和求租页使用 */
.list-page .header-container,
.rent-page .header-container {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    box-sizing: border-box;
    min-height: 90px;
    z-index: 100;
}

/* 首页头部容器样式 */
.home-page .header-container {
    position: relative;
    width: 100%;
}

/* 轮播图下方导航样式 - 默认隐藏，只在手机端显示 */
.home-page .mobile-nav {
    display: none;
    margin: 20px 15px;
    position: relative;
    z-index: auto;
}

/* 手机端媒体查询 - 显示导航菜单 */
@media (max-width: 450px) {
    .home-page .mobile-nav {
        display: block;
    }
}

/* 轮播图头部 */
.carousel-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
}

.logo span {
    font-size: 24px;
    font-weight: bold;
}

/* 三条杠菜单图标 */
.menu-icon {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

/* 轮播图内容 */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播图文字 */
.carousel-text {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-text h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.carousel-text p {
    font-size: 20px;
}

/* 导航菜单弹窗 */
.nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.menu-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

.menu-content ul {
    list-style: none;
}

.menu-content li {
    margin: 20px 0;
    text-align: center;
}

.menu-content a {
    text-decoration: none;
    color: #333;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.3s;
}

.menu-content a:hover {
    color: #007bff;
}

/* 轮播图下方导航（手机端） - 已隐藏 */
.mobile-nav {
    display: none;
    background: #f8f9fa;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mobile-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.mobile-nav li {
    margin: 0 10px;
    white-space: nowrap;
}

.mobile-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-nav a:hover {
    color: #007bff;
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.nav-text {
    font-size: 14px;
}

/* 房源列表区域 */
.property-list {
    padding: 30px 20px;
    max-width: 1920px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 房源卡片链接样式 */
.property-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.property-link:hover {
    text-decoration: none;
    color: inherit;
}

/* 电脑端导航 */
.desktop-nav {
    display: none;
}

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

.desktop-nav li {
    margin: 0 15px;
}

.desktop-nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: #007bff;
}

/* 筛选区域 */
.filter-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
    margin-left: 20px;
    margin-right: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

/* 不再需要filter-dropdown样式，已将国家和城市拆分为独立筛选项 */

select, .date-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
}

/* 区块标题 */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    width: 100%;
}

.filter-btn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.3s;
    max-width: 200px;
    width: 100%;
    box-sizing: border-box;
}

/* 手机端样式已废弃，所有手机端样式请在下方统一的媒体查询中修改 */

.filter-btn-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-left: 0;
    box-sizing: border-box;
}

.filter-btn:hover {
    background: #0056b3;
}

/* 房源列表网格 */
.property-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* 分页控件样式 (电脑端) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 10px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.property-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.property-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-info {
    padding: 15px;
}

.property-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.avatar {
    height: 100%;
    border-radius: 50%;
    margin-right: 10px;
}

.property-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.price {
    color: #e74c3c;
    font-weight: bold;
}

/* 求租板块 */
.rent-request-section {
    margin-top: 30px;
}

.rent-request-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.rent-request-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* 求租详情页面样式 */
.rent-detail-page .rent-title {
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0;
    color: #333;
}

.rent-detail-page .rent-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* 电脑端求租详情页面头像样式 */
.rent-detail-page .rent-header .avatar {
    width: 60px;
    height: 60px;
}

.rent-detail-page .rent-header .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rent-detail-page .rent-info {
    margin-top: 20px;
}

.rent-detail-page .rent-description,
.rent-detail-page .expected-areas {
    line-height: 1.6;
    margin-bottom: 15px;
}

.rent-detail-page .rent-description ul,
.rent-detail-page .expected-areas ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.rent-detail-page .wechat-qrcode {
    margin-top: 10px;
}

.rent-detail-page .wechat-qrcode img {
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
}

.back-to-list {
    margin: 20px auto;
    text-align: center;
    max-width: 1200px;
    padding: 0 20px;
}

.back-to-list .back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-to-list .back-button:hover {
    background-color: #0056b3;
}

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

.rent-request-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rent-request-header .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.nickname {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}
@media (max-width: 450px) {
    .nickname {
        width: 40px;overflow: hidden;
    }
}

.rent-request-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rent-request-content .price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 18px;
}

.location-date-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rent-request-content .location {
    color: #666;
    font-size: 16px;
}

.rent-request-content .date {
    color: #666;
    font-size: 16px;
}

.rent-request-content .description {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* 评论板块 */
.comments-section {
    margin-bottom: 60px;
    text-align: center;
}

.sub-title {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    font-weight: normal;
}

.comments-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 150px;
}

.comment-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.comment-item.active {
    opacity: 1;
}

.comment-text {
    font-size: 20px;
    line-height: 1.8;
    color: #333;
    padding: 20px 40px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #007bff;
    font-style: italic;
}

/* 响应式设计 */

/* 全局box-sizing设置 */
* {
    box-sizing: border-box;
}

/* 手机端样式 (宽度 <= 768px) */
@media (max-width: 768px) {
    /* 确保所有元素使用box-sizing: border-box */
    * {
        box-sizing: border-box;
    }
    .carousel-container {
        height: 200px;
    }

    /* 手机端轮播图文字样式 */
    .carousel-text {
        bottom: 20px;
        left: 0;
        right: 0;
    }
    
    .carousel-text h2 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .carousel-text p {
        font-size: 14px;
    }

    .logo span {
        font-size: 18px;
    }

    .menu-icon {
        display: block;
    }

    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
        margin: 20px 15px;
    }

    .property-list {
        padding: 15px;
        margin: 0;
    }

    .filter-section {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        grid-template-columns: none;
    }

    .filter-item {
        width: 48%;
        margin-bottom: 15px;
        box-sizing: border-box;
    }
    
    /* 手机端筛选按钮样式 */
    .filter-item.filter-btn-container {
        width: 100%;
        margin-bottom: 0;
    }
    
    .filter-btn {
        grid-column: span 1;
        width: 100%;
        margin-top: 10px;
        box-sizing: border-box;
    }
    
    /* 重置select和input宽度，让它们占满filter-item */
    .filter-item select,
    .filter-item input {
        width: 100% !important;
        display: block !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    .filter-dropdown {
        flex-direction: row;
    }

    .filter-btn {
        grid-column: span 1;
    }

    .property-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    /* 手机端房源页面，房源列表左右间距增加20px */
    .list-page .property-grid {
        margin-left: 20px !important;
        margin-right: 20px !important;
        box-sizing: border-box;
    }
    
    /* 手机端房源卡片水平布局：左侧显示房源图片，右侧显示其他内容 */
    .property-card {
        display: flex;
        flex-direction: row;
        height: auto;
    }
    
    /* 确保房源链接也是flex布局，使图片和信息能够在同一行显示 */
    .property-card .property-link {
        display: flex;
        width: 100%;
        height: 100%;
    }
    
    /* 左侧图片区域 */
    .property-card .property-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }
    
    /* 右侧信息区域 */
    .property-card .property-info {
        flex: 1;
        padding: 10px;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }
    
    /* 手机端房源卡片头部布局：头像在左，标题和价格垂直排列 */
    .property-card .property-header {
        display: flex;
        align-items: flex-start;
        margin-bottom: 8px;
    }
    
    .property-card .property-header > div {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    /* 手机端房源卡片价格样式：红色字体，加粗，位于标题下方 */
    .property-card .property-header .price {
        margin-left: 0;
        margin-top: 5px;
        color: #e74c3c;
        font-weight: bold;
        font-size: 16px;
    }
    
    /* 手机端房源卡片详情样式：区域和发布时间在同一行显示 */
    .property-card .property-details {
        display: flex;
        flex-direction: row;
        gap: 15px;
        font-size: 12px;
        color: #666;
    }
    
    /* 确保区域在前，发布时间在后 */
    .property-card .property-details .location {
        order: 1;
    }
    
    .property-card .property-details .date {
        order: 2;
    }
    
    /* 手机端房源详情页：内容区域100%宽度 */
    .property-detail-page .property-detail-container,
.property-detail-page .property-main,
.property-detail-page .property-content,
.rent-detail-page .rent-detail-container,
.rent-detail-page .rent-main,
.rent-detail-page .rent-content {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}
    
    /* 手机端详情页：发布人名字和发布时间在发布人头像右边，操作按钮显示在下方 */
    .property-detail-page .property-header,
    .rent-detail-page .rent-header {
        flex-direction: unset;
        flex-wrap: wrap;
        align-items: center;
    }
    
    /* 确保详情页的发布人信息子元素不会应用不想要的样式 */
    .property-detail-page .property-header > div,
    .rent-detail-page .rent-header > div {
        flex-direction: initial;
    }
    
    .property-detail-page .publisher-info,
    .rent-detail-page .publisher-info {
        margin-right: 0;
        margin-left: 15px;
    }
    
    .property-detail-page .action-buttons,
    .rent-detail-page .action-buttons {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .property-detail-page .action-buttons .contact-button,
    .rent-detail-page .action-buttons .contact-button {
        flex: 1;
        text-align: center;
    }

    .property-detail-page .action-buttons .contact-button1,
    .rent-detail-page .action-buttons .contact-button1 {
        flex: 1;
        text-align: center;
    }
    
    
    /* 手机端详情页：发布者头像样式 */
    .property-detail-page .property-header .avatar,
    .rent-detail-page .rent-header .avatar {
        width: 60px;
        height: 60px;
    }
    
    .property-detail-page .property-header .avatar img,
    .rent-detail-page .rent-header .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* 确保发布人信息显示在头像右边 */
    .property-detail-page .property-header .publisher-info,
    .rent-detail-page .rent-header .publisher-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
    }
    
    /* 调整标题大小 */
    .property-card .property-title {
        font-size: 14px;
        margin: 0 0 8px 0;
    }
    
    /* 调整详情信息 */
    .property-card .property-details {
        font-size: 12px;
        gap: 10px;
    }
    
    /* 手机端求租列表 */
    .rent-request-grid {
    }
    /* 手机端求租页面，租房列表左右间距增加20px */
    .rent-page .rent-request-grid {
        margin-left: 20px;
        margin-right: 20px;
    }


    
    /* 手机端求租卡片水平布局：左侧显示头像和发布人，右侧显示其他内容 */
    .rent-request-card {
        display: flex;
        flex-direction: row;
        padding: 10px;
        align-items: flex-start;
    }
    
    /* 左侧头像和发布人区域 */
    .rent-request-card .rent-request-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-right: 15px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    /* 头像样式 */
    .rent-request-card .rent-request-header .avatar {
        width: 40px;
        height: 40px;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    /* 用户信息样式 */
    .rent-request-card .user-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* 右侧内容区域 */
    .rent-request-card .rent-request-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    /* 调整内容区域文字大小 */
    .rent-request-card .rent-request-content .price {
        font-size: 16px;
    }
    
    .rent-request-card .rent-request-content .location {
        font-size: 14px;
    }
    
    .rent-request-card .rent-request-content .date {
        font-size: 14px;
    }
    
    .rent-request-card .rent-request-content .description {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .rent-request-card .rent-request-content .identity {
        font-size: 12px;
        margin-top: 5px;
    }
    
    .property-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }
    
    .property-info {
        padding: 10px 15px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .property-title {
        font-size: 16px;
        margin: 0;
    }
    
    .property-details {
        font-size: 13px;
    }
}

/* 平板端样式 (宽度 415px - 768px) */
@media (min-width: 415px) and (max-width: 768px) {
    .carousel-container {
        height: 400px;
    }

    .menu-icon {
        display: block;
    }

    .property-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    }
}

/* 电脑端样式 (宽度 > 768px) */
@media (min-width: 769px) {
    .menu-icon {
        display: none;
    }
    
    /* 电脑端筛选条件一行显示4个，包括筛选按钮 */
    .filter-section {
        grid-template-columns: repeat(4, 1fr);
        margin-left: 100px;
        margin-right: 100px;
    }
    
    /* 电脑端筛选按钮样式 */
    .filter-btn {
        grid-column: span 1;
        max-width: none;
        margin: 32px 0 0 0;
        height: 40px;
    }
    
    /* 确保筛选按钮容器与其他筛选项对齐 */
    .filter-btn-container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    /* 电脑端房源列表和求租板块每行显示3个 */
    .property-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    /* 确保房源卡片在电脑端正确显示 */
    .property-card {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .rent-request-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* 电脑端求租页面，租房列表左右间距增加100px */
    .rent-page .rent-request-grid {
        margin-left: 100px;
        margin-right: 100px;
    }
    
    .desktop-nav {
        display: block;
    }
    
    .mobile-nav {
        display: none;
    }
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 10px;
}

.pagination button {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.pagination button:hover {
    background: #e9ecef;
}

.pagination button.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 电报端样式 (宽度 1920px) */
@media (min-width: 1920px) {
    /* 保持房源列表和求租板块每行显示3个 */
    .property-grid,
    .rent-request-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 手机端隐藏分页控件 */
@media (max-width: 414px) {
    .pagination {
        display: none;
    }
}

/* 发布房源页面样式 */
.publish-page {
    background-color: #f5f5f5;
}

.publish-page .header-container,
.publish-rent-page .header-container {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    box-sizing: border-box;
    min-height: 90px;
    z-index: 100;
}

.publish-form-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.publish-form-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.publish-form-container h2 {
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    margin-bottom: 20px;
    color: #555;
    font-size: 18px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-item {
    flex: 1;
    margin-bottom: 20px;
}

.form-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-item input[type="text"],
.form-item input[type="number"],
.form-item input[type="date"],
.form-item select,
.form-item textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-item input[type="text"]:focus,
.form-item input[type="number"]:focus,
.form-item input[type="date"]:focus,
.form-item select:focus,
.form-item textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-item textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.price-input {
    display: flex;
    gap: 10px;
}

.price-input input {
    flex: 2;
}

.price-input select {
    flex: 1;
}

.required {
    color: #ff4757;
}

.hint {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

.next-btn,
.submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.next-btn:hover,
.submit-btn:hover {
    background-color: #45a049;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .publish-form-container {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .price-input {
        flex-direction: column;
    }
}

@media (max-width: 414px) {
    .publish-form-section {
        padding: 10px;
    }
    
    .publish-form-container {
        padding: 15px;
    }
    
    .form-item input[type="text"],
    .form-item input[type="number"],
    .form-item input[type="date"],
    .form-item select,
    .form-item textarea {
        padding: 10px;
    }
    
    .next-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* 上传预览样式 */
.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.uploaded-photo,
.uploaded-video,
.qr-code-preview {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid #eee;
}

.uploaded-video {
    background-color: #000;
}

.qr-code-preview {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    background-color: #fff;
}

.file-upload-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-upload-input {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-btn {
    background-color: #f0f0f0;
    color: #555;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s;
}

.file-upload-btn:hover {
    background-color: #e0e0e0;
}

/* 底部样式 */
.footer-container {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.copyright-info p {
    margin: 0;
    font-size: 14px;
}

.icp-info p {
    margin: 0;
    font-size: 14px;
}

.icp-info a {
    color: #3498db;
    text-decoration: none;
}

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

/* 手机端适配 */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 10px;
    }
    .copyright-info p, .icp-info p {
        font-size: 12px;
    }
    .login-container,
    .register-container {
        margin: 80px 5% 50px;
    }
    
    /* 确保房源详情页面头部和底部在手机端铺满宽度 */
    .property-detail-page .header-container,
    .property-detail-page .carousel-header {
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }
    
    .property-detail-page .footer-container {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* 套餐选择页面样式 */
.package-select-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

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

.page-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.section-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* 套餐卡片样式 */
.package-section {
    margin-bottom: 40px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.package-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.package-card.selected {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.package-header {
    text-align: center;
    margin-bottom: 15px;
}

.package-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.package-price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin: 0;
}

.package-content {
    margin-bottom: 20px;
}

.package-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.package-features {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.package-features li:before {
    content: "✓";
    color: #28a745;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.package-selection {
    text-align: center;
}

.package-selection input[type="radio"] {
    margin-right: 5px;
}

/* 推广卡片样式 */
.promotion-section {
    margin-bottom: 40px;
}

.promotion-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.promotion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-color: #ffc107;
}

.promotion-card.selected {
    border-color: #ffc107;
    background-color: rgba(255, 193, 7, 0.05);
}

.promotion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.promotion-title {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.promotion-price {
    font-size: 24px;
    font-weight: bold;
    color: #ffc107;
    margin: 0;
}

.promotion-content {
    margin-bottom: 20px;
}

.promotion-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.promotion-features {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.promotion-features li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.promotion-features li:before {
    content: "✓";
    color: #ffc107;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.promotion-selection {
    text-align: center;
}

.promotion-selection input[type="checkbox"] {
    margin-right: 5px;
}

/* 总价计算样式 */
.total-price-section {
    margin-bottom: 40px;
}

.total-price-content {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.price-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.price-item.total {
    font-weight: bold;
    font-size: 18px;
    padding-top: 10px;
    border-top: 2px solid #333;
}

.price-label {
    color: #666;
}

.price-value {
    color: #333;
}

.price-value.total {
    color: #e74c3c;
    font-size: 24px;
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.back-button, .submit-button {
    flex: 1;
    min-width: 200px;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border: none;
}

.back-button {
    background-color: #fff;
    color: #666;
    border: 2px solid #e0e0e0;
}

.back-button:hover {
    background-color: #e0e0e0;
    color: #333;
}

.submit-button {
    background-color: #007bff;
    color: #fff;
}

.submit-button:hover {
    background-color: #0056b3;
}

/* 套餐选择页面响应式设计 */
@media (max-width: 768px) {
    .package-select-container {
        margin: 100px auto 30px;
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .promotion-header {
        flex-direction: column;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .back-button, .submit-button {
        width: 100%;
    }
}