* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f4f6f9;
    display: flex;
    justify-content: center;
    padding: 55px 12px 20px 12px;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

/* 顶部右上角固定语言切换栏 */
.lang-switcher-bar {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.lang-item {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #333;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.lang-item:hover {
    background: #e6f7ff;
}

/* 卡片通用样式 */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    line-height: 1.5;
    font-size: 14px;
    color: #333;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.card p {
    margin-bottom: 8px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.card p:last-child {
    margin-bottom: 0;
}

.highlight {
    color: #e65100;
    font-weight: bold;
}

.address-box {
    background: #f8f9fa;
    padding: 10px 8px;
    border-radius: 6px;
    font-weight: bold;
    word-break: break-all;
    overflow-wrap: break-word;
    margin: 10px 0;
    font-size: 13px;
    user-select: all;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    background: linear-gradient(to right, #3877f6, #66c2f9);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    margin-top: 8px;
    white-space: normal;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
}

.btn:hover {
    opacity: 0.9;
}

/* 复制弹窗（SweetAlert 风格） */
.popup-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.popup-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 260px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow-wrap: break-word;
    word-break: break-word;
}

.popup-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e6f7ff;
    color: #1890ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    font-size: 22px;
    font-weight: bold;
}

.popup-btn {
    margin-top: 15px;
    padding: 8px 20px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* 收藏保存引导弹窗 */
.guide-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.guide-box {
    background: #fff;
    color: #333;
    padding: 22px 18px;
    border-radius: 12px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 移动端细化响应式适配 */
@media (max-width: 480px) {
    body {
        padding: 50px 10px 16px 10px;
    }

    .lang-switcher-bar {
        top: 8px;
        right: 8px;
        padding: 4px 10px;
        gap: 6px;
    }

    .lang-item {
        font-size: 12px;
        padding: 2px;
    }

    .card {
        padding: 14px 12px;
        font-size: 13.5px;
    }

    .address-box {
        font-size: 12px;
        padding: 8px 6px;
    }

    .btn {
        font-size: 13.5px;
        padding: 8px 10px;
    }
}
