/* Comparison Section */
.comparison-container {
    width: 100%;
}

.comparison-container .section-title {
    margin-bottom: 60px;
}

.comparison-table-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.comparison-table {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(244, 128, 36, 0.15);
}

.comparison-header {
    display: grid;
    grid-template-columns: 240px 1fr 1fr;
    background: linear-gradient(135deg, rgba(244, 128, 36, 0.05) 0%, rgba(244, 128, 36, 0.02) 100%);
    border-bottom: 2px solid rgba(244, 128, 36, 0.2);
}

.comparison-row {
    display: grid;
    grid-template-columns: 240px 1fr 1fr;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease;
}

.comparison-row:last-of-type {
    border-bottom: none;
}

.comparison-row:hover {
    background-color: rgba(244, 128, 36, 0.02);
}

.comparison-label-cell {
    padding: 24px 32px;
    background-color: rgba(244, 128, 36, 0.03);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 18px;
}

.comparison-product-cell {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.comparison-product-cell:first-of-type {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.comparison-header .comparison-product-cell {
    padding: 32px 24px;
    background-color: transparent;
}

.comparison-header .comparison-label-cell {
    border-right: 1px solid rgba(244, 128, 36, 0.2);
    background-color: transparent;
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.comparison-label {
    color: #1a1a1a;
}

.comparison-content {
    font-size: 16px;
    line-height: 1.8;
    color: #4a4a4a;
    margin: 0;
    text-align: center;
}

.comparison-highlight {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.comparison-offer {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.comparison-action-row {
    padding: 0;
    background-color: rgba(244, 128, 36, 0.03);
}

.comparison-action-row .comparison-product-cell {
    padding: 32px 24px;
}

.comparison-action-row:hover {
    background-color: rgba(244, 128, 36, 0.05);
}

.comparison-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(244, 128, 36, 0.3);
    white-space: nowrap;
    width: 100%;
    max-width: 280px;
}

.comparison-apply-btn:hover {
    background-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 128, 36, 0.4);
}

.comparison-apply-btn:active {
    transform: translateY(0);
}

.comparison-disclaimer {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 32px;
    line-height: 1.6;
    padding: 0 24px;
}

/* 利率和還款期 */
.tncs-section {
    padding-top: 0;
}

/* Responsive Styles for Comparison Table */
@media (max-width: 1200px) {

    .comparison-table {
        border-radius: 12px;
    }

    .comparison-header,
    .comparison-row {
        grid-template-columns: 200px 1fr 1fr;
    }

    .comparison-label-cell,
    .comparison-product-cell {
        padding: 20px 24px;
    }

    .product-name {
        font-size: 22px;
    }

    .comparison-content {
        font-size: 15px;
    }

    .comparison-table-wrapper {
        padding: 0;
    }
}

@media (max-width: 992px) {

    .comparison-container .section-title {
        margin-bottom: 40px;
    }

    .comparison-header,
    .comparison-row {
        grid-template-columns: 180px 1fr 1fr;
    }

    .comparison-label-cell,
    .comparison-product-cell {
        padding: 18px 20px;
    }

    .comparison-header .comparison-product-cell {
        padding: 24px 20px;
    }

    .product-name {
        font-size: 20px;
    }

    .comparison-label {
        font-size: 16px;
    }

    .comparison-content {
        font-size: 14px;
        line-height: 1.6;
    }

    .comparison-highlight {
        font-size: 18px;
    }

    .comparison-offer {
        font-size: 16px;
    }

    .comparison-apply-btn {
        padding: 12px 28px;
        font-size: 15px;
        max-width: 240px;
    }
}

@media (max-width: 768px) {
    .comparison-table {
        border-radius: 8px;
        border: 1px solid rgba(244, 128, 36, 0.2);
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px 16px;
    }

    .comparison-header {
        display: none;
    }

    .comparison-row {
        display: block;
        border: none;
        background-color: #f8f8f8;
        border-radius: 12px;
        padding: 0;
        overflow: hidden;
    }

    .comparison-row:hover {
        background-color: #f8f8f8;
    }

    .comparison-label-cell {
        display: block;
        padding: 8px 20px;
        border: none;
        border-bottom: 2px solid rgba(244, 128, 36, 0.3);
        font-size: 18px;
        background-color: rgba(244, 128, 36, 0.1);
        text-align: center;
        font-weight: 700;
        color: #1a1a1a;
    }

    .comparison-product-cell {
        display: block;
        padding: 12px;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        text-align: left;
        position: relative;
        padding-left: 120px;
    }

    .comparison-product-cell:first-of-type {
        border-right: none;
    }

    .comparison-product-cell:last-of-type {
        border-bottom: none;
    }

    .comparison-product-cell::before {
        content: '';
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 700;
        font-size: 16px;
        color: var(--primary-color);
        white-space: nowrap;
    }

    .comparison-row:nth-child(2) .comparison-product-cell:nth-child(2)::before,
    .comparison-row:nth-child(3) .comparison-product-cell:nth-child(2)::before,
    .comparison-row:nth-child(4) .comparison-product-cell:nth-child(2)::before,
    .comparison-row:nth-child(5) .comparison-product-cell:nth-child(2)::before {
        content: '定額私人貸款';
    }

    .comparison-row:nth-child(2) .comparison-product-cell:last-of-type::before,
    .comparison-row:nth-child(3) .comparison-product-cell:last-of-type::before,
    .comparison-row:nth-child(4) .comparison-product-cell:last-of-type::before,
    .comparison-row:nth-child(5) .comparison-product-cell:last-of-type::before {
        content: '循環貸款';
    }

    .comparison-content {
        margin: 0;
        text-align: left;
    }

    .comparison-action-row {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0;
        background-color: transparent;
    }

    .comparison-action-row .comparison-label-cell {
        display: none;
    }

    .comparison-action-row .comparison-product-cell {
        padding: 0;
        border: none;
        background-color: #f8f8f8;
        border-radius: 12px;
        padding: 20px;
        text-align: center;
    }

    .comparison-action-row .comparison-product-cell::before {
        content: none;
    }

    .comparison-action-row .comparison-product-cell:nth-child(2)::before {
        content: '定額私人貸款';
        display: block;
        font-weight: 700;
        font-size: 18px;
        color: var(--primary-color);
        margin-top: 6px;
        position: static;
    }

    .comparison-action-row .comparison-product-cell:last-of-type::before {
        content: '循環貸款';
        display: block;
        font-weight: 700;
        font-size: 18px;
        color: var(--primary-color);
        margin-top: 6px;
        position: static;
    }

    .comparison-apply-btn {
        max-width: 100%;
        width: 100%;
    }

    .comparison-disclaimer {
        font-size: 13px;
        margin-top: 24px;
    }
}