:root {
            --primary: #2c3e50;
            --primary-dark: #1a252f;
            --secondary: #95a5a6;
            --accent: #e74c3c;
            --accent-dark: #c0392b;
            --light: #ecf0f1;
            --dark: #2c3e50;
            --success: #27ae60;
            --info: #3498db;
            --warning: #f39c12;
            --border-radius: 6px;
            --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
            --max-width: 1200px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Noto Sans TC', 'Roboto', sans-serif;
            color: #333;
            line-height: 1.6;
            background-color: #f5f7fa;
        }
        
        a {
            text-decoration: none;
            color: inherit;
            transition: var(--transition);
        }
        
        a:hover {
            color: var(--accent);
        }
        
        .container {
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* 頂部導航欄 */
        .top-bar {
            background-color: var(--primary);
            color: white;
            padding: 10px 0;
            font-size: 0.9rem;
        }
        
        .top-bar .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            
        }
        
        .top-bar-links {
            display: flex;
            gap: 20px;
            flex-wrap: wrap; /* 加上這行 */
            
        }
        
        .top-bar-links a {
            color: white;
            display: flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap; /* 避免斷行 */
        }
        
        .top-bar-links a:hover {
            color: var(--light);
        }
        
        /* 主導航 */
        .main-nav {
            background-color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .main-nav .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .logo img {
            height: 40px;
        }
        
        .logo span {
            color: var(--accent);
        }
        
        .nav-links {
            display: flex;
            gap: 25px;
        }
        
        .nav-links a {
            font-weight: 500;
            color: var(--dark);
            position: relative;
            padding: 5px 0;
        }
        
        .nav-links a:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--accent);
            transition: var(--transition);
        }
        
        .nav-links a:hover:after,
        .nav-links a.active:after {
            width: 100%;
        }
        
        .nav-actions {
            display: flex;
            gap: 15px;
            align-items: center;
        }
        
        .btn {
            display: inline-block;
            padding: 10px 20px;
            border-radius: var(--border-radius);
            font-weight: 500;
            text-align: center;
            transition: var(--transition);
            cursor: pointer;
            border: none;
        }
        
        .btn-primary {
            background-color: var(--accent);
            color: white;
        }
        
        .btn-primary:hover {
            background-color: var(--accent-dark);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
        }
        
        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--accent);
            color: var(--accent);
        }
        
        .btn-outline:hover {
            background-color: var(--accent);
            color: white;
        }
        
        /* 英雄區域 */
        .hero {
            background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), 
                        url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 100px 0;
            text-align: center;
        }
        
        .hero h1 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            font-weight: 700;
        }
        
        .hero p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 30px;
        }
        
       
        /* 特色服務 */
        .features {
            padding: 80px 0;
            background-color: white;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .section-title h2 {
            font-size: 2rem;
            color: var(--primary);
            position: relative;
            display: inline-block;
            padding-bottom: 15px;
        }
        
        .section-title h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background-color: var(--accent);
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }
        
        .feature-card {
            text-align: center;
            padding: 30px 20px;
            border-radius: var(--border-radius);
            transition: var(--transition);
            background-color: var(--light);
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--box-shadow);
        }
        
        .feature-icon {
            font-size: 2.5rem;
            color: var(--accent);
            margin-bottom: 20px;
        }
        
        .feature-card h3 {
            margin-bottom: 15px;
            color: var(--primary);
        }
        
        /* 熱門物件 */
        .featured-properties {
            padding: 80px 0;
            background-color: #f5f7fa;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }
        
        .view-all {
            display: flex;
            align-items: center;
            gap: 5px;
            color: var(--accent);
            font-weight: 500;
        }
        
        .properties-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
        }
        
        .property-card {
            background-color: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--box-shadow);
            transition: var(--transition);
        }
        
        .property-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }
        
        .property-media {
            position: relative;
            height: 250px;
            overflow: hidden;
        }
        
        .swiper {
            width: 100%;
            height: 100%;
        }
        
        .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .property-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background-color: var(--accent);
            color: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            z-index: 10;
        }
        
        .property-favorite {
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--secondary);
            cursor: pointer;
            z-index: 10;
            transition: var(--transition);
        }
        
        .property-favorite:hover,
        .property-favorite.active {
            color: var(--accent);
        }
        
        .property-details {
            padding: 20px;
        }
        
        .property-price {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 10px;
        }
        
        .property-price span {
            font-size: 1rem;
            color: var(--secondary);
            font-weight: 400;
        }
        
        .property-title {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: var(--primary);
        }
        
        .property-address {
            color: var(--secondary);
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .property-features {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }
        
        .property-feature {
            display: flex;
            align-items: center;
            gap: 5px;
            color: var(--secondary);
            font-size: 0.9rem;
        }
        
      
        
        /* 行動呼籲 */
        .cta {
            background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), 
                        url('https://images.unsplash.com/photo-1560520031-3a4dc4e9de0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 100px 0;
            text-align: center;
        }
        
        .cta h2 {
            font-size: 2rem;
            margin-bottom: 20px;
        }
        
        .cta p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 30px;
        }
        
        .cta-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        
        /* 頁尾 */
        .footer {
            background-color: var(--primary-dark);
            color: white;
            padding: 60px 0 0;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }
        
        .footer-logo {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 20px;
            display: inline-block;
        }
        
        .footer-logo span {
            color: var(--accent);
        }
        
        .footer-about p {
            margin-bottom: 20px;
            opacity: 0.8;
        }
        
        .footer-social {
            display: flex;
            gap: 15px;
        }
        
        .footer-social a {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }
        
        .footer-social a:hover {
            background-color: var(--accent);
            transform: translateY(-3px);
        }
        
        .footer-title {
            font-size: 1.2rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background-color: var(--accent);
        }
        
        .footer-links li {
            margin-bottom: 10px;
            list-style: none;
        }
        
        .footer-links a {
            opacity: 0.8;
            transition: var(--transition);
        }
        
        .footer-links a:hover {
            opacity: 1;
            color: var(--accent);
            padding-left: 5px;
        }
        
        .footer-contact p {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 15px;
            opacity: 0.8;
        }
        
        .footer-contact i {
            color: var(--accent);
            margin-top: 3px;
        }
        
        .footer-bottom {
            background-color: rgba(0, 0, 0, 0.2);
            padding: 20px 0;
            text-align: center;
            font-size: 0.9rem;
            opacity: 0.8;
        }
        .property-card {
            position: relative; /* 確保連結可以正確定位 */
        }
        
        .property-link {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1; /* 確保連結在適當的層級 */
            opacity: 0; /* 保持透明不影響視覺 */
        }


        

        .container-houser {
            max-width: 1140px;
            margin: 40px auto;
            padding: 40px 30px;
            background: #fff;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            border-radius: 16px;
            font-family: "Segoe UI", "Helvetica Neue", sans-serif;
            color: #333;
            line-height: 1.8;
        }
        
        .container-houser h1 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 20px;
            color: #222;
            border-bottom: 2px solid #eee;
            padding-bottom: 10px;
        }
        
        .container-houser h2 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-top: 30px;
            margin-bottom: 15px;
            color: #444;
        }
        
        .container-houser p {
            font-size: 1rem;
            margin-bottom: 1.2em;
        }
        
        .container-houser ul {
            padding-left: 1.2em;
            list-style: none;
        }
        
        .container-houser ul li {
            position: relative;
            padding-left: 1.8em;
            margin-bottom: 12px;
            font-size: 1rem;
        }
        
        .container-houser ul li::before {
            content: '✔️';
            position: absolute;
            left: 0;
            top: 0;
            font-size: 1rem;
            color: #4CAF50;
        }
        
        .container-houser a {
            color: #0077cc;
            font-weight: 600;
            text-decoration: none;
        }
        
        .container-houser form {
            display: flex;
            flex-direction: column;
            gap: 16px;       /* 表單元素間距開大 */
            padding: 20px;   /* 表單內邊距 */
            max-width: 560px;
            margin: auto;
            background-color: #f9faff; /* 淡淡底色讓表單更清爽 */
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }
        .container-houser h2 {
          margin-bottom: 24px;
          font-weight: 700;
          color: #333;
        }
        
        .container-houser label {
            font-weight: 600;
            color: #444;
        }
        
        .container-houser input,
        .container-houser select {
            padding: 10px 12px;
            font-size: 1rem;
            border: 1.5px solid #ccc;
            border-radius: 6px;
            transition: border-color 0.3s ease;
        }
        
        .container-houser input:focus,
        .container-houser select:focus {
            border-color: #7f9de8;
            outline: none;
        }
        
        .container-houser .btn {
            padding: 10px 20px;
            background-color: #a3c2f7;
            color: #333;
            font-size: 1rem;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease;
            box-shadow: 0 4px 12px rgba(163, 194, 247, 0.4);
        }
        
        .container-houser .btn:hover {
            background-color: #7f9de8;
            transform: translateY(-2px);
        }
        
        .container-houser .btn:active {
            background-color: #5f7ccf;
            transform: translateY(0);
        }
        
        /* 表格樣式：呼應 container-houser 設計 */
        .container-houser table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 24px;
            background-color: #fff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            font-size: 1rem;
            color: #333;
        }
        
        .container-houser th,
        .container-houser td {
            padding: 14px 16px;
            border-bottom: 1px solid #eaeaea;
            text-align: center;
        }
        
        .container-houser th {
            background-color: #7f9de8;
            color: #fff;
            font-weight: 600;
            text-transform: uppercase;
        }
        
        .container-houser tr:nth-child(even) {
            background-color: #f9faff;
        }
        
        .container-houser tr:hover {
            background-color: #eef3fd;
        }
        
        /* 按鈕群組設計，符合柔和風格 */
        .container-houser .btn-group button {
            padding: 10px 18px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.95rem;
            font-weight: 600;
            color: #fff;
            margin: 4px;
            transition: background-color 0.3s ease, transform 0.2s ease;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }
        
        .container-houser .btn-group button:hover {
            transform: translateY(-2px);
            opacity: 0.95;
        }
        
        .container-houser .approve-btn {
            background-color: #4caf50;
        }
        
        .container-houser .reject-btn {
            background-color: #f44336;
        }
        
        .container-houser .save-btn {
            background-color: #ff9800;
        }


   
        
        /* ==========================================
   響應式設計合併版 (從大到小)
   ========================================== */

/* 1. 平板與中螢幕 (992px 以下) */
@media (max-width: 992px) {
    .main-nav .container {
        flex-direction: column;
        gap: 15px;
    }

    /* 統計卡片變兩列 */
    .main-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .hero {
        padding: 80px 0;
    }

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

    /* 確保導航在靜態位置，防止手機版位移 */
    nav, .main-nav {
        position: relative !important; /* 修正原本 static 可能導致的層級問題 */
    }
}

/* 2. 標準手機版 (768px 以下) - 這是最關鍵的部分 */
@media (max-width: 768px) {
    /* 漢堡選單邏輯：預設隱藏，點擊顯示 */
    .nav-links {
        display: none; 
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 100%; /* 從導航列底部開始 */
        left: 0;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
        font-size: 1rem; /* 恢復正常字體，不要用 0.5rem */
    }

    .nav-links.active {
        display: flex; /* 當 JS 切換時顯示 */
    }

    /* 漢堡按鈕顯示 */
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .bar {
        width: 25px;
        height: 3px;
        background: #333;
        margin: 5px auto;
        display: block;
    }

    /* 統計卡片變單列 */
    .main-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    /* 表單與網格轉為垂直堆疊 */
    .filter-form, 
    .properties-grid,
    .cta-buttons {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* 3. 小型手機 (576px 以下) */
@media (max-width: 576px) {
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero {
        padding: 60px 0;
    }

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

    .hero p {
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }
}