.mobile-container,
.phoneheader,
.dian {
  display: none;
}

@media screen and (min-width: 320px) and (max-width: 1024px) {
  html {
    font-size: 50px;
  }

  .wrap,
  .center-header-wrap {
    width: 92.5%;
  }

  header {
    display: none;
  }

  header.center-header {
    display: block;
  }

  .dian {
    display: block;
    height: 1.4rem;
  }

  .phoneheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    height: 1.4rem;
    background: #000;
    z-index: 999;
    box-shadow: 0 1px 3px #ccc;
    padding: 0 0.5rem;
  }

  .phoneheader .logo {
    width: 15%;
  }

  .phoneheader .logo img {
    width: 100%;
    display: block;
    filter: brightness(0) invert(1);
  }

  .phoneheader .menu img {
    width: 0.5rem;
    filter: brightness(0) invert(1);
  }

  .mobile-nav .sub {
    display: none;
  }

  .mobile-nav .sub>a {
    display: block;
    text-align: left;
    padding-left: 0.4rem;
    font-weight: normal;
  }

  .pheader-right {
    display: flex;
    align-items: center;
    gap: 0.24rem;
    flex-shrink: 0;
  }

  .pheader-right>a,
  .pheader-right>div:not(.language-switch) {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .pheader-right>a img,
  .pheader-right>div:not(.language-switch) img {
    width: 0.44rem;
    height: 0.44rem;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .pheader-right .search-btn {
    margin-right: 0.5rem;
    filter: brightness(0);
    width: 0.5rem;
  }

  /* 手機端語言切換（與 PC header .icon-list 一致） */
  .phoneheader .pheader-right .language-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 0.04rem;
  }

  .phoneheader .language-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    min-height: 0.56rem;
    padding: 0 0.2rem 0 0.16rem;
    border: 0.02rem solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    font-size: 0;
    line-height: 1;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.15);
    -webkit-tap-highlight-color: transparent;
  }

  .phoneheader .language-switch.is-open .language-btn,
  .phoneheader .language-btn:active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.2);
  }

  .phoneheader .language-btn-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .phoneheader .language-btn-icon {
    width: 0.28rem;
    height: 0.28rem;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .phoneheader .language-btn-label {
    font-size: 0.24rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
    max-width: 1.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .phoneheader .language-chevron {
    display: block;
    width: 0;
    height: 0;
    margin-left: 0.02rem;
    border-left: 0.06rem solid transparent;
    border-right: 0.06rem solid transparent;
    border-top: 0.07rem solid rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }

  .phoneheader .language-switch.is-open .language-chevron {
    transform: rotate(180deg);
  }

  .phoneheader .language-dropdown {
    position: absolute;
    top: calc(100% + 0.08rem);
    right: 0;
    left: auto;
    min-width: 1.6rem;
    padding: 0.08rem 0;
    margin: 0;
    list-style: none;
    z-index: 1001;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0.12rem;
    border: 0.02rem solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0.08rem 0.24rem rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.04rem);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    box-sizing: border-box;
  }

  .phoneheader .language-switch.is-open .language-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .phoneheader .language-dropdown li {
    padding: 0;
    margin: 0;
  }

  .phoneheader .language-dropdown li:not(:last-child) {
    border-bottom: 0.02rem dashed rgba(255, 255, 255, 0.22);
  }

  .phoneheader .language-dropdown li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0.72rem;
    padding: 0.14rem 0.24rem;
    margin: 0;
    font-size: 0.26rem;
    font-weight: 400;
    color: #fff;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .phoneheader .language-dropdown li a:active {
    background: rgba(255, 255, 255, 0.18);
  }

  .phoneheader .language-dropdown li a.is-current {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
  }

  .mobile-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
  }

  .mobile-container .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 70%;
    height: 100%;
    background: #fff;
    padding: 1rem 0.12rem;
    overflow-y: scroll;
  }

  .mobile-container .mobile-nav img {
    width: 0.4rem;
    position: absolute;
    right: 0.4rem;
    top: 0.4rem;
  }

  .mobile-container .mobile-nav ul li {
    border-bottom: 1px solid #eeeeee;
    line-height: 0.8rem;
    text-align: left;
    padding-left: 0.6rem;
  }

  .mobile-container .mobile-nav ul li a {
    font-size: 0.34rem;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1200px) {
  .wrap {
    width: 80%;
  }
}
