input:disabled {
    color: #343a40;
    background-color: var(--color-gray-100);
}

.forget-form-wrapper {
    max-width: 700px;
}

.forget-form {
    display: flex;
    flex-direction: column;
    min-height: 382px;

    @media (min-width: 64rem) {
        min-height: 382px;
    }
}

.forget-button {
    margin-top: auto;
    padding: 0.5rem 0;
    --tw-gradient-position: to bottom in oklab,;
    font-size: 1rem;
    color: #fff;
    border-radius: 6px;
    background-image: linear-gradient(var(--tw-gradient-stops));
    --tw-gradient-from: #6376DC;
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position,) var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
    --tw-gradient-to: #509EE6;
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position,) var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
}

.forget-password {
    font-size: 0.875rem;
}

.forget-password a {
    color: #0000FF;
}

.confirm-code-text {
    font-weight: 300;
    color: #6275DB;
}

.confirm-code-button {
    padding: 0.4rem 0;
    color: #6275DB;
    border: 1px solid #6275DB;
    border-radius: 6px;
}

.join-modal-button-1 {
    margin: 42px auto 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 12px 36px;
    background-color: white;
    color: #37B798;
    font-weight: bold;
}

#join-modal-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.join-modal-content {
    padding: 72px 0 56px;
}

.join-modal-divider {
    margin: 0 auto;
    width: 60%;
    height: 1px;
    background-color: #999999;
}

.join-modal-logo {
    width: 220px;
    margin: auto;

    @media (width >= 64rem) {
        width: 320px;
    }
}

.qa-list {
    @media (width >= 64rem) {
        padding-top: 124px;
        gap: 64px;
    }
}

.qa-item {
    padding: 14px 18px;
    width: fit-content;
    cursor: pointer;
    --tw-font-weight: var(--font-weight-light);
    font-weight: var(--font-weight-light);
    color: #999999;
    list-style: none;
    text-decoration: none;

    @media (width >= 64rem) {
        font-size: 28px;
        line-height: 100%;
    }
}

.qa-item.active {
    color: #2C52DD;
    border-radius: var(--radius-lg);
    border-style: var(--tw-border-style);
    border-width: 1px;
    border-color: #37B798;
}

.accordions {
    padding: 36px 0;

    @media (width >= 64rem) {
        padding: 94px 0;
    }
}

.accordion {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}

.accordion-item {
    --bs-accordion-border-radius: 24px;
    box-shadow: 0 0 14px 0 rgba(0, 0, 0, 0.1);
    padding: 24px 0;

    @media (width >= 64rem) {
        padding: 48px 0;
    }
}

.accordion-header {
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;

    @media (width >= 64rem) {
        padding: 0 66px;
    }
}

.accordion-button {
    --bs-accordion-btn-color: #2C52DD;
    --bs-accordion-active-color: #2C52DD;
    font-size: 20px;

    @media (width >= 64rem) {
        font-size: 28px;
    }
}

.accordion-button::after {
    display: none;
    content: "";
    width: 52px;
    height: 52px;
    background-image: url("/assets/images/qa_arrow.png");
    background-size: 100% 100%;
    transition: transform 0.3s;

    @media (width >= 64rem) {
        display: inline-block;
    }
}

.accordion-button:not(.collapsed)::after {
    content: "";
    background-image: url("/assets/images/qa_arrow.png");
    transform: rotate(180deg);
}

.accordion-body {
    padding: 20px 24px 0;
    color: #4D4D4D !important;
    font-size: 16px;
    line-height: 1.75;

    @media (width >= 64rem) {
        padding: 20px 66px 0;
        font-size: 20px;
    }
}

@property --tw-gradient-position {
    syntax: "*";
    inherits: false;
}

@property --tw-gradient-from {
    syntax: "<color>";
    inherits: false;
    initial-value: #0000;
}

@property --tw-gradient-via {
    syntax: "<color>";
    inherits: false;
    initial-value: #0000;
}

@property --tw-gradient-to {
    syntax: "<color>";
    inherits: false;
    initial-value: #0000;
}

@property --tw-gradient-stops {
    syntax: "*";
    inherits: false;
}

@property --tw-gradient-via-stops {
    syntax: "*";
    inherits: false;
}

@property --tw-gradient-from-position {
    syntax: "<length-percentage>";
    inherits: false;
    initial-value: 0%;
}

@property --tw-gradient-via-position {
    syntax: "<length-percentage>";
    inherits: false;
    initial-value: 50%;
}

@property --tw-gradient-to-position {
    syntax: "<length-percentage>";
    inherits: false;
    initial-value: 100%;
}

.modal.modal-vcenter .modal-dialog {
    -webkit-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
    transform: translate(0, -50%);
    top: 50%;
    margin: 0 auto;
}

.index-icon {
    height: 72px;

    @media (width >= 64rem) {
        position: relative;
        height: 106px;
        justify-content: flex-end;
    }
}

.index-icon img {
    width: 32px;

    @media (width >= 64rem) {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
}

.index-icon img.key {
    @media (width >= 64rem) {
        width: 57px;
    }
}

.index-icon img.key:hover {
    content: url("/assets/images/key_active.png");
}

.index-icon img.money {
    @media (width >= 64rem) {
        width: 52px;
    }
}

.index-icon img.money:hover {
    content: url("/assets/images/money_active.png");
}

.index-icon img.trade {
    width: 50px;

    @media (width >= 64rem) {
        width: 80px;
    }
}

.index-icon img.trade:hover {
    content: url("/assets/images/trade_active.png");
}

.index-icon img.target {
    @media (width >= 64rem) {
        width: 58px;
    }
}

.index-icon img.target:hover {
    content: url("/assets/images/target_active.png");
}


.index-icon img.real_estate {
    @media (width >= 64rem) {
        width: 60px;
    }
}

.index-icon img.real_estate:hover {
    content: url("/assets/images/real_estate_active.png");
}

.index-icon img.paper {
    @media (width >= 64rem) {
        width: 50px;
    }
}

.index-icon img.paper:hover {
    content: url("/assets/images/paper_active.png");
}

.index-icon img.relation {
    width: 42px;

    @media (width >= 64rem) {
        width: 60px;
    }
}

.index-icon img.relation:hover {
    content: url("/assets/images/relation_active.png");
}

.index-icon img:hover {
    @media (width >= 64rem) {
        transform: translateX(-50%) scale(1.1);
    }
}

.service-selectors {
    padding: 15px;

    @media (width >= 64rem) {
        border-radius: 6px;
        background-color: rgba(255, 255, 255, 0.5);
    }
}

.service-selectors select.form-select {
    @media (width >= 64rem) {
        padding-top: 12px;
        padding-bottom: 12px;
        width: 220px;
    }
}

.text-\[\#00B800\] {
    color: #00B800;
}

.join-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;

    @media (width >= 64rem) {
        text-align: center;
    }
}

.join-header {
    --width: 180px;

    position: relative;
    width: var(--width);
    margin: 0 auto 40px;
    padding-bottom: calc(var(--width) / 300 * 147);
    background-image: url('/assets/images/message_container.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;

    @media (width >= 64rem) {
        --width: 250px;
    }
}

.join-header p {
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: white;
    line-height: 1.5;
    margin-bottom: 0;
    transform: translate(0, -65%);

    @media (width >= 64rem) {
        font-size: 24px;
    }
}

.join-content {
    --width: 180px;

    position: relative;
    margin: 0 auto;
    width: var(--width);
    padding-bottom: calc(var(--width) / 370 * 503);
    background-image: url('/assets/images/join_1.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;

    @media (width >= 64rem) {
        --width: 368px;
    }
}

.join-section .join-badge {
    position: absolute;
    width: 120px;
    padding: 0;

    @media (width >= 64rem) {
        width: 288px;
    }
}

.join-badge.accurate {
    top: 23%;
    left: -50%;

    @media (width >= 64rem) {
        top: 23%;
        left: -68%;
    }
}

.join-badge.conven {
    top: 80%;
    left: -45%;

    @media (width >= 64rem) {
        top: 65%;
        left: -60%;
    }
}

.join-badge.expose {
    top: 12%;
    left: 86%;

    @media (width >= 64rem) {
        top: 12%;
        left: 82%;
    }
}

.join-badge.expose span {
    @media (width >= 64rem) {
        font-size: 30px;
        font-weight: bold;
    }
}

.join-badge.safe {
    top: 70%;
    left: 82%;

    @media (width >= 64rem) {
        top: 68%;
        left: 75%;
    }
}

.join-section .join-badge .icon {
    width: 100%;
    aspect-ratio: calc(100% / 329 * 125);
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;

    @media (width >= 64rem) {
        margin-bottom: 18px;
    }
}

.join-section .join-badge .icon img {
    width: 100%;
    height: 100%;
}

.join-section .join-badge p {
    font-size: 14px;
    color: #202544;

    @media (width >= 64rem) {
        font-size: 22px;
        white-space: nowrap;
    }
}

.join-section .join-badge p.left {
    margin-bottom: 0;
    transform: translateX(0px);

    @media (width >= 64rem) {
        transform: translateX(-80px);
    }
}

.join-section .join-badge p.right {
    margin-bottom: 0;
    transform: translateX(0);

    @media (width >= 64rem) {
        transform: translateX(108px);
    }
}

.join-modal-button-2 {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 16px;
    background: linear-gradient(to right, #509EE6, #6376DC);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    @media (width >= 64rem) {
        min-width: 260px;
        font-size: 24px;
    }
}

.join-step-section {
    @media (width >= 96rem) {
        padding-left: 282px;
        padding-right: 282px;
    }
}

.join-step-section .step-item {
    flex: 1;
    max-width: 280px;

    @media (width >= 64rem) {
        max-width: 100%;
    }
}

.join-step-section .icon-wrapper img {
    transition: transform 0.3s ease;
}

.join-step-section .icon-wrapper:hover img {
    transform: scale(1.1);
}

.join-step-section .join-button {
    @media (width >= 64rem) {
        min-width: 290px;
        font-size: 24px;
    }
}

.join-step-section + section .stats-wrapper {
    margin-top: 0;
}

.join-plan {
    padding: 36px 48px 24px 48px;
    width: 100%;
    max-width: 400px;

    @media (width >= 64rem) {
        width: calc(50% - 32px);
    }
}

.join-plan .hot-badge {
    position: absolute;
    top: 5%;
    left: 0;
    width: 33%;
}

.join-bottom-section {
    border-top-right-radius: 24px;
    border-top-left-radius: 24px;
    background-image: url('/assets/images/join_bottom.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 72px 0;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.join-bottom-badge {
    align-self: center;
    transform: skew(-5deg);
}

.profile-section {
    /*width: 100%;
    display: flex;
    gap: 32px;*/
}

.profile-section .left-section {
    flex: 1 1 25%;
}

.profile-section .right-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 36px 48px;
}

.profile-section .right-section .label {
    font-size: 28px;
}

.profile-section .right-section .content {
    font-size: 20px;
}

.profile-section .right-section ul {
    padding-left: 0;
}

.profile-section .certificate-wrapper h4 {
    font-size: 28px;
    font-weight: bold;
}

.profile-not-login {
    @media (width >= 64rem) {
        width: 632px;
        margin: 75px auto 0;
    }
}

.profile-not-login div {
    @media (width >= 64rem) {
        width: 300px;
    }
}

.profile-not-login .btn {
    width: 100%;
    height: 60px;
    background-image: linear-gradient(270deg, #6376dc 0%, #509ee6 100%);
}

.message-section {
    @media (width >= 64rem) {
        flex-basis: 1000px;
        display: flex;
        flex-direction: column;
    }
}

.member-menu-item {
    position: relative;
    flex-basis: auto;
    width: 100%;
    max-width: 150px;
    min-width: 120px;
    text-decoration: none;
}

.member-menu-item:not(:last-child)::after {
    @media (width >= 64rem) {
        content: "";
        position: absolute;
        top: 0;
        right: calc(var(--spacing) * 8 * -1);
        display: block;
        width: 1px;
        height: 100%;
        background-color: #E6E6E6;
    }
}

.dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(100%);
    display: block;
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
}

.profile-item-card {
    @media (width >= 64rem) {
        flex-basis: calc(33.33333333333333% - 32px);
    }
}

.profile-message-item {
    font-size: 24px;
    font-weight: light;
}

.profile-message-item::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background-color: #354077;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-message-item.no-dot::before {
    content: none;
}

.agreement {
    max-height: 700px;
    font-size: 18px;
    line-height: 1.75;
    font-weight: light;
    overflow-y: auto;
}

.application-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background-image: url('/assets/images/banner_bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: -1;
}

.service-area-item:not(:last-child) {
    @media (width >= 64rem) {
        width: calc(12.5% - 32px);
    }
}

.file-input.file-input-new {
    visibility: hidden;
    pointer-events: none;
}

/* 文章標籤選擇器樣式 */
.article-tag-selector {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.article-tag-display {
    min-height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    background: white;
    cursor: text;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    position: relative;
}

.article-tag-display::after {
    content: "點擊添加標籤";
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.article-tag-display.has-tags::after {
    display: none;
}

.article-tag-display:focus-within {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 1px #3b82f6;
}

.article-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #F2F2F2;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
}

.article-tag-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.article-tag-remove {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    margin-left: 4px;
}

.article-tag-remove:hover {
    color: #6b7280;
}

.article-tag-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.article-tag-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.article-tag-option:hover {
    background: #f9fafb;
}

.article-tag-option:last-child {
    border-bottom: none;
}

.article-tag-option.selected {
    background: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
}

/* 封面上傳樣式 */
.cover-upload-container {
    width: 100%;
    max-width: 400px;
}

.cover-upload-label {
    display: block;
    cursor: pointer;
    width: 100%;
}

.cover-upload-content {
    position: relative;
    width: 100%;
    height: 225px;
    /* 16:9 ratio for 400px width */
    background-color: #E5E5E5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.cover-preview.has-image {
    display: block;
}

.cover-upload-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cover-upload-placeholder.hide {
    display: none;
}

.cover-plus-icon {
    width: 48px;
    height: 48px;
    color: #999999;
}

#cover-upload {
    display: none;
}

.cover-upload-info {
    margin-top: 12px;
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

.cover-upload-info div {
    margin-bottom: 4px;
}

.message-conversation {
    padding: 16px 45px;
    font-size: 20px;
}

/* Message Modal 樣式 */
.message-modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.message-modal-header {
    background: white;
    border-radius: 12px 12px 0 0;
}

.message-modal-body {
    background: white;
    border-radius: 0 0 12px 12px;
}

.message-modal-close {
    top: 15px;
    right: 15px;
    z-index: 1000;
}

.message-modal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.message-modal-avatar.user {
    background: #e9ecef;
}

.message-modal-avatar.agent {
    background: #007bff;
}

.message-modal-username {
    font-weight: 600;
    color: #333;
    font-size: 20px;
}

.message-modal-date {
    color: #999;
    font-size: 12px;
}

.message-modal-text {
    margin: 0;
    color: #333;
    font-size: 20px;
    line-height: 1.4;
}

.message-modal-verification {
    color: #808080;
    font-size: 12px;
}

.message-modal-verification-icon {
    width: 16px;
    height: 16px;
}

/* Figma 回覆按鈕樣式 */
.member-modal-reply-btn {
    width: 135px;
    height: 45px;
    background: linear-gradient(90deg, #509EE6 0%, #6376DC 99.3%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-modal-reply-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(80, 158, 230, 0.3);
}

.member-modal-reply-btn:active {
    transform: translateY(0);
}

.member-modal-reply-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(80, 158, 230, 0.3);
}

/* Figma 編輯按鈕樣式 */
.member-modal-edit-btn {
    width: 135px;
    height: 45px;
    background: #666666;
    border: 1px solid #FFFFFF;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-modal-edit-btn:hover {
    background: #555555;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 102, 102, 0.3);
}

.member-modal-edit-btn:active {
    transform: translateY(0);
}

.member-modal-edit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.3);
}

.case-scroll {
    max-height: 400px;
    overflow-y: auto;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

/* WebKit 瀏覽器樣式 */
.case-scroll::-webkit-scrollbar {
    width: 6px;
}

.case-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.case-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.case-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.color-inherit {
    color: inherit;
}
