/* 修改通用的 main 選擇器為更具體的類別 */
.home-content {
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 代理人資訊區塊 */
.agent-info {
    width: 100%;
    max-width: 900px;
    margin: 0.5rem auto;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* 裝飾元素 */
.agent-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

/* 個人資料區塊 */
.agent-profile {
    flex: none;
    text-align: center;
    padding: 0;
}

.agent-profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.agent-profile h1 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.agent-profile .title {
    color: #3498db;
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.agent-profile .license {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

/* 聯絡資訊區塊 */
.contact-info {
    flex: none;
    width: 380px;
    padding: 1rem;
    background: #f5f7fa;
    border-radius: 8px;
}

.contact-grid {
    display: grid;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    transition: transform 0.2s;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    color: #3498db;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-item button {
    padding: 0.3rem 0.8rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
    transition: background 0.3s;
}

.contact-item button:hover {
    background: #2980b9;
}

/* LINE 按鈕樣式 */
.line-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: calc(100% - 2rem);
    margin: 1rem 1rem 0;
    padding: 0.7rem;
    background: #00b900;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.line-btn:hover {
    opacity: 0.9;
    color: white;
}

/* 複製按鈕樣式 */
.copy-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.3rem 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #2980b9;
}

/* 物件展示區 */
.featured-properties,
.latest-properties {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.featured-properties h2,
.latest-properties h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
    text-shadow: 
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white,
        0 0 8px rgba(255,255,255,0.8);
    position: relative;
    z-index: 1;
}

.featured-properties h2::after,
.latest-properties h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    position: relative;
    height: 200px;
}

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

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.property-info {
    padding: 1.5rem;
}

.property-info h3 {
    margin: 0 0 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.property-location {
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-price {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.property-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.view-details {
    display: block;
    text-align: center;
    padding: 0.8rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.view-details:hover {
    background: #2980b9;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

.view-all-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.view-all-button:hover {
    background: #34495e;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .agent-info {
        flex-direction: column;
        align-items: center;
        padding: 0.8rem;
        margin: 0;
    }
    
    .contact-info {
        width: 100%;
        max-width: 400px;
        margin-top: 0.5rem;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-properties,
    .latest-properties {
        padding: 1rem;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .line-btn {
        width: 100%;
        margin: 1rem 0 0;
        border-radius: 4px;
    }
}

/* 提示框樣式 */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #2ecc71;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast i {
    font-size: 1.2rem;
}

/* 聯絡資訊連結樣式 */
.contact-link {
    color: inherit;
    text-decoration: none;
    flex: 1;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #3498db;
}

/* 確保連結在 hover 時的顏色變化與整體設計一致 */
.contact-item:hover .contact-link {
    color: #3498db;
} 