* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f2ddd6;
    min-height: 100vh;
}

/* 遮罩层 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 15px;
    overflow-y: auto;
}

/* 弹窗主容器 */
.popup-container {
    display: flex;
    width: 100%;
    max-width: 800px;
    background-color: #f2ddd6;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    font-family: "Switzer Light", sans-serif;
}

/* 左上角关闭按钮 */
.popup-close-icon {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10;
}

.popup-close-icon:hover {
    opacity: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.4);
}

/* 左侧区域 */
.popup-left-panel {
    flex: 1.1;
    position: relative;
    background-image: url('../images/pop_bg_acne.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 0 120px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 5%;
    padding-right: 5%;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* 左侧顶部小字 */
.popup-tagline {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 0 #000, 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* 品牌名 */
.popup-brand {
    font-size: 22px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0 #000, 0 2px 5px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    line-height: 100%;
}

/* 主标题 */
.popup-main-title {
    font-size: 46px;
    font-family: "Wulkan Display Regular", sans-serif;
    font-weight: 400;
    line-height: 1.05;
    text-shadow: 2px 2px 0 #000, 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

/* 右侧区域 */
.popup-right-panel {
    flex: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f2ddd6;
}

/* 表单卡片 */
.popup-form-card {
    background-color: #ffffff;
    padding: 15px;
    width: 100%;
    max-width: 420px;
    border: 1px solid #4a4a4a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 表单顶部黑色标题块 */
.popup-form-header {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 8px 10px;
    margin-bottom: 15px;
    border: 1px solid #000;
}

.popup-form-header h2 {
    font-family: "Wulkan Display Regular", sans-serif;
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1.2;
    color: #fff;
    margin: auto;
}

.popup-form-header h2 span {
    font-size: 2rem;
    font-weight: 700;
}

.popup-form-header h2 em {
    font-style: normal;
    font-family: serif;
}

/* 表单元素 */
.popup-form-group {
    margin-bottom: 8px;
}

.popup-form-group label {
    display: block;
    font-size: 12px;
    color: #000;
    margin-bottom: 2px;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: normal;
}

.popup-form-group input {
    width: 100%;
    padding: 5px;
    border: 1px solid #999;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    transition: border-color 0.2s;
    background-color: #fff;
    line-height: normal;
    font-family: Arial, Helvetica, sans-serif;
}

.popup-form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* 注册按钮 */
.popup-btn-register {
    width: 100%;
    background-color: #1a1a1a !important;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    font-family: "Wulkan Display Regular", sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.3s;
    line-height: normal;
}

.popup-btn-register:hover {
    background-color: #333 !important;
}

/* 底部安全提示 */
.popup-security-note {
    text-align: center;
    font-size: 0.6rem;
    color: #666;
    margin-top: 10px;
    margin-bottom: 0;
    line-height: normal;
}

.popup-confirm-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    display: none;
}

.popup-confirm-content {
    text-align: center;
}

.popup-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
}

.popup-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.popup-btn-close-dialog {
    background: #1a1a1a !important;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    line-height: normal;
}

.btn-close-dialog:hover {
    background: #333 !important;
}

/* 位置选择下拉框 */
.location-group {
    position: relative;
}

.location-group input[readonly] {
    cursor: pointer;
    background-color: #fff;
    padding-right: 40px;
}

.location-input-wrapper {
    position: relative;
}

.location-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    cursor: pointer;
    color: #666;
}

.location-clear {
    display: none;
}

.location-group.has-value .location-arrow {
    display: none;
}

.location-group.has-value .location-clear {
    display: inline;
}

.location-icon span:hover {
    color: #333;
}

.location-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #999;
    border-top: none;
    border-radius: 0 0 2px 2px;
    display: none;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.location-dropdown.show {
    display: block;
}

.location-option {
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
}

.location-option:hover {
    background-color: #f5f5f5;
}


/* 响应式布局：小屏时堆叠 */
@media (max-width: 768px) {
    .popup-container {
        flex-direction: column;
        min-height: auto;
        /* overflow-y: auto; */
    }

    .popup-left-panel {
        height: auto;
        padding: 20px;
        align-items: center;
        text-align: center;
        background-position: center;
        border-radius: 0;
        flex: none;
        width: 100%;
    }

    .popup-tagline {
        margin-bottom: 20px;
        text-align: center;
        font-size: 1rem;
    }

    .popup-main-title {
        font-size: 26px;
        text-align: center;
        margin-bottom: 0px;
    }

    .popup-brand {
        text-align: center;
        font-size: 20px;
    }

    .popup-close-icon {
        top: 15px;
        left: 15px;
        font-size: 40px;
    }

    .popup-right-panel {
        flex: none;
        width: 100%;
        padding: 30px 15px;
        background-color: #f2ddd6;
    }

    .popup-form-card {
        max-width: 100%;
        padding: 15px;
    }

    .popup-form-header {
        margin-bottom: 10px;
    }

    .popup-form-header h2 {
        font-size: 16px;
    }

    .popup-form-group input {
        padding: 8px;
    }

    .popup-form-group {
        margin-bottom: 10px;
    }
}

/* 移动端最小屏幕适配 */
@media (max-width: 480px) {
    .popup-overlay {
        padding: 10px 25px;
    }

    .popup-close-icon {
        font-size: 30px;
        top: 10px;
        left: 10px;
    }

    .popup-left-panel {
        padding: 20px;
        border-radius: 0;
    }

    .popup-tagline {
        font-size: 12px;
    }

    .popup-brand {
        font-size: 18px;
    }

    .popup-main-title {
        font-size: 24px;
    }

    .popup-right-panel {
        padding: 10px;
    }

    .popup-form-header {
        padding: 5px;
    }

    .popup-form-header h2 {
        font-size: 14px;
    }

    .popup-form-group {
        margin-bottom: 6px;
    }

    .popup-form-group label {
        margin-bottom: 0;
        font-size: 11px;
    }

    .popup-form-group input {
        padding: 5px;
        font-size: 12px;
    }
    .location-option{
        font-size: 12px;
        padding: 2px 8px;
    }
}