/* Hero 區塊 */
    .agency-container .hero-section {
        padding: 2.5rem 0 0 0;
        position: relative;
        overflow: hidden;
    }
    .agency-container .hero-left {
        background-color: rgba(255, 255, 255, 0.8);
        opacity: 0;
        transform: translateY(-40px);
        transition: opacity 2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .agency-container .hero-left.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .agency-container .hero-left .line-1 {
        font-size: 0.9375rem;
    }
    .agency-container .hero-left .line-1 a {
        color: var(--red-main);
        font-weight: bold;
    }
    .agency-container .hero-left .line-2 {
        font-size: 3.75rem;
        font-weight: bold;
        padding: 15px 0;
        line-height: 1.4;
    }
    .agency-container .hero-left .line-3 {
        font-size: 1.875rem;
        font-weight: bold;
        line-height: 1.5;
        padding-bottom: 0.5rem;
    }
    .agency-container .hero-left .line-4 {
        font-size: 1rem;
        line-height: 1.7;
    }
    .agency-container .hero-left .check-list { 
        list-style: none; 
        padding-left: 0; 
        margin-top: 1.25rem; 
        font-size: 1rem; 
        gap: 20px;
    }
    .agency-container .hero-left .check-list i { 
        color: #039A17;
        margin-right: 0.2rem; 
    }
    /* ================= Hero 区域带边框的电话框样式 ================= */
    .agency-container .hero-left .cta-phone-box {
        padding: 0.6rem 1.2rem;
    }
    .agency-container .hero-left .cta-phone-text {
        color: #555;
        margin-bottom: 0.2rem;
    }
    .agency-container .hero-left .cta-phone-number {
        font-size: 1.75rem;
        font-weight: bold;
        color: var(--red-main);
        line-height: 1.1;
        display: flex;
        align-items: center;
    }
    .agency-container .hero-left .cta-phone-number i {
        font-size: 1.25rem;
        margin-bottom: 2px;
    }
    /* 用CSS畫背景建築線條的錯覺 */
    .hero-bg-lines {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: url('../img/agency/top-bg-2.png');
        background-size: cover;
        z-index: 0;
    }
    .finance-hero-bg-lines {
        background: url('../img/finance/financing-top-bg-2.jpg');
        background-size: cover;
    }
    .hero-content { position: relative; z-index: 1; }
    .agency-container .hero-img-card {
        background: url(../img/agency/top-img-01.jpg) no-repeat;
        background-position: center;
        background-size: cover;
        border-radius: 3rem 1.2rem 3rem 1.2rem;
        padding: 2rem;
        padding-top: 6rem;
        color: #fff;
        position: relative;
        opacity: 0;
        transform: translateX(60px);
        transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .agency-container .finance-hero-img-card {
        background: url(../img/finance/top-img-02.jpg) no-repeat;
        background-position: center;
        background-size: cover;
    }
    .agency-container .hero-img-card.is-visible {
        opacity: 1;
        transform: translateX(0);
    }
    .agency-container .hero-img-card .line-1 {
        color: #f3d89e;
        font-size: 0.9375rem;
    }
    .agency-container .hero-img-card .line-2 {
        color: #fff;
        font-size: 1.25rem;
        font-weight: bold;
    }
    .agency-container .hero-img-card .line-3 {
        color: #fff;
        font-size: 2.5rem;
        font-weight: bold;
        line-height: 1.4;
    }
    .agency-container .hero-img-card .line-4 {
        color: #fff;
        font-size: 1.875rem;
        line-height: 1;
    }
    .agency-container .hero-img-card .row {
        margin: 0 -0.5rem;
    }
    .agency-container .hero-img-card [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .agency-container .hero-img-card .hero-stat-box {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 0.625rem;
        padding: 0.8rem;
        height: 100%;
    }
    .agency-container .hero-img-card .hero-stat-box h3 {
        font-size: 1.125rem;
        margin-bottom: 0.3rem;
    }
    .agency-container .hero-img-card .hero-stat-box h3 > span {
        font-size: 1.875rem;
        color: #FFC7B3;
        padding-right: 0.3rem;
    }
    .agency-container .hero-img-card .hero-stat-box p {
        font-size: 1.063rem;
        margin: 0;
    }
    .agency-container .hero-img-card .hero-stat-box p.fs {
        font-size: 1rem;
    }

/* 委託什麼區塊 */
    .nextMove-section {
        margin-top: 3rem;
        padding: 2rem 0 1rem;
        position: relative;
        overflow: hidden;
    }
    .nextMove-section .nextMove-bg-lines {
        position: absolute;
        background: url(../img/agency/area02-bg.png) no-repeat;
        background-position: center;
        background-size: cover;
        z-index: 0;
        inset: 0;
        transform: translate(-6%, -8%) scale(1.2);
        transform-origin: center;
    }
    .nextMove-section .nextMove-bg-lines-finance {
        background: url(../img/finance/financing-area02-bg.jpg) no-repeat;
        background-position: center;
        background-size: cover;
    }
    .nextMove-section .nextMove-content {
        position: relative;
        z-index: 1;
    }
    .nextMove-section .filter-btn-group .btn { 
        margin-right: 10px; 
        border-radius: 1.25rem; 
        font-size: 1.0625rem; 
        padding: 0.4rem 1.8rem;
        border: 1px solid #D8D8D8;
    }
    .nextMove-section .filter-btn-group {
        display: flex;
        flex-wrap: nowrap; 
        overflow-x: auto;           /* 超出部分横向滚动 */
        -webkit-overflow-scrolling: touch; /* 优化 iOS 滑动体验 */
        padding-bottom: 0.5rem;
        scrollbar-width: none;      /* Firefox 隐藏滚动条 */
    }
    /* 隐藏 Chrome/Safari 的滚动条，让视觉更干净 */
    .nextMove-section .filter-btn-group::-webkit-scrollbar {
        display: none; 
    }
    
    .nextMove-section .filter-btn-group .btn { 
        flex-shrink: 0; 
        margin-right: 10px; 
        border-radius: 1.25rem; 
        font-size: 1.0625rem; 
        padding: 0.4rem 1.8rem;
        border: 1px solid #D8D8D8;
        background: #fff;
        color: #333;
    }
    .nextMove-section .filter-btn-group .btn.active { 
        background-color: var(--red-main); 
        color: #fff; 
        border-color: var(--red-main);
    }
    .nextMove-section [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .nextMove-section .task-card {
        border: none;
        border-radius: 1rem;
        height: 100%;
    }
    .nextMove-section .task-card a {
        display: block;
        height: 100%;
        border-radius: 1rem;
        color: inherit; 
    }
    .nextMove-section .task-card a:hover { 
        text-decoration: none;
        border-radius: 1rem;
    }
    .nextMove-section .task-card .card-body { 
        padding: 1.25rem; 
        padding-top: 2.2rem;
    }
    .nextMove-section .task-card h5 { 
        font-weight: bold; 
        font-size: 1.25rem; 
        margin-bottom: 0.6rem; 
        position: relative;
        color: #333;
    }
    .nextMove-section .task-card h5:before { 
        content: '';
        position: absolute;
        left: 0;
        top: -0.8rem;
        width: 2.4rem;
        height: 3px;
        border-radius: 2px;
        z-index: 1;
        background: var(--gold-main);
    }
    .nextMove-section .task-card p { 
        font-size: 1rem; 
        color: #555; 
        margin-bottom: 0.6rem;
        line-height: 1.4;
    }
    .nextMove-section .task-card .tag { 
        font-size: 0.9375rem; 
        color: #9D7A31; 
        font-weight: 500;
    }

/* 優勢區塊 */
    .exclusive-section .left-box h5 {
        font-size: 1.5rem;
        font-weight: bold;
    }
    .exclusive-section .left-box p {
        font-size: 1.125rem;
        color: #555;
    }
    .exclusive-section .reveal-group a {
        color: #333;
    }
    .exclusive-section .advantage-box {
        border: 1px solid #D9D9D9;
        border-radius: 0.75rem;
        padding: 1rem;
        height: 100%;
        position: relative;
    }
    .exclusive-section .right-box [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .exclusive-section .advantage-number {
        font-size: 2.5rem;
        color: var(--gold-main);
        font-weight: bold;
        margin-bottom: 10px;
        line-height: 1;
        opacity: 0.6;
        font-family: Arial;
    }
    .exclusive-section .advantage-box h5 { 
        font-weight: bold; 
        font-size: 1.25rem;
        margin-bottom: 0.5rem; 
        line-height: 1.4;
    }
    .exclusive-section .advantage-box p { 
        font-size: 1rem; 
        color: #555; 
        margin: 0;
    }
    .exclusive-section .advantage-box p.beforelink {
        padding-bottom: 2rem;
    }
    .exclusive-section .advantage-box .consult {
        font-size: 0.9375rem;
        color: #9D7A31;
        font-weight: 500;
        position: absolute;
        left: 1rem;
        right: 1rem;
        width: auto;
        bottom: 1rem;
    }

/* 連結服務與流程 */
    .progress-section {
        padding: 2rem 0 1rem;
        position: relative;
        overflow: hidden;
    }
    .progress-section .progress-bg-lines {
        position: absolute;
        background: url(../img/agency/area04-bg.jpg) no-repeat;
        background-position: center;
        background-size: cover;
        z-index: 0;
        inset: 0;
        transform: translate(0, 0) scale(1);
        transform-origin: center;
    }
    .progress-section .progress-bg-lines-finance {
        background: url(../img/finance/financing-area04-bg.jpg) no-repeat;
        background-position: center;
        background-size: cover;
    }
    .progress-section .progress-content {
        position: relative;
        z-index: 1;
    }
    .progress-section [class*="col-"] a:hover {
        text-decoration: none;
    }
    .progress-section .service-big-card {
        background-color: #fff;
        border: 1px solid #eee;
        border-radius: 15px;
        padding: 1.25rem 1rem;
        height: 100%;
        position: relative;
    }
    .progress-section .service-big-card:hover {
        cursor: pointer;
    }
    .progress-section .service-big-card .mygotitle {
        color: #634C1E;
        font-size: 1.125rem;
    }
    .progress-section .service-big-card h5 { 
        font-weight: bold; 
        font-size: 1.5rem; 
        color: #333;
    }
    .progress-section .service-big-card .maintext {
        font-size: 1.125rem;
        color: #555;
    }
    .progress-section .service-big-card .link {
        text-align: right;
        color: var(--red-main);
        font-size: 1rem;
        position: absolute;
        right: 1rem;
        bottom: 1.25rem;
    }
    .progress-section .service-big-card .link-copy {
        opacity: 0;
        margin: 0;
    }
    .progress-section .demand {
        color: var(--red-main);
        font-size: 1rem;
    }
    .progress-section .step-flow {
        position: relative;
        margin-top: 40px;
    }
    .progress-section .step-flow {
        margin: 0 -0.5rem;
    }
    .progress-section .step-flow [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .progress-section .step-item {
        text-align: left;
        padding: 1.25rem;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 1));
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        height: 100%;
        position: relative;
    }
    .progress-section .step-item:before {
        content: "";
        width: 100%;
        width: calc(100% - 5.125rem);
        height: 1px;
        border-top: 1.5px dashed var(--gold-main);
        position: absolute;
        left: 4rem;
        top: 2.625rem;
        z-index: 1;
    }
    .progress-section .step-item .step-num {
        display: inline-block;
        width: 2.625rem; 
        height: 2.625rem;
        line-height: 2.625rem;
        text-align: center;
        border-radius: 50%;
        background-color: #fff;
        color: var(--gold-main);
        font-weight: bold;
        margin-bottom: 15px;
        font-size: 1.625rem;
        font-family: Arial;
    }
    .progress-section .step-item h6 {
        font-size: 1.25rem;
        font-weight: bold;
    }
    .progress-section .step-item p {
        font-size: 1rem;
        color: #555;
    }

/* 專業仲介區塊 (黑底) */
    .pro-section {
        background-color: #202425;
        color: #fff;
        padding: 4rem 0;
        position: relative;
        overflow-x: hidden;
    }
    .pro-section .pro-bg-lines {
        position: absolute;
        z-index: 0;
        inset: 0;
    }
    .pro-section .pro-bg-lines .left-bg {
        position: absolute;
        background: url(../img/agency/area05-bg.jpg) no-repeat;
        background-position: center;
        background-size: cover;
        inset: 0;
        transform: translate(-5%, -5%) scale(1.1);
        transform-origin: center;
    }
    .pro-section .line-1 { 
        color: var(--gold-main); 
        font-size: 1rem; 
    }
    .pro-section .line-2 { 
        font-size: 1rem; 
    }
    .pro-section .line-3 { 
        font-size: 2.5rem; 
        line-height: 1.5;
        font-weight: bold;
        padding: 5px 0;
    }
    .pro-section .line-4 { 
        font-size: 1.125rem; 
    }
    .pro-section .line-5 { 
        font-size: 1.0625rem; 
    }
    .pro-section .btn-brand {
        font-size: 1.0625rem;
    }
    .pro-section .pro-feature-list [class*="col-"] {
        border-left: 1px solid var(--gold-main);
    }
    .pro-section .pro-feature-list h5 { 
        color: var(--gold-main); 
        font-weight: bold; 
        font-size: 1.25rem;
        margin-bottom: 0.8rem;
    }
    .pro-section .pro-feature-list p { 
        font-size: 1rem;
        margin: 0;
        line-height: 1.6;
    }
    .pro-section .pro-contact .cta-phone {
        font-size: 1.875rem;
        font-weight: 600;
        font-family: Arial;
        color: var(--gold-main);
    }

/* FAQ 手風琴 */
    .FAQ-section .section-title {
        border-bottom: 1px solid #eee;
    }
    .FAQ-section .accordion .card {
        border: none;
        border-bottom: 1px solid #eee;
        border-radius: 0 !important;
        margin-bottom: 0;
    }
    .FAQ-section .accordion .card-header {
        background-color: transparent;
        border-bottom: none;
        padding: 1rem 0;
    }
    .FAQ-section .accordion .btn-link {
        color: #333;
        font-weight: bold;
        text-decoration: none;
        padding: 0;
        font-size: 1.25rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
    }
    .FAQ-section .accordion .btn-link::after {
        content: '\e600';
        font-family: "iconfont";
        font-size: 0.8rem;
        color: #777777;
        transition: transform 0.3s;
    }
    .FAQ-section .accordion .btn-link {
        color: #333;
        font-weight: bold;
        text-decoration: none;
        padding: 0;
        padding-right: 2rem; 
        font-size: 1.25rem;
        display: block;            
        width: 100%;
        white-space: normal;      
        word-break: break-word;   
        text-align: left;          
        position: relative;        
        line-height: 1.5;
    }
    
    .FAQ-section .accordion .btn-link::after {
        content: '\e600';
        font-family: "iconfont";
        font-size: 0.8rem;
        color: #777777;
        transition: transform 0.3s;
        position: absolute; 
        right: 0;                  
        top: 50%;                  
        transform: translateY(-50%); 
    }
    
    .FAQ-section .accordion .btn-link[aria-expanded="true"]::after {
        transform: translateY(-50%) rotate(180deg); 
    }
    .FAQ-section .accordion .card-body { 
        padding: 0 0 1rem 0; 
        color: #666; 
        font-size: 1rem;
    }
    .FAQ-section .link a {
        color: var(--red-main);
        font-size: 1rem;
        text-align: right;
    }
    .FAQ-section .contact-box .solid {
        font-size: 1.0625rem;
        font-weight: bold;
    }
    .FAQ-section .contact-box .solid:before {
        content: "";
        width: 0.4rem;
        height: 0.4rem;
        border-radius: 50%;
        background: var(--gold-main);
        margin-right: 0.4rem;
        display: inline-block;
        vertical-align: middle;
        margin-bottom: 0.2rem;
    }
    .FAQ-section .contact-box .solid ~ .row {
        margin: 0 -0.5rem;
    }
    .FAQ-section .contact-box .solid ~ .row [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .FAQ-section .contact-phone,
    .FAQ-section .contact-phone a {
        font-size: 1.875rem;
        font-weight: 600;
        padding-left: 0.8rem;
        font-family: Arial;
        color: #B20000;
    }
    .FAQ-section .contact-phone a[href^="tel"] {
      color: #B20000;
      text-decoration: none;
    }    

    /* ================= 仲介合作彈窗專屬 ================= */
    .agency-container .partner-prep-list > div {
        background: #f8f9fa;
        padding: 0.8rem 1rem;
        border-radius: 0.5rem;
        font-size: 1.05rem;
    }
    .agency-container .partner-prep-list > div span:first-child {
        color: var(--red-main);
        font-weight: bold;
        margin-right: 1rem;
    }

    /* 調整彈窗寬度與圓角 */
    .agency-container .agency-partner-modal .modal-dialog {
        max-width: 32rem;
    }
    .agency-container .agency-partner-modal .modal-content {
        border-radius: 1rem;
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        overflow: hidden; /* 確保 1rem 圓角不被內部元素遮擋 */
    }

    /* Header 文字顏色採用 .section-text-brand 的樣式 */
    .agency-container .agency-partner-modal .modal-title {
        color: #af8835;
        font-family: Arial, sans-serif;
        font-size: 1rem;
    }

    .agency-container .agency-partner-modal .btn {
        padding: 0.8rem;
        font-size: 1.05rem;
    }
        
@media (max-width: 991.98px) {
    .pro-section .col-lg-5,
    .pro-section .col-lg-6.offset-lg-1 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pro-section .col-lg-6.offset-lg-1.pl-5 {
        margin-left: 0;
        padding-left: 15px !important; 
        padding-right: 15px !important;
        margin-top: 0; 
    }
    .pro-section .pro-feature-list {
        padding: 0 1rem;
    }
    .pro-section .pro-feature-list > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        border-left: none; 
        border-top: 1px solid var(--gold-main); 
        padding-top: 1.5rem;
        padding-left: 0; 
        padding-right: 0;
        margin-bottom: 1.5rem !important; 
    }
    .pro-section .pro-feature-list > [class*="col-"]:first-child {
        border-top: none;
        padding-top: 0;
    }
    .pro-section .pro-contact {
        border-top: 1px solid var(--gold-main); 
        padding-top: 1.5rem;
    }
    .pro-section .pro-bg-lines {
        display: block !important;
        margin: 0 !important;
    }
    .pro-section .pro-bg-lines .left-bg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important; /* 关键：干掉 Bootstrap 50% 的宽度限制 */
        height: 50% !important;     /* 占据上半部 */
        inset: 0 0 auto 0 !important; /* 清除原大屏的 inset 设置 */
        transform: none !important;   /* 清除放大效果 */
        background-size: cover;
        background-position: center top;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    }
    .pro-section .pro-bg-lines .right-bg {
        position: absolute !important;
        top: 50% !important; 
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 50% !important;
        inset: auto 0 0 0 !important;
        background-color: #2b2b2b !important;
    }


    .agency-container .footer {
        padding: 2.5rem 0 1.5rem;
    }
    .agency-container .footer .col-12 {
        margin-bottom: 1.8rem !important; 
    }
    .agency-container .footer .col-12:last-child {
        margin-bottom: 0 !important;
    }
    .agency-container .footer h6.mb-5 {
        margin-bottom: 1.5rem !important; 
    }
}

@media(max-width:767px) {
    .section-title {
        font-size: 2rem;
        font-weight: bold;
        line-height: 1.4;
    }
    .section-subtitle-1 {
        font-size: 1.375rem;
        font-weight: 600;
    }
    .agency-container .hero-left .line-2 {
        font-size: 3rem;
        font-weight: 700;
    }
    .agency-container .hero-left .line-3 {
        font-size: 1.675rem;
        font-weight: 600;
    }
    .agency-container .hero-left .line-4 {
        font-size: 1.063rem;
    }
    .agency-container .hero-left button {
        width: 100%;
        margin-right: 0;
    }
    .agency-container .hero-img-card .line-3 {
        font-size: 2rem;
    }
    .agency-container .hero-img-card .line-4 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    .exclusive-section .left-box h5 {
        font-size: 1.375rem;
        font-weight: bold;
    }
    .pro-section .btn-brand {
        width: 100%;
    }
    .FAQ-section .btn-brand {
        width: 100%;
    }
}