/* 移動設備樣式 - 最大寬度480px */
@media (max-width: 480px) {
  * {
    font-size: 1rem;
  }

  .post-title {
    grid-area: 1/2/2/5;
  }

  .post-pic-area {
    grid-area: 1/1/4/2;
  }

  .thumbs-area {
    padding-top: 0;
    justify-content: flex-start;
    grid-area: 4/1/5/2;
  }

  body {
    margin: 0;
    padding-bottom: 60px; /* 為底部導航欄留出空間 */
  }

  .title-bar {
    padding-left: 5px;
    padding-right: 10px;
  }

  .main-post-area {
    gap: 10px;
  }

  .posts-wrapper {
    gap: 0.3rem;
  }

  .search-results-header h2 {
    margin-bottom: 0;
  }

  .logo-text {
    font-size: 1rem;
    margin-left: 5px;
  }

  .search-input-wrapper {
    width: 85%;
  }

  .form-control {
    height: 32px;
    padding: 6px 10px 6px 2rem;
    font-size: 0.85rem;
  }

  .navigator-box {
    display: none;
  }

  .navigator-list {
    padding: 1rem;
  }

  .navigator-dropdown-box {
    width: 9rem;
    height: 2.8rem;
    font-size: 1rem;
  }

  .navigator-dropdown-box > svg {
    width: 1.2rem;
  }

  .content-area {
    margin: 10px;
  }

  .account-container {
    margin: 0;
  }

  .post-card {
    padding: 10px 0;
  }

  .tab-content {
    padding: 0;
  }

  .logo_and_text {
    padding: 0;
  }

  .logo_and_text > img {
    width: 170px;
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .account-content-area {
    margin: 20px 10px;
  }

  .post-box {
    padding: 15px 10px;
    grid-template-columns: 100px minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto auto auto auto;
  }

  .post-pic-area img, .scroll-item > img {
    max-height: 100px;
    max-width: 100px;
  }

  .post-title h2 {
    font-size: 1.1rem;
    margin: 0 0.2rem 0 0.5rem;
  }

  .post-title-box {
    margin-left: 0.5rem;
  }

  .post-info-area {
    margin-left: 0.5rem;
    flex-direction: column;
    gap: 0;
    display: flex;
    align-items: flex-start;
    grid-area: 3/2/4/5;
  }

  .post-price {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    grid-area: 2/2/3/5;
  }

  .post-content {
    display: none;
  }

  .post-poster {
    grid-area: 4/2/5/5;
  }

  .post-poster > a {
    gap: 3px;
  }

  .poster-logo {
    width: 20px;
    height: 20px;
  }

  .poster-name {
    font-size: 0.8rem;
  }

  .post-url-button {
    grid-area: 5/2/6/5;
  }

  .post-url-link {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    gap: 8px;
  }

  /* 外部連結圖標樣式 */
  .external-link-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
  }

  #in-post-url-button {
    grid-area: 5/4/6/5;
  }

  .deal-content-pic-area {
    grid-area: 1/1/2/5;
  }

  #in-post-img-1, #in-post-img-2, #in-post-img-3, #in-post-img-4, #in-post-img-5, #in-post-img-6 {
    max-height: 300px;
    max-width: 300px;
  }

  #in-post-title {
    grid-area: 2/1/3/5;
  }

  #in-post-poster {
    grid-area: 5/1/6/3;
  }

  .deal-content-info-area {
    padding: 0;
  }

  .add-post-circle:hover {
    width: 30px;
  }

  .add-post-circle svg {
    position: static;
  }

  .add-post-circle:hover svg {
    left: auto;
    transform: none;
  }

  .add-post-text, .add-post-circle:hover .add-post-text {
    display: none;
    opacity: 0;
  }

  #in-post-thumbs-area {
    grid-area: 3/4/4/5;
  }

  #in-post-price {
    grid-area: 4/4/5/5;
    align-items: flex-end;
  }

  #in-post-info-area {
    grid-area: 3/1/4/4;
  }

  #in-post-discussion-title {
    flex-direction: column;
    align-items: flex-start;
  }

  #in-post-discussion-filter-box {
    padding: 0;
    justify-content: flex-start;
  }

  .physical-location-link {
    width: 100%;
    display:flex;
    justify-content: center;
    font-size: 0.9rem;
  }

  .post-info {
    font-size: 0.75rem;
  }

  .post-time, .post-brand {
    gap: 3px;
  }

  .deal-content-info-icon {
    width: 0.9rem;
  }

  .post-content {
    margin-left: 0.5rem;
  }

  .post-poster {
    margin-left: 0.5rem;
  }


  .filter-bar-area {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .filter-box {
    width: 100%;
    justify-content: space-between;
    padding: 6px 12px;
  }

  .deal-content-box {
    grid-template-columns: 100px minmax(0, 1fr) auto auto;
    padding: 15px 10px;
  }

  .deal-content-box > .post-title > h2 {
    font-size: 1.2rem;
  }

  .post-price > p > strong {
    font-size: 1.4rem;
  }

  .comment-session {
    width: 100%;
  }

  .footer-box {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .share-menu-item {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .copy-toast {
    font-size: 1.2rem;
    padding: 8px 15px;
  }
  
  .modal-content {
    width: 95%;
    max-width: 95%;
  }

  .logout-btn {
    margin-left: 0;
  }

  .tab-nav {
    flex-direction: column;
  }

  .info-card > table > tbody > tr > td, .birthday-display > p {
    display: block;
  }
  
  /* 底部導航欄樣式 */
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffcb24;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .mobile-bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #333;
    text-decoration: none;
  }
 
  /* 在移動裝置下隱藏原位置的元素 */
  .searching_box, #header-notification-bell, #header-user-avatar {
    display: none;
  }

  .bi-bell-fill {
    fill: currentColor;
  }
  
  /* 在底部導航欄中的特定樣式 */

  .mobile-bottom-bar .notification-icon {
    margin-right: 0;
  }
  
  .mobile-bottom-bar .notification-dropdown {
    bottom: 43px;
    top: auto;
    right: -30px;
    max-width: 100%;
    max-height: 300px;
    min-width: 250px;
  }

  .notification-area {
    margin-right: 0;
  }

  /* 在移動設備上隱藏桌面元素，顯示移動元素 */
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: inline-block;
  }
} 

/* 在桌面設備上隱藏移動元素，顯示桌面元素 */
@media (min-width: 481px) {
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: inline-block;
  }
} 