@font-face{
    font-family: PingFang SC;
    src: url('pingfang.ttf'), format('ttf');
}

body {
    padding: 0;
    margin: 0;
}

.container {
    min-height: 100vh;
    height: 100%;
    background: url('./images/ip-restrict-bg.jpg') center center no-repeat;
    background-size: cover;
    display: flex;
    background-color: #131f3c;
    justify-content: space-evenly;
    align-items: center;
}

.logo-bottom {
    width: 124px;
    height: 60px;
}

.logo-top {
    display: none;
}

/* .grid {
    width: 500px;
} */

.globe {
    width: 650px;
    height: auto;
}


.section {
    background: url('./images/ip-restrict-section-bg.png') center center no-repeat;
    background-size: 100% 100%;
    width: 540px;
    height: 668px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 16px;
}

.header {
    font-family: PingFang SC;
    font-weight: 600;
    font-size: 44px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
}

.link {
    color: #304fca;
}

.desc {
    font-family: PingFang SC;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    color: #666666;
}

.ip-origin {
    font-family: PingFang SC;
    font-weight: 600;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    color: #0080FF;
}

.desc-2 {
    font-family: PingFang SC;
    font-weight: 600;
    font-size: 20px;
    line-height: normal;
    letter-spacing: 0;
    text-align: center;
    color: #666666;
}

.desc-2 span {
    color: #0080FF;
}

.contact-btn {
    background: url('./images/contact-btn.svg') center center no-repeat;
    background-size: 100% 100%;
    width: 180px;
    height: 44px;
    cursor: pointer;

    &:active {
        transform: translateY(2px);
    }

    &:hover {
        filter: brightness(0.9);
    }
}

.container.dark {
    background: url('./images/ip-restrict-bg-dark.png') center center no-repeat;
    background-size: cover;
    justify-content: flex-start;
    padding-left: 6vw;
}

.section.dark {
    background: url('./images/ip-restrict-section-bg-dark.png') center center no-repeat;
    background-size: 100% 100%;
    backdrop-filter: blur(10px);
}

.desc.dark {
    color: #798195;
}

.ip-origin.dark {
    color: #a98f7c;
}

.desc-2.dark {
    color: #798195;
}

.header.dark {
    color: #f6f6f6;
}

.link.dark {
    color: #7284c9;
}

.ip-desc {
    color: #0080FF
}

.contact-btn.dark {
    background: url('./images/contact-btn-dark.svg') center center no-repeat;
    background-size: 100% 100%;
    width: 137px;
    height: 44px;
}
    /* 容器設定為 Flex 布局，並讓內容自動換行 */
    .container_in.dark{
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      max-width: 550px;
      margin: 0 auto;
      background: transparent;
    }

    /* 單一項目的外框：占寬度約 23%（4 個一排） */
    .item_in {
      width: 110px;
      height: 110px;
      padding-top:4px;
      flex: 0 0 23%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      margin-bottom: 20px;
      text-align: center;
      border-radius: 4px;
      background: rgba(23, 34, 62, 1);
      color: rgba(255, 255, 255, 1);
    }

    .item_in.xf {
        justify-content: space-evenly;
        border-radius: 12px;
    }

    /* 紅色框（圖片placeholder） */
    .image-placeholder {
      width: 50px;
      margin: 0px auto;
    }

    .image-placeholder.xf {
        width: 100%;
        max-width: 91px;
        margin: 0 auto;
    }

    /* 文字區塊 */
    .title {
      font-size: 14px;
      margin:0;
    }

    .subtitle {
      font-size: 14px;
      color: rgba(153, 153, 153, 1);
      margin:0;
    }


@media (width <= 800px) {
    .container {
        flex-direction: column;
        justify-content: center;
        width: 100%;
        min-width: 100vw;
        background-size: 100% 100%;
    }

    .container.dark {
        padding-left: unset;
        justify-content: center;
        background-position: 85% 0;
    }

    .grid {
        width: 100%;
        height: auto;
    }

    .globe {
        width: 200px;
        height: auto;
    }

    .globe.m-hide {
        display: none;
    }

    .logo-top {
        display: block;
        width: 100px;
        height: auto;
    }

    .logo-top.lh {
        margin-bottom: 16px;
    }

    .logo-bottom {
        display: none;
    }

    .section {
        width: 80%;
        height: auto;
        gap: 15px;
    }

    .header {
        font-size: 26px;
    }

    .desc {
        font-size: 12px;
    }

    .desc-2 {
        font-size: 14px;
        line-height: 20px;
    }

    .contact-btn {
        min-height: 44px;
        width: 100%;
        background-image: url('./images/m-contact-btn.svg');
    }

    .contact-btn.dark {
        min-height: 44px;
        width: 100%;
        background-image: url('./images/m-contact-btn-dark.svg');
    }
    .container_in.dark{
      min-width: 315px;
    }
    .title {
      font-size: 10px;
      margin:0;
    }

    .subtitle {
      font-size: 9px;
      color: rgba(153, 153, 153, 1);
      margin:0;
    }
}