﻿
body {
    padding-top: 43px; /* 根據 navbar 高度調整 */
}

figure {
    margin: 0 10px;
}

.replypost {
    display: flex;
    align-items: flex-start;
    padding: 5px 0;
    padding-right: 10px;
    border-radius: 15px;
}

    .replypost .Content {
        display: inline-block;
        white-space: pre-wrap;
        word-break: break-all;
        padding: 5px;
        background-color: #67f5a0;
        border-radius: 10px;
        margin: 0;
    }
        .replypost .Content:empty {
            padding: 0;
        }

.sidebar {
    height: 100vh;
    padding-top: 1rem;
    border-right: 1px solid #ddd;
}

.mobile-nav {
    border-top: 1px solid #ccc;
    background-color: #fff;
}

    .mobile-nav a {
        flex: 1;
        text-align: center;
        padding: 0.5rem;
        color: #444;
        text-decoration: none;
    }

        .mobile-nav a:hover {
            background-color: #f0f0f0;
        }

.main-content {
    padding: 0px;
}




/*文章選單*/
.menu-container {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 10;
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.menu-dropdown {
    position: absolute;
    top: 2rem;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
    display: none;
    z-index: 100;
    min-width: 10rem;
}

    .menu-dropdown.show {
        display: block;
    }

    .menu-dropdown button {
        display: block;
        width: 100%;
        background: none;
        border: none;
        text-align: left;
        padding: 0.5rem 1rem;
        cursor: pointer;
    }

        .menu-dropdown button:hover {
            background-color: #f0f0f0;
        }




.dropdown-menu {
    min-width: 15rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    font-size: 0.95rem;
}

.Profile-Link {
    text-decoration: none;
    color: inherit; /* 保持文字顏色不變 */
}

    .Profile-Link:hover {
        text-decoration: underline;
    }



/* 手機優先（Mobile First） */
.image_Single {
    max-width: 100%;
    min-width: 20%;
    max-height: 800px;
    display: inline-block;
}
.article {
    width: 100%;
}


/*旋轉等待動畫*/
.spinner {
    position: absolute; /* 或 relative / fixed 根據需求 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}
.spinner            { opacity: 0; pointer-events: none; display:none; }
.spinner.show       { opacity: 1; pointer-events: auto; display:block; }
.spinner            { transition: opacity .2s ease; }  /* 淡入淡出 */
.position-relative  { position: relative; }   /* Bootstr​ap 也有同名工具類 */


    .spinner div {
        position: absolute;
        top: 125%;
        left: 50%;
        width: 3px;
        height: 12px;
        background: #1877F2;
        border-radius: 1px;
        transform-origin: center -14px;
        opacity: 0.2;
        animation: raysFade 1.2s linear infinite;
        animation-delay: calc(var(--i) * -0.075s);
        /* 先往外偏移 8px（離圓心距離），再往上伸展線條長度 */
        transform: rotate(calc(var(--i) * 22.5deg)) translateY(-3px) translateY(0px);
    }


@keyframes raysFade {
    0%, 39%, 100% {
        opacity: 0.2;
    }

    40% {
        opacity: 1;
    }
}



.ChangeAvatarBtn {
    bottom: 0; /* 靠下 */
    right: 0; /* 靠右 */
    /*transform: translate(30%, 30%); 往外一點 */
    border: 3px solid #666666;
    border-radius: 150%;
    font-size: large;
}

.ChangeCoverBtn {
    bottom: 15px; /* 靠下 */
    right: 15px; /* 靠右 */
    /*transform: translate(30%, 30%); 往外一點 */
    border: 3px solid #666666;
    border-radius: 150%;
    font-size: large;
}

.Div_Cover {
    background-color: #cacaca;
    height: 500px;
    overflow: hidden;
}

@media (max-width:767px) {
    .Div_Cover {
        height: 300px!important;
    }
}

.Div_ProfileImage {
    position: absolute;
    top: 480px;
    z-index: 999;
}

@media (max-width:767px) {
    .Div_ProfileImage {
        top: 280px;
    }
}

.ImageContent, .ProfileDescription {
    cursor: pointer;
}