/* --- 不動產頁面通用樣式 --- */
.re-container {
    width: 100%;
    margin: 0 auto;
    font-family: "微軟正黑體", "Microsoft JhengHei", sans-serif;
    color: #333;
}

.page-title {
    font-size: 2em;
    color: #c2242d;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

/* --- 主導覽頁 (house.htm) --- */
.re-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.re-nav-card {
    display: block;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.re-nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-color: #c2242d;
}

.re-nav-card .card-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.re-nav-card h2 {
    font-size: 1.5em;
    color: #c2242d;
    margin: 0 0 10px 0;
}

.re-nav-card p {
    font-size: 1em;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* --- 公告列表頁 (house1.htm etc.) --- */
.update-date {
    text-align: center;
    color: #888;
    margin-top: -20px;
    margin-bottom: 40px;
}

.no-data-message {
    text-align: center;
    padding: 50px 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
}
.no-data-message p {
    font-size: 1.5em;
    color: #777;
    margin: 0;
}
.no-data-message small {
    display: block;
    margin-top: 10px;
    color: #999;
}

/* --- 響應式表格 --- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
    border-radius: 8px;
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* 確保表格內容不會過度擠壓 */
}
th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
thead th {
    background-color: #f5f5f5;
    font-weight: bold;
}
tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.styled-button {
    display: inline-block;
    padding: 5px 15px;
    background-color: #c2242d;
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    border-radius: 5px;
}

/* RWD */
@media (max-width: 768px) {
    .page-title { font-size: 1.6em; }
}